Difference between revisions of "Ranged weapon"

From NetHackWiki
Jump to navigation Jump to search
(Link to top of projectile instead of the thrown objects section, since their are ranged weapons that are not designed to be thrown (rather to be shot, e.g. arrows).)
(formatting)
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
A '''ranged weapon''' is any [[weapon]] which can attack a monster not adjacent to you. Technically, [[Projectile|any item]] in the game could be a ranged weapon, if thrown. However, the [[source code]] officially designates some weapons as ranged<ref>[[weapon.c#line341]]</ref>:
+
{{languages}}
 +
In ''[[NetHack]]'', a '''ranged weapon''' is any type of [[weapon]] that can be used to attack a monster not adjacent to the [[player]] character. While technically any item in the game can be considered a ranged weapon if it can be thrown or otherwise used in such a manner, only certain weapons are actually designated for use as [[projectile]]s in this manner by the [[source code]]:{{refsrc|weapon.c|341}}
  
* [[dwarvish spear]]
+
*all [[spear]]s (dwarvish spear, silver spear, elven spear, spear, orcish spear) including [[javelin]]s
* [[silver spear]]
+
*[[shuriken]]
* [[elven spear]]
+
*all types of [[arrow]]s ([[ya]], [[silver arrow]], [[elven arrow]], [[arrow]], [[orcish arrow]]) and [[crossbow bolt]]s
* [[spear]]
+
*all [[dagger]]s (silver dagger, elven dagger, dagger, orcish dagger) and the [[knife]]
* [[orcish spear]]
+
*all stones ([[flint stone]], [[rock]], [[loadstone]], [[luckstone]])
* [[javelin]]
+
*[[dart]]
* [[shuriken]]
+
*[[boomerang]]
* [[ya]]
+
*[[cream pie]]
* [[silver arrow]]
+
{{todo|expand or merge}}
* [[elven arrow]]
 
* [[arrow]]
 
* [[orcish arrow]]
 
* [[crossbow bolt]]
 
* [[silver dagger]]
 
* [[elven dagger]]
 
* [[dagger]]
 
* [[orcish dagger]]
 
* [[knife]]
 
* [[flint stone]]
 
* [[rock]]
 
* [[loadstone]]
 
* [[luckstone]]
 
* [[dart]]
 
* [[boomerang]]
 
* [[cream pie]]
 
  
This is the order in which monsters will try to use a ranged weapon, unless a [[polearm]] is available, in which case it will try to apply that first.
+
==Monster usage==
 +
The order of preference in which hostile monsters will use a ranged weapon is:<ref>{{function|weapon.c|select_rwep}}</ref>
 +
# [[cockatrice egg]],
 +
# [[cream pie]] for [[Keystone Kop (monster class)|Keystone Kops]],
 +
# [[boulder]]s for [[giant]]s,  
 +
# [[polearm]]s or [[lance]] if you are in range,
 +
# the above list, in order of priority and if a necessary launcher is available.
  
Colloquially, any [[item]] which can be used to damage a monster at a distance could be considered a ranged weapon. This includes items like [[attack wand]]s, hurled potions and [[spell]]s.
+
Gems are inserted into said above list between luckstone and darts. Polearms can only be used by "strong" monsters without a [[shield]] - the preference of [[polearm]]s is: [[halberd]], [[bardiche]], [[spetum]], [[bill-guisarme]], [[voulge]], [[ranseur]], [[guisarme]], [[glaive]], [[lucern_hammer]], [[bec_de_corbin]], [[fauchard]], [[partisan]], [[lance]].
 +
 
 +
{{todo|1)Does a monster need a weapon attack to be able to use ranged weapons? 2) Track the calls to select_rwep - can confused/conflicted/scared/fleeing/healthy pets/hostiles/priests/shopkeepers/covetous monsters use ranged stuff?}}
 +
 
 +
==See Also==
 +
* [[projectile]]
 +
* [[Pet#Weapons]] lists the order of preference of melee weapons
  
 
==References==
 
==References==
 
 
<references/>
 
<references/>
 
+
{{nethack-343}}
 
[[Category:Weapons]]
 
[[Category:Weapons]]

Latest revision as of 06:25, 11 March 2024

In NetHack, a ranged weapon is any type of weapon that can be used to attack a monster not adjacent to the player character. While technically any item in the game can be considered a ranged weapon if it can be thrown or otherwise used in such a manner, only certain weapons are actually designated for use as projectiles in this manner by the source code:[1]

A user has suggested improving this page or section as follows:

"expand or merge"

Monster usage

The order of preference in which hostile monsters will use a ranged weapon is:[2]

  1. cockatrice egg,
  2. cream pie for Keystone Kops,
  3. boulders for giants,
  4. polearms or lance if you are in range,
  5. the above list, in order of priority and if a necessary launcher is available.

Gems are inserted into said above list between luckstone and darts. Polearms can only be used by "strong" monsters without a shield - the preference of polearms is: halberd, bardiche, spetum, bill-guisarme, voulge, ranseur, guisarme, glaive, lucern_hammer, bec_de_corbin, fauchard, partisan, lance.

A user has suggested improving this page or section as follows:

"1)Does a monster need a weapon attack to be able to use ranged weapons? 2) Track the calls to select_rwep - can confused/conflicted/scared/fleeing/healthy pets/hostiles/priests/shopkeepers/covetous monsters use ranged stuff?"

See Also

References

This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.