Day and Night Loop Help

It just keeps looping "Day has come/Night has come over and over again. how do i get it to only activate once per go.


bandicam 2016-02-20 14-45-17-151.jpg
one second is sixty frames - which means that your event will display its time every two seconds.


You need this message to be called from the time system, not run as an independent parallel process.


But unfortunately you didn't describe the time system this should be part of...
Well, you have a parallel process that keeps checking for Hours = 18 or Hours = 6.  As long as that Hours count isn't changing, it will keep processing the logic!  What you could do is have switches for "Already did Day Processing" and "Already did Night Processing" and make those switches being OFF conditions to run any of the processing within the Hours branches.  Make sure you turn the switches back ON at appropriate times, maybe when Hours = 19 and when Hours = 7.
one second is sixty frames - which means that your event will display its time every two seconds.


You need this message to be called from the time system, not run as an independent parallel process.


But unfortunately you didn't describe the time system this should be part of...


Well, you have a parallel process that keeps checking for Hours = 18 or Hours = 6.  As long as that Hours count isn't changing, it will keep processing the logic!  What you could do is have switches for "Already did Day Processing" and "Already did Night Processing" and make those switches being OFF conditions to run any of the processing within the Hours branches.  Make sure you turn the switches back ON at appropriate times, maybe when Hours = 19 and when Hours = 7.

Thank you both. I used a bit of both ideas xD

Original thread: https://forums.rpgmakerweb.com/threads/day-and-night-loop-help.57231/