Create a macro
create-macroCreate a macro for Foundry VTT. Define chat text or JavaScript commands to run later. The macro is stored, not executed, at creation.
Instructions
Create a macro. A chat macro holds chat text or a chat command such as /roll 1d20. A script macro holds JavaScript that can do anything a Gamemaster can once someone runs it. Creating runs nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| img | No | Optional icon path | |
| name | Yes | Name of the macro | |
| type | Yes | "chat" or "script" | |
| command | Yes | Chat text or JavaScript | |
| folderPath | No | Folder for the macro; nested levels separated by "/" are created |