Difference between revisions of "Movement"

From NetHackWiki
Jump to navigation Jump to search
(Created page. I was surprised that Shift+direction bumps to door so I decided to create the table.)
 
(Add entry for "no modifier", note similarity of G and Ctrl)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Movement''' describes changing of position on the map. That can be done using [[Direction keys]], [[Travel]], [[Jump]]ing or using [[Teleport]].
+
'''Movement''' is the act of changing the player character's position on the map. That can be done using [[direction]] keys, [[travel]], [[jump]]ing, or [[teleportation]].
 
 
=== Using directional keys ===
 
Pressing [[direction keys]] moves [[you]] one [[square]] in that direction. With modifiers or prefixes it can move more than one square. The following table shows what happens if you use given modifier and encounter something during movement.
 
  
 +
Pressing a direction key moves [[you]] one [[square]] in that direction. With modifiers or prefixes it can move more than one square. The following table shows what happens if you use a particular modifier and encounter something during movement.
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
 
! prefix or modifier
 
! prefix or modifier
! object
+
! [[item]]
! monster
+
! [[monster]]
! pet
+
! [[pet]]
! corridor fork
+
! [[corridor]] fork
! door
+
! [[door]]
! boulder
+
! [[boulder]]
 +
|-
 +
| (no modifier)
 +
| [[autopickup]] applies
 +
| attacks monster
 +
| swaps places
 +
| N/A
 +
| <span class="explain" title="unless OPTIONS=!autoopen is set">opens closed door</span>, moves into open door
 +
| pushes boulder and stops at its place
 
|-
 
|-
 
| Shift
 
| Shift
| stops on objects, autopickup applies
+
| stops on item, [[autopickup]] applies
 
| stops before monster
 
| stops before monster
| stops before pet. no displacement
+
| stops before pet, does not swap places
 
| does not stop at forks
 
| does not stop at forks
| bumps into closed door. stops inside opendoor
+
| bumps into closed door, stops inside open door
 
| pushes boulder and stops at its place
 
| pushes boulder and stops at its place
 
|-
 
|-
| Ctrl
+
| Ctrl (same as G)
| stops on objects, autopickup applies
+
| stops on item, autopickup applies
 
| stops one square before monster
 
| stops one square before monster
| stops before pet. no displacement
+
| stops before pet, does not swap places
 
| does not stop at forks
 
| does not stop at forks
| stops before both closed and open door
+
| stops before door
 
| stops before boulder
 
| stops before boulder
 
|-
 
|-
 
| m
 
| m
| does not pick up anything
+
| autopickup does not apply
 
| does not attack monster
 
| does not attack monster
| does not displace pet
+
| does not swap places
| NA
+
| N/A
| opens door
+
| <span class="explain" title="unless OPTIONS=!autoopen is set">opens closed door</span>, moves into open door
| moves boulder
+
| pushes boulder and stops at its place
 
|-
 
|-
 
| M
 
| M
| does not stop on item, does not pick up
+
| does not stop on item, autopickup does not apply
 
| stops before monster
 
| stops before monster
| stops before pet, no displacement
+
| stops before pet, does not swap places
| does not stop ot forks
+
| does not stop at forks
| stops inside open door, bumps into closed dor
+
| bumps into closed door, stops inside open door
| moves boulder
+
| pushes boulder and stops at its place
 
|-
 
|-
 
| g
 
| g
| stops on object
+
| stops on item, autopickup applies
| stops before monster?
+
| stops before monster
| does not displace pet
+
| stops before pet, does not swap places
 
| stops at forks
 
| stops at forks
 
| stops before door
 
| stops before door
| does not push boulder
+
| stops before boulder
 
|-
 
|-
| G
+
| G (same as Ctrl)
| stops on object
+
| stops on item, autopickup applies
 
| stops before monster
 
| stops before monster
| stops before pet, no displacement
+
| stops before pet, does not swap places
| does not stop
+
| does not stop at forks
 
| stops before door
 
| stops before door
| does not push boulder
+
| stops before boulder
 
|}
 
|}
  
{{stub|TODO:Make something link here, unify wording in the table, add row for numeric prefix, maybe row for travel command}}
+
{{stub|Add row for numeric prefix, maybe row for travel command}}

Latest revision as of 15:54, 22 July 2021

Movement is the act of changing the player character's position on the map. That can be done using direction keys, travel, jumping, or teleportation.

Pressing a direction key moves you one square in that direction. With modifiers or prefixes it can move more than one square. The following table shows what happens if you use a particular modifier and encounter something during movement.

prefix or modifier item monster pet corridor fork door boulder
(no modifier) autopickup applies attacks monster swaps places N/A opens closed door, moves into open door pushes boulder and stops at its place
Shift stops on item, autopickup applies stops before monster stops before pet, does not swap places does not stop at forks bumps into closed door, stops inside open door pushes boulder and stops at its place
Ctrl (same as G) stops on item, autopickup applies stops one square before monster stops before pet, does not swap places does not stop at forks stops before door stops before boulder
m autopickup does not apply does not attack monster does not swap places N/A opens closed door, moves into open door pushes boulder and stops at its place
M does not stop on item, autopickup does not apply stops before monster stops before pet, does not swap places does not stop at forks bumps into closed door, stops inside open door pushes boulder and stops at its place
g stops on item, autopickup applies stops before monster stops before pet, does not swap places stops at forks stops before door stops before boulder
G (same as Ctrl) stops on item, autopickup applies stops before monster stops before pet, does not swap places does not stop at forks stops before door stops before boulder
This page is a stub. Should you wish to do so, you can contribute by expanding this page.

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

"Add row for numeric prefix, maybe row for travel command"