getInitiativeRound: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function getInitiativeRound== Returns the current Initiative:round number in the Initiative:initiative panel ===Usage=== <source lang="mtmacro" line> [h: round = getInitiative...)
 
No edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
==Function getInitiativeRound==
{{MacroFunction
Returns the current [[Initiative:round number|round number]] in the [[Initiative:initiative panel|initiative panel]]
|name=getInitiativeRound
|description=Returns the current [[Introduction to Initiative|round number]] in the [[Introduction to Initiative|initiative panel]].  Returns {{code|-1}} if round number is blank.


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


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

Latest revision as of 23:34, 24 April 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()]