[quote author=Sandiman link=topic=1994.msg9963#msg9963 date=1227640627]
Bale, this looks like a fantastic script concept. Here's my suggestion for improvement: create a priority list of the restorers (resting, inventory items, purchased items, mp), and allow the user to edit the list.
For example, a user who was really trying hard to save meat for some big ticket item might want something like
Code:
[MP, REST, INV, PURCHASE]
... while someone who values MP over meat would adventure with
Code:
[INV, PURCHASE, MP, REST]
Clearly not necessary, as the script is already ideal for several users. Just a feature suggestion for the future.
[/quote]
I see your point, but this script is actually a little bit more complicated than that. For instance, it checks to see if you have sufficient restorers in inventory to heal up to your target HP, and if you don't, then it will use canneloni cocoon instead of partially restoring you from inventory.
Still... that is a worthwhile point. Perhaps I could add boolean for Save_mode or perhaps just better support for characters outside of hardcore/ronin. Unfortunately it requires more than a different order of healing.
Could you explain how you like to heal? Do you prefer to rest rather than spend meat? Is there a limit to how much meat you will spend? I can imagine that someone who tries to save his meat will be willing to use some restorers like scrolls of drastic healing and carbonated water lilys, but refuse to use more expensive restorers like New Cloaca-Cola. Such a person might be willing to purchase mmj, but would rather rest in the campground rather than use Doc Galaktik to restore his mp: a tactic I find horrifying.
If you could exactly explain your preferred heuristic for healing, then I might tailor it to something like that.
Right now I'm more concerned with checking to ensure that it won't use your last 4 red pixel potions if you don't have funkslinging, or your last 5 gauze garters/filthy bandages if you do have funkslinging. At the moment I can work around that by simply putting them safely into my closet, but that isn't wonderfully perfect because I could forget to do some promptly. I'd rather it was as elegant as my treatment of anti-anti-antidotes where it always ensures that I keep a couple on hand just in case I need to use one during combat.