setState

From RPTools Wiki
Revision as of 04:37, 9 March 2009 by Verisimilar (talk | contribs) (Applied Template:MacroFunction)
Jump to navigation Jump to search

setState() Function

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