Modifiers Manager
Overview¶
Add, remove, and toggle modifiers that affect abilities, weapons, armor, and thresholds. Supports permanent and temporary modifiers with enable/disable control.
API¶
await game.daggerheart.ModifierManager.addModifierByRef(actor, 'system.strength.value', 'Buff', 2);
Related¶
- Damage Dialog (uses modifiers)
Features¶
- Temporary and permanent modifiers
- Enable/disable without deleting
- Field-path targeting across actor data
- Automatic aggregation into rolls and dialogs
Typical flows¶
- Add a named modifier to a field path
- Toggle it on or off as needed
- Rolls and dialogs include enabled modifiers
Tips¶
- Use clear names for quick identification in dialogs
- Prefer field-path APIs for precise targeting