setState

From RPTools Wiki
Revision as of 15:31, 13 December 2008 by Craig (talk | contribs) (New page: ==Function setState== Sets the value of the Token:Token State on the Token:Current Token. If The value is 0 then the Token:Token State is unset if it is non zero then it is ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function setState

Sets the value of the Token State on the Current Token. If The value is 0 then the Token State is unset if it is non zero then it is set.

Usage

[h: setState(name, value)]

Examples

To set the "Dead" Token State on the Current Token

[h: setState("Dead", 1)]

To reset the "Dead" Token State on the Current Token

[h: setState("Dead", 0)]