zapping a wand
Rays the terminal animates, and effects it only tells.
Builtneeds review1 change builtSeen on every levelLast touched November 29, 2026: a backlog row it names changed (N-514). Commit bfd1a5180.
In the terminal
"What do you want to zap? [f or ?*]" then, for directional wands, "In what direction?" (. or s for oneself, < and > for up and down). The effect follows: a message, monsters reacting, glyph changes, or a ray drawn across the map. No charges: "Nothing happens." ("You wrest one last charge from the worn-out wand." one time in 121); a cancelled direction: "The wand glows and fades."; a wand at -1 after zapping: "The wand turns to dust."; a cursed wand, one time in 100: "The wand suddenly explodes!". Unknown wands may be named afterwards ("Call a <oak wand>:").
"Are you really sure you want to break your wand? [yn] (n)" (paranoid_confirmation:wand-break), then "Raising your wand high above your head, you break it in two!" (snap, for glass and balsa). Empty: "But nothing else happens...". Fire, cold, lightning, death, magic missile: an explosion of fiery, frosty or magical type centered on the hero (moment.explode); striking: "A wall of force smashes down around you!"; digging: pits and holes open around ("Some holes are quickly filled with water!"); light: the area lit and the hero blinded; create monster: monsters around; cancellation, polymorph, teleportation, undead turning: their effect on everything in the 3x3. Wishing, nothing, opening, locking, probing, enlightenment, secret door detection, stasis: "But nothing else happens..."
Quotes from NetHack
%s glows and fades.
4 more quotes
%s to dust.
%s suddenly explodes!
Raising %s high above your %s, you %s it in two!
A wall of force smashes down around you!
In Codex
In enlightenment, pale rings of points close round you and breathe, then rise away.
Builtneeds reviewReaction to an event
Details
N-742 (the director, 2026-11-28, choosing it from N-739: "let's vary the animation for each of the examples as they represent different outcomes from a pathos perspective"). The feeling is quiet introspection: slow, close, still. "You feel self-knowledgeable..." (zap.c:2527 for the wand and the potion, fountain.c:288 for a fountain; "You perceive yourself...", potion.c:708, for a potion of hallucination) draws five level rings of 420 points in all round the hero, one over another as a sphere's lines of latitude, each a mix of three pale whites, warm, cool and rose (never gold, D-75). They begin wide, two squares and more out, and close slowly to about a square over 3.6 s, then hold there, breathing (a little wider and brighter and back every five seconds), going round very slowly, alternately each way, while the game's list of what the hero knows is open (the plays keep the game's clock under a page, so the rings breathe under it, dimmed with the world). At "The feeling subsides." (zap.c:2530, fountain.c:292; "Your awareness re-normalizes.", potion.c:711) its play takes over from the holding rings where they stand, and they loosen and rise away toward the walls' tops, going out over 3 s. With the list open longer than two minutes they go the same way by themselves, and the line then has nothing left to raise. Known cost: the holding play runs on, undrawn, after the line takes over (X-7401). No point shows within 0.7 of a square of the hero's column; none while the hero is blind. Not "You have an uneasy feeling..." (a cursed potion of enlightenment, potion.c:799).
- Id
codex.self_knowledge- Exact state
- Built, not reviewed
- Settings
animations.self_knowledge_strength- Code
crates/nh-moments/src/catalog/happened/enlightenment.rs,crates/nh-plays/src/motes/figures.rs,crates/nh-plays/src/motes.rs,crates/nh-knobs/src/animations/self_knowledge.rs,crates/codex-client/src/draw/motes.rs
| N-739 | Done | Other places for the points that gather into figures |
| N-742 | Built, not reviewed | Enlightenment as points (N-739): |
Applies to everything on the map (1)
- A zapped beam is a thin glowing bar on each square the game draws, lighting the walls around it.
Accepted pictures and playtests
No accepted pictures or playtests yet.
Planned and proposed
Idea Zapping a wand, sparks gather at its tip before the beam and light lingers where it struck.
In progress Rays are beads of light with soft bursts that light the room as they pass.
Left to do: The beam is gathered as light but still drawn as one bar a square, not yet as beads and bursts.
Idea Dust gathers into a door, and the hero rematerializes from a cloud.
Asked for in these words: “Danny, 2026-11-14 (D-102, N-514): "Yes, I'd like to work on the animation primitives for these purposes, as well as backlog them."”
Details for builders
Id: zap. Lexicon subjects: moment.zap, moment.break_wand.
Design notes from NetHack
The wand's appearance in its name (oak, crystal, iron); rays and the digging beam are drawn on the map, other effects are messages.
Segments | - \ / drawn square by square in the ray's color; it bounces off walls and is reflected by shields and amulets. Names: bolt, ray, blast, cone, fireball, finger.
Humorous messages per wand: 'You imitate a popsicle!' (cold), 'Idiot! You've shot yourself!' (magic missile), 'You irradiate yourself with pure energy!' (death).
'A lit field surrounds you!' and the dark squares around the hero become lit.
Walls become doors and hidden corridors and traps appear on the map at once; 'You reveal a secret door!' (3.7 counts what was found).
'You feel self-knowledgeable...', a text window of the hero's attributes, then 'The feeling subsides.'
No message; a monster glyph appears beside the hero.
See moment.wish.
No message, by design (a source comment: so it can't be told from other silent wands); later, 'A mysterious force prevents you teleporting <mon>!'
No beam is drawn; 'Boing!' with the sparkle when resisted; 'The door crashes open!', 'The boulder falls apart.', 'The statue shatters.'
'<Mon> vanishes!' and its glyph is removed; with see invisible, '<Mon> turns transparent!'
The monster 'seems to be moving slower' ('much slower' if it was fast).
The monster 'is suddenly moving faster' ('much faster').
Undead flee; a corpse on the line 'is resurrected!' and becomes the living monster's glyph ('You hear a defibrillator.' when hallucinating).
Monster glyphs change letter and color ('The jackal turns into a troll!'); '<Mon> shudders!' when it resists; destroyed objects: 'You feel shuddering vibrations.'
Mostly no message; a shapeshifter's glyph changes back to its true form.
Glyphs on the line disappear without a message (and reappear elsewhere if in view).
'Klick!' for a box; 'The door unlocks!'; a raised drawbridge lowers.
'Klunk!' for a box; 'A cloud of dust springs up and assembles itself into a door!' in an empty doorway; a lowered drawbridge rises.
A text window listing the monster's status and possessions; 'Probing reveals a secret door.'
See moment.dig.zap.
A bright blue ray; 'The missiles bounce off!' with the sparkle when the hero resists.
An orange ray; scrolls 'catch fire and burn'; resistant, 'You don't feel hot!'
A white ray; water it crosses turns to ice; potions 'freeze and shatter'.
A bright blue ray (the same color as magic missile); monsters hit stop moving.
A black ray; the monster hit dies ('You kill the jackal!'); undead and demons are unaffected.
A white ray (the same color as cold); 'You are blinded by the flash!' and Blind on the status line.
'Raising your wand high above your head, you break it in two!', then its effect on the squares around the hero (an explosion, holes, 'A wall of force').
Backlog rows
| N-739 | Done | Other places for the points that gather into figures |
| N-742 | Built, not reviewed | Enlightenment as points (N-739): |
| N-106 | Built, not reviewed | Rays as light |
| N-514 | To do | Dust that assembles |
