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.)
 
(Unified wording in table)
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 using [[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 given modifier and encounter something during movement.
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
 
! prefix or modifier
 
! prefix or modifier
! object
+
! item
 
! monster
 
! monster
 
! pet
 
! pet
Line 16: Line 14:
 
|-
 
|-
 
| 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
| 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
| 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|Make something link here, add row for numeric prefix, maybe row for travel command}}

Revision as of 05:27, 16 September 2019

Movement is the act of changing the player character's position on the map. That can be done using direction keys, travel, jumping, or using 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 given modifier and encounter something during movement.

prefix or modifier item monster pet corridor fork door boulder
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 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 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:

"Make something link here, add row for numeric prefix, maybe row for travel command"