getState: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Function getState==
==Function getState==
Returns 1 if the specified [[Token:state|state]] is set on the current [[Token:token|token]] otherwise it returns 0.
Returns 1 if the specified [[Token:Token State|Token State]] is set on the [[Token:Current Token|Current Token]] otherwise it returns 0.


===Usage===
===Usage===

Revision as of 13:13, 13 December 2008

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