getState

From RPTools Wiki
Revision as of 09:48, 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.

getState() Function

Introduced in version 1.3b40
Returns 1 if the specified Token State is set on the Current Token otherwise it returns 0.

Usage

getState(state)

Parameter

  • state} - The name of the state to check for on the current token.

Example

[if(getState("Dead"), "You are dead!", "You are not dead (yet!)")]