getState: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 19: Line 19:


}}
}}
[[Category:State Function]]
[[Category:Token Function]]
[[Category:Token Function]]

Revision as of 06:13, 16 March 2009

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