Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Dice (MPI)

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
(dice)
Line 10: Line 10:
(YdX) A third parameter, if given, is just added to this sum as a modifier. (YdX+Z)
(YdX) A third parameter, if given, is just added to this sum as a modifier. (YdX+Z)
-
'''FYI:''' On Tapestries, this function is broken.  {dice:X,Y,Z} returns X*Y+Z rather than a dice roll with Z added to it.
+
'''FYI:''' On Tapestries, this function is broken.  {dice:1,Y,Z} returns Y+Z rather than a dice roll of YdX with Z added to it.

Revision as of 21:53, 8 January 2011

dice

{dice:X}
{dice:X,Y}
{dice:X,Y,Z}

Given one parameter, picks a random number between 1 and X. (1dX)

Given two parameters, it randomly generates Y numbers between 1 and X, and adds them together.

(YdX) A third parameter, if given, is just added to this sum as a modifier. (YdX+Z)

FYI: On Tapestries, this function is broken. {dice:1,Y,Z} returns Y+Z rather than a dice roll of YdX with Z added to it.

Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox