Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old March 27, 2018, 01:01   #1
Dudemanbroski
Rookie
 
Join Date: Dec 2017
Posts: 2
Dudemanbroski is on a distinguished road
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.
Dudemanbroski is offline   Reply With Quote
Old March 27, 2018, 01:40   #2
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,829
Donated: $40
Pete Mack is on a distinguished road
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.)
Pete Mack is online now   Reply With Quote
Old March 27, 2018, 06:28   #3
Ingwe Ingweron
Veteran
 
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 1,635
Ingwe Ingweron is on a distinguished road
Quote:
Originally Posted by Dudemanbroski View Post
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
Ingwe Ingweron is offline   Reply With Quote
Old March 27, 2018, 13:27   #4
Sky
Veteran
 
Join Date: Oct 2016
Location: somewhere on the south coast
Age: 45
Posts: 1,113
Sky is on a distinguished road
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"
Sky is offline   Reply With Quote
Old March 27, 2018, 14:35   #5
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 1,563
Estie is on a distinguished road
Quote:
Originally Posted by Ingwe Ingweron View Post
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.
Estie is offline   Reply With Quote
Old March 28, 2018, 06:34   #6
Ingwe Ingweron
Veteran
 
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 1,635
Ingwe Ingweron is on a distinguished road
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
Ingwe Ingweron is offline   Reply With Quote
Old March 28, 2018, 07:16   #7
Grotug
Knight
 
Join Date: Nov 2013
Posts: 867
Grotug is on a distinguished road
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.
__________________
Detailed account of my Ironman win here.
Grotug 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keymaps and macros changes question. CJNyfalt Development 2 June 26, 2011 01:00
macros => keymaps jens Vanilla 2 May 19, 2011 02:43
Swap macros / keymaps / inscriptions PaulBlay Vanilla 4 March 25, 2009 07:47
Some questions about macros and keymaps danvari Vanilla 4 August 14, 2008 21:44
Macros/keymaps question Jude Variants 7 November 18, 2007 21:45


All times are GMT +1. The time now is 03:28.


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