| Latest version | 3.0.1 |
|---|---|
| Minimum Core | 0.8.0 |
| Compatible Core | 12 |
| Last updated | 1 day ago |
| Created | 6 years ago |
| Authors | |
| Languages |
English |
| Systems | All systems |
| Project source | Project URL |
Advanced Scripting Module
This module allows you to set macros to run when a particular Hook is sent by Foundry VTT.
To install, import this Manifest into your module browser.
Settings or Local settings in the module's configuration
Settings will run for every user and can only be configured by a GMLocal settings are saved as local settings, will only run for the respective user, and can be used by any userHook name (required): The name of the hook to run the macro for. You can run CONFIG.debug.hooks = true in the Developer Console of your browser to learn about which hooks get triggered by certain interactionsMacro ID (required): The UUID of the macro to run. You can find a macro's UUID by opening the macro editor and clicking on the passport icon in the window's title bar. A message stating "Macro UUID ... copied to clipboard." should pop up.Macro args (optional): Specify any arguments the macro might consume. The pattern is key1=value1, key2=value2, .... Any surrounding spaces will be stripped, so key1 = value1 is the same as key1=value1.+ button and SaveYou can then access the arguments in the macro using the arguments parameter:
arguments[4] contains the specified arguments as key-value pairs, as well as the hook's arguments as hookArgumentsarguments[5] through arguments[n] contain the argument values without their keysExample: Configured argument list is name=John,number=12 and the hook has the arguments [{name: "Hero"}, {action: "create"}, "uABwxqaeHZHpuK6l"]
arguments[4] contains {name: "John", number: "12", hookArguments: [{name: "Hero"}, {action: "create"}, "uABwxqaeHZHpuK6l"]}arguments[5] contains "John"arguments[6] contains "12"arguments[7] contains [{name: "Hero"}, {action: "create"}, "uABwxqaeHZHpuK6l"]Don't create macros that run from the chat hook and create chat messages that take more than 1 seconds to output to chat.
Check the Changelog
If you acidentally created a macro that locks you out of the game. You can fix it by holding the END key while logging into your world. This makes the module not run any macros.
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: launchmacro or copy its manifest URL:
And paste it to the input box at the bottom of your window.

You can install this package directly to your Forge account.