Day and Night Cycle - Plugin Suggestions

Hi everyone,

I'd like to implement a day and night cycle (and possibly date tracking) for a project I'm working on. I'm using RPG Maker MZ.

Does anyone have any recommendations for good plugins (paid or free) which implement said system? I've found some options online but was wandering if anyone had first hand experience.

Ideally I'd like it to be flexible with it's options and allowing me to change elements of it via plugin commands. I'd like it if it also calls common events or changes switches when the time of day changes (eg. when it becomes night time).

Thanks you in advance for any help!
I have moved this thread from RPG Maker MZ Support to JS Plugin Requests.
I use MOGhunter's one which is a full calendar system but may be overkill for your project. It also ties up a lot of control switches for days/months/time of day

I once made a workshop in MV that teaches you to do your own day and night cycle. Everything is included, time, dates, seasons, holidays, and no plugins are required.

I made this on MV, but it works the same way in MZ.

I didn't test this myself, but Ive been told the project can be also loaded in MZ. Otherwise you can only open it in MV to see how it is done.
I had great success just making my own in-game. It's not perfect, but it works quite well for me. The process in the photo below runs every time the player enters the Overworld. There are then overlay lights that turn on and off depending on whether the Day0Night1 is set to 0 or 1. When something else tints the screen, I have a common event called "Day/Night tint" that checks what Day0Night1 is equal to to determine what to fade the screen back to.

1700514114987.png


It's a bit complicated but through this, you could have it increase the "days passed" by 1 every time it becomes midnight or something. I also have it switch between day and night when the player uses the Inn or rests at all, so you could just have a common event for resting that also ticks up a counter by 1 for "days passed."

If you would like to know more about how this works, let me know! Note that I am working with MV, but MZ's event scripting is basically identical, so not a huge difference if you need advice across versions. This system is basic and rudimentary but it has served me well thus far and is quite flexible!
Thank you @AquaEcho! I suppose it works with Fossil?
Also thank you @JohnDoeNews! Your time system is really well made, I may just make it myself.
Thank you @AquaEcho! I suppose it works with Fossil?
Also thank you @JohnDoeNews! Your time system is really well made, I may just make it myself.
It might have gotten ported over to MZ. You can check
I had great success just making my own in-game. It's not perfect, but it works quite well for me. The process in the photo below runs every time the player enters the Overworld. There are then overlay lights that turn on and off depending on whether the Day0Night1 is set to 0 or 1. When something else tints the screen, I have a common event called "Day/Night tint" that checks what Day0Night1 is equal to to determine what to fade the screen back to.


It's a bit complicated but through this, you could have it increase the "days passed" by 1 every time it becomes midnight or something. I also have it switch between day and night when the player uses the Inn or rests at all, so you could just have a common event for resting that also ticks up a counter by 1 for "days passed."

If you would like to know more about how this works, let me know! Note that I am working with MV, but MZ's event scripting is basically identical, so not a huge difference if you need advice across versions. This system is basic and rudimentary but it has served me well thus far and is quite flexible!

This sounds really interesting, thank you for sharing. Having my own custom made time system would be very advantageous.
Something I'd like to do, which seems achievable, would be making time move faster when the player in navigating the world map - akin to the classic Fallout games.
It might have gotten ported over to MZ. You can check
I'm using some of Mog's plugins (amazing stuff) from his MZ demo but don't think they ported the Time system sadly.
This sounds really interesting, thank you for sharing. Having my own custom made time system would be very advantageous.
Something I'd like to do, which seems achievable, would be making time move faster when the player in navigating the world map - akin to the classic Fallout games.
Yeah, that's the essence of what I ended up doing--time "doesn't pass" in towns and on maps that aren't the overworld, but then it moves according to my event when the player IS in the world map.

I think if you did want to accomplish a slow passage of time while on non-world maps, make an event exactly like what I made, but increase the wait times by like 1000% or something. This event would then have to exist as Parallel on every map you make, but it could be worth it.

There may well be an easier way to do it, but that's the path I've stuck with thus far. I'm sure what I suggested about making a second version of the event that goes slower could work, but it would take some messing with.
Thank you for the help @willfardig! I'd like to avoid using parallel processes if I can avoid it, hence why I was opting for a plugin instead. However making my custom made time system as shown by you and JohnDoe seems like a good idea.
I'd like to avoid using parallel processes if I can avoid it
There's really no reason to just avoid parallel processes in toto, so long as they're made correctly with Wait times. And in this case, there's almost certainly no reason your time system needs to matter to the fraction of a real-world second, so it's no problem to have a reasonable Wait.

So if you find a plugin that does exactly what you want, that's cool. But if not, it's pretty straightfoward to event.
Something I'd like to do, which seems achievable, would be making time move faster when the player in navigating the world map - akin to the classic Fallout games.
Easy. Have a conditional branch in the event with an 'else'. Test whether you are on the right map. (I use the script "$gameMap.isOverworld() === true" in MV, but you can do this by using control variable set to 'Map ID', and checking that variable.)

TimeEventTop.png


TimeEventBottom.png


If the map is your world map then have a short wait - maybe 30 frames, but under 'else' have a longer wait. At the moment I use 90 frames, but time seems to pass a bit fast for towns and dungeons so I will be trying a longer wait. The main thing to remember is the longer the wait, the slower time passes.

I use a separate event do deal with tinting the screen at dawn, dusk and night.
Thank you @AquaEcho! I suppose it works with Fossil?
Also thank you @JohnDoeNews! Your time system is really well made, I may just make it myself.
Thanks. Did you open it in MZ or in MV? I am glad you like it.

@AquaEcho As far as I can see it looks kay, but I am not a fan of the parallel events with a +1 every so many seconds. Not only do I avoid large parallel events because they cause lag, but also because this means time is frozen during battle.

I much rather trigger this each time I need the time or the date. This has a downside too. Eve though time always advances in my system, it does not constantly update. Meaning that if the plyer stands still for a long time, it might skip a day without oing dark and light again.

For this reason I tried a parallel in the past myself, but my system is quite large and if it runs while the player is moving, it causes an ugly, annoying glitch.

---

By now, I have a new system. One that works without plugins still, but uses javascript. This one always updates without any event running in the background. It works pretty well and it is my own default now.

I might put this new system in the workshop next, and share that one around. If people love the one that has been out there for ages, they might love this one even more. It is so much simpler and lighter, while it can do everything the old one does.

There's really no reason to just avoid parallel processes in toto, so long as they're made correctly with Wait times. And in this case, there's almost certainly no reason your time system needs to matter to the fraction of a real-world second, so it's no problem to have a reasonable Wait.

So if you find a plugin that does exactly what you want, that's cool. But if not, it's pretty straightfoward to event.
You say that, but if I run my system every single second, it will cause lag. So, goat-boy wasn't really wrong there. In fact, I like to avoid parallel events if I can avoid it as well. I use them, but only small tasks that run only ones. (Like when you gain an apple, it will automatically consume the apple. It is just a few little commands and wont repeat because there is no apple, so no trigger)

So, that is why my system is build upon play-time. It doesn't have to run all the time. And because I have it run when I interact with anything, it only runs when the player stands still. No movement means no jitter.

Original thread: https://forums.rpgmakerweb.com/threads/day-and-night-cycle-plugin-suggestions.163113/