setState

From RPTools Wiki
Revision as of 09:52, 10 March 2009 by Verisimilar (talk | contribs) (Added version, cleaned up formatting.)
Jump to navigation Jump to search

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

setState() Function

Introduced in version 1.3b40
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

setState(state, value)

Parameters

  • state - The name of the state to set on the current token.
  • value - The value of the state to set, true(1) or false(0).

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