Roll
This effect allows you to trigger the app's dice roller functionality, to roll dice and display the result.
JSON Format
{
"type": "roll",
"rolls": ...,
"on_result_effect": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
rolls | StatFormulaComponent | ✓ | This stat formula has to return an array of Rollables (see the Rollable stat formula for more details). The Rollables given in this array will be executed (rolled) and the results of each of them will be added together. |
on_result_effect | Effect | Allows you to execute an effect once the result of the roll is ready for you to use. The effect provided will have access to a result variable where the result of the roll will be available for you to use. The result will be an integer representing the sum of all rolls. |