Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old August 14, 2008, 16:10   #1
danvari
Rookie
 
Join Date: Feb 2008
Posts: 7
danvari is on a distinguished road
Some questions about macros and keymaps

hey!

i played tome for a while and used it great macro recorder to record some keybindings. now i am playing angband and do not know what to do ^^. i read the documentation, but i do not understand everything, i am learning quite well from examples, so here is what i want:

i want to bind F1 to Magic Thrust at an enemy. what i did: i created a new macro (using "@") with the trigger F1 and typed in: maa*t
ok that is working, but what happens if the order of my books changes? so i have to type mba*t for example? i read that i need to inscribe my stuff...ok with the "{" - key...

a) but how can i tell angband to use my inscriptions?
b) what is the difference between macros and keymaps? which should i use?
c) i read that many people are using an "\e\e..." before the macro..why? in the documentation it is said that this is the escape key, but what does it do?

i hope you can help me .
danvari is offline   Reply With Quote
Old August 14, 2008, 18:37   #2
Skelwing
Rookie
 
Join Date: Jun 2008
Location: United States
Posts: 14
Skelwing is on a distinguished road
Quote:
a) but how can i tell angband to use my inscriptions?
Angband will pay attention to inscriptions including certain characters; the one you're looking for is @. If you (for example) inscribe a spellbook with {@1}, then that spellbook will be selected when you press 1 or the book's inventory letter at a command prompt. If you want the book to only respond to 1 when casting spells, then you want to inscribe it with {@m1}.

This works in macros too; with this inscription, you can change the macro to: m1a*t and it will work even if the inventory order changes.

Quote:
b) what is the difference between macros and keymaps? which should i use?
Macros will not take effect while other keymaps/macros are being processed, and keymaps will. In general, use macros for making "shortcuts", and keymaps for changing the underlying action of a key.

Quote:
c) i read that many people are using an "\e\e..." before the macro..why? in the documentation it is said that this is the escape key, but what does it do?
The escape key will advance -more- messages, as well as cancel out other prompts you may have open. This is important because if you don't have the escape keys and try to use the macro, Angband will interpret the beginning of the macro for something other than what was intended, and completely screw up the macro.
Skelwing is offline   Reply With Quote
Old August 14, 2008, 19:56   #3
danvari
Rookie
 
Join Date: Feb 2008
Posts: 7
danvari is on a distinguished road
ahhh yes thank you, you helped me much

ok, one last question: how do i know that a "@" refers to spellbooks? ok i know it now, but does it stand somewhere in the docs where i can find it?
danvari is offline   Reply With Quote
Old August 14, 2008, 20:43   #4
Psi
Knight
 
Join Date: Apr 2007
Location: Surrey, UK
Age: 44
Posts: 870
Psi is on a distinguished road
Quote:
Originally Posted by danvari View Post
ahhh yes thank you, you helped me much

ok, one last question: how do i know that a "@" refers to spellbooks? ok i know it now, but does it stand somewhere in the docs where i can find it?
It doesn't. The command follows the @. ie @m1 means this will be the item referenced when m1 is entered. Similarly inscribing @b1 will mean b1 browses this item, @w3 means w3 will wield this item etc.

I usually inscribe my spell books !d!k!v@m1@b1, !d!k!v@m2@b2 etc

Which means confirm on dropping, destroying and throwing and treat this as book x for casting and browsing.
Psi is offline   Reply With Quote
Old August 14, 2008, 21:44   #5
Zikke
Veteran
 
Join Date: Jun 2008
Location: Los Angeles
Posts: 1,068
Zikke is on a distinguished road
Wow that's pretty advanced stuff. And here I thought I was hot sh*t for setting 4 damage spells and 3 detect spells to my F1-7 keys...
Zikke 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
[SA] Macros in SAngband? Poop Loops Variants 1 June 13, 2008 18:36
[All] Keyboard interface and keymaps Remuz Vanilla 12 April 17, 2008 23:24
On macros... Wisp Vanilla 5 February 26, 2008 21:37
Macros/keymaps question Jude Variants 7 November 18, 2007 21:45
Crash - angband: Too many macros! Kav Vanilla 16 June 15, 2007 14:38


All times are GMT +1. The time now is 13:06.


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