Guano Junction goal to break rocks

When adventuring in Guano Junction, the overall goal is to clear the three piles of rocks that block the three other chambers. You can clear a pile by using a sonar-in-a-biscuit, or by encountering a screambat. The built-in goal for Mafia automation is +3 sonar-in-a-biscuit, though, not all three piles cleared. Just now, doing my first hardcore run, by the time I gathered three biscuits, I'd already also encountered two screambats. Is there a way to get Mafia to automate just until you meet any combination of the requirements to clear the rocks?
 
Maybe a custom script? I don't know much about how Mafia works, but can it handle floating variables? Maybe assign a variable and have it increment by one on gaining a biscuit, and also when encountering a screambat?
 

fronobulax

Developer
Staff member
There are other people's scripts out there that seem to understand that encountering a screambat is the equivalent of finding and using sonar. I'll try to remember to find and look at one.

That said a way to adventure for a goal is to have a loop that checks if the goal is met, adventures once and then checks again until the goal is met. So you can have a counter that you increment when you use a sonar or fight a screambat. You stop when it is 3 or larger. That might point yo in the right direction.

You might also want to look at https://wiki.kolmafia.us/index.php/Main_Page or https://wiki.kolmafia.us/index.php/ASH_For_Beginners. The wiki is often incomplete or out of date but most of the scripting basics are unchanged. If you already know JavaScript anything you can do in ash (mafia's scripting language) you should be able to do in JavaScript. I'm not the best source of help for that but it is an option.
 

Crowther

Active member
You can use can_adventure() on the bat hole locations to see how many sonars and screambats have been used. Still requires a custom script, but not an overly complex one.
 
Top