Difference between revisions of "Flying"

From NetHackWiki
Jump to navigation Jump to search
(Some corrections: You can reach items in pits, not all E can fly, and xans can hit flying players. Also noted interaction with phasing.)
Line 1: Line 1:
'''Flying''' is an intrinsic [[property]] much like [[levitation]]. However, while flying, unlike while levitating, you maintain control over your vertical movement, so you can pick up items on the floor, go down stairs, use ranged weapons without hurtling in the opposite direction, and so on. Broadly speaking, flying gives almost all of the benefits of levitation with none of the downsides.
+
'''Flying''' is an intrinsic [[property]] which allows a creature to avoid contact with the ground. Unlike [[levitation]], flight allows control over vertical movement, so while flying you can pick up items on the floor, go down stairs, use ranged weapons without hurtling in the opposite direction, and so on. Broadly speaking, flight gives almost all of the benefits of levitation with none of the downsides.
  
There is one big downside, however: the only ways to gain flying in vanilla NetHack are by [[polyself|polymorphing]] into a flying monster or [[riding]] a flying monster. Thus, in most games, flying will never be gained and levitation will be used instead for the short periods of time necessary to cross water or lava and avoid traps.
+
The only ways to fly in vanilla ''NetHack'' are by [[polyself|polymorphing]] into or [[riding]] on a flying monster. Thus, in most games, flight is never achieved, and levitation is used instead for the short periods of time necessary to cross water or lava and avoid traps.
  
==Properties==
+
In the [[source code]], a monster is defined as flying if it has the '''M1_FLY''' flag.{{refsrc|monflag.h|74}} Even though {{monclasssym|e}} [[eye or sphere|eyes and spheres]] possess the M1_FLY flag, they levitate rather than fly.
 +
 
 +
==Effects==
  
 
The effects of flying are:
 
The effects of flying are:
  
* You can pass over pits, holes, trap doors, squeaky boards, bear traps, water or lava safely. (Pits and holes in [[Sokoban]] will still trap you.)
+
* You can pass over [[pit]]s, [[hole]]s, [[trap door]]s, [[squeaky board]]s, and [[bear trap]]s without triggering them. (Pits and holes in [[Sokoban]] will still trap you.)
* You can descend into holes with the {{kbd|>}} command ("You jump through the trap door."). For example, you can descend into the [[valley of the dead]] from the [[castle]].
+
* You can pick up items in pits and spiked pits without falling in. If you begin flying while stuck in a pit, you can escape in one turn.
 +
* You can descend into holes and trap doors with the {{kbd|>}} command. For example, you can descend into the [[Valley of the Dead]] from the [[castle]].
 
* [[Land mine]]s have a chance of not being triggered, and will not wound your legs.
 
* [[Land mine]]s have a chance of not being triggered, and will not wound your legs.
* Improved chances of avoiding death by [[drawbridge]].
+
* You can move over [[lava]] and [[moat|water]] safely, and you can [[dip]] items into water.
* You can move freely over ice or on the [[Plane of Air]].
+
* You have a better chance of avoiding being killed by a collapsing [[drawbridge]].
* Wounded legs do not reduce your carrying capacity.
+
* You can move freely over ice and on the [[Plane of Air]].
* No ill effects from descending stairs when encumbered, fumbling or punished.
+
* [[Wounded legs]] do not reduce your [[encumbrance|carrying capacity]].
* You are out of reach of xans' attacks.
+
* You suffer no ill effects from descending stairs when encumbered, [[fumbling]], or [[punishment|punished]].
* You escape the dungeon rather than dying by level teleporting to levels between -9 and -1.
+
* You [[escaping the dungeon|escape the dungeon]] rather than dying if you [[level teleport]] to a level between −9 and −1.
* You can [[dip]] objects into [[pool]]s and [[moat]]s, unlike with [[levitation]].
+
* You cannot snag underwater items with a [[bullwhip]] unless you start levitating.<!--Seems like a bug. Is this still true in 3.6.4?-->
* You cannot pick up items trapped in a pit.
+
 
* You cannot snag underwater items with a [[bullwhip]] - put on a [[levitation]] item if needed.
+
If you begin [[phasing]] through something solid, you will stop flying until you are in open space again.
  
 
==Acquiring==
 
==Acquiring==
Line 26: Line 29:
 
You can acquire this property by [[polymorph]]ing into a flying monster:
 
You can acquire this property by [[polymorph]]ing into a flying monster:
  
