getInitiativeHold: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page GetInitiativeHold to getInitiativeHold: Converting page titles to lowercase)
No edit summary
Line 3: Line 3:
|name=getInitiativeHold
|name=getInitiativeHold
|version=1.3b41
|version=1.3b41
|description=Returns if the [[Token:token{{!}}token]] is on [[Initiative:hold{{!}}hold]] in the [[Initiative:initiative panel{{!}}initiative panel]] or not. This function will return 1 if the [[Token:token{{!}}token]] is on [[Initiative:hold{{!}}hold]] or 0 if it is not.
|description=Returns if the [[Token:token{{!}}token]] is on [[Initiative:hold{{!}}hold]] in the [[introduction to Initiative{{!}}initiative panel]] or not. This function will return 1 if the [[Token:token{{!}}token]] is on [[Initiative:hold{{!}}hold]] or 0 if it is not.


|usage=
|usage=

Revision as of 00:10, 12 February 2023

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

getInitiativeHold() Function

Introduced in version 1.3b41
Returns if the token is on hold in the initiative panel or not. This function will return 1 if the token is on hold or 0 if it is not.

Usage

getInitiativeHold()
getInitiativeHold(id)
getInitiativeHold(id, mapname)

Parameter

  • id - The token id of the token to get the initiative hold value from. Defaults to the Current Token.

     Note: This parameter can only be used in a Trusted Macro

  • mapname - The name of the map to find the token if the id parameter is used. Defaults to the current map.

Examples

[r: if(getInitiativeHold(), "You are on hold", "You are not on hold")]