Kekilla0 / World-Scripter

Allow you to write a script in game which executes as if it was a world script.
MIT License
3 stars 1 forks source link

Execute on Ready #9

Closed mech-tools closed 2 years ago

mech-tools commented 2 years ago

Hello,

World scripts have the ability to be executed on "ready" hook. Can this module do the same?

trioderegion commented 2 years ago

Yes, all world scripter compendium macros are actually run inside of the 'ready' hook, so you dont need to add anything special.

You cannot use hooks earlier than ready and you need to use the Hooks.on calls for hooks AFTER ready.

mech-tools commented 2 years ago

@trioderegion Ok, understood. Note: "canvasReady" is probably called after "ready" but before macro executions.