sortInitiative: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{stub}}
{{MacroFunction
{{MacroFunction
|name=sortInitiative
|name=sortInitiative
|trusted=true
|trusted=true
|version=1.3b41
|description=
|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]].
Line 7: Line 9:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: numTokens = sortInitiative()]
sortInitiative()
</source>
</source>
}}
}}
[[Category:Initiative Function]]
[[Category:Initiative Function]]

Revision as of 10:12, 10 March 2009

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

sortInitiative() Function

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

Introduced in version 1.3b41
Sorts the Initiative Panel Tokens and returns the number of Tokens in the Initiative Panel.

Usage

sortInitiative()