Something unexpected occurred, but in a way, I'm happy about it...
My HC account is in day 3 of her BM run and I fired off the script today...
Code:
> restore hp
_BalesUniversalRecovery => 3.333
228 prices updated from http://zachbardon.com/mafiatools/updateprices.php?action=getmap
0 prices updated from http://nixietube.info/mallprices.txt
Pricelist updated.
Restoring HP! Currently at 23 of 77 HP, 13 of 29 MP... Target HP = 77, current meat: 1019.
Restoring MP! Currently at 23 of 77 HP, 13 of 29 MP... Target MP = 14, current meat: 1019.
Try to heal MP from inventory.
Last attempt to purchase MP with meat.
Visiting Doc Galaktik...
Restore 59 MP at Doc Galaktik's [B][color=red]Why so much?[/color][/B]
Cure purchased. [B][color=blue]Not really, thank goodness[/color][/B]
Cannot spend meat to fully restore MP! Please check preferences for allowable MP restoratives.
My MP trigger is 50% of MP. 50% of 29=14.5, so I understand why it fired off during this restore HP and why the reported Target MP = 14. Still wish it would say the word "Trigger" rather than "Target", but at least I understand it now.
What I didn't understand is the restore 59 MP. I can't restore more than my max MP, especially since I have nothing to spend that sort of restored mana on. BM, so no healing skills as a TT.
I suspect this 59 MP is deduced to max MP I can afford to purchase. I have not completed Doc Galaktik's quest so restoration is 17meat/1MP. 17*59=1003. My MP restoratives are correctly set, everything is pretty much selected except for spleen usage items and Marquis de Poivre soda. I didn't change anything so I know I should be able to buy from NPC or mall using your script.
I changed to super-verbose mode and put all but 100 meat in closet and fired it off again:
Code:
> restore hp
Restoring HP! Currently at 23 of 77 HP, 13 of 29 MP... Target HP = 77, current meat: 100.
Will need MP, so restoring it now to improve efficiency.
Restoring MP! Currently at 23 of 77 HP, 13 of 29 MP... Target MP = 14, current meat: 100.
Try to heal MP from inventory.
Last attempt to purchase MP with meat.
Visiting Doc Galaktik...
Restore 5 MP at Doc Galaktik's
You gain 5 Muscularity Points
Cure purchased.
Insufficient meat to fully restore MP without wasting restoratives!
This worked as I figured it might, it restored 5 MP because I was below my Trigger MP and I could only afford 5 MP. This brought me over the Trigger MP, so my next restore hp attempt after taking another 100 meat from closet bought the medicinal herb I expected and wanted.
Script needs a tweak for hardcore mode or do I need to do something different that I didn't think of?
Thanks in advance for help
-Spiny