I'm working on a sytem that makes the player slower after he does a certain amount of steps and then recover speed by resting. I did it this way:
First I set steps to variable 1 in call script ($game_variables[1]=$game_party.steps)
then in a common event,with conditional branch, if varible 1 = 20 , change player speed to 3 and so on
but the problem is i don't know how to set steps back to 0 (tried by setting variable 1 = 0 but i had no luck)