Difference between revisions of "U"

From NetHackWiki
Jump to navigation Jump to search
(formatting + copyedit + update pass)
m (Fix an unversioned source reference. Improve wording. There's a difference between "struct you" and "u".)
 
Line 18: Line 18:
 
** Press {{kbd|u}} to [[untrap]].
 
** Press {{kbd|u}} to [[untrap]].
  
* In the [[source code]], the structure named <tt>u</tt> contains all the player-specific variables. See {{sourcecode|you.h|256}} for the structure definition.
+
* In the [[source code]], the global variable named <tt>u</tt>, of type <tt>struct you</tt>, contains player-specific data.{{refsrc|include/decl.h|257|nethack=3.6.7}}{{refsrc|include/you.h|273|nethack=3.6.7}}
  
 
==Historical uses==
 
==Historical uses==
Line 138: Line 138:
 
** {{monsymlink|water hulk}}
 
** {{monsymlink|water hulk}}
 
** {{brightcyan|U}} [[shambling horror]]
 
** {{brightcyan|U}} [[shambling horror]]
 +
 +
== References ==
 +
<references/>
 
{{nethack-367}}
 
{{nethack-367}}
 
[[Category:ASCII]]
 
[[Category:ASCII]]

Latest revision as of 02:32, 27 June 2024

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 letter U serves the following purposes:

  • It is also used as a direction key if numpad movement is off:
    • Press u to move north-east.
    • Press shift + u to move far north-east.
  • If numpad movement is on:
  • In the source code, the global variable named u, of type struct you, contains player-specific data.[1][2]

Historical uses

In Hack 1.21, a variant of Jay Fenlason's Hack, the unox used the u glyph, while the ugod used the U glyph; in the variant Hack for PDP-11, the U glyph is instead given to the umber hulk, while the ugod replaced the unox as u. In Hack 1.0, the u glyph is given to the unicorn.

Variants

SLASH'EM

SLASH'EM introduces new monsters that use the u and U glyphs:

GruntHack

GruntHack introduces one new monster that uses the u glyph:

SporkHack

SporkHack introduces new monsters that use the u and U glyphs:

UnNetHack

UnNetHack introduces one new monster that uses the U glyph:

dNetHack

dNetHack adds several new monsters that use the u and U glyphs - the U glyph is used for unknown abominations, a new monster class that replaces the umber hulk monster class; the umber hulk is still present as U.

The new monsters include:

xNetHack

In xNetHack, the U glyph represents aberrations instead of umber hulks - the umber hulk is still present as U. The following monsters are changed to use U as a glyph:

SpliceHack

SpliceHack adds new monsters that use the u and U glyphs:

notdNetHack

notdNetHack retains the monsters added in dNetHack and adds another monster that uses the u glyph:

EvilHack

EvilHack also includes the shambling horror, as well as several other monsters that use the u glyph:

SlashTHEM

SlashTHEM retains the new monsters that use the u and U glyphs in SLASH'EM and adds other new monsters:

Hack'EM

Hack'EM adds several monsters that use the u and U glyphs:

References