Allows you to trigger events to occur at specified times.
The interface is programatic only Access these via game.Gametime.XXXXX
-
doEvery({day:1}, () => console.log("another day another dollar"))
every day run the handler. -
doAt({hour:1}, "My Macro"))
run a macro in 1 hour of gametime -
reminderAt({minute: 10}, "Check for wandering monsters"}
send a message to the console. -
reminderEvery({minute: 10}, "Check for wandering monsters"}
do a reminder every 10 minutes.
Each of the above return an id which can be used to cancel the event -
clearTimeout(eventID)