How to increment the step counter?

I know the game engine has a step counter, which I am using. However, I need to be able to have an event add 1 to the counter without moving the player.

The idea is that I'm using the step counter to create turn based on-map combat; whenever the step counter advances, every enemy gets a turn as well. Attacking is resolved as a common event that I need to make advance the step counter (so the enemies take a turn when the player attacks).
You can use a variable for that, and everytime you want to check steps, then you assign ste counter to a variable, then check the variable. To add a step, just add 1 to the step variable.
$gameParty.increaseSteps(); will increase the Steps counter by 1. Put this in a Script line in any event, inside a damage formula, or anywhere else that accepts JS code.

If you need to do something else to the Steps counter, do a mathematical operation with $gameParty._steps, for example to subtract 10 from the current Steps counter you would use $gameParty._steps -= 10
$gameParty.increaseSteps(); will increase the Steps counter by 1. Put this in a Script line in any event, inside a damage formula, or anywhere else that accepts JS code.

If you need to do something else to the Steps counter, do a mathematical operation with $gameParty._steps, for example to subtract 10 from the current Steps counter you would use $gameParty._steps -= 10

Perfect. That works just like I needed it to. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-increment-the-step-counter.121945/