Skip to main content

Potions, scrolls and wands

Items · Using items · Their values

In brief​

A potion is used up before it acts: it heals, strengthens, hastens, poisons, feeds or cures, according to its value. Scrolls, the Fire Sphere, magic dust, wands and the Amulet of Life cast a spell at caster level 9 without using a spell slot; the item is spent as soon as the spell is cast, even if the spell is then cancelled. A wand counts its charges in the low bits of its flags.

How a spell is cast from an item. The item type's class mask decides who can cast from it. The spell is cast at caster level 9, without using a spell slot, and the item is spent at once: a scroll, sphere, dust or amulet is used up, a wand loses a charge. If the target is then cancelled or the spell refused, the item is not given back. Otherwise the spell takes effect; the hand recovers as after an attack and the spell book state is restored.
The item is spent as soon as the spell is cast, even if the spell is then cancelled.

Potions​

The potion is used up before it takes effect, and "name feels …!" is printed with the word of its value:1

ValueEffectMessage
0Strength 22 for 546 × (1d4 + 4) ticks, then strength back to its normal value.much stronger
1Heals 2d4 + 2 hit points.better
2Heals 3d8 + 3 hit points.much better
3Poison, unless the character makes a saving throw; ends SPELL_EFFECT_SLOW_POISON in any case.ill for a moment, only when not poisoned afterwards
4Food back to 100.satiated
5SPELL_EFFECT_HASTE for 546 × (1d4 + 4) ticks.fast and agile
6SPELL_EFFECT_INVISIBILITY, with no timer: it lasts until something ends it.transparent
7Neutralizes poison.better

Healing does not go above the maximum hit points. The durations use the character timers, codes 7 and 12.

The values found in the original files are listed with the potions of the game; no item has value 3 or 6.

Spells cast from items​

Scrolls, the Fire Sphere, magic dust, wands and the Amulet of Life cast a spell through the ordinary casting steps, at the caster level 9 whatever the user's own levels, with three differences:2

  • no spell slot is used: the scroll, sphere, dust or amulet is used up, and a wand loses a charge;
  • the hand holding the item is marked used and recovers as after an attack, instead of the spell book's wait;
  • the spell book state of the party is restored afterwards.

The item is spent as soon as the spell is cast, before its target is chosen: cancelling the target ("Spell aborted.") or a refusal of the spell does not give it back. The item type's class mask decides who can cast from it: mage scrolls only mages, cleric scrolls only clerics, wands of one of the two wand types only mages, and the Fire Sphere, magic dust, the other wands and the amulets every class.

In the original data a scroll's value is the number of a spell definition of the mage and cleric spells. The mage scrolls, the Fire Sphere, magic dust and the cleric scrolls of the game are listed with their values.

Wands. The six low bits of a wand's flags count its charges; the wand disappears when its last charge is used. Its value selects the spell, from the table of wands. Value 0 casts nothing and prints "The wand has no apparent magical effect"; value 5 casts Mystic defense and uses no charge.

Mystic defense is a spell definition with no entry in the spell books: it sets a party effect for 546 ticks, which weakens the next hit of one kind of monster spell and is cleared by it; see monster spells. Because the charge counter uses the six low flag bits, a wand's ITEM_RUNTIME_DRAINS_HIT_POINTS, ITEM_RUNTIME_VANISHES_AFTER_HIT and ITEM_RUNTIME_CURSED bits are part of its charges; the wands of the original data have at most seven.

Anomaly

When a spell cast from an item is stopped by its own routine — "The spell fails!" of Shocking Grasp or Flame Blade when no conjured weapon is free, or an unidentified spell — the game skips the step that ends an item cast, which its other refusals reach. The item is already spent, the hand is not marked used, and the saved caster and book are not restored, while the spell's lasting timer, started before its routine, keeps running. The next spell cast from the book is then treated as the end of that item cast: it uses neither its slot nor an item, and it takes the caster level of an item cast, 9. When it has been cast, the item's hand is marked used and the caster and book saved before the item cast come back. When the stray timer ends, a conjured weapon held at that moment disappears (inferred). A faithful reimplementation keeps this state.

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Drink a potion and the potion messages. ↩

  2. Cast a spell from an item, use a wand, the wand spell table, choose a spell's target and the initial definition table. ↩