So, my starting goal was to create a script that summons BRICKOs until the mp cost of doing so exceeds my max mp.
Before tonight I had absolutely no experience with ash, so please bear with me.
I ran into a hangup: I want to use my KoLmafia mood for MP restoration, but I don't know how to do this in an .ash script.
Here's what I have so far:
Hopefully I'm as close to a functional script as I think I am. Tips would be greeeaaaaatttlllllyy appreciated. If you responded with a fully functional script that did exactly what I want it to do, I'd even throw some meat at you. Because I'd be that appreciative. Ya.
Before tonight I had absolutely no experience with ash, so please bear with me.
I ran into a hangup: I want to use my KoLmafia mood for MP restoration, but I don't know how to do this in an .ash script.
Here's what I have so far:
Code:
I want to cast summon brickos until mp is insufficient for another cast,
then restore until my_mp() is > mp_cost(summon brickos) using Neverending soda, Nuns, MMJ, in that order.
Continue this until mp_cost(summon brickos) is > max_mp().
boolean cli_execute( outfit Max MP )
while ( int my_maxmp() >= int mp_cost(Summon BRICKOs) )
{
if ( int my_mp() >= int mp_cost(Summon BRICKOs)
{
use_skill(Summon BRICKOs)
}
if (int my_mp() < mp_cost(Summon BRICKOs) )
{
## Here is where I want to restore MP according to my mood.
How do I go about doing that in ash?
Hopefully I'm as close to a functional script as I think I am. Tips would be greeeaaaaatttlllllyy appreciated. If you responded with a fully functional script that did exactly what I want it to do, I'd even throw some meat at you. Because I'd be that appreciative. Ya.