Follow-up Comment #9, patch #3176 (project wesnoth):
Boucman: does this clarify things?
Suppose side 1 uses fog and there is something happening at hex 10,12 that
side 1 should see. The current way to do this is with {CLEAR_FOG 1 10 12 4}
(or whatever radius is appropriate), followed by {UNCLEAR_FOG} when the
"something" is done. The new way (not yet incorporating Anonymissimus' desired
changes) would be to use
[remove_fog]
side=1
x,y=10,12
radius=5 # Radius increased by 1 since the fog clearer units used by
# CLEAR_FOG see 1 hex further than their movement.
[/remove_fog]
followed by
[reset_fog]
side=1
[/reset_fog]
So what happens? In the basic case, both accomplish the same thing: the fog is
cleared from 10,12, and from hexes within 5 of it, when CLEAR_FOG or
[remove_fog] is used; then those hexes are re-fogged when UNCLEAR_FOG or
[reset_fog] is used (assuming CLEAR_FOG is used without this patch -- this is
where the patch would cause grief for WML trying to control fog). What are the
special cases? (For specificness, I'll pick one hex on the border of the
cleared region: hex 10,17.)
*Side 1 has a unit that can see 10,17*
In this case, hex 10,17 is not refogged when CLEAR_FOG or [reset_fog] is used
(but the other hexes could still be refogged).
*Side 1 had a unit that could see 10,17 earlier this turn*
Using CLEAR_FOG would refog 10,17 because the current behavior is to refog all
hexes that cannot be currently seen. Using [reset_fog] would instead leave
10,17 clear of fog because it had been seen by a unit earlier this turn (but
the other hexes could still be refogged).
*Side 1 shares its view with side 2*
With CLEAR_FOG, side 2 also gets to see what is happening at 10,12. With
[remove_fog], side 2 would not (unless that hex is within visible range of its
units, of course). However, the side=1 line could be changed to side=1,2, in
which case both side 1 and side 2 would get to see what is happening at
10,12.
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?3176>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs