Repository navigation
Active Effects
Important
Active Effects are different from Effect Items. Read how.
An Active Effect (AE) is the native Foundry functionality for modifying the nature/attributes/abilities of an Item or Actor in some way: it functions as a container for one or more changes. In the Shadowdark system, AEs are normally wrapped in an Effect Item, but you can also attach them directly to Actors. When attached to an Item, the Item transfers an AE's changes to the parent Actor whenever the Item is equipped and identified.
The screenshot below shows the AE Panel in the Effects tab of the Player sheet.
- Pre-defined Effects. This dropdown lists common AEs associated with Class, Ancestry, and Talent rolls. Selecting one opens the AE UI with the Change Attribute Key pre-populated (see below).
- Add Effect icon. Click this to open the AE UI to create a new AE.
- Source. The origin of the AE. In this example, Mighty is an Ancestry Talent. The Talent type is shown on the Talents tab of the Player sheet.
- Toggle Effect. Click to enable/disable the AE. This button corresponds with Effect Suspended in AE UI.
-
Toggle Situational. Click to enable/disable the AE's situational status. Enabled makes the AE optionally applicable in the attack roll dialog. For example, a
+2 vs. GiantsAE isn't applicable for every attack: the situational property makes the AE available to apply when it is. - Edit Effect. Click to open the AE UI.
- Delete Effect. Click to delete.
The screenshot below shows the AE UI. Note that the Duration tab fields are not used (yet) in the Shadowdark system: duration is managed by the wrapping Effect Item.
- Icon. Click to change.
- Icon Tint Color. Applies selected color to AE icon on token.
- Effect Description. On Talents tab of Player sheet, displays when Talent name is clicked and in chat when Talent icon is clicked.
- Effect Suspended. Check to disable effect. This checkbox corresponds with Toggle Effect in AE Panel.
- Apply Effect to Actor. Applies the AE changes to the Actor possessing the AE. Should always be checked.
- Status Conditions. Applies the selected Status Conditions to the Actor and icons to the token.
- Attribute Key. Tells the system where to apply the change. See Attribute Keys tables below.
- Change Mode. How the change will be applied. Usually this will be Add. A thief's Backstab might use Multiply, and a cursed item might Override an stat score.
- Value. The text, UUID, number, or roll formula-determined number that the change will apply.
- Priority. Priority determines the order changes are applied in: the higher the number, the later it applies. A Change Mode of Override defaults to 50 so it overrides anything placed below it.
- Add Change icon. Click to add another change.
AE changes require attribute keys that are mapped to fields on the Actor's sheet. Below is a list of possible keys. Options are contained within brackets (which should not be included in the final key) and separated by the pipe | character.
Note
-
allmeans "all weapons/armor of that type". -
thismeans "only applies when this particular weapon/ability is used". -
attackis inclusive of bothmeleeandranged. - Many AEs require the slugified name: How to slugify a name.
- One AE requires a UUID: How to find an entity's UUID.
| Key | Value |
|---|---|
system.abilities.(str|dex|con|int|wis|cha).value |
Number |
system.attributes.ac.value |
Number |
system.attributes.ac.(this|armor-base-type|name-of-property|unarmored) |
Number |
system.attributes.hp.max |
Number |
system.attributes.hp.value |
Number |
system.languages |
UUID |
system.level.value |
Number |
system.level.xp |
Number |
system.luck.available |
Number |
system.luck.remaining |
Number |
system.renown |
Number |
system.slots |
Number |
system.spellcasting.classes |
bard | knight-of-st.-ydris | priest | seer | warlock | witch | wizard |
| Type | Key | Value |
|---|---|---|
| Attack | system.roll.(attack|melee|ranged).advantage.(all|this|weapon-type|name-of-property) |
adv: 1 dis: -1 |
| Attack | system.roll.(attack|melee|ranged).bonus.(all|this|weapon-type|name-of-property) |
Text |
| Attack | system.roll.(attack|melee|ranged).damage.all|this|weapon-type|name-of-property) |
Text |
| Attack | system.roll.(attack|melee|ranged).damage-advantage.(all|this|weapon-type|name-of-property) |
adv: 1 dis: -1 |
| Attack | system.roll.(attack|melee|ranged).explode-damage-die.(all|this|weapon-type|name-of-property) |
Number |
| Attack | system.roll.(attack|melee|ranged).extra-damage-die.(all|this|weapon-type|name-of-property) |
Number |
| Attack | system.roll.(attack|melee|ranged).upgrade-damage-die.(all|this|weapon-type|name-of-property) |
4 to -4 |
| Attack | system.roll.(attack|melee|ranged).critical-multiplier.(all|this|weapon-type|name-of-property) |
Number |
| Attack | system.roll.(attack|melee|ranged).critical-success.(all|this|weapon-type|name-of-property) |
Number |
| Attack | system.roll.(attack|melee|ranged).critical-failure.(all|this|weapon-type|name-of-property) |
Number |
| Class Ability | system.roll.ability.advantage.(all|name-of-ability) |
adv: 1 dis: -1 |
| Class Ability | system.roll.ability.bonus.(all|name-of-ability) |
Text |
| Class Ability | system.roll.damage.bonus.(all|name-of-ability) |
Text |
| Class Talent | system.bonus.backstabdice |
Number |
| HP | system.roll.hp.advantage |
adv: 1 dis: -1 |
| HP | system.roll.hp.bonus |
Number |
| Initiative | system.roll.initiative.advantage |
adv: 1 dis: -1 |
| Initiative | system.roll.initiative.bonus |
Number |
| Spell | system.roll.spell.advantage.(all|name-of-spell) |
adv: 1 dis: -1 |
| Spell | system.roll.spell.bonus.(all|name-of-spell) |
Number |
| Spell | system.roll.spell.damage.(all|name-of-spell) |
Number |
| Stats | system.roll.stat.advantage.(all|str|dex|con|int|wis|cha) |
Number |
| Stats | system.roll.stat.bonus.(all|str|dex|con|int|wis|cha) |
Number |
| Type | Property |
|---|---|
| Armor | disadvantage-stealth |
| Armor | disadvantage-swim |
| Armor | no-swim |
| Armor | occupies-one-hand |
| Armor | shield |
| Armor | sundering |
| Weapon | blowgun |
| Weapon | bolas |
| Weapon | breakable |
| Weapon | finesse |
| Weapon | lash |
| Weapon | loading |
| Weapon | returning |
| Weapon | shuriken |
| Weapon | sundering |
| Weapon | thrown |
| Weapon | two-handed |
| Weapon | versatile |
The AE Value field accepts variables that refer to attribute keys (e.g. @attributes.hp.max, @level.value) and the functions ceil() (round down), floor() (round up), min() (return the smallest of passed values), and max() (return the largest of passed values). See Examples.
Important
Make sure to drop the system prefix for variables:
✅ @attributes.hp.max
❌ @system.attributes.hp.max
- Attribute Key:
system.languages - Change Mode:
Add - Value:
Compendium.shadowdark.languages.Item.hW4BI5ySXhxQiYiV - Priority:
20(default)
Cursed item using Override.
- Attribute Key:
system.abilities.con.value - Change Mode:
Override - Value:
8 - Priority:
50(default so it's applied last)
Overrides the Finesse property's STR/DEX bonus.
- Attribute Key:
system.roll.attack.bonus.this - Change Mode:
Override - Value:
max(@abilities.int.mod, 0) - Priority:
50(default so it's applied last)
+1 to both melee and ranged damage using any weapon (to a maximum of +3) for every 10 HP lost.
- Attribute Key:
system.roll.attack.damage.all - Change Mode:
Add - Value:
min(3, max(0, floor((@attributes.hp.max - @attributes.hp.value) / 10))) - Priority:
20(default)
+3 melee damage when using bastard swords and less than 10% of HP.
- Attribute Key:
system.roll.melee.damage.bastard-sword - Change Mode:
Add - Value:
(1 - ceil(min(1, max(0, @attributes.hp.value - floor(@attributes.hp.max * 0.1))))) * 3 - Priority:
20(default)