Difference between revisions of "Arrow and dart trap"

From NetHackWiki
Jump to navigation Jump to search
(bring in info from trap and elsewhere on the wiki)
 
m (Update references, include version template)
Line 32: Line 32:
 
Dart traps fire [[dart]]s that generally deal 1d3 damage, and have a 1 in 5 chance of being [[poison]]ed. The poison can potentially cause an [[instadeath]] to characters without [[poison resistance]].
 
Dart traps fire [[dart]]s that generally deal 1d3 damage, and have a 1 in 5 chance of being [[poison]]ed. 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 {{frac|15}} chance that it will disappear. Any projectile that hits you or a monster is guaranteed to be lost.
+
Each time you or a monster triggers one of these traps, there is a {{frac|15}} chance that it will disappear. Any projectile that hits you or a monster is guaranteed to be lost. {{refsrc|src/trap.c|961|version=NetHack 3.6.6|comment=Effect of arrow trap on player}} {{refsrc|src/trap.c|986|version=NetHack 3.6.6|comment=Effect of dart trap on player}} {{refsrc|src/trap.c|2212|version=NetHack 3.6.6|comment=Effect of arrow trap on monster}} {{refsrc|src/trap.c|2228|version=NetHack 3.6.6|comment=Effect of dart trap on monster}}
  
 
==Removal==
 
==Removal==
Line 38: Line 38:
 
Use the [[untrap|#untrap]] command, or trigger it repeatedly until it runs out of projectiles.
 
Use the [[untrap|#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&nbsp;&minus; [[rnl]](50)).<ref>{{function|trap.c|disarm_shooting_trap}}</ref>  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. <ref>{{sourcecode|trap.c|636}} (Arrow trap on you) and {{sourcecode|trap.c|1825}} (On monsters)</ref> <ref>{{sourcecode|trap.c|663}} (Dart trap on you) and {{sourcecode|trap.c|1742}} (On monsters)</ref>
+
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&nbsp;&minus; [[rnl]](50)){{refsrc|src/trap.c|4252|version=NetHack 3.6.6|comment=Disarming a shooting trap}}. 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.
  
 
==Strategy==
 
==Strategy==
Line 56: Line 56:
 
{{message|You hear a soft click.|The dart trap was out of darts and is now gone.}}
 
{{message|You hear a soft click.|The dart trap was out of darts and is now gone.}}
  
 +
{{message|<monster> triggers a trap but nothing happens.|The trap was out of projectiles and is now gone.}}
 
==References==
 
==References==
  
 
[[Category:Traps]]
 
[[Category:Traps]]
 +
{{nethack-366}}

Revision as of 07:16, 16 August 2022

^ 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. [1] [2] [3] [4]

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))[5]. 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.

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.
<monster> triggers a trap but nothing happens.
The trap was out of projectiles and is now gone.

References

  1. src/trap.c in NetHack 3.6.6, line 961: Effect of arrow trap on player
  2. src/trap.c in NetHack 3.6.6, line 986: Effect of dart trap on player
  3. src/trap.c in NetHack 3.6.6, line 2212: Effect of arrow trap on monster
  4. src/trap.c in NetHack 3.6.6, line 2228: Effect of dart trap on monster
  5. src/trap.c in NetHack 3.6.6, line 4252: Disarming a shooting trap