Help with key designation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • petefj
    Rookie
    • Apr 2014
    • 20

    Help with key designation

    Is there a way of using one of the unused keys to read a scroll? I would like the ability to read a “Phase door scroll” by selection of an unused key.
    If this is simplistic I do apologise. I must say that coding is a black and unknown art to me.
  • backwardsEric
    Knight
    • Aug 2019
    • 531

    #2
    You can map a key to an action. The section of the help describing that is here: help for Angband's keymaps.

    To do that for reading a phase door scroll, you'll want to inscribe the scrolls so that they can be referred to by a number rather than the letter that is their current position in the pack. If you haven't done that already, press '{' for inscribe, select the phase door scrolls, and then enter
    Code:
    @r1
    for the inscription. That sets those scrolls so you can select them with '1' when using the read command. You can replace '1' with another digit to use that digit for selecting the scrolls.

    With the inscription set, map the key to invoke

    Code:
    r1
    as the action.

    There is a mechanism for automatically inscribing items (so when you use up all of your scrolls and buy or find more, you don't have to remember to inscribe the new stack for your keymap to work). Someone else may chime in with how best to use that for this case, since that's something I've never bothered to do.

    Comment

    • Estie
      Veteran
      • Apr 2008
      • 2347

      #3
      To inscribe all phase door scrolls, just do the inscribing in the item knowledge menu instead of on the scrolls in the inventory.

      ~ a) for item knowledge
      down to scrolls, right to scroll type, select phase door, type {@r1 as above.

      Comment

      • Ingwe Ingweron
        Veteran
        • Jan 2009
        • 2129

        #4
        Or in the = { menu..
        “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

        • petefj
          Rookie
          • Apr 2014
          • 20

          #5
          Help with key desination

          Originally posted by petefj
          Is there a way of using one of the unused keys to read a scroll? I would like the ability to read a “Phase door scroll” by selection of an unused key.
          If this is simplistic I do apologise. I must say that coding is a black and unknown art to me.
          Many thanks for the replies. I’ll play around with them over the week-end and see if I can get it to work.
          Thanks again.
          petefj

          Comment

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