macros:Functions:avg

From RPTools Wiki
Revision as of 12:23, 1 December 2008 by Craig (talk | contribs)
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: 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