* [[killer bee]]
+
* {{monsymlink|killer bee}}
* [[queen bee]]
+
* {{monsymlink|queen bee}}
* [[winged gargoyle]]
+
* {{monsymlink|winged gargoyle}}
* [[mind flayer]]
+
* {{monsymlink|mind flayer}}
* [[master mind flayer]]
+
* {{monsymlink|master mind flayer}}
* [[homunculus]]
+
* {{monsymlink|homunculus}}
* [[lurker above]]
+
* {{monsymlink|lurker above}}
* [[xan]]
+
* {{monsymlink|xan}}
* [[couatl]]
+
* {{monsymlink|couatl}}
* [[titan]]
+
* {{monsymlink|air elemental}}
* [[jabberwock]]
+
* {{monsymlink|fire elemental}}
* [[wraith]]
+
* {{monsymlink|stalker}}
* [[succubus]]
+
* {{monsymlink|titan}}
* [[incubus]]
+
* {{monsymlink|jabberwock}}
* [[balrog]]
+
* {{monsymlink|wraith}}
* any monster represented by [[v]], [[y]], [[B]], [[D]], [[E]], or [[V]].
+
* {{monsymlink|succubus}}
 +
* {{monsymlink|incubus}}
 +
* {{monsymlink|balrog}}
 +
* any monster represented by {{mcsl|v}}, {{mcsl|y}}, {{mcsl|B}}, {{mcsl|D}}, or {{mcsl|V}}
  
There are some flying monsters which you cannot polymorph into:
+
The following monsters also fly, but are not valid polymorph forms:
  
* [[Angel]]
+
* {{monsymlink|Angel}}
* [[ki-rin]]
+
* {{monsymlink|ki-rin}}
* [[Archon]]
+
* {{monsymlink|Archon}}
* [[Vlad the Impaler]]
+
* {{monsymlink|Ixoth}}
* [[Medusa]]
+
* {{monsymlink|Vlad the Impaler}}
* [[Wizard of Yendor]]
+
* {{monsymlink|Medusa}}
* [[ghost]]
+
* {{monsymlink|Wizard of Yendor}}
* [[shade]]
+
* {{monsymlink|ghost}}
* [[Juiblex]]
+
* {{monsymlink|shade}}
* [[Yeenoghu]]
+
* {{monsymlink|Juiblex}}
* [[Orcus]]
+
* {{monsymlink|Yeenoghu}}
* [[Geryon]]
+
* {{monsymlink|Orcus}}
* [[Dispater]]
+
* {{monsymlink|Geryon}}
* [[Baalzebub]]
+
* {{monsymlink|Dispater}}
* [[Asmodeus]]
+
* {{monsymlink|Baalzebub}}
* [[Demogorgon]]
+
* {{monsymlink|Asmodeus}}
* The [[Riders]]
+
* {{monsymlink|Demogorgon}}
* [[Mail daemon]]
+
* {{monsym|Death}} the [[Riders]]
* [[Djinni]]
+
* {{monsymlink|mail daemon}}
* [[Minion of Huhetotl]]
+
* {{monsymlink|djinni}}
* [[Ixoth]]
+
* {{monsymlink|Minion of Huhetotl}}
* [[Nalzok]]
+
* {{monsymlink|Nalzok}}
  
 
===Riding===
 
===Riding===
Line 72: Line 78:
 
You can also fly by [[riding]] a flying monster:
 
You can also fly by [[riding]] a flying monster:
  
* [[couatl]]
+
* {{monsymlink|couatl}}
* [[ki-rin]]
+
* {{monsymlink|ki-rin}}
* [[jabberwock]]
+
* {{monsymlink|jabberwock}}
* any monster represented by [[D]].
+
* any monster represented by {{mcsl|D}}
  
 
==Bugs==
 
==Bugs==
  
