VASSAL Reference Manual
Dice Button
A Dice Button adds a toolbar button that implements the rolling and reporting of a set of Dice.
The number of dice to roll can either be fixed for every roll, or can be entered by the user for each roll.
Properties
A Dice Button exports its results to 3 Global Properties that are accessible from other Vassal components. These properties will keep their values until the next roll, including in save games and logs.
Each property name is of the form <DiceButtonName>_<property>. The three properties exported are:
-
result - the value of the $result$ report format variable.
-
total - the value of the $numericTotal$ report format variable.
-
keep - the value of the $keepCount$ report format variable.
(Example: A dice button is named "2d6". After a roll of 11, the Global Property named 2d6_result will resolve to "11" until the next roll, assuming the Report Total option has been checked, or "5,6" if not. The property 2d6_total will contain "11" and the property 2d6_keep will contain "2".
|
|


