getInitiativeRound: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Text replacement - "source>" to "syntaxhighlight>")
m (Text replacement - "<source" to "<syntaxhighlight")
Line 4: Line 4:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[h: round = getInitiativeRound()]
[h: round = getInitiativeRound()]
</syntaxhighlight>
</syntaxhighlight>


|examples=
|examples=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
Round Number [r: getInitiativeRound()]
Round Number [r: getInitiativeRound()]
</syntaxhighlight>
</syntaxhighlight>
}}
}}
[[Category:Initiative Function]]
[[Category:Initiative Function]]

Revision as of 18:38, 14 March 2023

getInitiativeRound() Function

Returns the current round number in the initiative panel. Returns -1 if round number is blank.

Usage

[h: round = getInitiativeRound()]

Examples

Round Number [r: getInitiativeRound()]