A die control contains a group of dice that can be of different types.
Add a die to the list of dice in the control. The specified value should be one of the built in die types
("d4", "d6", "d8", "d10", "d12" or "d20") or a custom die type.
Parameters
type (string)
The die identifier
Get the dice contained in the control.
Return values
(table)
An integer indexed table containing strings specifying the types of the dice in the control
Returns whether the control contains dice or is empty.
Return values
(boolean)
Whether the control is empty
If present, this function is executed whenever the value of this control changes.
Empty the control, removing all dice.
Reset the entire contents of the control to match the list given. The table should contain integer indexed
strings identifying the die, either using one of the built in types ("d4", "d6", "d8", "d10", "d12" or "d20")
or a custom die type.
Parameters
dice (table)
An integer indexed table containing die identifier strings