I've added keyboard macro support to AngbandOS http://angbandos.skarstech.com. Which brings me to this next topic ...
Keyboard macros only work when the game is ready for the original position the macro was intended for. Usually, this position is when the character is ready for game input. The macros reek havoc if a menu is display, waiting for Rest subcommand, store command, something, something. I'm not familiar with anyone wanting keyboard macros for in store actions and the like.
I'm considering enumerating all of the possible commands and creating a "menu" type assignment for macros.
Examples:
F1 => "Fire Arrow (best)"
F2 => "Fire Standard Arrow"
F8 => "Rest As Needed"
F9 => "Spell Magic Missile"
F10 => "Spell Light Room"
F11 => "Spell Trap and Door Location"
F12 => "Eat Ration of Food"
With these types of assignments, the command system only accepts the macro command during game play (not store, or other weird areas like "--more--")
Obviously, the command has to vet whether the player can actually perform that action (spell needs possession of the book etc) ... but something like this could guarantee either it works ... or nothing bad happens.
Thoughts?
Keyboard macros only work when the game is ready for the original position the macro was intended for. Usually, this position is when the character is ready for game input. The macros reek havoc if a menu is display, waiting for Rest subcommand, store command, something, something. I'm not familiar with anyone wanting keyboard macros for in store actions and the like.
I'm considering enumerating all of the possible commands and creating a "menu" type assignment for macros.
Examples:
F1 => "Fire Arrow (best)"
F2 => "Fire Standard Arrow"
F8 => "Rest As Needed"
F9 => "Spell Magic Missile"
F10 => "Spell Light Room"
F11 => "Spell Trap and Door Location"
F12 => "Eat Ration of Food"
With these types of assignments, the command system only accepts the macro command during game play (not store, or other weird areas like "--more--")
Obviously, the command has to vet whether the player can actually perform that action (spell needs possession of the book etc) ... but something like this could guarantee either it works ... or nothing bad happens.
Thoughts?
Comment