number_pad:3,4,-1 (trunk only)

[See the cvs log from flag.h for comments pertaining to iflags.num_pad
and Cmd.num_pad, Cmd.commands[], Cmd.serialno.]
This commit is contained in:
nethack.rankin
2005-11-26 02:34:23 +00:00
parent 0076d5fc00
commit ea61a13add
14 changed files with 279 additions and 144 deletions

View File

@@ -67,6 +67,12 @@ b j n 1 2 3 g<dir>: run in direction <dir> until something
Meta number, or Alt number will invoke the YUHJKLBN commands.
Control <dir> may or may not work when number_pad is enabled,
depending on the platform's capabilities.
Digit '5' acts as 'G' prefix, unless number_pad is set to 2
in which case it acts as 'g' instead.
If number_pad is set to 3, the roles of 1,2,3 and 7,8,9 are
reversed; when set to 4, behaves same as 3 combined with 2.
If number_pad is set to -1, alphabetic movement commands are
used but 'y' and 'z' are swapped.
Commands:
NetHack knows the following commands:
@@ -143,9 +149,9 @@ Commands:
x Swap wielded and secondary weapons.
X Switch the game to explore (discovery) mode.
^X Show your attributes.
z Zap a wand.
Z Cast a spell.
^Z Suspend the game.
z Zap a wand. (Use y instead of z if number_pad is -1.)
Z Cast a spell. (Use Y instead of Z if number_pad is -1.)
^Z Suspend the game. (^Y instead of ^Z if number_pad is -1.)
: Look at what is here.
; Look at what is somewhere else.
, Pick up some things.

10
dat/hh
View File

@@ -14,6 +14,12 @@ b j n 1 2 3 g<dir>: run in direction <dir> until something
Meta number, or Alt number will invoke the YUHJKLBN commands.
Control <dir> may or may not work when number_pad is enabled,
depending on the platform's capabilities.
Digit '5' acts as 'G' prefix, unless number_pad is set to 2
in which case it acts as 'g' instead.
If number_pad is set to 3, the roles of 1,2,3 and 7,8,9 are
reversed; when set to 4, behaves same as 3 combined with 2.
If number_pad is set to -1, alphabetic movement commands are
used but 'y' and 'z' are swapped.
General commands:
? help display one of several informative texts
@@ -64,8 +70,8 @@ T takeoff take off some armor
w wield wield a weapon (w- wield nothing)
W wear put on some armor
x xchange swap wielded and secondary weapons
z zap zap a wand
Z Zap cast a spell
z zap zap a wand (use y instead of z if number_pad is -1)
Z Zap cast a spell (use Y instead of Z if number_pad is -1)
< up go up the stairs
> down go down the stairs
^ trap_id identify a previously found trap

View File

@@ -23,7 +23,6 @@ mail enable the mail daemon [TRUE]
null allow nulls to be sent to your terminal [TRUE]
try turning this option off (forcing NetHack to use its own
delay code) if moving objects seem to teleport across rooms
number_pad use the number keys to move instead of yuhjklbn [FALSE]
perm_invent keep inventory in a permanent window [FALSE]
prayconfirm use confirmation prompt when #pray command issued [TRUE]
pushweapon when wielding a new weapon, put your previously
@@ -102,6 +101,13 @@ menustyle user interface for selection of multiple objects:
Full -- menu for classes of interest, then object menu;
only the first letter ('T','C','P','F') matters; 'N' (None)
is a synonym for 'T', as is boolean style negation [Full]
number_pad alphabetic versus numeric control over movement:
0 -- traditional hjkl + yubn movement (default);
1 -- digits control movement, for use with numeric keypad;
2 -- same as 1, but '5' works as 'g' prefix rather than 'G';
3 -- numeric for phone keypad (1,2,3 above, 7,8,9 below);
4 -- phone keypad (3) combined with MSDOS compatibility (2);
-1 -- alphabetic movement but 'z' swapped with 'y'. [0]
packorder a list of default symbols for kinds of objects that gives the
order in which your pack will be displayed [")[%?+!=/(*`0_]
(If you specify only some kinds of items, the others from the