Variables based on steps taken

I have an event where basically you invest in a product and need to walk a certain amount of steps (5000), after that you see if the product sold well or not. Regardless, I have a variable that tracks the steps taken and once it hits >5000 the new event triggers but will keep triggering due to the total steps not resetting. I found this thread that provides a way to rest the steps: https://rmrk.net/index.php?topic=49167.0

Would there be any other way to set this event up?
Instead of resetting the steps, you could set a "goal" variable that is your current steps +5000 and fire off the event when they're equal
Instead of resetting the steps, you could set a "goal" variable that is your current steps +5000 and fire off the event when they're equal
So it would be current steps + 5000 and if greater then it would fire off. I am awful with variable code, what would be the code for that under variables
Im fairly new to using variables myself, but i'd do something like this.
Im fairly new to using variables myself, but i'd do something like this.
Thank you

Original thread: https://forums.rpgmakerweb.com/threads/variables-based-on-steps-taken.169983/