MATT Variable - ironmonk88/monks-module-wiki GitHub Wiki

Variables

The Set Active Tiles Variable action allows you to store information in the tile, such as attribute values from the triggering token, and then reference them later in the action list, or even apply them to other entities. You can also just use them to count various things, such as the number of successes or failures.

Usage Examples

Here's a few examples of a variable being used; these are not the only actions that can make use of these, they're just intended as a demonstration. Most* actions with value or text fields can reference them. Variables can referenced using {{variable.VariableName}}.

Alter

The Alter action can adjust attributes relative to stored variables using the handlebar expression {{variable.VariableName}}, replacing variablename with the name entered.

https://github.com/ironmonk88/monks-module-wiki/blob/ae526c1865c93c151ba17102f832b6a8d40affa6/MATT/Set_Variable_Examples/Set_Variable_Alter_Example.png

The above example moves the token by an amount equal to their current hitpoints.

Chat Message

Displays the current value of the variable using the handlebar expression {{variable.VariableName}}.

https://github.com/ironmonk88/monks-module-wiki/blob/02f3d277a3e8d1c045ab98036b9e0c3ab3d4fa6e/MATT/Set_Variable_Examples/Set_Variable_Chat_Message_Example.gif

Check Variable

https://github.com/ironmonk88/monks-module-wiki/blob/092097533ae981be3c53173c4776d6f425ced9bd/MATT/Set_Variable_Examples/Check_Variable_Example.png

A simplified combination of Filter by Attributes and Check Entity Count that only checks variables; just put the same name as the variable you're checking against.

Filter by Attributes

To filter a tile by a saved variable, use flags.monks-active-tiles.variables.VariableName as the attribute path. Or use the Check Variable action above, its easier.

https://github.com/ironmonk88/monks-module-wiki/blob/294ede97f410c501b1604041084f1c7d0dbd0333/MATT/Set_Variable_Examples/Set_Variable_Filter_Attribute_Example.png

Page Last Updated

  • MATT 11.18