Sleeping

Hello,
I have a day-night cycle in my game and was wondering if someone could tell me how to make it so that it jumps to the start of the common event that runs it (start of the day) when the character sleeps.
Thank you in Advance
Spoiler: Day/night Common event
Screenshot (3).png
I would recommend an approach that isn't a loop in a parallel process with 999-frame waits, because that's going to be nigh impossible to manually navigate.
Then what should I use? This is the only way that I have thought of doing it.
Then what should I use? This is the only way that I have thought of doing it.
Personally I would use a system of second/minute/hour variables that increment every X frames. But if you absolutely have to do it like this, have you tried turning the "start of game" switch off to stop the event running, then turning it back on?
Well, technically if you use a label and jump to label you can jump to any part of an event within that event. However, you can't run a label jump in the middle of a wait.

Let me put it this way, you need to do your daynight differently. If you don't want to use plugins, then one way to do it is the following:
Have one event that does a wait, but instead of having the screen get tinted by that event, have it increment a variable.

Now, have various events get triggered by that variable at different values to do the screen tinting.

Then, after a sleep, that variable gets set to a specific value.
1.
Not sure if that changed in MZ but theoreticaly the Common Event on Paralell will restart at Line 1
every Time you enter another Map. That would make this very unprecise. But iam not sure.
2.
And i believe you do not need the Loop Eventcommand inside the Paralell Common Event(Which is allready runing a Loop)

3. Some Questions,
a. shall the Time continue running while the Menu is open? or should it stop than? or does not matter?
b. shall the Time continue while Battle is going on? or should it stop than? or does not matter?
c. was that event of yours the only thing that changed time? Or could other things like story change time? Like your Inn which seems to reset time of day always back to morning?
Or is it night if i go to sleep at day time?

Because every solution of mine runs against a solid wall if one of those changes slightly.
1.
Not sure if that changed in MZ but theoreticaly the Common Event on Paralell will restart at Line 1
every Time you enter another Map. That would make this very unprecise. But iam not sure.
It still does in MZ, just in case you needed to know that information.
I was overthinking again. XD
Here is an simple structured example of how you could build such an Common Event:
daynightmvdksodk.png

If you need more functionality, let us know.
That's Perfect being I can call it in other scripts as well for planting and harvesting. Also, there are not many battles in the game, and what battles there are I'm going to use an ABS script so time won't stop. Menus can just pause time for all I care.
Also how long does a day take?

Original thread: https://forums.rpgmakerweb.com/threads/sleeping.144133/