I've been wanting to do this for some time... Soliciting inputs and maybe I'll work on it.
A potion drinking SUB routine that will sense if a hand is free and react intelligently.
Determine how to free up a hand for drinking.
1 - two handed weapon in hands - fast weapon switch to see if one hander is alternate weapon, if NOT then switch back and return without drinking.
2 - two handed weapon in hands - fast weapon switch to see if one hander is alternate weapon, if SO then drink, switch and return.
3 - shield and weapon in hands - drop shield, drink, arm shield.
4 - shield and spell book - drop spell book, drink, arm spell book.
Determine what to drink.
1 - Greater Heal
2 - Greater Cure
3 - Total Refresh
4 - Greater Agility
5 - Greater Strength
Nightsight, etc... ?
Include eating stuff?
I want to make this a sub routine that would be easily integrated to anyones script. Include a simple call and timer when required. Something like:
gosub QUAFF g_cure
drink a greater cure
gosub QUAFF g_heal right
force a disarm right hand, then drink a greater heal, then rearm right hand - over rides the subs logic
I'm still in the pre-pre-pre-planning phase. If this is already available then disregard completely. If anyone has inputs, please post them here and I might start some preliminary data gathering.
Thanks.