Skip to main content

The creation screen

The party · Creating a party · Entering the game · Text fields

In brief​

Once its attributes are rolled, a character can be modified within limits, given a portrait and a name. The modify screen changes the six attributes and the hit points one at a time; hit points stay between limits computed from the class, the levels and the constitution. Portraits are offered four at a time, never one already taken, from two ranges for male and female characters. PLAY starts the game once the four boxes hold a named character.

Modifying a character​

The modify screen changes the six attributes and the hit points one at a time, within the same limits as the roll.1 Raising strength above 18 adds to the percentage, which stays 0 for characters limited to 18 and is at most 100. Hit points are limited by:

for each class c, with r = min(level[c], rolled_up_to_level(c)):
high += r * hit_die(c) + (level[c] - r) * fixed_gain(c) + level[c] * con_mod
low += r + (level[c] - r) * fixed_gain(c) + (con_mod > 0 ? level[c] * con_mod : 0)
maximum = high / number_of_classes # integer division
minimum = low / number_of_classes

con_mod is the constitution modifier, capped at +2 except for fighters, paladins and rangers. Changing constitution recomputes both limits and moves the hit points inside them; changing dexterity recomputes the defense.

Rolled hit points are not checked against these limits. Because the roll divides each level's gain by the number of classes, while the limits divide the total, a multi-class character can roll fewer hit points than the minimum; for example, a FIGHTER/MAGE with a constitution modifier of +2 who rolls only ones has 11, against a minimum of 16. They stay that way unless the hit points or the constitution are modified.

Portraits, names and controls​

On the party screen a box is chosen with the mouse or with F1 to F4, and the arrow keys move between the boxes. While a character is being created, its box shows a looping animation of ten frames, at most one new frame every three ticks.2

Portrait. The portrait menu opens with the stats screen, and FACES opens it again. It shows four portraits at a time, never one already chosen by a named character: portraits 0 to 28 for a male character, 26 to 43 for a female one, so three are offered to both. The arrow buttons scroll by one portrait and a click on a portrait takes it. In keyboard control the left and right keys first move a highlight frame among the four and scroll only from the ends. Return or keypad 5 takes the highlighted position, the second portrait when the menu opens; outside keyboard control they do the same, with no frame to show it.

Name. The name, up to ten characters, is printed centred under the box; see ANOMALY-125 for a name ended with Escape. Deleting a character clears it.

Side panel. The panel on the right shows the selected character: its portrait, name, race and sex, class, the six attributes (strength with its percentage, as in 18/50), the defense (AC), the maximum hit points (HP) and the levels, as one to three numbers for a combined class.

PLAY. Once the four boxes have a name, a message invites the player to select PLAY or press P; before that, PLAY does nothing.

Anomaly

ANOMALY-96 — When a name is entered, the box is redrawn by a routine whose argument selects the portrait (48 or less) or an empty-box picture (above 48). The name step passes the hit-point minimum of the creation limits instead of a box value. That minimum is 0 unless the character was modified and never more than 42 for a new character (inferred from the tables), so the portrait is always drawn. A reimplementation may simply redraw the portrait.2

Sources​

Locations refer to the game executable reference; comparative sources are listed in the technical references.

Footnotes​

  1. Modify a character and the hit-point limits. Comparative source: REF-SCUMM-017, modifyStat, getMaxHp, getMinHp and getModifiedHpLimits. ↩

  2. Party creation screen, animate the active box, choose a portrait, next free portrait, draw a name under its box, show a character in the side panel, PLAY when the party is complete and redraw a box, which proves ANOMALY-96, with the creation limits and the mouse state. The key names come from the key numbers of the keyboard handler. Comparative source: REF-SCUMM-017, faceSelectMenu, getNextFreeFaceShape, printStats and updateMagicShapes. ↩ ↩2