getCurrentInitiative: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Text replacement - "source>" to "syntaxhighlight>") |
||
Line 7: | Line 7: | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: offset = getCurrentInitiative()] | [h: offset = getCurrentInitiative()] | ||
</ | </syntaxhighlight> | ||
}} | }} | ||
[[Category:Initiative Function]] | [[Category:Initiative Function]] |
Revision as of 17:12, 14 March 2023
getCurrentInitiative() Function
Note: This function can only be used in a Trusted Macro
Gets the offset of the token in the initiative panel that has the initiative. The offset starts at 0, if no token has initiative then -1 is returned.
Usage
<source lang="mtmacro" line> [h: offset = getCurrentInitiative()] </syntaxhighlight>