Template:MacroEvent

From RPTools Wiki
Jump to navigation Jump 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.

Example

{{MacroEvent
|name=onEventTrigger
|proposed=true
|deprecated=[[onNewTrigger]]
|version=1.5.2
|compatibility=1.9.0
|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! " "
{{__TOC__}}
|usage=
Set a macro on a library token named <code>onEventTrigger</code> and the macro code will execute whenever the event occurs.
|example=
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!")]
</source>

|also=
[[linkToRelatedArticle|Display Name of Related Article]]

|changes=
* '''1.5.2''' - Introduced.
}}

Source

Edit this section to view template source.