diff --git a/Macro-Action.md b/Macro-Action.md index b2df497..c35ce5b 100644 --- a/Macro-Action.md +++ b/Macro-Action.md @@ -15,9 +15,21 @@ For each macro there are 3 options: Macro selection, furnace arguments (only if ### 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). -### Furnace Arguments -This function is only available if you have [the Furnace](https://foundryvtt.com/packages/furnace/) installed.
-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).
+### Macro Arguments +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.
+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:
+`token.document.update({x: scope.x, y: scope.y})`
+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:
+`{"x":1000, "y":1500}`
+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.
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