Create a new dice from the given atomic expression.
The atomic dice expression to create the dice from. If not given, the dice is initialized as "1d20".
An object to bind to if the expression includes bindings.
The random number generator that this Dice should use.
The value of d is the number of faces on this dice. In the case of fate dice, returns 3 (d3).
Set the value of d. If the dice is a fate dice, the fate attribute is cleared.
True if this dice is a fate dice.
Set if this dice is a fate dice. If the value changes to true, the previous value for d is cleared. If the value changes to false, the value of d is set to 3 (the dice becomes a d3 and keeps its value of n). If the new value is the same as the dice's current value, there is no effect.
The lowest numeric value that this dice can roll. This is usually 1, except in the case of fate dice, where it is -1.
The modifiers for this dice.
Get the value of n, which is the number of times the d-sided dice is rolled when roll() is called.
Set the value of n.
An array of the individual dice values for the most recent roll before modifiers were applied.
The most recently rolled result, or null if the dice has never been rolled.
An array of the individual dice values for the most recent roll.
The RegExp used to parse the core dice expression.
The maximum allowed value of d, which is equal to the largest representable integer in JavaScript (9007199254740991, or Number.MAX_SAFE_INTEGER).
The maximum allowed value of d, which is equal to the largest representable integer in JavaScript (9007199254740991, or Number.MAX_SAFE_INTEGER).
The maximum allowed value of n, which is equal to the largest representable integer in JavaScript (9007199254740991, or Number.MAX_SAFE_INTEGER in ES6).
The maximum allowed value of n, which is equal to the largest representable integer in JavaScript (9007199254740991, or Number.MAX_SAFE_INTEGER in ES6).
Roll the dice. Returns the combined result of the dice roll. Individual rolls are stored in the rolls property.
The number of dice to roll. If not given, defaults to the value of n given when the dice was constructed.
The combined result of the dice roll.
The string representation of the Dice, using Roll20 notation.
The string representation of the Dice, in English text.
Perform a simple dice roll.
The number of faces the dice should have.
The random number generator to use in this roll.
Generated using TypeDoc
Representation of a dice roll.