Keymap/Macro for mage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cashondeliveri
    Rookie
    • Jul 2011
    • 24

    Keymap/Macro for mage

    I've been looking at how to use fewer keystrokes for spells and it seems very complicated to me. Would someone be kind enough to walk me through step by step what i need to do to be able to cast magic missile at my chosen target with just one keystroke?
  • Pete Mack
    Prophet
    • Apr 2007
    • 6883

    #2
    1. Inscribe spellbooks with @m<number>, e.g. @m1 for beginner's handbook
    2. Go to keymap menu. Select create new keymap
    3. Pick a character, say 'p' for new keymap and a specific action you want
    Let's assume you want a key for "Shoot magic missile at current target."
    4. Add keymap p: m1a5$
    For cast spell a from book 1 at target. (5 represents target if it exists, or select target if it doesn't. ) $ closes the keymap
    5. Select 'y' not ESC when prompted for acceptance. (It's anniyingly easy to get this wrong.)

    Comment

    • Derakon
      Prophet
      • Dec 2009
      • 9022

      #3
      Inscribe (with the '{' command) your spellbook with "@m1". Hit '=' to bring up options, then go to keymaps and create a new keymap. Choose the key you want to use for the command (I like to use "!" for this one). Type "*tm1a" for the command.

      Comment

      • Pete Mack
        Prophet
        • Apr 2007
        • 6883

        #4
        Note:
        Derakon's recipe shoots at nearest target, not current.

        Comment

        • Derakon
          Prophet
          • Dec 2009
          • 9022

          #5
          Oh, right, yes. I usually use " for the same command but with the current target. But then, I use a Dvorak keyboard. If you're on Qwerty, you can use Q instead, and if you really want to access the normal function of the Q command, you can hit '\' then Q to perform the "underlying" function of that key.

          Comment

          • Cashondeliveri
            Rookie
            • Jul 2011
            • 24

            #6
            Thanks a lot guys! I think i may use both of those recipies.

            Comment

            • Pondlife
              Apprentice
              • Mar 2010
              • 78

              #7
              I add the following lines to my <username>.prf file:

              Code:
              # Inscriptions
              
              inscribe:magic book:[Magic for Beginners]:@m1 !v!k!d
              inscribe:magic book:[Conjurings and Tricks]:@m2 !v!k!d
              inscribe:magic book:[Incantations and Illusions]:@m3 !v!k!d
              inscribe:magic book:[Sorcery and Evocations]:@m4 !v!k!d
              inscribe:magic book:[Resistances of Scarabtarices]:@m5 !v!k!d
              inscribe:magic book:[Raal's Tome of Destruction]:@m6 !v!k!d
              inscribe:magic book:[Mordenkainen's Escapes]:@m7 !v!k!d
              inscribe:magic book:[Tenser's Transformations]:@m8 !v!k!d
              inscribe:magic book:[Kelek's Grimoire of Power]:@m9 !v!k!d
              
              # Keymaps
              
              # Magic missile
              keymap-act:m1a5
              keymap-input:1:[F1]
              
              # Frost bolt
              keymap-act:m2h5
              keymap-input:1:[F2]
              
              # Fire bolt
              keymap-act:m3d5
              keymap-input:1:[F3]
              
              # Acid bolt
              keymap-act:m3h5
              keymap-input:1:[F4]
              
              # Ice storm
              keymap-act:m6e5
              keymap-input:1:[F5]
              
              # Meteor swarm
              keymap-act:m6f5
              keymap-input:1:[F6]
              Playing roguelikes on and off since 1984.
              rogue, hack, moria, nethack, angband & zangband.

              Comment

              • Pete Mack
                Prophet
                • Apr 2007
                • 6883

                #8
                Further note: the reason to use numbers rather than letters is it allows you to lose (or gain) books.
                Otherwise, if you use maa5 instead of m1a5, it'll work, but it will do something unexpected if you lose all copies of book one (say to fire, or you are trying to get home with a full load of loot.)

                Comment

                • Cashondeliveri
                  Rookie
                  • Jul 2011
                  • 24

                  #9
                  Originally posted by Pondlife
                  I add the following lines to my <username>.prf file:

                  Code:
                  # Inscriptions
                  
                  inscribe:magic book:[Magic for Beginners]:@m1 !v!k!d
                  inscribe:magic book:[Conjurings and Tricks]:@m2 !v!k!d
                  inscribe:magic book:[Incantations and Illusions]:@m3 !v!k!d
                  inscribe:magic book:[Sorcery and Evocations]:@m4 !v!k!d
                  inscribe:magic book:[Resistances of Scarabtarices]:@m5 !v!k!d
                  inscribe:magic book:[Raal's Tome of Destruction]:@m6 !v!k!d
                  inscribe:magic book:[Mordenkainen's Escapes]:@m7 !v!k!d
                  inscribe:magic book:[Tenser's Transformations]:@m8 !v!k!d
                  inscribe:magic book:[Kelek's Grimoire of Power]:@m9 !v!k!d
                  
                  # Keymaps
                  
                  # Magic missile
                  keymap-act:m1a5
                  keymap-input:1:[F1]
                  
                  # Frost bolt
                  keymap-act:m2h5
                  keymap-input:1:[F2]
                  
                  # Fire bolt
                  keymap-act:m3d5
                  keymap-input:1:[F3]
                  
                  # Acid bolt
                  keymap-act:m3h5
                  keymap-input:1:[F4]
                  
                  # Ice storm
                  keymap-act:m6e5
                  keymap-input:1:[F5]
                  
                  # Meteor swarm
                  keymap-act:m6f5
                  keymap-input:1:[F6]
                  I can't seem to find the <username>.prf file.

                  Also, I mapped magic missile like Pete Mack suggested and it worked great, but after quitting angband the keymap was gone. Anyone know why that would be?
                  Last edited by Cashondeliveri; June 30, 2018, 00:04.

                  Comment

                  • Pete Mack
                    Prophet
                    • Apr 2007
                    • 6883

                    #10
                    You create one when you save preferences. Without a preferences file, the game has no memory of changes you make.
                    Generally you want one for each class you play. (For other classes, youll want keymaps for archery instead of magic.)

                    That said, I rarely make a single map for a go-to damage spell, because the spell changes throughout the game, from magic missile, to fire or acid bolt, to meteor swarm. I dont have enough spare keys to map them all at the same time.

                    Comment

                    • Cashondeliveri
                      Rookie
                      • Jul 2011
                      • 24

                      #11
                      Originally posted by Pete Mack
                      You create one when you save preferences. Without a preferences file, the game has no memory of changes you make.
                      Generally you want one for each class you play. (For other classes, youll want keymaps for archery instead of magic.)

                      That said, I rarely make a single map for a go-to damage spell, because the spell changes throughout the game, from magic missile, to fire or acid bolt, to meteor swarm. I dont have enough spare keys to map them all at the same time.
                      Starting to feel like an idiot, but i can't seem to find out how to save my preferences. I've played angband before, but never really costumized it in any way. Would appreciate if anyone could tell me.

                      Comment

                      • Nick
                        Vanilla maintainer
                        • Apr 2007
                        • 9637

                        #12
                        Originally posted by Cashondeliveri
                        Starting to feel like an idiot, but i can't seem to find out how to save my preferences. I've played angband before, but never really costumized it in any way. Would appreciate if anyone could tell me.
                        What operating system are you playing on?
                        One for the Dark Lord on his dark throne
                        In the Land of Mordor where the Shadows lie.

                        Comment

                        • Cashondeliveri
                          Rookie
                          • Jul 2011
                          • 24

                          #13
                          Windows 10

                          Comment

                          • Nick
                            Vanilla maintainer
                            • Apr 2007
                            • 9637

                            #14
                            So you need to go to the option menu '=', k to create your keymaps, and then save to a file. The file should be in your lib/user folder, and you can then edit it directly.

                            If I've got that wrong, I'm sure someone will correct me
                            One for the Dark Lord on his dark throne
                            In the Land of Mordor where the Shadows lie.

                            Comment

                            • Cashondeliveri
                              Rookie
                              • Jul 2011
                              • 24

                              #15
                              Found the save keymaps command in options and got the file

                              People are still as helpful on this forum as i remember from several years back

                              Thanks guys!

                              Comment

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