Repository navigation
Rolls
deukalion edited this page May 5, 2026
·
1 revision
The table below lists available properties to set on the rollConfig object.
| Context | Property | Type | Description/Options |
|---|---|---|---|
| Actor | actorId |
string (UUID) | Rolling Actor (required) |
| Actor | itemUuid |
string (UUID) | Weapon/Spell/Item being used (optional) |
| Actor | targetUuid |
string (UUID) | Target Token/Document (optional) |
| Roll presentation | type |
string | "check" | "attack" | "spell" | "ability" |
| Roll presentation | heading |
string | Display heading (localization key or plain string) |
| Roll presentation | title |
string | Secondary title |
| Roll presentation | rollMode |
string | "public" | "private" | "blind" | "self" |
| Roll presentation | skipPrompt |
boolean | Skip the roll dialog and roll immediately |
| Roll presentation | descriptions |
["string"] | Array of HTML description strings shown on card |
| Situational effects | situational |
["string (UUID)"] | Available situational effect UUIDs |
| Situational effects | selected |
["string (UUID)"] | Chosen situational effect UUIDs (set in dialog) |
rollConfig will have both of the following roll sub-objects, both of which share the rollOptions schema:
-
mainRoll: { /* see rollOptions */ } -
damageRoll: { /* see rollOptions */ }
rollConfig will have one of the following sub-objects depending on roll type:
-
check: { /* see Options:check*/ } -
attack: { /* see Options:attack*/ } -
cast: { /* see Options:cast*/ }
| Context | Property | Type | Description/Options |
|---|---|---|---|
| Formula | type |
string |
main (mainRoll) | damage (damageRoll) — set internally |
| Formula | base |
string | Base die: "d20", "d12", "d8", "d6", etc. |
| Formula | formula |
string | Full dice formula, e.g.: "d20+5", "2d6+3" |
| Formula | formulaBackup |
string | Original formula before user edits in dialog |
| Formula | modified |
boolean | True if user edited the formula in the dialog |
| Formula | bonus |
string | Formatted bonus portion: "+5", "-2" |
| Formula | label |
string | Display label for the roll row |
| Outcome thresholds | dc |
number | Difficulty class for success/failure evaluation |
| Outcome thresholds | canCritical |
boolean | Whether criticals apply |
| Outcome thresholds | criticalSuccessAt |
number | Die face that triggers a critical (e.g. 20) |
| Outcome thresholds | criticalFailureAt |
number | Die face that triggers a fumble (e.g. 1) |
| Advantage system | advantage |
number | 1 (advantage) | 0 (normal) | -1 (disadvantage) |
| Roll Tooltips | tooltips |
string | Comma-separated descriptor strings |
| Reroll flag | reroll |
boolean | True when roll is a re-roll |
| Damage Roll only | criticalHit |
boolean | True when the paired mainRoll was a critical |
| Damage Roll only | criticalMultiplier |
number | Damage multiplier on critical (e.g. 2) |
| Damage Roll only | needed |
boolean | Whether to display the damage roll on the card |
| Render only (not used for rolling) | html |
string | Rendered roll HTML injected by ChatSD |
| Render only (not used for rolling) | success |
boolean | Whether the roll beat the DC (mainRoll only) |
| Context | Property | Type | Description/Options |
|---|---|---|---|
check |
stat |
string | "str" | "dex" | "con" | "int" | "wis" | "cha" |
attack |
type |
string | "melee" | "ranged" |
attack |
handedness |
string | Weapon handedness value from item data |
attack |
range |
string | "close" | "far" | Specific range string |
attack |
ammunitionOptions |
["string (UUID)"] | Array of valid ammo item objects |
attack |
selectedAmmunition |
["string (UUID)"] | Resolved ammo item chosen in dialog |
cast |
spellUuid |
["string (UUID)"] | Spell item UUID (required) |
cast |
ability |
string | "str" | "dex" | "con" | "int" | "wis" | "cha" |
cast |
focus |
boolean | Whether a spellcasting focus is used |
cast |
range |
string | spell.system.range |
cast |
duration |
string | spell.system.duration |
cast |
damageType |
string | Damage type or "healing" |