findToken
findToken() Function
• Introduced in version 1.3b48
Finds a token on the current map by the token name or GM name and returns its id. If the token is not found then an empty string "" is returned.
Usage
Example
[h: id = findToken("Hero")]
[if (id == "", "Token not found!", "Token found")]
Token: A visual marker representing a character, monster, or NPCTrusted Macro: A macro run from a Library token or run by the GM, that cannot be edited by a player.Macro: A series of text instructions used to automate processes in MapTool.Map: An image file displayed in the map display area in MapTool. This image is shared among all connected players and the GM.