Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old February 4, 2021, 17:27   #1
petefj
Rookie
 
Join Date: Apr 2014
Location: North Cornwall
Posts: 20
petefj is on a distinguished road
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.
petefj is offline   Reply With Quote
Old February 4, 2021, 17:48   #2
backwardsEric
Adept
 
Join Date: Aug 2019
Posts: 135
backwardsEric is on a distinguished road
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.
backwardsEric is offline   Reply With Quote
Old February 4, 2021, 19:38   #3
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 1,849
Estie is on a distinguished road
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.
Estie is offline   Reply With Quote
Old February 5, 2021, 02:19   #4
Ingwe Ingweron
Veteran
 
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 2,023
Ingwe Ingweron is on a distinguished road
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
Ingwe Ingweron is offline   Reply With Quote
Old February 5, 2021, 20:02   #5
petefj
Rookie
 
Join Date: Apr 2014
Location: North Cornwall
Posts: 20
petefj is on a distinguished road
Help with key desination

Quote:
Originally Posted by petefj View Post
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
petefj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.