Learning eventing and variables.

I am using RPGMaker MV. I'm looking for MZ on another sale but haven't found a reason to upgrade to it yet and have barely started a project to learn things.

I looked over some older threads but copying them didn't seem to get the desired results that I've seen in other games.

I need to properly track item harvesting nodes for players to use an extremely basic crafting system on a deserted-island situation.

Rather than jumping straight to a plugin to solve these issues, as there are multiple systems that I wanted extremely simple versions of to put together a basic game, I spent a few hours combing tutorials for eventing and switches.

I am not opposed to tossing and rewriting this or adding more variables, but the concept of having one variable track the change in the number of steps or variables involved, or the syntax eludes me.

These have all been solved problems for two decades with RPGMaker but I'm having trouble wrapping my head around the concept, and it seems if I solve it I can rework the concept for multiple use cases, not just tracking steps to respawn a rock, fruit or wood.

If I can solve this concept, I need to implement rudimentary day/noon/night cycles, NPC scheduling, character events by tracking switches and crafted items, rudimentary item crafting, and recollection rooms.

Expected:
The game needs to keep tracking player steps on a cycle AND reset the counter to '0' once the harvesting nodes are all respawned for items AND loop back again, so that I can reset the counter to '0' either when the relevant number of steps is reached, or the player goes to an inn and progresses the game by a day. There are a finite number of days that control access to various events along with various items crafted and gifted.


Result:
Either I manage to break the step counter when switching the node respawn variable back to ON after a single test item switches it off, or the item fails to respawn when the test event I created to force a respawn doesn't cause the item to regain it's sparkle animation to be picked up again. I have a test event to display the output of the variables in question and try to understand how the flow of control was working in the background. I can get simple variable checks working, but when I try to combine them I drop the ball.

The problem seems to lie in both the order of operations and number of variables. I've attached screenshots of what I've done so far while I try to learn basic code flowcharting here:
several mistakes.

most important part is that the steps are always counting up and CANNOT be set to zero by anything.

you can set a variable to zero, but filling it again with the steps since gamestart will get it again to the hundreds or thousand of steps done.
you'll need two variables, one for stepmark and one for current step and calculate the difference to check if the difference is 20 or higher

second, parallels need to be disabled, so having the second page on parallel means you would need a third (or not use parallel on second page)

additionally, search the forum for a game called "variables guide" (one link is in my starting point tutorial in my signature) and play through it, that should help
several mistakes.

most important part is that the steps are always counting up and CANNOT be set to zero by anything.

you can set a variable to zero, but filling it again with the steps since gamestart will get it again to the hundreds or thousand of steps done.
you'll need two variables, one for stepmark and one for current step and calculate the difference to check if the difference is 20 or higher

second, parallels need to be disabled, so having the second page on parallel means you would need a third (or not use parallel on second page)

additionally, search the forum for a game called "variables guide" (one link is in my starting point tutorial in my signature) and play through it, that should help
I appreciate it greatly, I'll look into this. Especially as some of your answers on this exact subject were what I was trying to wrap my head around from years ago coming up on Google.
In addition to the learning game Andar recommends, there are a good number of tutorials you can find on YouTube to go over how events, variables, and switches work.

Original thread: https://forums.rpgmakerweb.com/threads/learning-eventing-and-variables.160097/