held, trapped, underwater, engulfed

Where the hero's body is. In a pit, a web, a monster, the water, on ice, riding.

The terminal shows this in words, not as a letter.
Terminal
No picture of this is on the site yet.
Codex

Builtneeds review2 changes builtSeen on some levelsLast touched November 29, 2026: a backlog row it names changed (N-112). Commit bd1a116e4.

In the terminal

The map is cleared except the hero's eight neighbours that are water, lava or ice; everything else shows as unexplored, and farlook calls it 'land' (adjacent) or 'unknown'. Monsters are seen only there. On the Plane of Water this does not apply. Status 'Submrg' is opt-in, so by default only the map tells.

The screen is cleared; the hero is drawn with the eight swallow cells around ('/', '-', '\', '|', '|', '\', '-', '/') in the engulfer's own color (gray fog, magenta purple worm, bright green Juiblex...), a patchwork of random colors while hallucinating; nothing else of the level is shown until expelled. Farlook on a neighbouring cell: 'interior of the fog cloud'. The tty status line shows nothing by default (it would say 'Held' with cond_held). Each engulfer's inside is described in messages.

No change to the map. Status 'Held' is opt-in (it also stands for being engulfed). Moving away fails: 'You cannot escape from the giant mimic!'

No change to the map. Status 'Grab' (shown by default, new in 3.7). 'The giant eel swings itself around you!' then, from water, 'The giant eel drowns you...'.

Status 'UHold' (opt-in).

The trap is drawn under the hero once known (moment.trap). Status 'Trap' is opt-in. Farlook on self adds the predicament.

Status 'InLava' (shown by default, new in 3.7).

Status 'Teth' (opt-in).

Status 'Icy' is opt-in; the ice is drawn under the hero.

Status 'Slip' is opt-in.

The ball ('0' cyan) and the chain ('_' cyan) are objects on the map beside and under the hero, dragged along. No status word; farlook on self adds ', chained to a heavy iron ball'.

The steed is drawn at the hero's square in place of the hero. Status 'Ride'.

Quotes from NetHack

Similar to swallowed() in operation. Shows hero when underwater except when in water level.
src/display.c:1391
16 more quotes
You sink like %s.
src/trap.c:5083, "a rock", or hallucinating "the Titanic"
Your keel hits the bottom.
src/trap.c:5112, hallucinating; otherwise "You touch bottom."
The hero is swallowed. Show a special graphics sequence for this.
src/display.c:1326
Display the hero surrounded by the monster's stomach.
src/display.c:1355
engulfed/swallowed isn't currently a tracked status condition; "held" might look odd for it but seems better than blank
src/botl.c:1175
You get expelled from %s%s!
src/mhitu.c:295
Brrooaa... You land hard at some distance.
src/mhitu.c:304
held == hero is held by something else and can't move away
src/botl.c:1186
grab == hero is held by sea monster and about to be drowned;
src/botl.c:1185
%s %s itself around you!
src/uhitm.c:3384, "swings" (or "coils")
%s drowns you...
src/uhitm.c:3396
%s bear trap closes on your %s!
src/trap.c:1513
Eating %s food made your %s %s slippery.
src/eat.c:1642
You are being punished for your misbehavior!
src/read.c:3030
, chained to %s
src/pager.c:128
represents a ridden monster
include/display.h:1000

In Codex

In a pit the hero's letter sinks 40% into a hollow, then crawls out to its edge. The pit stays.

Builtneeds reviewReaction to an event

Details

N-91, kept (the director, 2026-10-31: "The pit should be 40% depth."; animations 7 and 27). On the game's words for going down into a pit, the hero's letter drops into the floor by pit_depth (0.4) of its height with gravity in pit_fall_seconds, sinking a little past the bottom and settling back, once its step onto the square has arrived. The square's floor opens into a soft hollow cut into the same stones (nh-scene's Form::Pit, mesh::pit: rough rim from noise fixed to the place, darker toward the bottom (how dark a value on its own material, assets/shaders/pit.wesl, so the view moving it builds no mesh again: X-116), no line around it, meeting the next squares' floors exactly); the world swaps it for the square's floor. The letter stays down while the game keeps the hero there; each "You are still in a pit." tugs it up by pit_tug of the drop and it slips back. On "You crawl to the edge of the pit." it rises over pit_climb_seconds, leaning forward (pit_climb_lean_degrees), onto the pit's edge pit_climb_to_edge squares the way the hero faces, and steps off from there. The pit stays, as it does in NetHack: the hollow remains while the map shows a trap there, and the game's own ^, drawn once the hero steps off, stands down in it; it goes when the game draws something else there (a boulder filled it). Leaving the level puts it away, and coming back shows it again (N-206): the pits the hero fell into are filed in the one memory under the level's key (nh-state's Remembered, filed by nh-moments' remember, X-64), so a level returned to shows the hollow under the game's own ^ where the hero fell, and a late watcher's catch-up files them too (N-196). A teleport, a new level or another square brings the letter up at once. The behind camera dips pit_behind_dip of the drop; the first-person eye drops pit_eye_drop of the way to the rim (the core itself limits sight to the adjacent squares from a pit). From the high views the pit is small, so its bottom is darker there (pit_hollow_darkness_from_above, D-63). Seen from there the hero's letter also leans back and grows as every standing letter does (codex.letters_from_above), in one rotation with the climb's lean and a gesture's tilt, and still drops by pit_depth of its plain height, so a grown letter sinks no deeper than the hollow; the behind camera's dip adds to its ride to one side (codex.clear_line_ahead). A spiked pit's damage still flashes and shakes, but its knock-back gives way to the fall. Force and weight, so no light. It draws only what the messages said, a pit the hero was in, never a trap the map has not shown.

Id
codex.pit_sink
Exact state
Built, not reviewed
Playtests
gallery-pit
Settings
animations.pit_depth, animations.pit_fall_seconds, animations.pit_hollow_darkness, animations.pit_hollow_darkness_from_above, animations.pit_tug, animations.pit_climb_seconds, animations.pit_climb_lean_degrees, animations.pit_climb_to_edge, camera.pit_eye_drop, camera.pit_behind_dip, characters.monster_size, dungeon.floor_stones
Code
crates/nh-moments/src/catalog.rs, crates/nh-moments/src/pits.rs, crates/nh-moments/src/remember.rs, crates/nh-state/src/remembered.rs, crates/nh-scene/src/mesh/pit.rs, crates/nh-scene/src/model.rs, crates/nh-plays/src/hero/gesture.rs, crates/codex-client/src/pov.rs, crates/codex-client/src/draw/letters.rs, crates/codex-client/src/draw/pit.rs, assets/shaders/pit.wesl
N-91DoneFalling into a pit, and crawling out
N-206To doPits, what the keep left
X-64Built, not reviewedOne memory

When the game redraws the same level, the world stays as it is and the camera does not cut.

Builtneeds reviewTransition

Details

The core clears the map for a new level and also for redraws of the same one: ^R, gold, food, object and one-shot monster detection and their browse, trap detection, a trap found under an object (or any while hallucinating), #terrain, being engulfed and expelled, under water, buried. nh-state decides which it is at the core's next request (N-96): a new level when the status line's level text changed, or the walls drawn contradict the walls shown before, or the hero was moved more than one square onto a map that is not this level's (he was drawn before the clear, the map before it was not the inside of an engulfer and showed the level's walls, and the map now shows fewer than half of them: how wizard mode's #wizloaddes shows); otherwise a redraw (Moment::Redrawn), including a teleport out of an engulfer or inside one. A redraw rebuilds nothing and never cuts the camera: only the squares that changed are drawn again, tracks and gestures go on, and the terrain last shown under the hero and monsters on this level stays there (the core sends this port none), even across clears in a row (a detection's browse, then the redraw; engulfed, then expelled), so ^R on a staircase keeps the flight under the hero and a pet on an altar keeps the altar. What the map shows meanwhile is what the terminal shows: during a detection's browse only what was detected, then the level again.

Id
codex.same_level_redraw
Exact state
Built, not reviewed
Playtests
journey-game
Code
crates/nh-state/src/lib.rs, crates/nh-state/src/level.rs, crates/nh-moments/src/lib.rs, crates/codex-client/src/draw/world.rs
N-96DoneTruthful readings
Applies to everything on the map (2)
  • Engulfed, the hero stands inside eight stone columns tinted the engulfer's color.
  • The window port passes what the game chose for each glyph as the tty would show it, and no more.

Accepted pictures and playtests

Playtests: gallery-pit, journey-game

Planned and proposed

Idea Riding, the hero's letter sits on top of the steed's letter and the two move as one.

In progress Caught in a trap or held, the hero's letter strains against what holds it.

Left to do: Bear traps, webs and being held by a monster still show nothing.

Planned Swallowed, the walls of the creature close in, glow red and breathe in and out.

In progress A pit is remembered on return, and every failed climb tugs, not only the first.

Left to do: Every failed climb tugging, a flying hero digging down, a broken wand of digging, the floor dot over the hollow, a filled pit.

In progress Blind, hallucinating, swallowed, underwater or floating, the whole screen shows it.

Left to do: Hallucinating, underwater, levitating and the deadly countdowns are still to build.

In progress A condition or a place changes the squares, the light, the plays and the camera together.

Left to do: Blindness over the whole place judged with frames, the scene's spell lights, and a second condition or a place's own look.

Idea Sparks or frost fly where the game says they do.

Asked for in these words: “Danny, 2026-11-14 (D-102, N-516): "Yes, I'd like to work on the animation primitives for these purposes, as well as backlog them."”

Details for builders

Id: stuck. Lexicon subjects: condition.underwater, condition.engulfed, condition.held, condition.grabbed, condition.holding, condition.trapped, condition.in_lava, condition.tethered, condition.on_ice, condition.slippery, condition.punished, condition.riding.

Design notes from NetHack

Only the hero's eight neighbours that are water, lava or ice are drawn; the rest of the map shows as unexplored.

A cleared screen and the eight swallow cells around the hero ('/', '-', '\', '|') in the engulfer's color.

Backlog rows

N-91DoneFalling into a pit, and crawling out
N-206To doPits, what the keep left
X-64Built, not reviewedOne memory
N-96DoneTruthful readings
N-112To doEngulfed
P-4To doWhole-screen conditions:
X-63Built, not reviewedChanges to the whole drawing
X-340Built, not reviewedA place's lanes and the picture's, out of the trip
N-516To doSparks and frost