sortInitiative: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function sortInitiative==
{{MacroFunction
{{GMOnlyFunction}}
|name=sortInitiative
|trusted=true
|description=
Sorts the [[Initiative:Initiative Panel|Initiative Panel]] [[Token:Token|Token]]s and returns the number of [[Token:Token|Token]]s in the [[Initiative:Initiative Panel|Initiative Panel]].
Sorts the [[Initiative:Initiative Panel|Initiative Panel]] [[Token:Token|Token]]s and returns the number of [[Token:Token|Token]]s in the [[Initiative:Initiative Panel|Initiative Panel]].


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: numTokens = sortInitiative()]
[h: numTokens = sortInitiative()]
</source>
</source>
}}
[[Category:Initiative Function]]

Revision as of 04:44, 9 March 2009

sortInitiative() Function

 Note: This function can only be used in a Trusted Macro

Sorts the Initiative Panel Tokens and returns the number of Tokens in the Initiative Panel.

Usage

[h: numTokens = sortInitiative()]