Arrow and dart trap

From NetHackWiki
Revision as of 06:53, 16 August 2022 by Aximili (talk | contribs) (bring in info from trap and elsewhere on the wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
^ arrow trap Arrow trap.png
Generates Anywhere
Effect Fires arrows
^ dart trap Dart trap.png
Generates Anywhere
Effect Fires darts

The arrow trap and dart trap are two similar traps that can fire projectiles.

Generation

Both traps can be generated on almost any level.

On the Ranger quest, there are 2 guaranteed arrow traps on the home level and 2 more guaranteed on the locate level.

Dart traps are guaranteed on the following special levels:

Effects

Arrow traps fire arrows at you or whoever else steps on them, which generally do 1d6 damage.

Dart traps fire darts that generally deal 1d3 damage, and have a 1 in 5 chance of being poisoned. The poison can potentially cause an instadeath to characters without poison resistance.

Each time you or a monster triggers one of these traps, there is a 115 chance that it will disappear. Any projectile that hits you or a monster is guaranteed to be lost.

Removal

Use the #untrap command, or trigger it repeatedly until it runs out of projectiles.

While standing on or adjacent to the square with the trap, successfully untrapping an arrow or dart trap will yield a large supply of projectiles (50 − rnl(50)).[1] The average number of projectiles you obtain by disarming is dependent on luck, but is higher than the average number you obtain by stepping on the trap until it disappears. [2] [3]

Strategy

These traps can be a useful source of projectiles. However there is a risk of being hit by a projectile and suffering damage. Dart traps in particular are dangerous to adventurers lacking poison resistance.

History

Both arrow and dart traps were introduced in Hack 1.0.

Messages

<An arrow/A little dart> shoots out at you!
You triggered an arrow or dart trap.
<monster> is hit by an <arrow/dart>!
A monster triggered an arrow or dart trap.
You hear a loud click!
The arrow trap was out of arrows and is now gone.
You hear a soft click.
The dart trap was out of darts and is now gone.

References

  1. disarm_shooting_trap in trap.c
  2. trap.c, line 636 (Arrow trap on you) and trap.c, line 1825 (On monsters)
  3. trap.c, line 663 (Dart trap on you) and trap.c, line 1742 (On monsters)