Toggle State
Toggle State
This is a very simple macro that allows you to toggle the state of selected tokens. It is potentially useful to a GM who has players that can mark - simply set the name of the state at the beginning of the macro. It is useful to have a different button (stored locally or in campaign macros) for each player's mark. You can quickly select several enemies when marking with a blast/burst power or for switching marks you can select both the old mark and the new mark and it will toggle as wanted.
Special thanks to zEal who made this macro for me.
[h: StateName = "Marked_red" ]
[h, foreach( Selected, getSelected("json") ):
setState(StateName,if(getState(StateName, Selected),0,1),Selected)
]
Token: A visual marker representing a character, monster, or NPCCampaign Macro: A macro specific to a campaign file. These macros are available to players and the GM, and are displayed in the Campaign Macros window.Macro: A series of text instructions used to automate processes in MapTool.Campaign: A zipped XML file with the '''.cmpgn''' file extension containing tokens, maps, token macros, campaign macros, and token propertiesMap: An image file displayed in the map display area in MapTool. This image is shared among all connected players and the GM.State: A binary (i.e., it has two possible values, 1 or 0) variable that is set for a given token, frequently used for conditions or statuses that affect a particular character in a game.