I think the confusing issue I had the other day regarding the super-verbose mode reporting the incorrect target MP % is based on a cosmetic issue and is related to the below as well. I understand what the script is doing based on our conversations here. I agree the script, at this point, in these situations is making the right choices. I am happy with how well it is functioning compared to the frustrations I was having earlier pre-bug fixes. The more I understand, the more it's like a light bulb turns on.
I felt confident enough to drop down a level of verboseness from super verbose to just plain old verbose. This is on my Sauceror and my first run thru at this lesser verbose mode:
Code:
> restore both
Restoring HP! Currently at 692 of 977 HP, 683 of 978 MP... Target HP = 977, current meat: 57894.
In mallmode, best item is: scroll of drastic healing @ 330.0 [B][COLOR=blue]How do we get from here...[/COLOR][/B]
In mallmode, best item is: magical mystery juice @ 574.1177 [B][COLOR=red]<-- this is confusing to see here as the actual cost value appears later[/COLOR][/B]
Mall price to restore 20MP is 48 meat.
Cast a healing skill.
Casting Cannelloni Cocoon 1 times... [B][COLOR=blue]...to here?[/COLOR][/B]
You gain 285 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 977, MP: 663
My meat: 57894. Should be successfully healed...
Restoring MP! Currently at 977 of 977 HP, 663 of 978 MP... Target MP = 978, current meat: 57894.
In mallmode, best item is: magical mystery juice @ 741.17645 [B][COLOR=green]<-- This is correct and what I'd expect to see[/COLOR][/B]
Using 8 magical mystery juice
Purchasing magical mystery juice (8 @ 100)...
You acquire magical mystery juice (8)
Purchases complete.
Using 8 magical mystery juice...
You gain 338 Mana Points
Finished using 8 magical mystery juice.
Current HP: 977, MP: 978
My meat: 57094. Should be successfully healed...
From a prior code snippet in super-verbose mode:
Code:
Restoring HP! Currently at 367 of 922 HP, 377 of 877 MP... Target HP = 922, current meat: 19574.
Restoring MP! Currently at 367 of 922 HP, 377 of 877 MP... Target MP = 458, current meat: 19574. [B][COLOR=red]<--misleading target indicator, can this be omitted/changed for clarification of intent?[/COLOR][/B]
To heal with Doc Galaktik would cost 8500.0 meat. Now to beat that price...
In the above example I was going nuts because of the Target MP shown not being my actual Target MP. You explained "it checks your MP to see if the cost of a healing spell will reduce your MP below your MP healing trigger." This made sense to me, but doesn't rectify that the script reports the trigger MP rather than the true target MP in the restore both/restore hp (where my_mp < Trigger MP %) scenario.
In the verbose mode it does not print this misleading target indicator, but it does report the incorrect cost to restore MP initially. A quick glance at the first log here makes me wonder
how my total cost to restore mana went from 574 meat + 48 meat to restore 20 MP to 741 meat to restore MP fully. Again, I understand what the script is doing now after talking with you about it, but I think the verbose comments need to be fine tuned a bit.
What I'd personally like to see in a verbose mode is something like this:
Restoring HP! Currently at 692 of 977 HP, 683 of 978 MP... Target HP = 977, current meat: 57894.
In mallmode, best
HP restorative is: scroll of drastic healing @ 330.0
Now to beat that price...
Include this line?
In mallmode, best
MP restorative is: magical mystery juice
Omit the price reference you currently have on this line and it might make more sense to the user
Mall price to restore 20MP is 48 meat.
Cast a healing skill.
Casting Cannelloni Cocoon 1 times...
You gain 285 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 977, MP: 663
My meat: 57894. Should be successfully healed...
Restoring MP! Currently at 977 of 977 HP, 663 of 978 MP... Target MP = 978, current meat: 57894.
In mallmode, best
MP restorative is: magical mystery juice @ 741.17645
Only show this cost at this point, not earlier
Using 8 magical mystery juice
Purchasing magical mystery juice (8 @ 100)...
You acquire magical mystery juice (8)
Purchases complete.
Using 8 magical mystery juice...
You gain 338 Mana Points
Finished using 8 magical mystery juice.
Current HP: 977, MP: 978
My meat: 57094. Should be successfully healed...
Whereas in super verbose mode, continue to have it do all that it is currently doing, EXCEPT for printing out the misleading MP target restoration indicator unless you can get it to be clearly understood to the viewer of the output somehow.
Is this doable?
Thanks,
Spiny
Edit: I tend to see things clearer after typing them all out, hence my overzealous need to edit my posts all the time.