When there is an unit on the hex to be iced, it would be stoned, and unstoned when the ice would melt...
My random terrain generation works, i figured how to unstone a unit, but didn't find how to stone a unit.
I tried something like this, but it doesn't work :
- Code: Select all
[if]
[have_unit]
x=$xtarget
y=$ytarget
[/have_unit]
[then]
[store_unit]
x=$xtarget
y=$ytarget
variable=frozen_unit
[/store_unit]
[set_variable]
name=frozen_unit.status.stone
value=yes
[/set_variable]
[unstore_unit]
variable=frozen_unit
[/unstore_unit]
[/then]
[/if]
($xtarget,$ytarget) is the location of the hex being frozen
Does anybody knows how to do this ?
