This article covers the layout of the file; for the default contents, see des_crft_spells.2da (contents).

The des_crft_spells.2da file is the .2da file that describes the spells available for crafting with brew potion, craft wand and scribe scroll. It specifies the item property (which in turn defines the caster level) used for the resulting potions and wands — but not scrolls — and marks certain spells as being unavailable for crafting, despite otherwise meeting the criteria of the feats.

As with all "des_*" .2da's, this file has no hardcoded usage; it is only used in scripts. (Specifically, this file is referenced by x2_inc_craft, x2_inc_itemprop, x2_inc_spellhook, and x2_pc_umdcheck, with the first of these scripts being its primary use.) This may allow for greater customization possibilities than most other .2da's.

Each row in this file corresponds to the spell with the same row number in spells.2da. (There is a bug in the file where spell 627 is skipped, but since this is after all spells that can be used with the crafting feats, this bug has no effect in the game.)

Columns of des_crft_spells.2da
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. Ideally, this matches the Label column of the same row in spells.2da, to reduce confusion.
IPRP_SpellIndex An index (row number) into iprp_spells.2da.
NoPotion A value of 1 blocks the brewing of potions of this spell. Any other value permits brewing (if the feat's requirements are met).
NoWand A value of 1 blocks the crafting of wands of this spell. Any other value permits crafting (if the feat's requirements are met).
NoScroll A value of 1 blocks the scribing of scrolls of this spell. Any other value permits scribing.
Level The innate level of the spell, as used by the item crafting routines. Zeros and non-numbers are converted to a value of one.
CastOnItems A value of 1 indicates that the spell is normally allowed to be cast on items. Any other value causes the spell to abort if cast on a non-crafting item.

Column notes Edit

The "IPRP_SpellIndex" column is what determines the item property given to brewed potions and crafted wands. This is what determines the caster level of the resulting items. (If set incorrectly, the resulting items could cast a different spell than was used to create the item.)

The "Level" column — not the spell's "true" innate level — is used when determining if a spell meets the level requirements of brew potion and craft wand. It is also used when calculating the costs of all three types of crafting. Players tend to expect a match between this column and the innate level used elsewhere in the game.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.