setCurrentInitiative: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Fixing wikilinks)
m (Conversion script moved page setCurrentInitiative to SetCurrentInitiative without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:20, 9 February 2023

setCurrentInitiative() Function

Gives the Initiative to the Token at the specified offset in the Initiative Panel. Offsets start at 0. To clear, specify a number that is not a valid token offset, like -1.

Usage

[h: setCurrentInitiative(offset)]

Examples

Give Initiative to the 4th Token.
[h: setCurrentInitiative(3)]

Clear current initiative (any number that is not a valid token offset will work).

[h: setCurrentInitiative(-1)]
[h: setCurrentInitiative(999)]