Difference between revisions of "Ranged weapon"

From NetHackWiki
Jump to navigation Jump to search
(Monster usage: potholes and other stuff)
Line 11: Line 11:
  
 
==Monster usage==
 
==Monster usage==
 
 
The order of preference in which hostile monsters will use a ranged weapon is:<ref>{{function|weapon.c|select_rwep}}</ref>  
 
The order of preference in which hostile monsters will use a ranged weapon is:<ref>{{function|weapon.c|select_rwep}}</ref>  
 
# [[cockatrice egg]],  
 
# [[cockatrice egg]],  
# [[cream pie]] for [[Keystone Kop]]s,  
+
# [[cream pie]] for [[Keystone Kop (monster class)|Keystone Kops]],
 
# [[boulder]]s for [[giant]]s,  
 
# [[boulder]]s for [[giant]]s,  
 
# [[polearm]]s or [[lance]] if you are in range,  
 
# [[polearm]]s or [[lance]] if you are in range,  
 
# the above list, in order of priority and if a necessary launcher is available.
 
# 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. The preference of [[polearm]]s is: [[halberd]], [[bardiche]], [[spetum]], [[bill-guisarme]], [[voulge]], [[ranseur]], [[guisarme]], [[glaive]], [[lucern_hammer]], [[bec_de_corbin]], [[fauchard]], [[partisan]], [[lance]]. Of course, polearms can only be used by "strong" monsters without a [[shield]].
+
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?}}
 
{{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?}}

Revision as of 22:36, 12 November 2023

A ranged weapon is any weapon which can attack a monster not adjacent to you. Technically, any item in the game could be a ranged weapon if thrown; colloquially, any item that can damage a monster at a distance could be considered a ranged weapon; including attack wands, hurled potions and spells. However, the source code officially designates some weapons as ranged:[1]

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

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

"expand or merge"

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.