Adventure -> Camp -> Adventure kind of script?

D

discharge

Guest
I'm really unfamiliar with scripting, firstly.

I've looked at a bunch of scripts and can't quite figure out how to make a script retreat to the campground for 3 turns once it's been beaten up. Maybe there's a better way to do it, but for the intents of this script I'm farming Meat at the Icy Peak (who isnt?) and don't want to bother buying HP/MP items.

So essentially, all I want the script to do is use a skill at the Icy Peak, fight to the death, rest for 3 turns, return to the peak. Is this possible within KoLmafia's scripting?

Thanks!
 

Tirian

Member
Barring any syntax errors, here's a script that does what you want:

Code:
void main()
{

while (true)
{
  if (my_adventures() == 0) return;
  adventure(1, $location[icy peak]);
  if (have_effect($effect[beaten up]) >= 0) cli_execute("rest 3");
}

}

Having written it, I would advise you to not run it. If you've made any kind of commitment to meat farming, then you're probably "spending" over 2000 meat by burning three adventures away from the Peak. If an SGEAA and a full heal costs more than that for you, then another ascention or two will clear that problem up.
 
Top