Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Old March 4, 2016, 22:50   #1
Therem Harth
Join Date: Jan 2008
Posts: 926
Therem Harth is on a distinguished road
Stupid idea #355: inscribing macros

Normally I might have a spellbook inscribed:


and then a macro


Or somesuch. (The above is a typical Manathrust macro in ToME 2.)

This is custom settings in two places. It'd be nice to have everything in one place.

My suggestion: add an inscription specification for macros. For instance


[ => start a new macro

F1 => first function key

: => start the command sequence

m_a* => press m, (this item's slot), a, *

] => end the macro
Or likewise


C-x => Ctrl-x

m_d => press m, (this item's slot), d
... Does this sound reasonable, or is it cramming in too much stuff?
Therem Harth is offline   Reply With Quote
Old March 4, 2016, 23:13   #2
Vanilla maintainer
Nick's Avatar
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,546
Donated: $60
Nick will become famous soon enough
It's an interesting idea. I'm not the world's greatest expert on macros, I'd appreciate some more informed opinions.
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old March 5, 2016, 00:40   #3
Derakon's Avatar
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
I find it a bit inelegant that every time you input a key, the game would have to scan all of your items to see if they have relevant keymaps assigned to them. That's my biggest complaint.

I'd prefer a system where you could create keymaps that are explicitly attached to a specific object type, rather than to the object that has a specific "magic" inscription on it. So e.g. I want to be able to say "cast the first spell from the book Magic for Beginners", not "cast the first spell from the book inscribed with @m1".

Maybe what we need is to add an option when examining items in the inventory: "create keymap using this item type". You'd input a keymap as you currently do, except that in place of the item prompt you input _ (or some other special character). Then the game uses the selected item automatically, or fails the keymap if it's not in your inventory/equipment/quiver.
Derakon is offline   Reply With Quote
Old March 5, 2016, 05:36   #4
Diego Gonzalez
Join Date: May 2007
Posts: 170
Diego Gonzalez is on a distinguished road
Jeff is doing something like this in the new NPP, under the hotkeys menu
Diego Gonzalez is offline   Reply With Quote
Old March 5, 2016, 08:45   #5
Pete Mack
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,868
Donated: $40
Pete Mack is on a distinguished road
V doesn't have macros anymore, onl keymaps/hotkeys. Macros are different: They are how terminal escape sequences for function keys used to be converted into a single keyboard equivalent. (this is done some other way now, I think.) In fact, what you are trying to do WOULD work if you used real macros. But they were removed from V some time ago. (It was fairly hairy code, so it was a pain for new maintaners to take over.)
One trouble with user defined macros is the substitution happens in all input streams, not just at command entry. So they could lead to bizarre side effects in unexpected parts of the game.
Pete Mack is offline   Reply With Quote

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
inscribing @0 and using 'x' to swap causes me to search intently Vanilla 2 May 31, 2014 00:48
[3.3.2] Game crashed upon inscribing. David Vestal Vanilla 0 December 27, 2011 02:52
Problem inscribing Gabrus Vanilla 3 February 9, 2011 11:26
FAangband Quiver Inscribing Whelk Variants 1 March 20, 2010 06:25
Stupid Idea - Color Pits Djabanete Variants 7 October 29, 2007 21:55

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

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