getState: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Macros:Functions:getState moved to getState: Moving out of the Macros namespace.)
(No difference)

Revision as of 03:56, 8 March 2009

Function getState

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!)")]