My common event ain't working

So I followed a good turtorial I found on youtube to get a day/night system in my game. And while daytime as well as dusk works. Night doesn't appear at all for some reason. I have listed these screenshots here if it helps:

1674577074205.png

1674577107234.png

1674577130347.png
So I followed a good turtorial I found on youtube to get a day/night system in my game. And while daytime as well as dusk works. Night doesn't appear at all for some reason. I have listed these screenshots here if it helps:

View attachment 251462
View attachment 251463
View attachment 251464
Because the condition for Dusk is always going to be met after it's hit. Did you mean to check for < 19 instead of > 19?
In addition to Trihan's fix, I have a few suggestions for your events.
1 - There's zero reason for this to take up 3 common events. Since they're all controlled by the same switch, they're all on or off at the same time, which is kind of pointless. Just put all of your conditionals in one event.

2 - You should almost never have a parallel event running without a Wait command at the end. There's no reason for you to be checking the hours to have changed every frame.

How frequently does your hours variable increment? Is it, like, every minute? Then you put Wait commands totaling 3,600 frames to check every minute.

For that matter, since we don't see it here, I'm presuming your tracking and incrementing the hours is another separate event...which, again, it shouldn't be. Just make it all one event.
Yeah I changed that thanks trihan. However there's however still the problem that night doesn't appear for some reason. After dusk it just goes straight to daytime again which I think is rather odd.
Here is a screenshot of my time counting event if it helps

1674579840245.png
Have you been checking the debug menu to make sure the variables are at the values you expect them to be?
I've seen people work off of this YouTube tutorial before, and honestly it's kind of a mess. You don't need the time counter variable at all, you can just use minutes and a wait command.

Then you put all of your minutes/hours incrementing into the same event as checking the time to change the screen tint and it's much easier to read.

As far as dusk goes, Conditional Branch does have an = check, so you don't need to look at is it >= 18 and < 19, just have one branch asking is it = to 18
1674581308706.png

Just leaving this here.
@Trihan ninja'd me!
Screenshot 2023-01-24 123255.jpg
Yours has one notable flaw, though: assuming the game starts on an hour, it'll immediately change to 10 past that hour because you have the wait at the end.
Yours has one notable flaw, though: assuming the game starts on an hour, it'll immediately change to 10 past that hour because you have the wait at the end.
Yes, I am presuming the 10 seconds when the new game starts is immaterial.

Yours has one notable flaw, though: assuming the OP has the timing the way they want, they're incrementing 10 minutes every 600 frames and you're only going up by 1. 😉
I initialize my variables to 0. But yes, I am presuming the 10 seconds when the new game starts is immaterial.

Yours has one notable flaw, though: assuming the OP has the timing the way they want, they're incrementing 10 minutes every 600 frames and you're only going up by 1. 😉
Oh, whoops. I meant to put 10 there. XD Well spotted! But you know as well I do that we must never presume 😉
But you know as well I do that we must never presume 😉
Indeed! I think, however, we both beat the YouTube.
Indeed! I think, however, we both beat the YouTube.
Oh yeah for sure. OP will be showering us in adoration any minute now.
I wouldn't do variable HOURS = 6 but rather >= 6.

the reason for those if the games lags and become 7, 6 will never
be true in the timer.

but like Trihan and ATT_Turan said, this is best way to make an
evented timer.

at least the very basic one, if you want to extend it for more complexity,
you can add some more stuff (that could take more ram to load in).
I wouldn't do variable HOURS = 6 but rather >= 6.

the reason for those if the games lags and become 7, 6 will never
be true in the timer.

but like Trihan and ATT_Turan said, this is best way to make an
evented timer.

at least the very basic one, if you want to extend it for more complexity,
you can add some more stuff (that could take more ram to load in).
If the increment were happening on an individual frame basis I would agree, but in this case it makes no difference: it'll wait 600 frames and then increment the variable. If the game lags a bit, it just means a small change in number of frames before the increment but the increment will still happen. The only way for it to become 7 before it registers 6 would be if the game lagged longer than 10 seconds.

Incidentally if you did make it greater than or equal to you'd have to reverse the order of the conditions otherwise the first would always be true from 6am onwards.
Can I ask, are you experimenting with my Clock & Calandar system by any chance? (the way you names the variables kinda seem like it)

If so, put all the conditions in 1 common event. You trigger 3 events with 1 switch and you have them repeating constantly. That is bad.

Do it like this:
1674583670838.png

(Edit: Ignore the green comments, they were not made for this example.)

Also, your conditions don't make sense. Things can never be bigger than 18 and smaller than 6 at the same time.

edit: I noticed that in the system I made, the variables are not named like yours after all... I do that in more recent projects, though.
mine is just daytime and infintly dusk rn. It looks like this btw:
1674584523908.png

Can't do anyhting right somehow 🙁
Your second line is wrong, you're incrementing hours instead of minutes. That means minutes will never be 60, hours will never be 6 or 18 or 19...
Thanks Turan however that somehow didn't solve that it's just infinetly dusk Idk why honestly. I did ever7ything I should
Then try troubleshooting. Put the event in a new project with no plugins, use regular tint screen instead of those plugin commands.

When you confirm that works, copy it into your current project with the lighting plugin turned off. If that works, good. If it doesn't work, turn off all your plugins and make sure that works.

Logical progression.

Make sure you don't have some other event running in the background that's continuously setting it to dusk like the old parallels you had.

Original thread: https://forums.rpgmakerweb.com/threads/my-common-event-aint-working.154378/