Automatic Lights on a Time System

so I was wondering if there is a way I can have street lights turn on automatically following a time system and when it is day, the lights turn off. I have a Time system down with Days, Hours and Mins but cant seem to find a way to make the lights turn on at a specific time. If anyone has any ideas, that would be nice, thanks!

Also this is not my time system, this is by Driftwood Gaming and SRDude on youtube
What time do you want the lights to turn on, and what time do you want them to turn off?

Let's say Hours = 0 means midnight, so you want the lights on between midnight and 6AM, then off until 6PM, then on again until midnight.

Give your event 3 pages.

Page 1 will have no conditions, and the light will be on.
Page 2 will be conditioned by Hours >= 6, and the light will be off.
Page 3 will be conditioned by Hours >= 18 (6PM), and the light will be on.

Prior to 6AM, page 1 will be active. Between 6AM and 6PM, page 2 will be active. After 6PM, page 3 will be active. At midnight, page 1 will become active again.
at around 18 hours I'd want the lights to turn on and then stay tell around 4, since it's a 24 hour time system. But thanks for the reply, I'll try this out!
So it'll be exactly the same, except condition page 2 by Hours >= 4 instead of 6.
It worked! Thanks a lot! Been trying to get that to work for a while now haha I was only doing two pages that has one page turn on and the other turns off and it would never work But this worked like a charm thanks again!
Yeah, you couldn't do it with 2 pages, because the variable condition only allows you to check >=, not within a range.

So you've got:

0 ... lights on ... 4am ... lights off ... 6pm ... lights on ... 12am (0 again)

so you have to have a lights on page, a lights off page, and another lights on page, because you can't combine the first and last with a variable check.
Oooohh okayyy I kinda understand that, I'm fairly new so that will help in the future haha.

Original thread: https://forums.rpgmakerweb.com/threads/automatic-lights-on-a-time-system.81123/