// CounterKeeper v1.0
// Thanks to those whose work has been absorbed to make this:
// jasonharper, StormCrow42, Alhifar, Ankorite, antimarty and Miser.
// Revisioned and reconstructed by Bale.
// To use:
// set counterScript = CounterKeeper.ash
// set wormwoodGoal = objective
// objective can be any wormwood prize or stat. (eg. moxie51 or cancan skirt)
// You can add 51 or 1 to a stat to limit the turns you get your stat adventures.
// This script is very good at figuring out what you mean, so you can just type "cancan" or "skirt".
// Supported Counters:
// - Fortune Cookie: If you're not in hardcore it will get the available semi-rare with highest mall price.
// - Wormwood: Will automatically get the wormwood goal of your choice. You can set the goal in CLI with:
// set wormwoodGoal = xxx
// where xxx is a stat or item. (Optionally add 951, 51 or 1 to limit the turns spent on stats.)
// - Dance Card: Will adventure in Ballroom, if you're not already there and use another dance card.
// - Get Steel Organ: Will adventure in the Friar's Gate and then try to use the organ, if possible.
// - Dude Ranch Vacation, Tropical Island Vacation, Ski Resort Vacation:
// Will abort automatic adventuring and alert you that the vacation is ready to produce a tower item,
// but it will not adventure there automatically so you can purposefully schedule those 3 turns.
> 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.
> 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!
Because it means target, not trigger. I've got an idea what is causing odd results for you... I'll look into it, but it is a complicated interaction. Incidentally, If I'm correct, it won't over-restore MP like that during normal adventuring, only if you explicitly call it with a CLI command. If you restored mana with ash restore_hp(0) or allowed it to trigger itself, then it would work perfectly. I've got an alias that does that, so it has taken me a long time to figure out this problem.Code:> restore hp 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.
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.
if( (Objective != 0 && my_mp() <= amount) || (objective == 0 && my_mp()<= mp_autoheal))
if( (objective != 0 && my_mp() <= amount) || (objective == 0 && my_mp()<= mp_autoheal))