setCurrentInitiative: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setCurrentInitiative(-1)]
[h: setCurrentInitiative(-1)]
[h: setCurrentInitiative(999)]  ''// Any number greater or equal to the number of tokens in list.''
[h: setCurrentInitiative(999)]  // Any number greater or equal to the number of tokens in list.
</source>
</source>


}}
}}
[[Category:Initiative Function]]
[[Category:Initiative Function]]

Revision as of 05:46, 31 December 2010

setCurrentInitiative() Function

Gives the Initiative to the Token at the specified offset in the Initiative Panel. Offsets start at 0. Specifying a number of -1 or a number equalto or greater than the number of tokens in initiative list will clear current initiative.

Usage

[h: setCurrentInitiative(offset)]

Examples

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

Clear initiative.

[h: setCurrentInitiative(-1)]
[h: setCurrentInitiative(999)]   // Any number greater or equal to the number of tokens in list.