Day and Night Calendar, RPG Maker MZ: 8 commands
Day and Night Calendar is a single RPG Maker MZ plugin that adds a game clock, a calendar with seasons, and a screen tint that changes smoothly through the day. It fills your variables and a night switch, so ordinary event conditions can check the time. Built for farming games, life sims, story RPGs and anything with shops that open and close.
What you get
- A clock that runs on the map at a speed you set (1 game minute per real second by default) and stops in menus, shops and battles
- Optional pause while messages are open or events run
- Calendar with weekdays, days per month, month names, seasons and years, all editable. A 12 month calendar works too.
- Day and night tint from key hours ("hour: r, g, b, gray"), blended by minute and wrapping across midnight
- Map notes: <BK NoTint> for houses and caves, <BK NoTime> to pause the clock, <BK Tint: r, g, b, gray> for a fixed tint
- Hour, minute, day, weekday, month, season and year written to variables you choose, plus a night switch
- A common event at the start of each day and on each new hour
- 8 plugin commands: set time, advance time, sleep until hour, set date, pause, resume, set speed, show or hide the clock
- A clock HUD with your own format ({weekday} {day} {month} {hh}:{mm}, 12 or 24 hour) in any corner
- Time is stored in the save file
- 72 headless tests you can run with Node.js
Formats
- BK_DayNight.js: one plain JavaScript plugin file for RPG Maker MZ 1.x, readable and commented
- Plugin Manager parameters and plugin commands with descriptions
- README.txt with every command, parameter, notetag and script call
How to use
- Copy BK_DayNight.js into your project's js/plugins folder.
- Turn it on in the Plugin Manager and pick the variables and switch you want filled.
- Use the variables in event conditions, for example a shop event page that needs Hour 9 or more.
- For a bed, use Plugin Command > BK_DayNight > Sleep until hour 6.
How it was made
Built from code written with an AI assistant. No AI image or audio generation models, no samples or third-party code. The village on the screenshots is drawn by a script, and the tints and clock text on it are the values the plugin computes at each time. The included tests run the plugin against a small stand-in for the MZ runtime written for this kit.
Licence
Use it in unlimited commercial and non-commercial games, modified or unmodified, without attribution, and ship the plugin file inside your games. You may not resell or redistribute the plugin on its own or as part of another plugin collection. Full text in LICENSE.txt.