WTF? Please confirm for me that your line 1446 is this:
Code:if(reserve_purch == reserve || heal[reserve].minmp < heal[reserve_purch].minmp)
Even if that's wrong, there isn't any line anywheres near that line that modifies the map within a foreach. That error seems completely implausible
WTF? Please confirm for me that your line 1446 is this:
Code:if(reserve_purch == reserve || heal[reserve].minmp < heal[reserve_purch].minmp)
Even if that's wrong, there isn't any line anywheres near that line that modifies the map within a foreach. That error seems completely implausible.
I don't think any of that are things that I want to have a script making decisions about. I don't think any of those are applicable for a recovery script either.
Well... maybe I'd consider the aftercore slimeling since I can tell when it's running out of charges if it is a simple as feeding it antiques from the mall. Is it really that simple?
I do feel this would be more appropriate as a separate mood or BetweenBattle script though.
Could you please add a debug mode so that instead of healing right away, the script shows which HP/MP restorers it is going to use? Just hoping
Also, is it possible to force the mafia to heal using the script in the CLI? Would the restore mp command automatically use this script after registering it as instructed in the first post?
I'm puzzled. You want it to explain what it would do, but leave you unhealed? Anyway, that would be extremely difficult since it often takes place in steps that change your HP and/or MP. I'd need to keep track of a running total of what your HP/MP would be if I did something. Normally I just use my_hp() and my_mp() to track those changes which is MUCH easier, but requires me to actually use the restoratives.Could you please add a debug mode so that instead of healing right away, the script shows which HP/MP restorers it is going to use? Just hoping
restore mp and restore hp don't do exactly what you think. If you want to force the script to heal, I recommend that you make an alias:Also, is it possible to force the mafia to heal using the script in the CLI? Would the restore mp command automatically use this script after registering it as instructed in the first post?
alias restoration => ash restore_hp(0); restore_mp(0)
I'm puzzled. You want it to explain what it would do, but leave you unhealed?
restore mp and restore hp don't do exactly what you think. If you want to force the script to heal, I recommend that you make an alias:
Code:alias restoration => ash restore_hp(0); restore_mp(0)
record restorative_info {
int minhp;
int maxhp;
int minmp;
int maxmp;
float avehp;
float avemp;
boolean combat;
};
Restoring HP! Currently at 3 of 130 HP, 52 of 213 MP, current meat: 6787 ... Target HP = 124.
Casting Lasagna Bandages 1 times...
Redirected to a fight page.
Monster value: 0
Encounter: Ed the Undying
Round 0: winterbay wins initiative!
Monster value: 0
Round 1: winterbay jiggles the Staff of the Black Kettle
You gain 15 Strongness
You gain 43 Magicalness
You gain 22 Cheek
You gain a Moxie point!
You acquire an item: Holy MacGuffin
Restoring HP! Currently at 3 of 130 HP, 57 of 213 MP, current meat: 6787 ... Target HP = 124.
Casting Lasagna Bandages 1 times...
You gain 30 hit points
Lasagna Bandages was successfully cast.
You acquire an item: handful of confetti
> restore hp
Division by zero (Universal_recovery.ash, line 397)
Visiting Doc Galaktik...
Restoring HP! Currently at 33 of 130 HP, 51 of 213 MP, current meat: 6787 ... Target HP = 124.
Casting Lasagna Bandages 1 times...
Restore 90 HP at Doc Galaktik's
You gain 90 hit points
You spent 900 Meat
You gain 26 hit points
Lasagna Bandages was successfully cast.
Cure purchased.
> restore both
Searching for "anti-anti-antidote"...
Purchasing anti-anti-antidote (4 @ 30)...
You acquire anti-anti-antidote (4)
You spent 120 Meat
Purchases complete.
0 prices updated from http://nixietube.info/mallprices.txt
Pricelist updated.
_meatpermp => 5.882353
_meatperhp => 6.6666665
_version_BalesUniversalRecovery => 3.7
Purchasing some magical mystery juices for use as a combat restorative.
Searching for "magical mystery juice"...
Purchasing magical mystery juice (4 @ 100)...
You acquire magical mystery juice (4)
You spent 400 Meat
Purchases complete.
Restoring HP! Currently at 24 of 66 HP, 43 of 124 MP, current meat: 17497 ... Target HP = 66.
Try to heal HP from inventory.
Try to heal HP with skills.
Last attempt to purchase HP with meat.
Restoring MP! Currently at 24 of 66 HP, 43 of 124 MP, current meat: 17497 ... Target MP = 124.
Try to heal MP from inventory.
Using 9 Mountain Stream soda...
You gain 68 Mana Points
Finished using 9 Mountain Stream soda.
Using 1 Mountain Stream soda...
You gain 9 Mana Points
Finished using 1 Mountain Stream soda.
Last attempt to purchase MP with meat.
Searching for "magical mystery juice"...
Purchasing magical mystery juice (1 @ 100)...
You acquire an item: magical mystery juice
You spent 100 Meat
Purchases complete.
Using 1 magical mystery juice...
You gain 18 Mana Points
Finished using 1 magical mystery juice.
baleUr_Verbosity => 3
Calling Universal Recovery for type=HP, amount=0
Restoring HP! Currently at 24 of 66 HP, 124 of 124 MP, current meat: 17397 ... Target HP = 66.
Trying to fullheal
Try to heal HP from inventory.
Trying to fullheal
Try to heal HP with skills.
Last attempt to purchase HP with meat.
> ash restore_hp(0);
Calling Universal Recovery for type=HP, amount=0
Restoring HP! Currently at 24 of 66 HP, 124 of 124 MP, current meat: 17397 ... Target HP = 66.
Trying to fullheal
Try to heal HP from inventory.
Trying to fullheal
Try to heal HP with skills.
Last attempt to purchase HP with meat.
Returned: true
> restore both
Calling Universal Recovery for type=HP, amount=71
Restoring HP! Currently at 70 of 71 HP, 10 of 115 MP, current meat: 16604 ... Target HP = 71.
Trying to fullheal
Visiting Doc Galaktik...
Restore 1 HP at Doc Galaktik's
You gain 1 hit point
You spent 10 Meat
Cure purchased.
Calling Universal Recovery for type=MP, amount=115
Restoring MP! Currently at 71 of 71 HP, 10 of 115 MP, current meat: 16594 ... Target MP = 115.
Try to heal MP from inventory.
Using 1 magical mystery juice...
You gain 18 Mana Points
Finished using 1 magical mystery juice.
Using 1 Mountain Stream soda...
You gain 8 Mana Points
Finished using 1 Mountain Stream soda.
Last attempt to purchase MP with meat.
Searching for "magical mystery juice"...
Purchasing magical mystery juice (5 @ 100)...
You acquire magical mystery juice (5)
You spent 500 Meat
Purchases complete.
Using 5 magical mystery juice...
You gain 89 Mana Points
Finished using 5 magical mystery juice.
_meatpermp => 5.4054055