MZ Get the time

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.

I'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:

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):

Original thread: https://forums.rpgmakerweb.com/threads/get-the-time.126609/