fow_in, but I do not know what it does.
Does anybody know?
Scripts
What Does The fow_in Function Do
What Does The fow_in Function Do
1

fow_in, but I do not know what it does.
player ID (it checks if the coordinate is inside the visible area of THAT specific player)
X coordinate to check (in pixels, not tiles)
Y coordinate to check (in pixels, not tiles)
DC: Does that function always return 0 if fog of war is disabled?
DC. I even asked for that in the ideas thread back in the day. Also remember
Rainoth was against the idea because he didn't get the point of such a function and he claimed you can do a very similar checker with just basic Lua on your own. I always thought it'd be cool to have it in the original game since it is kinda expensive to do it yourself (also would be less accurate). I wish it was documented all these years, can't imagine how many beautiful things you could have done with it...
Masea: I've added it not long ago. Probably in the last version.
fow_in
The Dark Shadow: What does the script look like which always gives you a 1 as return value? Make sure you're getting the parameters right. Especially the order and the fact that the coordinates are in pixels and not in tiles.
SQ implemented it and I never tested it.
DC: I don't know why last time it didn't work, I tested it once again and it worked properly, maybe there is something wrong with it sometimes. Anyways, thanks!
1
