problem with keymaps in 3.3.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • biini
    Scout
    • Jan 2014
    • 38

    problem with keymaps in 3.3.0

    Hi!

    Back in the dungeon, since.. 10(?) years
    A lot have changed and my previous character was lost somewhere in the bit dungeon..

    Anyway, I'm now running 3.3.0 on debian and wondering how to make macros/keymaps work.

    I can interact with keymaps, and if for example I enter \e\ep1f (find traps, doors) as a keymap and trying to run it, the game asks me "fire which item?" If i try \e\epp1f, it actually casts find traps and doors, but after that is asks again "cast from which book?". The messages says:

    You sense no traps.
    You sense the presence of doors and stairs!
    Illegal object choice (inven)!

    soo... I'm a bit lost here
  • Derakon
    Prophet
    • Dec 2009
    • 9022

    #2
    Macros don't exist any more; just keymaps. They can only be invoked when the game is waiting for your next action (i.e. there's no other prompt onscreen, not even a -more- prompt), so you don't need to stick a bunch of \e at the beginning of the prompt.

    I think your other problem is that you should be using m for all spells, even priest spells. I don't think the p command exists any more, or if it does, it's just an automatic keymap for m, and thus wouldn't be recognized from within the keymapping interface (since keymaps can't "stack", i.e. refer to other keymaps).

    Anyway, welcome back!

    Comment

    • biini
      Scout
      • Jan 2014
      • 38

      #3
      Hi!

      Thanks for you reply. I got it working

      Comment

      • Timo Pietilä
        Prophet
        • Apr 2007
        • 4096

        #4
        Originally posted by Derakon
        Macros don't exist any more; just keymaps. They can only be invoked when the game is waiting for your next action (i.e. there's no other prompt onscreen, not even a -more- prompt), so you don't need to stick a bunch of \e at the beginning of the prompt.
        3.4.x that changes. In there enclose your keymap to () and it clears -more- prompts.

        here is my priest.prf from 3.4.1. Works with 3.5 too. (a bit of clutter in it that's just remnants of ancient times)
        Code:
        # Macro '63a' Shoot arrow to target (F1)
        
        A:(f0*)
        C:0:[F1]
        
        
        # Macro '63b' Shoot arrow to nearest target (Shift-F1)
        
        A:(f0')
        C:0:{S}[F1]
        
        
        # Macro '63c' Shoot arrow to predesigned target (Alt-F1)
        
        A:(f0t)
        C:0:{^A}[F1]
        
        
        
        # Macro '64a' OoD to target (F2)
        
        A:(p3b*)
        C:0:[F2]
        
        
        # Macro '64b' OoD to nearest target (Shift-F2)
        
        A:(p3b*t)
        C:0:{S}[F2]
        
        
        # Macro '64c' OoD to predesigned target (Alt-F2)
        
        A:(p3bt)
        C:0:{^A}[F2]
        
        
        # Macro '67' Dispel Undead (F3)
        
        A:(p4b)
        #A:(p9a)
        C:0:[F3]
        
        
        # Macro '68' Dispel Evil (F4)
        
        A:(p4d)
        #A:(p9b)
        C:0:[F4]
        
        
        # Macro '69' detect evil (F5)/Detection
        
        #A:(p1a)
        A:(p6b)
        C:0:[F5]
        
        
        # Macro '70' detect doors, stairs and traps / sense surroundings/ clairvoiance (F6)
        
        #A:(p1f)
        #A:(p3g)
        A:(p6e)
        C:0:[F6]
        
        
        # Macro '71'  sense surroundings / teleport self / Portal (F7)
        
        #A:(p3g)
        #A:(p5b)
        A:(p2b)
        C:0:[F7]
        
        # Macro '71b'  sense invisible (shift-F7)
        A:(p3d)
        C:0:{S}[F7]
        
        
        # Macro '72' Portal / blink (F8)
        
        #A:(p2b)
        A:(p5a)
        C:0:[F8]
        
        
        # Macro '74' Bless/Chant/Prayer (F9)
        
        #A:(p1c)
        #A:(p2d)
        A:(p4a)
        C:0:[F9]
        
        
        # Macro '73' Protection from evil (F10)
        
        A:(p3e)
        C:0:[F10]
        
        
        # Macro '75a' Cure critical/mortal/heal  (F11)
        
        #A:(p3c)
        #A:(p3h)
        A:(p4c)
        C:0:[F11]
        
        
        # Macro '75b' Heal 2000 (Shift-F11)
        
        A:(p7c)
        C:0:{S}[F11]
        
        
        # Macro '76' Glyph of warding (F12)
        
        A:(p4e)
        C:0:[F12]
        
        
        # Macro '77' Unbarring ways (tab)
        
        A:(p8a)
        C:0:[Tab]
        
        
        
        # Automatic keymap dump
        
        A:Q
        C:0:^C
        
        A:;1
        C:0:1
        
        A:;2
        C:0:2
        
        A:;3
        C:0:3
        
        A:;4
        C:0:4
        
        A:,
        C:0:5
        
        A:;6
        C:0:6
        
        A:;7
        C:0:7
        
        A:;8
        C:0:8
        
        A:;9
        C:0:9
        
        # Identify item at floor (n)
        A:(p6c-)
        C:0:n
        
        # Lite floor / Clairvoiance
        A:(p1e)
        #A:z1
        #A:Af
        #A:p6e
        C:0:Z
        
        A:p
        C:0:m

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