- This article covers the layout of the file; for the default contents, see iprp_spells.2da (contents).
The iprp_spells.2da
file is the .2da file that defines the spell-casting item properties. Thus, this file defines which spells can be cast from items, and the caster levels available for each of these spells.
This file is used (only) when referred to by the "SubTypeResRef" column of itempropdef.2da
, and it should be referred to by (only) row 15 of that file.
Name | Description |
---|---|
ID (no actual name) | Row numbers for the benefit of human readers. The game engine ignores the value in this field, instead generating sequential row numbers as the file is read. It is good practice to keep the entries in this field sequentially numbered to avoid confusion. |
Label | The name of the spell, for the reference of the human reader. |
Name | A StringRef for the name of the item property. (The name of the item property is usually the spell name followed by the caster level in parentheses.) |
CasterLvl | The caster level that will be used when this item property is used to cast a spell. |
InnateLvl | The innate level of the spell. This should match the innate level defined in spells.2da .
|
Cost | A number giving a value to this property; it affects how much the cost of an item increases when given this property. |
SpellIndex | An index into spells.2da defining which spell is cast when this item property is used.
|
PotionUse | Indicates whether or not this property can be selected for potions created in the Toolset. 0 = not valid for potions; 1 = valid for potions |
WandUse | Indicates whether or not this property can be selected for wands created in the Toolset. 0 = not valid for wands; 1 = valid for wands |
GeneralUse | Indicates whether or not this property can be selected for items created in the Toolset other than potions and wands. 0 = not valid for other items; 1 = valid for other items |
Icon | The ResRef of the icon to be used for scrolls that have this item property (replacing the blank scroll icon). |