Interested in following along with development of any of my modules? Join the Discord server.
This module aims to allow users to attach spells to items in such a way that when the parent item is added to an actor, the spells attached come with, pre-configured with consumption overrides and other small QOL changes.
It also adds a new display of spell-attached items to the Spellbook.
This module does not replace or augment any core item workflow logic, only allows a way to signify that some Items also add spells to actors when added to an actor.
Recommended Use Cases:
- Magic Items which have Spells attached to them.
- Features which specifically add spells that have their own limited uses, not meant to be used with spell slots.
Not Recommended for:
- Class Spell Lists
- Subclass Specific Spells (e.g. "Always Prepared" spells)
The scope of this module is intentionally limited and will not fully replace the edge-cases that Magic Items attempts to accommodate.
Only works for Unowned Items, and only for non-spells.
A new Tab is added to the Item Sheet: "Spells"
This tab allows spells to be Dragged and Dropped into the Spell List from either the Items Tab or any loaded Compendium.
Once the Spell is added to the Item, clicking on the "Edit" button will open the spell override configuration.
The override configuration allows an Item's spells to be configured in the two primary ways that RAW dnd5e makes Spells possible to use on Items:
Configure the "Limited Uses" override as you would normally for an item.
E.g. 1
of 1
per Day
.
This module does not add the ability to define a spell as castable as either 1/day or with spell slots, useful for some newer feats as example.
Configure the "Charges" input to input how many parent item charges this spell uses when cast.
This module does not add the ability to prompt the user how many charges to use when casting a spell, useful for the Wand of Fireballs as example.
If an Item's spell has a specified DC calculation rules, change the "vs DC" input accordingly. Be sure to change the Spellcasting
dropdown to Flat
if the DC is a flat DC.
E.g. vs DC. 15
Flat
for Wand of Web casting "Web"
When an Item with spells attached is added to an Actor, the spells attached to the item are also added. Any overrides configured are applied at this moment as well.
Unless the Item requires Attunement, a new section will appear in the Actor's "Spellbook" tab which contains that Item's spells. Multiple sections will appear if multiple items with spells are on a given actor.
The spells listed can be used like normal. The Core System's consumption behavior takes over at this point. Editing a spell that is already on an actor can be done by editing the spell from the Spellbook Tab.
items-with-spells-demo.mp4
When programatically deleting items that have spells attached, it is possible to skip the prompt for the user by providing the following object in the DocumentModificationContext option of the delete
method.
someItem.delete({
itemsWithSpells5e: {alsoDeleteChildSpells: true} // or false
})
The logic within this module will respect the boolean provided, deleting the child item spells itself if true
, or leaving them alone if false
.