Documentation

diceavg

Syntax: %diceavg(d)

return the average dice roll from the dice d (floating point result). Dice have the format xdy where x is the number of times to roll and y is the number of sides on the dice. An optional +n or -n may be appended to the dice.

Example:

#ECHO %diceavg(2d6+2)



Displays 9.0.

Add comment

Login or register to post comments