Skip to main content

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.

Two modifiers by attribute score, from 1 to 24. Dexterity changes the starting defense: +5 at 1, +1 at 6, 0 from 7 to 14, −1 at 15, −4 at 18, −5 at 20, −6 at 23; a lower defense makes monsters miss more often. Constitution changes the hit points gained with each level: −3 at 1, −1 at 4, 0 from 7 to 14, +1 at 15, +4 at 18, +6 at 20, +7 at 23; above +2 only for fighters, paladins and rangers.
Dexterity lowers the defense, constitution adds hit points; both matter only at the ends of the scale.

Attributes​

AttributeFieldWhat it changes
Strengthstrength, exceptional_strengthMelee 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.
IntelligenceintelligenceA creation minimum for mages; otherwise shown on the character sheet only.
WisdomwisdomBonus cleric spell slots from 13 up; see spell slots per level.
DexteritydexterityMissile hit modifier, see a character's hit roll; and defense, below.
ConstitutionconstitutionHit points gained with each level, below; part of some saving throws.
CharismacharismaA creation minimum for paladins; otherwise shown on the character sheet only.
AlignmentalignmentOne 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:

Dexterity1–234567–1415161718–1920–2223–24
Modifier+5+4+3+2+10−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

ClassBase classes, in orderClassBase classes, in order
FIGHTERfighterFIGHTER/MAGEfighter, mage
RANGERrangerFIGHTER/MAGE/THIEFfighter, mage, thief
PALADINpaladinTHIEF/MAGEthief, mage
MAGEmageCLERIC/THIEFcleric, thief
CLERICclericFIGHTER/CLERIC/MAGEfighter, cleric, mage
THIEFthiefRANGER/CLERICranger, cleric
FIGHTER/CLERICfighter, clericCLERIC/MAGEcleric, mage
FIGHTER/THIEFfighter, 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 classHit dieRolled up to levelFixed gain aboveSpells
Fighterd1093—
Maged4101Mage
Clericd892Cleric, wisdom bonus
Thiefd6102—
Paladind1093Cleric, from level 9
Rangerd1093—

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.

Footnotes​

  1. Character sheet with the strength text and the alignment names; copy to the second bytes, the removal of all effects and the character timer handler; the defense recomputation with the dexterity modifier; the wisdom read in the memorize and pray menus. Comparative source: REF-SCUMM-014, the field names of the character record. ↩

  2. Class components, the number of classes and the hit-die tables; the constitution modifier. Comparative source: REF-SCUMM-014, getCharacterClassType and getClassAndConstHitpointsModifier. ↩