Perfecting the Day/Night Cycle?

Before I start I want to give credit ( and thanks ) to another user named bomblord who came up with this script.


Ok so I did edit this script a bit to get it to work the way I wanted it to (such as adding some extra switches so the slow tint wouldn't happen every time I left a building.) , but now I'm stumped.


I want the clock to constantly be ticking at all times, but I have to stop the clock inside of buildings/dungeons so it doesn't look like a relaxing beach sunset inside a dark cave.


So my question is how would I go about making different tint cycles for outside and inside of buildings/dungeons without them interfering with each other or messing up the clock?

Time System 1.png

Time System 2.png

Time System 3.png
remove the loop command - that is a mistake, because parallels already loop automatically, creating a double loop for nothing but lag.

Original thread: https://forums.rpgmakerweb.com/threads/perfecting-the-day-night-cycle.72149/