Repository navigation
Hooks
deukalion edited this page May 5, 2026
·
2 revisions
| Hook Name | Descriptions | Cancellable | Argument |
|---|---|---|---|
| SD-Roll-Dialog | Fires while the roll dialog is being prepared, before it renders. Can be used to modify dialog options such as situational effects, ammunition choices, and roll mode. | No | Argument: context (Object) — The prepared render context for the roll dialog |
| SD-Stat-Check | Fires after the roll dialog is confirmed, before an ability check is rolled. Applies to both PCs and NPCs. | Yes — returning false aborts the roll |
Argument: context (Object) — The roll config object |
| SD-Player-Attack | Fires after the roll dialog is confirmed, before an attack roll is made. | Yes — returning false aborts the roll |
Argument: context (Object) — The roll config object |
| SD-Player-Spell | Fires after the roll dialog is confirmed, before a player casts a spell. | Yes — returning false aborts the roll |
Argument: context (Object) — The roll config object |
| SD-NPC-Attack | Fires after the roll dialog is confirmed, before an attack roll is made. | Yes — returning false aborts the roll |
Argument: context (Object) — The roll config object |
| SD-NPC-Spell-Cast | Fires after the roll dialog is confirmed, before an NPC casts a spell. | Yes — returning false aborts the roll |
Argument: context (Object) — The roll config object |
| SD-Player-classAbility | Fires after the roll dialog is confirmed, before a class ability is used. | Yes — returning false aborts the action |
Argument: context (Object) — The roll config object |