module

Inline Macro Execution

Endorsements
0
Installs
0.03%
Comments
0
Latest version1.1.0
Minimum Core11
Compatible Core11
File size3.04 KB
Last updated10 months ago
Created10 months ago
Authors
Languages
Systems All systems
Project source Project URL
Read-me Readme URL
Changelog Changelog URL

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 " ".

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x