From RPTools Wiki
Jump to navigationJump to search

Template Usage

You should always write the description as though the words "This event..." are automatically supplied by the template.

Refer to Help:Editing for more detailed documentation.


|description=Refers to some MapTool event which triggers a macro. This example of course doesn't refer to any real event, but it will when you use this template! " "
Set a macro on a library token named <code>onEventTrigger</code> and the macro code will execute whenever the event occurs.
The following macro code would cause the text "Triggered!" to broadcast every time this fake event happens in game:
<source lang="mtmacro" line>
[r: broadcast("Triggered!")]

[[linkToRelatedArticle|Display Name of Related Article]]

* '''1.5.2''' - Introduced.


Edit this section to view template source.