getCurrentInitiative

From RPTools Wiki
Revision as of 23:59, 4 May 2023 by Taustin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

[h: offset = getCurrentInitiative()]