===Displacing flying monsters===
+
You can sometimes displace flying monsters by [[kick]]ing them. If the "''foo'' swoops, nimbly evading your kick" then it is moved to a vacant square randomly selected from those nearest to you.{{refsrc|dokick.c|209}} This means that on sufficiently crowded levels, it is possible for a flying creature to swoop through a wall. (This is possibly an effect of [[Bugs in NetHack 3.4.3#C343-38|bug C343-38]]; it is hard to tell from its description.)
 
 
You can sometimes displace flying monsters by [[kick]]ing them. If the "''foo'' swoops, nimbly evading your kick" then it is moved to a vacant square randomly selected from those nearest to you.{{refsrc|dokick.c|209}} (This means that on sufficiently crowded levels, it is possible for a flying creature to swoop through a wall. This is possibly an effect of [[Bugs in NetHack 3.4.3#C343-38|bug C343-38]]; it is hard to tell from its description.)
 
 
 
===Looting in a pit===
 
 
 
You can loot containers in a pit, despite the fact that you can not reach them.
 
 
 
==Source code==
 
  
In the [[source code]], a monster is defined as flying if it has the '''M1_FLY''' flag.{{refsrc|monflag.h|74}} Note that flying is different from [[levitation]], and monsters represented by an {{lightgray|e}} levitate rather than fly, even though they possess the M1_FLY flag.
+
<!-- (Need confirmation of when these behaviors were changed)
 +
==History==
  
 +
Prior to NetHack ?.?.?, [[xan]]s's attacks were unable to reach flying opponents, and flying players were unable to pick up items in pits. However, [[container]]s in pits could still be looted.
 +
-->
 
==SLASH'EM==
 
==SLASH'EM==
  
[[SLASH'EM]] adds the [[amulet of flying]] which grants flying extrinsically. It cannot be eaten to gain intrinsic flight. Additionally, [[Vampire (starting race)|player vampires]] will start with intrinsic flight.
+
[[SLASH'EM]] adds the [[amulet of flying]] which grants flying extrinsically. It cannot be [[eating jewelry|eaten]] to gain intrinsic flight. [[Vampire (starting race)|Vampiric]] players have intrinsic flight.
  
Now, you can also snatch items from pits while flying, with the [[fishing pole]].
+
You can also snatch items from pits while flying with a [[fishing pole]].
  
 
==References==
 
==References==

Revision as of 05:56, 22 January 2020

Flying is an intrinsic property which allows a creature to avoid contact with the ground. Unlike levitation, flight allows control over vertical movement, so while flying you can pick up items on the floor, go down stairs, use ranged weapons without hurtling in the opposite direction, and so on. Broadly speaking, flight gives almost all of the benefits of levitation with none of the downsides.

The only ways to fly in vanilla NetHack are by polymorphing into or riding on a flying monster. Thus, in most games, flight is never achieved, and levitation is used instead for the short periods of time necessary to cross water or lava and avoid traps.

In the source code, a monster is defined as flying if it has the M1_FLY flag.[1] Even though ​e eyes and spheres possess the M1_FLY flag, they levitate rather than fly.

Effects

The effects of flying are:

  • You can pass over pits, holes, trap doors, squeaky boards, and bear traps without triggering them. (Pits and holes in Sokoban will still trap you.)
  • You can pick up items in pits and spiked pits without falling in. If you begin flying while stuck in a pit, you can escape in one turn.
  • You can descend into holes and trap doors with the > command. For example, you can descend into the Valley of the Dead from the castle.
  • Land mines have a chance of not being triggered, and will not wound your legs.
  • You can move over lava and water safely, and you can dip items into water.
  • You have a better chance of avoiding being killed by a collapsing drawbridge.
  • You can move freely over ice and on the Plane of Air.
  • Wounded legs do not reduce your carrying capacity.
  • You suffer no ill effects from descending stairs when encumbered, fumbling, or punished.
  • You escape the dungeon rather than dying if you level teleport to a level between −9 and −1.
  • You cannot snag underwater items with a bullwhip unless you start levitating.

If you begin phasing through something solid, you will stop flying until you are in open space again.

Acquiring

Polymorphing

You can acquire this property by polymorphing into a flying monster:

The following monsters also fly, but are not valid polymorph forms:

Riding

You can also fly by riding a flying monster:

Bugs

You can sometimes displace flying monsters by kicking them. If the "foo swoops, nimbly evading your kick" then it is moved to a vacant square randomly selected from those nearest to you.[2] This means that on sufficiently crowded levels, it is possible for a flying creature to swoop through a wall. (This is possibly an effect of bug C343-38; it is hard to tell from its description.)

SLASH'EM

SLASH'EM adds the amulet of flying which grants flying extrinsically. It cannot be eaten to gain intrinsic flight. Vampiric players have intrinsic flight.

You can also snatch items from pits while flying with a fishing pole.

References

This page is based on a spoiler by Dylan O'Donnell. The original license is:

Redistribution, copying, and editing of these spoilers, with or without modification, are permitted provided that the following conditions are met:

  1. The original contributors to any spoiler must continue to be credited.
  2. Any modifications to the spoiler must be acknowledged and credited.

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.