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
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory