Difference between revisions of "Teleportation"

From NetHackWiki
Jump to navigation Jump to search
(quantum mechanics)
(Messages: add two other teleportation-related messages)
 
(17 intermediate revisions by 11 users not shown)
Line 1: Line 1:
'''Teleportation''' comes from:
+
'''Teleportation''' provides a quick escape to a different (often random) location. Some [[escape item]]s can teleport [[you]] away from monsters. Some monsters can also teleport themselves to flee from you.
 +
 
 +
Teleportation comes from:
  
 
* [[ring of teleportation]]
 
* [[ring of teleportation]]
Line 8: Line 10:
 
* [[trap|teleport trap]]
 
* [[trap|teleport trap]]
 
* [[quantum mechanic]] attack
 
* [[quantum mechanic]] attack
 +
* [[cursed spellbook]], especially low-level ones
 +
 +
There are three teleport-related properties: [[teleportitis]], which teleports you horizontally at random; [[teleport control]], which lets you choose where teleports land; and teleport at will, which lets you trigger teleportitis to happen whenever you want at a power cost.
 +
 +
Horizontal teleportation almost always moves you away from your current position, but there is a very small chance of landing on the exact same square.<ref>http://groups.google.com/group/rec.games.roguelike.nethack/msg/fd6ff9fff482a512</ref>
 +
 +
==Valid destinations==
 +
 +
You cannot teleport to a square that is already occupied by a monster{{refsrc|src/teleport.c|48-L61|nethack=3.6.6}}, or to one that is considered unsafe for you to occupy.{{refsrc|src/teleport.c|262|nethack=3.6.6}} If you try to do so deliberately with teleport control, you will receive the message "'''Sorry...'''" and be teleported randomly instead.{{refsrc|src/teleport.c|533|nethack=3.6.6}}
 +
 +
In particular:
 +
 +
* You cannot teleport into [[water]] unless you are [[levitating]], [[flying]], [[water walking]], [[magical breathing]], or polymorphed into a [[swimming]] or [[amphibious]] monster.{{refsrc|src/teleport.c|67|nethack=3.6.6|comment=Note: the Amphibious macro covers magical breathing.}}
 +
* You also cannot teleport onto [[lava]], unless you are levitating, flying, are fire resistant and wearing fireproof [[water walking boots]], or are polymorphed into a monster such as a [[salamander]] or [[fire elemental]] that likes lava. {{refsrc|src/teleport.c|85|nethack=3.6.6}}
 +
* If you're polymorphed into a [[sea monster]], you only have a 1 in 13 chance of successfully teleporting onto dry land.{{refsrc|src/teleport.c|77|nethack=3.6.6}}
 +
* You cannot teleport onto a [[trap]], unless there are no other valid locations to teleport to. (The game will try 200 times to pick a safe location for you before considering trapped locations.{{refsrc|src/teleport.c|424|nethack=3.6.6}}) In particular, [[magic portal]]s are considered traps, so you cannot teleport directly onto your [[quest]] portal.
 +
* Only [[phasing]] monsters can teleport into [[solid rock]], into [[wall]]s, [[tree]]s, [[iron bars]] or a raised [[drawbridge]], or into a [[secret door]] or a [[secret corridor]]. {{refsrc|src/teleport.c|93|nethack=3.6.6}} Teleporting onto a closed [[door]] is only possible for phasing or [[amorphous]] monsters,{{refsrc|src/teleport.c|95|nethack=3.6.6}} and only [[giant]]s and phasing monsters can teleport onto [[boulder]]s.{{refsrc|src/teleport.c||nethack=3.6.6}}
 +
* You cannot teleport into the [[Wizard's Tower]] from outside it, nor outside it from the inside.{{refsrc|src/teleport.c|227|nethack/3.6.6}}
 +
 +
There is also some code that could prevent the player from teleporting in and out of force fields{{refsrc|src/teleport.c|277|nethack=3.6.6}}, but those [[deferred feature|do not exist]] in vanilla ''NetHack''.
 +
 +
== Messages ==
 +
{{message|A mysterious force prevents you from teleporting!|You are on a [[non-teleport level]].}}
 +
{{message|You feel disoriented for a moment.|You would have teleported, but it failed because you are carrying the [[Amulet of Yendor]].}}
 +
{{message|Sorry...|You chose an unteleportable destination with teleport control.}}
 +
{{upcoming|NetHack 3.7.0|The following two messages are added.}}
 +
{{message|You materialize in a different location!|You teleported to a different space on your level.}}
 +
{{message|You materialize in the same location!|You teleported to your current space.}}
  
 
==See also==
 
==See also==
* [[levelport]]
+
* [[Level teleport]]
* [[teleport control]]
+
* [[Teleport control]]
{{disambig}}{{stub}}
+
* [[Non-teleport level]]
 +
 
 +
==References==
 +
<references/>
 +
 
 +
[[Category:Actions]]
 +
{{nethack-343}}

Latest revision as of 03:20, 24 May 2021

Teleportation provides a quick escape to a different (often random) location. Some escape items can teleport you away from monsters. Some monsters can also teleport themselves to flee from you.

Teleportation comes from:

There are three teleport-related properties: teleportitis, which teleports you horizontally at random; teleport control, which lets you choose where teleports land; and teleport at will, which lets you trigger teleportitis to happen whenever you want at a power cost.

Horizontal teleportation almost always moves you away from your current position, but there is a very small chance of landing on the exact same square.[1]

Valid destinations

You cannot teleport to a square that is already occupied by a monster[2], or to one that is considered unsafe for you to occupy.[3] If you try to do so deliberately with teleport control, you will receive the message "Sorry..." and be teleported randomly instead.[4]

In particular:

There is also some code that could prevent the player from teleporting in and out of force fields[13], but those do not exist in vanilla NetHack.

Messages

A mysterious force prevents you from teleporting!
You are on a non-teleport level.
You feel disoriented for a moment.
You would have teleported, but it failed because you are carrying the Amulet of Yendor.
Sorry...
You chose an unteleportable destination with teleport control.

The following information pertains to an upcoming version (NetHack 3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.

The following two messages are added.
You materialize in a different location!
You teleported to a different space on your level.
You materialize in the same location!
You teleported to your current space.

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.