Skip to main content

Mage and cleric spells

Magic · Attack spells · Other spells · SpellDefinitionRuntime

In brief​

Every spell name of the game, mage and cleric, with the initial data of its definition: its level, its flags, the lasting effect it sets, its sound and whether it has a routine of its own. IDs are local to each table: mage spell 4 and cleric spell 4 are different spells. Turn undead and Lay on Hands follow rules of their own.

Reading the tables​

These tables list every non-empty spell name of the DOS executable, mage and cleric, with the initial data of its definition. How long the lasting ones last is given under lasting spells, and what each spell does on the attack and other spell pages. Appearing here does not prove that a spell can be learned or cast in normal play: the menus and the book offer spell levels 1 to 6 only; see memorizing and praying.

The values are those of the executable's initial data; runtime changes are not covered.

ColumnMeaning
GroupThe spell level: it chooses the page of the memorize menu and of the spell book, and the ten character slots the spell uses.
DefinitionIndex of the spell's SpellDefinitionRuntime entry.
FlagsInitial SpellDefinitionFlags, without the SPELL_FLAG_ prefix.
Lasting effectThe SpellEffectFlags of the definition's effect mask, without the SPELL_EFFECT_ prefix: set while the spell lasts on the character with CHARACTER_EFFECT_MASK, on the party with GLOBAL_EFFECT_MASK, on each living member with MEMBERS_EFFECT_MASK.
SoundSound effect played when the spell starts.
CallbackWhether the definition's start routine is set in the initial data. A spell with Null still works through its flags and lasting effect; only Bigby's Fist and Ressurection have neither.

Mage​

IDDisplay nameGroupDefinitionFlagsLasting effectSoundCallback
1Armor11CHARACTER_EFFECT_MASK, RECALCULATE_DEFENSE, NO_REPEAT, CHOOSE_TARGETARMOR92Present
2Burning Hands12ENDS_INVISIBILITY—87Present
3Detect Magic13GLOBAL_EFFECT_MASK, TIMED, PARTY_DISPLAYDETECT_MAGIC95Present
4Magic Missile14ENDS_INVISIBILITY—85Present
5Shield15CHARACTER_EFFECT_MASK, RECALCULATE_DEFENSE, TIMED, TARGET_DISPLAYSHIELD92Null
6Shocking Grasp16TIMED, TARGET_DISPLAY, NEEDS_FREE_HAND—88Present
7Blur27CHARACTER_EFFECT_MASK, TIMED, TARGET_DISPLAYBLUR75Null
8Detect Invisible28GLOBAL_EFFECT_MASK, TIMED, PARTY_DISPLAYDETECT_INVISIBLE95Null
9Imp Identify29TARGET_DISPLAYINVISIBILITY20Present
10Invisibility210CHARACTER_EFFECT_MASK, CHOOSE_TARGETINVISIBILITY94Null
11M's Acid Arrow211ENDS_INVISIBILITY—96Present
12Dispel Magic312VIEW_ANIMATION—97Present
13Fireball313ENDS_INVISIBILITY—99Present
14Haste314TIMED, PARTY_DISPLAY, MEMBERS_EFFECT_MASKHASTE100Null
15Hold Person315ENDS_INVISIBILITY—101Present
16Invisibility 10'316PARTY_DISPLAY, MEMBERS_EFFECT_MASKINVISIBILITY94Null
17Lightning Bolt317ENDS_INVISIBILITY—71Present
18Vampiric Touch318TIMED, TARGET_DISPLAY, NEEDS_FREE_HAND—102Present
19Fear419ENDS_INVISIBILITY—103Present
20Ice Storm420ENDS_INVISIBILITY—89Present
21Imp Invisibility421CHARACTER_EFFECT_MASK, TIMED, CHOOSE_TARGETIMPROVED_INVISIBILITY8Null
22Remove Curse422CHOOSE_TARGET—83Present
23Cone of Cold523ENDS_INVISIBILITY—118Present
24Hold Monster524ENDS_INVISIBILITY—101Present
25Wall of Force525——74Present
26Disintegrate626ENDS_INVISIBILITY, VIEW_ANIMATION—119Present
27Flesh to Stone627ENDS_INVISIBILITY—68Present
28Stone to Flesh628CHOOSE_TARGET—69Present
29True Seeing629GLOBAL_EFFECT_MASK, TIMED, PARTY_DISPLAYTRUE_SEEING73Present
30Finger of Death730——0Present
31Power Word Stun731——0Present
32Bigby's Fist832——0Null

