getState: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version, cleaned up formatting.)
mNo edit summary
Line 11: Line 11:
</source>
</source>
'''Parameter'''
'''Parameter'''
* {{code|state}}} - The name of the state to check for on the current token.
* {{code|state}} - The name of the state to check for on the current token.


|example=
|example=

Revision as of 09:54, 10 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!)")]