Difference between revisions of "Underscore"

From NetHackWiki
Jump to navigation Jump to search
m (kbd)
(format + expand)
Line 1: Line 1:
 
{{ASCII}}
 
{{ASCII}}
 +
In ''[[NetHack]]'', the '''underscore''' symbol {{white|_}} serves the following purposes:
  
* In the dungeon, {{lightgray|_}} is an [[altar]]
+
* In the dungeon, it can represent:
* {{cyan|_}} is an [[iron chain]]
+
** {{lightgray|_}} an [[altar]]
* If set in [[Options]], you can press {{kbd|_}} to [[travel]] to a map location. You are presented with a prompt that allows you to move a cursor to the square you want to travel to and you are then moved as part of a shortest-path algorithm to that location. The algorithm fails when there are known [[trap]]s in the way, instead causing you to travel in a straight line to the nearest wall near the trap. You can also specify a dungeon feature (i.e. '''>''' for the downstair) and it will cycle through all available and visible targets. This is useful on levels where there are two or more choices (upstairs to [[Sokoban]], multiple sinks, etc.).
+
** {{cyan|_}} an iron chain
  
 +
* It is also used for the following [[keyboard]] controls:
 +
** You can press {{kbd|_}} to [[travel]] to a map location if the [[command]] is enabled in your [[options]]. The game will prompt you to move a cursor to your desired destination square, or else select a symbol corresponding to a [[dungeon feature]] on that square, and then confirm - you are then moved as part of a shortest-path algorithm to that location. The algorithm fails when there are known [[trap]]s in the way, instead causing you to travel in a straight line to the nearest wall near that trap. Travel is especially useful on levels where there are multiple dungeon features to target (e.g. upstairs to [[Sokoban]], multiple [[sink]]s, etc.).
 +
{{nethack-367}}
 
[[Category:ASCII]]
 
[[Category:ASCII]]

Revision as of 19:33, 8 July 2023

Printable ASCII characters
~ ! @ # $ % ^ & * ( ) _ + space
` 1 2 3 4 5 6 7 8 9 0 - = { } |
Qq Ww Ee Rr Tt Yy Uu Ii Oo Pp : " [ ] \
Aa Ss Dd Ff Gg Hh Jj Kk Ll ? ; ' Ctrl
Zz Xx Cc Vv Bb Nn Mm , . / < > Alt

In NetHack, the underscore symbol _ serves the following purposes:

  • In the dungeon, it can represent:
    • _ an altar
    • _ an iron chain
  • It is also used for the following keyboard controls:
    • You can press _ to travel to a map location if the command is enabled in your options. The game will prompt you to move a cursor to your desired destination square, or else select a symbol corresponding to a dungeon feature on that square, and then confirm - you are then moved as part of a shortest-path algorithm to that location. The algorithm fails when there are known traps in the way, instead causing you to travel in a straight line to the nearest wall near that trap. Travel is especially useful on levels where there are multiple dungeon features to target (e.g. upstairs to Sokoban, multiple sinks, etc.).