Variable +1 per step?

Hi 😉


How can I raise a variable by 1 everytime the player finishes a step?


Any help would be appreciated!
I answered a similar question in another thread.
you don't need that as the engine already has a variable that counts the steps - you just need to load that value into a regular variable by using the control variable command (game data - other - steps instead of the default map id) and then work with that.
you don't need that as the engine already has a variable that counts the steps - you just need to load that value into a regular variable by using the control variable command (game data - other - steps instead of the default map id) and then work with that.



Then, is there a command to reset it? I can't seem to find out how...
you can't reset that count - but you don't need that either.


you store the current count into one variable at the time where you want to start counting, and then later calculate the difference between that number and the then-current count to know how many steps were taken in the time between.
Got it! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/variable-1-per-step.59964/