module

About Time

Endorsements
17
Installs
14.61%
Comments
0
Latest version11.0.3
Minimum Core10
Compatible Core12
File size26.11 KB
Last updated4 months ago
Created4 years ago
Authors
Languages 日本語
Deutsch (German)
English
Español
Français
Italian
Korean
Português (Brasil)
中文
正體中文
Systems All systems
Dependencies Simple Calendar
Project source Project URL
Report bugs Bug tracker URL

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)

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x