[SOLVED] rogue-like commands

All your questions answered.
Post Reply
Agor
Disenchanter Ooze
Posts: 46
Joined: Fri 03.04.2009, 23:56

[SOLVED] rogue-like commands

Post by Agor » Sat 04.04.2009, 00:03

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!
Last edited by Agor on Sun 05.04.2009, 00:49, edited 2 times in total.

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: rogue-like commands

Post by PowerWyrm » Sat 04.04.2009, 18:10

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.

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: rogue-like commands

Post by PowerWyrm » Sat 04.04.2009, 18:13

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)

Ashi
Giant Mottled Ant Lion
Posts: 218
Joined: Sun 10.11.2002, 19:58

Re: rogue-like commands

Post by Ashi » Sat 04.04.2009, 21:14

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.

Agor
Disenchanter Ooze
Posts: 46
Joined: Fri 03.04.2009, 23:56

Re: rogue-like commands

Post by Agor » Sun 05.04.2009, 00:48

Thank you for all the answers!

Post Reply