Page 1 of 1

[SOLVED] rogue-like commands

Posted: Sat 04.04.2009, 00:03
by Agor
Hail friends,

I'm a new player at (m)Angband and I came from Nethack. For my laptop doesn't have a numpad (well it does, but behind the FN key and the button layout is bad), I've always used the rogue-like movement keys (HJKL YU BN).

So I turned it on in options and everything except one thing works fine. Ctrl+D has turned into destroy, so I can't describe items in chat. So my questions is, what key has it turned into, (or) how can I find which key it has turned into, or how can I re-macro(/map) it?

Thank you for your time!

Re: rogue-like commands

Posted: Sat 04.04.2009, 18:10
by PowerWyrm
Remapping keys is easy. The only thing you need is to edit the "pref.prf" file in the /lib/user subdirectory.

In that file, you can see:

# Allow use of the "destroy" command
A:k
C:1:^D

Change the line where ^D appears to some unused command, like for example CTRL+F:

# Allow use of the "destroy" command
A:k
C:1:^F

Now you can destroy items with CTRL+F and describe items in chat like before with CTRL+D.

Re: rogue-like commands

Posted: Sat 04.04.2009, 18:13
by PowerWyrm
Just FYI... the "pref.prf" file works as follows:

A : the command that is mapped (k = destroy for example)
C : 0 = original keyset, 1 = roguelike keyset : the key that is mapped in the defined keyset (^D = CTRL + D for example)

Re: rogue-like commands

Posted: Sat 04.04.2009, 21:14
by Ashi
I play with roguelike commands and whenever I need to use something found in the standard keyset, I prefix it with a \.

\ ctrl-d works for me.

Re: rogue-like commands

Posted: Sun 05.04.2009, 00:48
by Agor
Thank you for all the answers!