init.round: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The special variable ''init.round'' holds the current Initiative round beginning at {{code|1}}. '''init.round''' is set to {{code|-1}} if there are no tokens in the Initiative...") |
m (Conversion script moved page init.round to Init.round without leaving a redirect: Converting page title to first-letter uppercase) |
(No difference)
|
Revision as of 22:34, 9 February 2023
The special variable init.round holds the current Initiative round beginning at 1
. init.round is set to -1
if there are no tokens in the Initiative window.
Example
Simple Count
[if(init.current != -1), code: {
[h: json = getInitiativeList()]
[h: tarray = json.get(json,"tokens")]
[h: tok = json.get(tarray,init.current)]
Token with Initiative: [r: getName(json.get(tok,"tokenId"))]<br>
Initiative Round: [r: init.round]
};{
No token with initiative.
}]