Follow-up Comment #4, bug #16089 (project wesnoth):
Thanks Sapient.
Here's some wml that proves your claim about the documentation wrong:
++
[event]
name=moveto
first_time_only=no
[move_unit]
x=$x1
y=$y1
to_x="$($x1+1)"
to_y="$($y1+1)"
[/move_unit]
[unit]
type=Troll
side=1
x=$x1
y=$y1
[/unit]
{VARIABLE_OP $unit.hitpoints add 0}
[move_unit]
x=$x1
y=$y1
to_x="$($x1-1)"
to_y="$($y1-1)"
[/move_unit]
[unit]
type=Mage
side=1
x=$x1
y=$y1
[/unit]
{DEBUG_MSG "Unit of type $unit.type is at $x1|, $y1|."}
[/event]
--
I agree that for SUFs it makes sense, first since that's probably the most
called wml functionality at all, and second because the wml author can't
execute (other than maybe hacking the lua_function= attribute) wml or lua
action code between the supposed storing and the actual storing so such cases
can't arise.
I'll go for the easy "won't fix + make documentation better" solution.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?16089>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs