Reset the step counter?

I want to make an event that resets the step counter (as part of an overnight sequence)
how can i reset the step counter to zero?
I have it set so after so many steps there is an evening then night change of tint but it only happens one time, i want it to happen every 'day'
There isn't a way to reset the game's step counter, as far as I know. However, you might be able to implement a timing system in a parallel process common event such as this one:

Spoiler: Screenshot
steps.png

Spoiler: Text
◆Label:timer start
◆Control Timer:Start, 5 min 0 sec
◆Label:skip timer
◆If:NIGHT is ON
◆If:Timer ≤ 0 min 0 sec
◆Comment:Change to day
◆Tint Screen:(0,0,0,0), 60 frames
◆Control Switches:#0011 NIGHT = OFF
◆Jump to Label:timer start
◆
:Else
◆Jump to Label:skip timer
◆
:End
◆
:Else
◆If:Timer ≤ 0 min 0 sec
◆Comment:Change to night
◆Tint Screen:(-68,-68,0,68), 60 frames
◆Control Switches:#0011 NIGHT = ON
◆Jump to Label:timer start
◆
:Else
◆Jump to Label:skip timer
◆
:End
◆
:End

Make sure you have the switch turned on so your game can start processing day and night cycles. Whatever amount of time you choose will dictate how quickly the game cycles through day and night. Also, you can get Gameus Timer Visibility plugin to hide the timer from view.

The only downside to this is that if you use MV's default timer at any other point, it will conflict with this event unless you temporarily turn off the switch which makes it run in the first place. For example, if you want to do a quest that takes place at night, wait until it's night (or force it to night) and then turn off the common event's switch so it stays night until you are done.

As an alternative to that issue, you could make use of Shaz's Multi Timers plugin. With that, you can have independent timers for whatever you need.

I hope this helps! 😀
Wow ok thank you 🙂 i never even knew you could use a common event like this! wow! Thank you very much for your reply! 😀
System works great, I even set it to kick him to bed at midnight lol

I do have another question though, is there a way to keep the timer constant using this common event method?
like i can kind of cheat the system between going between maps.

Or

Would I have to use a plugin?
You're welcome! I hope it works for you. I personally liked the effect while testing it, though I use a different thing for my game (sleeping changes day to night or vice versa).

And I only tested it on one map. I wasn't aware the timer would reset if you change maps. Will have to test it when I get back home.

EDIT: Actually, just add something to the beginning of the event before the first label. A conditional branch that checks if timer is greater than 0 seconds (which means it's running). Inside that another conditional branch that checks if the timer is less than or equal to one second less than the time you have set for the cycle. If it is true then make your event jump to the skip timer label. This way the timer won't start over. And if your timer hasn't started yet then it will start as intended.
I'd post screenshots but I won't be home for a while. 😛

Original thread: https://forums.rpgmakerweb.com/threads/reset-the-step-counter.79523/