Attributes and classes
The party · Experience and levels · CharacterRuntime ·
CharacterClassMask
In brief
A character has six attributes, an alignment and one of 15 classes. Strength, dexterity, constitution and wisdom change what it can do: strength and dexterity its hit rolls, dexterity its defense, constitution its hit points, wisdom its cleric spell slots. Intelligence, charisma and alignment only limit the choices made at creation. Each class is made of one to three base classes, each with its own level, experience, hit die and spells.
Attributes
| Attribute | Field | What it changes |
|---|---|---|
| Strength | strength, exceptional_strength | Melee hit and damage modifiers; see a character's hit roll. Shown as 18/xx with exceptional strength. strength alone gives the chance to force a door. |
| Intelligence | intelligence | A creation minimum for mages; otherwise shown on the character sheet only. |
| Wisdom | wisdom | Bonus cleric spell slots from 13 up; see spell slots per level. |
| Dexterity | dexterity | Missile hit modifier, see a character's hit roll; and defense, below. |
| Constitution | constitution | Hit points gained with each level, below; part of some saving throws. |
| Charisma | charisma | A creation minimum for paladins; otherwise shown on the character sheet only. |
| Alignment | alignment | One of nine names, from LAWFUL GOOD to CHAOTIC EVIL; limited by class and party at creation, otherwise shown on the character sheet only. |
Besides the character sheet and character creation, no code reading intelligence, charisma or alignment has been found. The names of intelligence, wisdom and charisma are inferred from a comparative source and from the order in which the character sheet prints them.
A character's defense starts at 10 plus a dexterity modifier, before its
equipment and spells adjust it; the lower the defense, the more often
monsters miss:
| Dexterity | 1–2 | 3 | 4 | 5 | 6 | 7–14 | 15 | 16 | 17 | 18–19 | 20–22 | 23–24 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Modifier | +5 | +4 | +3 | +2 | +1 | 0 | −1 | −2 | −3 | −4 | −5 | −6 |
Each attribute byte is followed by a second one holding its normal value. When a party is set up, the game copies every attribute into its second byte; the strength and exceptional strength are copied back from theirs when giant strength ends or all magical effects are removed. Nothing else reads the second bytes, and none of them limits an attribute.1
Classes
Each of the 15 classes is made of one to three base classes, in a fixed
order. The character has a level and an experience total for each of them,
in levels and experience:2
| Class | Base classes, in order | Class | Base classes, in order |
|---|---|---|---|
| FIGHTER | fighter | FIGHTER/MAGE | fighter, mage |
| RANGER | ranger | FIGHTER/MAGE/THIEF | fighter, mage, thief |
| PALADIN | paladin | THIEF/MAGE | thief, mage |
| MAGE | mage | CLERIC/THIEF | cleric, thief |
| CLERIC | cleric | FIGHTER/CLERIC/MAGE | fighter, cleric, mage |
| THIEF | thief | RANGER/CLERIC | ranger, cleric |
| FIGHTER/CLERIC | fighter, cleric | CLERIC/MAGE | cleric, mage |
| FIGHTER/THIEF | fighter, thief |
RANGER/CLERIC has its ranger component here, although its class mask lacks the ranger bit. Each base class has its own experience table, hit die and spell table:
| Base class | Hit die | Rolled up to level | Fixed gain above | Spells |
|---|---|---|---|---|
| Fighter | d10 | 9 | 3 | — |
| Mage | d4 | 10 | 1 | Mage |
| Cleric | d8 | 9 | 2 | Cleric, wisdom bonus |
| Thief | d6 | 10 | 2 | — |
| Paladin | d10 | 9 | 3 | Cleric, from level 9 |
| Ranger | d10 | 9 | 3 | — |
Fighters, paladins and rangers — any class whose mask has one of their
bits — also keep constitution bonuses above +2. The class also selects the
hit-roll and saving-throw groups and the
items a character may use; see CharacterClassMask.
Sources
Locations refer to the game executable reference;
comparative sources are listed in the technical references.
The figures are drawn by make_party_figures.py.