How to tie step count to a variable?

Okay, so strange question. I'm trying to make a little side game where you can farm. Here's my idea.

You plant the seeds at the farm, and the NPC says they'll take a while to grow and to come back later. You come back after a little while and they're done growing! But how did they finish growing? Well, the event had another page that got activated once a variable "PLAYER STEPS" hit 1500. Every time the player took a step, this variable increased by 1. Of course, after the player harvests their crop, I'll manually reset that variable to 0. This would also let me have multiple fields open up throughout the game.

Is this doable without a plugin? Basically all I want a variable to increase by 1 every time the player takes a step...and on that note, would this slow down the game a lot? I'd imagine not but I figure I'll ask. I can also have it set that the variable only goes up when you enter the farm and it just increases it by step count. That would help ignore the lag.

Let me know if you need more details. I hope this doesn't need a plugin.
You would need a common event that runs on parallel process and does something like this:

Code:
Control Variable: New Player Steps = Game Data > Other > Player Steps
Conditional Branch: Variable: New Player Steps > Variable: Old Player Steps
  Variable: Old Player Steps = Variable: New Player Steps
  Variable: Crop Counter += 1
End
Wait 5 Frames

Old Player Steps and Crop Counter will both be 0 by default, so as soon as the player takes a step, they will start incrementing. You could turn on a switch when the crop has been planted and initialise the Old Player Steps variable, and condition the common event by that switch.

The Wait prevents the common event slowing the game down.

However, if you want multiple crops, you will need multiple variables, and if you're incrementing lots of variables, THAT could slow the game down.

This would be better:
https://forums.rpgmakerweb.com/index.php?threads/multi-timers.50474/
Wait, you said that under other, player steps should be an option. I don't see that in my game and I'm running it through steam so it should be the latest version...

Edit: Apologies, it says steps. I think I can do it without a common event, just have it trigger before the player enters the farm. I'll do some testing and get back to you. Thanks again for your help, as always, Shaz. 🙂
Yeah, I've used 3 different versions of the engine, and they don't always use exactly the same terminology. Glad you found it.
I've figured it out by just subtracting the difference in total steps via what your steps were the last time you visited the farm. This pushed me in the right direction. Thanks for your help!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-tie-step-count-to-a-variable.89524/