Updated Macro Action (markdown)
@@ -15,9 +15,21 @@ For each macro there are 3 options: Macro selection, furnace arguments (only if
|
|||||||
### Macro Selection
|
### Macro Selection
|
||||||
This is a drop-down menu, where you can select a macro from your macro directory (which you can find by pressing the 'file' icon to the left of your macro hotbar).
|
This is a drop-down menu, where you can select a macro from your macro directory (which you can find by pressing the 'file' icon to the left of your macro hotbar).
|
||||||
|
|
||||||
### Furnace Arguments
|
### Macro Arguments
|
||||||
This function is only available if you have [the Furnace](https://foundryvtt.com/packages/furnace/) installed.<br>
|
Starting in Foundry v11 macro arguments are supported in the core. In Foundry v10 the module [Advanced Macros](https://github.com/mclemente/fvtt-advanced-macros) is required.<br>
|
||||||
Here you can fill in any arguments that you could use with 'the Furnace' Please read the documentation regarding [advanced macros](https://github.com/kakaroto/fvtt-module-furnace#advanced-macros).<br>
|
Here you can fill in any arguments that you want to use.
|
||||||
|
|
||||||
|
#### Macro Arguments in Foundry v11
|
||||||
|
In Foundry v11 you enter objects as macro arguments, which can be retrieved in the macro from the scope object, for example, `scope.x`.
|
||||||
|
|
||||||
|
Take the following macro to move the selected token to coordinates x and y:<br>
|
||||||
|
`token.document.update({x: scope.x, y: scope.y})`<br>
|
||||||
|
If you want to call this macro from the Stream Deck to move the token to x=1000 and y=1500, you'd use the following arguments:<br>
|
||||||
|
`{"x":1000, "y":1500}`<br>
|
||||||
|
Please note that you must include the quotation marks around the object keys.
|
||||||
|
|
||||||
|
#### Macro Arguments using Advanced Macros
|
||||||
|
Please read the [Advanced Macros](https://github.com/mclemente/fvtt-advanced-macros) documentation.<br>
|
||||||
If, for example, you wanted to execute a macro named 'My Macro' with the arguments 'argument1 argument2 argument3', you would use for example `/"My Macro" 100 50 "test"` in the chat. In the macro configuration screen you would only fill in the arguments, so: `100 50 "test"`.
|
If, for example, you wanted to execute a macro named 'My Macro' with the arguments 'argument1 argument2 argument3', you would use for example `/"My Macro" 100 50 "test"` in the chat. In the macro configuration screen you would only fill in the arguments, so: `100 50 "test"`.
|
||||||
|
|
||||||
### Background Color
|
### Background Color
|
||||||
|
|||||||
Reference in New Issue
Block a user