findToken: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
==Function findToken== | ==Function findToken== | ||
{{TrustedOnlyFunction}} | {{TrustedOnlyFunction}} | ||
Revision as of 14:56, 6 December 2008
Function findToken
This function can only be called from a trusted macro
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
[h: id = findToken(name)]
Examples
[h: id = findToken("Hero")]
[if (id == "", "Token not found!", "Token found")]