macros:Functions:avg

From RPTools Wiki
Revision as of 12:22, 1 December 2008 by Craig (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: average = avg(num, num, ...)]
[h: average = average(num, num, ...)]
[h: average = mean(num, num, ...)]

Examples

[r: avg(1, 2, 3, 3, 10)]

Returns 3.8