The cls_spgn_*.2da
files are the .2da files that define how many spell slots a class has at each level. (The "gn" is short for "gained", but it is the total number of slots that is defined, not the difference from the previous level.)
These files are used only when referred to by the "SpellGainTable" column of classes.2da
.
These files are where the pale master bonus applies. When looking up the spell slots for an arcane caster, half the caster's pale master levels (rounded up) are added to the arcane class' level when determining which row to look at.
These .2da's have 60 rows (numbered 0 to 59) to accommodate non-player characters (who may exceed the player character limit of 40 levels). These .2da's additionally have a blank row between the headers and row 0.
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. |
Level | The class level to which this row applies. It is the row number plus one, so this column is possibly ignored by the game. |
NumSpellLevels | The number of spell levels for which this class is allowed spell slots at the applicable class level. This counts level 0 spells, even if the class in question cannot cast cantrips. Thus, this will be one more than the highest spell level for this class level. It can be zero if the class does not yet have the ability to cast spells. |
SpellLevel0 | The number of slots of the indicated spell level. As usual for .2da files, these should be "****" if the column does not apply (if the class does not have slots of this spell level at this class level). These can be "0" to indicate that while there are no spell slots based on class level, bonus spells are possible.
Classes with fewer than 9 spell levels may omit the excess columns. |
SpellLevel1 | |
SpellLevel2 | |
SpellLevel3 | |
SpellLevel4 | |
SpellLevel5 | |
SpellLevel6 | |
SpellLevel7 | |
SpellLevel8 | |
SpellLevel9 |
The files of this type that are provided in the standard game are named for the (spellcasting) class to which they are associated. Specifically, the standard files of this type are
cls_spgn_bard.2da
,cls_spgn_cler.2da
,cls_spgn_dru.2da
,cls_spgn_pal.2da
,cls_spgn_rang.2da
,cls_spgn_sorc.2da
, andcls_spgn_wiz.2da
.