Hi, total noob to this engine here (and Javascript for that matter). What I'm trying to do is have an NPC's text change depending on the time on the client's computer. I'm guessing I have to make a script but other than that I honestly don't know where to start! Any help is greatly appreciated haha.
MZ Get the time
JS Plugin RequestsI've moved this thread to Plugin Requests. Thank you.
Though, I guess if you're wanting to learn to do it yourself, it may need to go to Learning Javascript.
If you're looking to do this yourself, you can simply do new Date() to get current time. Use getHours() or getMinutes() on date object to get the current hour/minutes.
Helpful reference:
Though I have made a plugin that can change a switch based on time of day which you could use if hour of day is specific enough (can't do down to the minute):
forums.rpgmakerweb.com
Helpful reference:
Code:
var date = new Date(); // date now stores the current time on client computer
Though I have made a plugin that can change a switch based on time of day which you could use if hour of day is specific enough (can't do down to the minute):
MZ - [CGMZ] Holidays
[CGMZ] Holidays By: Casper Gaming Last Update: March 8, 2026 Latest Version: 1.2.0 This plugin allows you to create daily, weekly, monthly, or annual repeating events. It will turn a switch ON or OFF depending on if the time is within the start/stop time set by you. Some uses may be daily...
forums.rpgmakerweb.com
Original thread: https://forums.rpgmakerweb.com/threads/get-the-time.126609/