getState

From RPTools Wiki
Revision as of 03:59, 8 March 2009 by Merkuri (talk | contribs) (Added MacroFunction template and Token Function category)
Jump to navigation Jump to search

getState() Function

Returns 1 if the specified Token State is set on the Current Token otherwise it returns 0.

Usage

[h: isSet = getState(name)]

Examples

[if(getState("Dead"), "You are dead!", "You are not dead (yet!)")]