Day/night cycle

Creating your own Day/Night/Light/Season system mostly by eventing and not just scripts is definitely commendable.

For fun, I did the same, I opted out of using an existing script (like MOG) and simply used a lighting script (I started with Terrax, but then created my own lol) and thats it, I went to work on a custom system and I love it.

Good luck.

Now and again ill check to see how you are doing. Feel free to ask me questions. lol. Ill get to em from time to time.

I didnt read all of the messages, but in order to tell a map wether its inside or outside, etc. I would just run a map autorun in every map that would update variables that then would instruct the Day/Night/Light/Season of what to do (I also updated maps telling the system if it should have regular light or darkness for caves etc).

So, Every map has an autorun that update these variables and erases itself..... simple. (I would highly suggest having these autoruns run a "Map Comment event" CE so that all of these maps can be updated simultaneously with common code meant for all maps..... (like the Day/Night/Light/Season logic lol)

UPDATE: My bad, I just noticed you are not using MV or MZ..... I am pretty sure the logic would still apply
Then that is definitely what I would like please lol (sorry noob didn't think that would be possible)
Lol we've all been there. It's fine! To do that, we're going to need to create another conditional, but quick question: do you want different lighting for things like caves/dungeons than the lighting for things like shops?

So, Every map has an autorun that update these variables and erases itself..... simple. (I would highly suggest having these autoruns run a "Map Comment event" CE so that all of these maps can be updated simultaneously with common code meant for all maps..... (like the Day/Night/Light/Season logic lol)

UPDATE: My bad, I just noticed you are not using MV or MZ..... I am pretty sure the logic would still apply
That's definitely a way to do it. I usually just change variables where I have transitions (like doors), but an autorun event would probably be more efficient.
I think when it comes to caves and dungeons etc I'll probably create a completely separate climate for each one then continue the generic weather/Day night system when exiting where it left off
Lol we've all been there. It's fine! To do that, we're going to need to create another conditional, but quick question: do you want different lighting for things like caves/dungeons than the lighting for things like shops?


That's definitely a way to do it. I usually just change variables where I have transitions (like doors), but an autorun event would probably be more efficient.
Thanks for the help btw would definitely like you to playtest it at some point to see what you think
Sorry about the delayed response!

Thanks for the help btw would definitely like you to playtest it at some point to see what you think
Sure! I'd love to!

I think when it comes to caves and dungeons etc I'll probably create a completely separate climate for each one then continue the generic weather/Day night system when exiting where it left off
Okay. Here's a way you could include those within the current system:

6) Creating Exceptions
Select a variable to represent the exceptions for lighting and label it something like "lighting exceptions". Create a conditional "if lighting exceptions == 0 -> Set handling when conditions do not apply". Cut and paste the conditionals created earlier which specify lighting
Spoiler: These
("If day phase = (different for every phase of the day)". Inside that conditional, put a "Tint Screen -> Adjust the tint to match the time of day you want -> Time: 1 frames -> don't wait for completion". )
and put all of them inside the conditional just created so that when the lighting exceptions variable is equal to 0, the screen will tint with the usual day/night cycle.

Now, when you create a cave and want it to have a special tint, create a conditional "if day phase == (however far into the sequence you've gone)" and inside that conditional, specify the desired tint for that scenario. An efficient labeling system will be helpful if you have several exceptions.
Spoiler: Sample
7.PNG

7) Using those ⬆️ exceptions
KillerGin's method seems like it would probably work better than my usual modus operandi, so I'll demonstrate that method instead of mine. Create an event for each map that you have and name it something simple like "lighting settings". Set the trigger to Autorun. In the Contents section, place a "Control Variables -> Variable: lighting exceptions -> Set to (the number of the exception you want to use. If it's outdoors and you just want to use the day/night cycle, this will be 0.)".

While you don't have to do it in this step, since you're going to use weather, this will be helpful: choose a switch and name it something like "Indoors?". In the contents section of the event, place a "Control switches -> indoors? -> On (if the map is indoors or somewhere else where you don't want weather to be visual) or Off (if the map is outdoors or somewhere else you do want weather)".

After both of those, add an "erase event."

Spoiler: Sample
8.PNG

Anything else before weather?
It's been very painstaking and I appreciate your help, I've managed to sort pretty much everything in my game to do with time/weather/inside/outside it's been a very gruelling process from someone that before last month only had very little experience (rpg maker 2000 back in the day when I used to bake and create) but I've finally managed to get up to scratch with the help of people like yourself, good old Google and some old fashioned know-how.
I've managed to so far implement my day/night cycle alongside my weather set in months. Summer=sun rays at peak teams and longer days/lighter nights and winter=shorter days and sh##ter weather with spring and autumn working on a median variable.
It's been very painstaking and I appreciate your help, I've managed to sort pretty much everything in my game to do with time/weather/inside/outside it's been a very gruelling process from someone that before last month only had very little experience (rpg maker 2000 back in the day when I used to bake and create) but I've finally managed to get up to scratch with the help of people like yourself, good old Google and some old fashioned know-how.
I've managed to so far implement my day/night cycle alongside my weather set in months. Summer=sun rays at peak teams and longer days/lighter nights and winter=shorter days and sh##ter weather with spring and autumn working on a median variable.
Good for you! Is there anything else that you need help with?

Original thread: https://forums.rpgmakerweb.com/threads/day-night-cycle.131671/