macro to swap out weapon

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • youtoo
    Scout
    • Aug 2013
    • 31

    macro to swap out weapon

    Playing poschengband. Put here since its a macro question. I googled around on macros, but I don't quite get it. All I want to do is be able to swap weapons. I want to equip my pick so I can Tunnel with 1 click, then another to switch back.

    also I want to be able to Tunnel until I get through or something moves. I don't want to have to do it over and over again.
  • MattB
    Veteran
    • Mar 2013
    • 1214

    #2
    Try inscribing both your weapon and tunneller with '@w0' then making a key into the keymap 'w0'. That should work (I think).

    Comment

    • Raxmei
      Apprentice
      • Feb 2011
      • 94

      #3
      Originally posted by MattB
      Try inscribing both your weapon and tunneller with '@w0' then making a key into the keymap 'w0'. That should work (I think).
      w0 is such a commonly used macro that Angband comes with X already bound to it.

      Comment

      • youtoo
        Scout
        • Aug 2013
        • 31

        #4
        how do you make a keymap? I looked in docs and did not see it.

        is that what people normally use inscribe for? for macros? I dont know what other macros people use.

        Comment

        • OOD Town drunk
          Adept
          • Feb 2013
          • 171

          #5
          Originally posted by youtoo
          how do you make a keymap? I looked in docs and did not see it.

          is that what people normally use inscribe for? for macros? I dont know what other macros people use.
          Use the interact with keymaps menu in the options, = key.
          Select create a keymap.
          Press whatever key you want to hotkey.
          Then type out macro.
          There is a keystroke to end it. It should tell you. I forget what key it is.

          Keymaps are incredibly useful for spellcasters. I like to map my mages primary attack spell to the spacebar, blink to tab, teleport to shift/tab, detection spells to shift/1 shift/2 shift/3, various spells/items to the F1-F12 keys. It will make everything much less tedious. You should also get acquainted with the squelch feature. Streamline everything.

          Comment

          • Raajaton
            Swordsman
            • May 2012
            • 296

            #6
            Inscriptions can be used for lots of things. Macros are definitely 1 application, but has some others too. As far as macros go, spellcasters can inscribe their spellbooks so that their keybinds will always stay the same. For example inscribing the second mage book with @m2. That book might be b) in your inventory at the moment, but if your first spellbook gets destroyed or stolen and you have a macro to cast teleport using mbf it's not going to work. Using inscript you can set a macro to m2f, and now regardless of what slot that spellbook takes in your inventory, the spell will work every time.

            Most other uses are for ease of utilizing resources in your inventory. Maybe you have a rod of detection that you're using all the time. The inventory letter might be changing all the time, and every time you hit z you need to check your inventory to see what slot you need to use. If you inscribe it with @z1, hitting z and then 1 will use that rod regardless of where it sits in the inventory. You can do the same sort of stuff for 'q'uaffing potions, 'u'sing staffs, 'a'iming wands, 'r'eading scrolls and anything else you can think of using from your inventory by inscribing them with an @ and whatever command is used for that particular item.

            You can also create message prompts if you want the game to warn you before using an item. Say you want to inscribe a Scroll of Teleportation with @r3, but you're concerned that you might hit it 3 accidentally when attempting to hit 2 to use a Scroll of Satisfy Hunger. You can inscribe that teleportation scroll with @r3!*. Now whenever you hit r3 it will ask you if you're sure you want to use that scroll, and you need to hit y/n.

            There are lots of other applications of insriptions, but these are some of the basic uses. By inscribing all the tools you frequently use in your inventory, you can greatly increase your speed of play by removing the need to constantly stare at your inventory.

            Comment

            • jford_2505@hotmail.com
              Apprentice
              • Apr 2014
              • 55

              #7
              Does anyone know what the inscription is that will warn you each turn whenever you have a particular item equipped?

              Comment

              • MattB
                Veteran
                • Mar 2013
                • 1214

                #8
                Originally posted by Raxmei
                w0 is such a commonly used macro that Angband comes with X already bound to it.
                Actually 'X' is bound to 'w0ss', which makes you switch weapons and then, bizarrely, search twice. I've asked on these forums before, but nobody seems to know why. Presumably there must be a reason...anyone?

                Comment

                • Twilight
                  Apprentice
                  • Jan 2009
                  • 58

                  #9
                  Originally posted by MattB
                  Actually 'X' is bound to 'w0ss', which makes you switch weapons and then, bizarrely, search twice. I've asked on these forums before, but nobody seems to know why. Presumably there must be a reason...anyone?
                  Without checking the pref-files. Are you sure it's not 'w0\s\s' wich adds two spaces after switching to clear more's? That is what it should be otherwise I guess.
                  It's better to burn out than to fade away!

                  Comment

                  • MattB
                    Veteran
                    • Mar 2013
                    • 1214

                    #10
                    Originally posted by Twilight
                    Without checking the pref-files. Are you sure it's not 'w0\s\s' wich adds two spaces after switching to clear more's? That is what it should be otherwise I guess.
                    Nope, just 'w0ss' for me, but thanks for answering the question - now I know!

                    Comment

                    • Timo Pietilä
                      Prophet
                      • Apr 2007
                      • 4096

                      #11
                      Originally posted by Twilight
                      Without checking the pref-files. Are you sure it's not 'w0\s\s' wich adds two spaces after switching to clear more's? That is what it should be otherwise I guess.
                      Maybe it is leftover from older pref-file format. AFAIK space is now, well, space = " ". It is not special character. "w0 " equals w + 0 + space + space.

                      Comment

                      • Ingwe Ingweron
                        Veteran
                        • Jan 2009
                        • 2129

                        #12
                        Actually, the "x" key is erroneously keymapped as "w0ss" in 3.5; an error I reported soon after its release. It swaps the weapon then conducts two "search" functions. I believe it was corrected in the one nightly released after the 3.5 release.

                        EDIT: Just checked, it was not corrected in the 10 February 2014 nightlie release. Change the "x" keymap to just w0 and it will work properly.
                        Last edited by Ingwe Ingweron; July 14, 2014, 17:52.
                        “We're more of the love, blood, and rhetoric school. Well, we can do you blood and love without the rhetoric, and we can do you blood and rhetoric without the love, and we can do you all three concurrent or consecutive. But we can't give you love and rhetoric without the blood. Blood is compulsory. They're all blood, you see.”
                        ― Tom Stoppard, Rosencrantz and Guildenstern are Dead

                        Comment

                        • Timo Pietilä
                          Prophet
                          • Apr 2007
                          • 4096

                          #13
                          Originally posted by Ingwe Ingweron
                          Actually, the "x" key is erroneously keymapped as "w0ss" in 3.5
                          Pretty weird bug to introduce. I checked, and when we still had that "\x" format for special chars keymap for X was still simple "w0". No spaces. It's not code or anything, you find that in \lib\pref\pref.prf.

                          Comment

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