Register

Inline Macro Execution

An Add-on Module for Foundry Virtual Tabletop

Author: Mesayah Project Source: Project URL Versions 11 - 11 (Verified 11) Last Updated 8 months, 1 week ago

Usage

In any document add:

[[/macroExec <macroName> <args>]]{flavor}
 

to inline a link for macro execution with arguments, eg.

[[/macroExec "Roll Actor Skill" actorName="Test Actor" skill=ste]]
 

where Roll Actor Skill is a macro name (must be quoted) for a macro with the following command:

game.actors.get(scope.actorName).rollSkill(scope.skill);
 

Test Actor is an actor ID for some actor that can roll a skill check

actorName and skill are argument names that can be passed to the macro using scope object

flavor is the link's label

If argument value contains whitespaces, wrap it in quotes " ".

Categories

Available Versions

  1. Version 1.1.0

    8 months, 1 week ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  2. Version 1.0.0

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes