Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old November 21, 2022, 21:02   #1
iggy_hunter
Apprentice
 
Join Date: Sep 2021
Location: Sunny Jacksonville, FL ... contact me @ marc-johnston@outlook.com
Posts: 91
iggy_hunter is on a distinguished road
Macros

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?
iggy_hunter 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
FAAngband and macros Amnekian Variants 3 May 13, 2015 13:33
Macros are... gone??? PowerWyrm Development 1 April 1, 2011 14:53
What are your macros? Raxmei Vanilla 4 March 22, 2011 21:00
Macros help ZenDragon Vanilla 3 June 10, 2010 02:28
On macros... Wisp Vanilla 5 February 26, 2008 22:37


All times are GMT +1. The time now is 12:18.


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