Quick question about keymaps / macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dudemanbroski
    Rookie
    • Dec 2017
    • 2

    Quick question about keymaps / macros

    I am running Angband 4.1.2 and I am trying to create a macro for rest as needed (R & enter) so I smacked R&\r in to the create a keymap thingie and to my surprise it doesn't work. Neither does R&[enter], nor R&/r and the documentation is very, very sparse and barely even mentions the macro / keymap functionality of the game not to mention how to make it press enter for me, one would think that this might be a good bit of a information to include in the documentation. Is there some esoteric invocation I can enter in to the keymap / macro creator wizard to make it do what I want?

    ps. why are they even called keymaps? It is somewhat confusing as keymap makes me think re-mapping a key, as in modern computer game way where you might re-map a crouch key from c to ctrl for example. Macro on the otherhand means quite literally making one keypress make an action that would normally require many keypresses.
  • Pete Mack
    Prophet
    • Apr 2007
    • 6883

    #2
    Macro is a technical term meaning significantly more than that allowing (and they have been removed from angband.) In angband, aKeymap allows you to execute a single ordinary command. Macros used to allow things like toggling options (and in Sil allow toggling abilities like Flaming Arrows.)

    Comment

    • Ingwe Ingweron
      Veteran
      • Jan 2009
      • 2129

      #3
      Originally posted by Dudemanbroski
      I am running Angband 4.1.2 and I am trying to create a macro for rest as needed (R & enter) ...
      Resting to full shouldn't be a regular practice. Rather than R&, try R5[Enter]. Or some other number of turns. I map [Tab] to R5[Enter], but you might like R10, or some other number. @ rests that number of turns unless earlier disturbed. If more rest is required, I hit Tab again. If it is one of the rare instances that resting to full may be warranted, then I just use the regular key press method.
      “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

      • Sky
        Veteran
        • Oct 2016
        • 2321

        #4
        R&[Enter] should work, it's what i use - for always resting to full. I'm not sure why this should be discouraged, resting less only leads to spamming the rest button and we know what spamming buttons leads to.
        "i can take this dracolich"

        Comment

        • Estie
          Veteran
          • Apr 2008
          • 2347

          #5
          Originally posted by Ingwe Ingweron
          Resting to full shouldn't be a regular practice. Rather than R&, try R5[Enter]. Or some other number of turns. I map [Tab] to R5[Enter], but you might like R10, or some other number. @ rests that number of turns unless earlier disturbed. If more rest is required, I hit Tab again. If it is one of the rare instances that resting to full may be warranted, then I just use the regular key press method.
          Resting to full is my regular practice. I assume you dont use it often for turncount reasons ?

          When I play, I prefer to minimize key presses rather than turn count.

          Comment

          • Ingwe Ingweron
            Veteran
            • Jan 2009
            • 2129

            #6
            I don't like standing around waiting for bad stuff to happen.
            “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

            • Grotug
              Veteran
              • Nov 2013
              • 1637

              #7
              As an HT Warrior I basically never rest. If I need to regenerate I'll walk to a place I've already been rather than rest. If I do rest in place I do it in 22 increments. The less I rest, the less trouble awakes or spawns.
              Beginner's Guide to Angband 4.2.3 Part 1: https://www.youtube.com/watch?v=m9c9e2wMngM

              Detailed account of my Ironman win here.

              "My guess is that Grip and Fang have many more kills than Gothmog and Lungorthin." --Fizzix

              Comment

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