Cleric​

IDDisplay nameGroupDefinitionFlagsLasting effectSoundCallback
1Bless134GLOBAL_EFFECT_MASK, TIMED, NO_REPEAT, PARTY_DISPLAYBLESS91Null
2Cause Light Wnds135ENDS_INVISIBILITY—107Present
3Cure Light Wnds136CHOOSE_TARGET—104Present
4Detect Magic137GLOBAL_EFFECT_MASK, TIMED, PARTY_DISPLAYDETECT_MAGIC95Present
5Protect-Evil138CHARACTER_EFFECT_MASK, TIMED, CHOOSE_TARGETPROTECTION_FROM_EVIL110Null
6Aid239CHARACTER_EFFECT_MASK, TIMED, NO_REPEAT, CHOOSE_TARGET—91Present
7Flame Blade240TIMED, NEEDS_FREE_HAND, REDRAW_TARGET—99Present
8Hold Person241ENDS_INVISIBILITY—101Present
9Slow Poison242TIMED, CHOOSE_TARGETSLOW_POISON111Present
10Create Food343PARTY_DISPLAY—112Present
11Dispel Magic344VIEW_ANIMATION—97Present
12Magical Vestment345CHARACTER_EFFECT_MASK, TIMED, NO_REPEAT, TARGET_DISPLAYMAGICAL_VESTMENT113Null
13Prayer346GLOBAL_EFFECT_MASK, TIMED, PARTY_DISPLAYPRAYER91Null
14Remove Paralysis347PARTY_DISPLAY—114Present
15Cause Serious448ENDS_INVISIBILITY—108Present
16Cure Serious449CHOOSE_TARGET—105Present
17Neutral-Poison450CHOOSE_TARGET—115Present
18Protect-Evil 10'451TIMED, PARTY_DISPLAY, MEMBERS_EFFECT_MASKPROTECTION_FROM_EVIL110Null
19Cause Critical552ENDS_INVISIBILITY—109Present
20Cure Critical553CHOOSE_TARGET—106Present
21Flame Strike554ENDS_INVISIBILITY—98Present
22Raise Dead555CHOOSE_TARGET—117Present
23Slay Living556ENDS_INVISIBILITY—72Present
24True Seeing557GLOBAL_EFFECT_MASK, TIMED, PARTY_DISPLAYTRUE_SEEING73Present
25Harm658ENDS_INVISIBILITY—70Present
26Heal659CHOOSE_TARGET—84Present
27Ressurection860——0Null
28Lay on Hands861CHOOSE_TARGET—91Present
29Turn undead062VIEW_ANIMATION—103Present

Special entries​

The cleric table includes Turn undead and Lay on Hands, which do not follow the rules of ordinary priest spells. Turn undead, the only entry in group 0, is never offered by the pray menu and uses no slot: every cleric or paladin keeps it in the first slot of level 1, and casting it does not mark that slot used. Lay on Hands is in group 8, which the pray menu never offers: resting writes it among a paladin's level-1 slots, where the book shows it, but leaving the pray menu moves it to the level-8 slots, which the book does not show; see the menu anomalies. Mage ID 32 and cleric ID 27 are empty definitions: no routine, flags, timer or effect. Casting one would only silence the sound in progress (its sound effect is 0), print the cast message and use the slot. Both are of level 8, which no tab shows, and no item of the original game casts them.1

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. The spell-name tables, the spell group bytes and the initial definition table. Read by the spell-slot routines, their builder, the table selection, the definition-name formatting and its cleric counterpart, a definition consumer, the spell cast and the start path. ↩