findToken: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Functions:findToken moved to findToken) |
Verisimilar (talk | contribs) mNo edit summary |
||
Line 15: | Line 15: | ||
</source> | </source> | ||
}} | }} | ||
[[Category: | [[Category:Find Function]] |
Revision as of 21:04, 9 March 2009
findToken() Function
Note: This function can only be used in 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)]
Example
[h: id = findToken("Hero")]
[if (id == "", "Token not found!", "Token found")]