League-of-Foundry-Developers / fvtt-module-furnace

34 stars 12 forks source link

Call macro inside script macros #82

Closed Thedvdias closed 4 years ago

Thedvdias commented 4 years ago

I'm using midiQOL wich lets me call a macro when an item is rolled. The macro is called with a structure in args[0], I want to call another macro but passing some values of args[0]. As far as I understood I can only recursively call a macro through the chat? How can I do it through a script macro ? Thank you.

kakaroto commented 4 years ago

Simply like this should work : game.macros.getName("macroName").execute(arg1, arg2, etc...);