macros:Functions:avg: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function avg== Adds all the NPC tokens on the current map to the initiative panel. This function returns the number of tokens that were added to the initiative panel. ===Usage=== <sourc...) |
No edit summary |
||
Line 4: | Line 4: | ||
===Usage=== | ===Usage=== | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: | [h: av = avg(num, num, ...)] | ||
[h: | [h: av = average(num, num, ...)] | ||
[h: | [h: av = mean(num, num, ...)] | ||
</source> | </source> | ||
Revision as of 12:23, 1 December 2008
Function avg
Adds all the NPC tokens on the current map to the initiative panel. This function returns the number of tokens that were added to the initiative panel.
Usage
[h: av = avg(num, num, ...)]
[h: av = average(num, num, ...)]
[h: av = mean(num, num, ...)]
Examples
[r: avg(1, 2, 3, 3, 10)]
Returns 3.8