I need a way for a unit's mana to deplete only while moving & once the unit is out of mana it can no longer move. What would I set the movement speed to in the object editor & what triggers do I use? I'm using this for a turn based strategy game
map init:
set U = your unit
set lastloc = position of U
every 0.5 seconds of game:
set loc = position of U
set dis = distance between loc and lastloc
custom script: call RemoveLocation(udg_lastloc)
set lastloc = loc
Unit - set mana of U to current mana of U - dis
if dis < 20 then
Unit - pause U
endif
Ghan has said he has fixed this. Monovertex please confirm this fix. This was only a problem with people that had signatures in the upper levels like not the special members but the respected members.