Step counters
Moderators: marionline, SDHawk
-
- Slime
- Posts: 6
- Joined: Sun Jun 27, 2021 11:15 pm
Step counters
couldn't find anything on here about this, but what's the best way to do a step counter? Would it be to use "hero is walking" to add to a variable while true?
Re: Step counters
I'd use a global in the each step script.
Code: Select all
plotscript,eachstep,begin
increment (steps,1)
end
Re: Step counters
Yes, each-step script is the way to go. Don't use a while loop to check "hero is walking", as that would increment every tick the hero is moving, not every step.
BTW, you can set a global each-step script rather than needing to set it on every map.
BTW, you can set a global each-step script rather than needing to set it on every map.