Burn and poison effect

So I have a burn and a poison effect that both damage the player outside of battle after a certain number of steps. The only problem is that the status effects that I made for the chest to test with adds the steps the player took to get to the chest. How do I fix it so that when the status is applied outside of battle it sets the steps to 0 so the damage is done at the correct step number? Thanks for any help.
add state and set variable to 0?

basicly if you set a parallel to count the steps to the chest = 21
set that variable to 0 when the state is applied.

otherwise show a screenshot and mockup for clarity.
add state and set variable to 0?

basicly if you set a parallel to count the steps to the chest = 21
set that variable to 0 when the state is applied.

otherwise show a screenshot and mockup for clarity.
I have a variable that counts the steps and equals them out to how many steps the player has taken. In this example the player takes 2 steps to get to the chest.
1711142648230.png

1711142687213.png

How would this work?
how do you use it to count the steps?
as if you want to reset it to 0, set it below the items or below the lockpick Skill.
so the variable = 0 again, depending on the amount to steps and you want to
use the current steps from the max steps, you need 2 variables.

1 for total and 1 for current.
so you can do "total - current" if that makes sense.
the stepcount goes contantly up throughout the game, it can never be set to zero because it will always retunr the steps since beginning of the game.

to count steps, you need to store the current steps into a variable and then substract the stepnumber remembered in a different variable set as the start of the count
the stepcount goes contantly up throughout the game, it can never be set to zero because it will always retunr the steps since beginning of the game.

to count steps, you need to store the current steps into a variable and then substract the stepnumber remembered in a different variable set as the start of the count
What would that even look like? I have player steps set as one, but how would the other one look?
here is an sample how to do it.
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/burn-and-poison-effect.167069/