Difference between pages "To stat" and "Auto-stops"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Eliteofdelete
 
imported>Bale
(Hidden city revamp auto-stops)
 
Line 1: Line 1:
{{
+
Auto-stops are places where mafia's automation will automatically stop, just as the name suggests. Except for the Ultra-Rare monsters, these are all KoL non-combats. If mafia detects one of these auto-stop non-combats then automation will cease immediately after the encounter.
#vardefine:name|to_stat}}{{
 
#vardefine:return_type|stat}}{{
 
  
FunctionPage|
+
There is just one trick to using auto-stops: mafia will only auto-stop when there are no conditions set (although it will always auto-stop on Ultra-Rare monsters). If conditions are set then mafia will continue automation until it reaches those conditions and stop normally. This is to prevent auto-stops from interfering with regular automation.
name={{#var:name}}|
 
  
function1={{Function|
+
* Sleazy Back Alley: {{kolwiki|Under the Knife}} (only if the corresponding choice adventure setting is set to "switch genders".)
name={{#var:name}}|
+
* The Haunted Pantry: {{kolwiki|The Manor in Which You're Accustomed}}
aggregate={{#var:aggregate}}|
+
* The Ruins of Fernswarthy's Tower: {{kolwiki|Take a Dusty Look!}}
return_type={{#var:return_type}}|
+
* Misspelled Cemetary: {{kolwiki|A Grave Situation}}
return_also={{#var:return_also}}|
+
* Haunted Library: {{kolwiki|Take a Look, it's in a Book! (Rise)|Rise}} and {{kolwiki|Take a Look, it's in a Book! (Fall)|Fall}} of Take a Look, it's in a Book!
parameter1={{Param|string|convert}}|
+
* Whitey's Grove: {{kolwiki|It's A Sign!}}
}}|
+
* Teleportitis: {{kolwiki|The Oracle Will See You Now}}
 +
* The eXtreme Slope: {{kolwiki|3 eXXXtreme 4ever 6pack}}
 +
* Giant's Castle (Top Floor) {{kolwiki|Keep On Turnin' the Wheel in the Sky}}
 +
* Barrrney's Barrr:
 +
*# {{kolwiki|This Adventure Bites}}
 +
*# {{kolwiki|Step Up to the Table, Put the Ball in Play}}
 +
* The Poop Deck: {{kolwiki|It's Always Swordfish}}
 +
* The Palindome: {{kolwiki|Drawn Onward}}
 +
* The Laboratory: {{kolwiki|Mr. Alarm}}
 +
* The Haunted Ballroom: {{kolwiki|We'll All Be Flat}}
 +
* Arid, Extra-Dry Desert: Auto-stops every time you need to start adventuring at the Oasis or if you need to get an item:
 +
*# {{kolwiki|Let's Make a Deal!}} (Before you find the Oasis and get Ultrahydrated.)
 +
*# {{kolwiki|A Sietch in Time}}
 +
*# {{kolwiki|No Colors Anymore}} (without can of black paint). With paint, adventuring continues to Walk Without Rhythm.
 +
*# {{kolwiki|Walk Without Rhythm}}
 +
*# {{kolwiki|Walk Without Rhythm 2}} (Only occurs if you didn't have a drum machine at previous auto-stop.)
 +
*# {{kolwiki|The Sleeper Has Awakened}}
 +
* An Overgrown Shrine: Each of the four has an autostop
 +
** Northwest {{kolwiki|Earthbound and Down}}
 +
** Southwest {{kolwiki|Water You Dune}}
 +
** Northeast {{kolwiki|Air Apparent}}
 +
** Southeast {{kolwiki|Fire when Ready}}
 +
* A Massive Ziggurat {{kolwiki|Legend of the Temple in the Hidden City}}
 +
* Orcish Frat House: {{kolwiki|I Just Wanna Fly}}
 +
* The Orcish Frat House (Bombed Back to the Stone Age): {{kolwiki|Me Just Want Fly}}
 +
* The Mer-Kin Outpost: {{kolwiki| Granny, Does Your Dogfish Bite?}}
 +
* Anemone Mine: {{kolwiki| Not a Micro Fish}}
 +
* '''Bad Moon''': All special Bad Moon adventures {{kolwiki|Bad_Moon|listed here|#Special_Adventures}}.
 +
* Agua de vida: Auto-stop when a bottle is consumed.
 +
* Auto-stop when a demon name is learned and opens mini-browser to display it.
 +
* Auto-stop when a hobo code is learned and opens mini-browser to display it.
 +
* Auto-stop when an Ultra Rare adventure is encountered and opens mini-browser to display it.
  
function_description=When supplied a string, returns the stat that corresponds to the specified parameter {{pspan|convert}}.|
 
  
code1={{CodeSample|
+
{{CodeSample|description=Unlocking the White Citadel can make use of the auto-stop to be this simple.|
title=Code Samples|
+
code=<syntaxhighlight>
description=Following example shows basic to_stat operations.||
+
adventure( my_adventures(), $location[whitey's grove] );
code=
+
adventure( my_adventures(), $location[white citadel );
<syntaxhighlight>
+
</syntaxhighlight>}}
string first, second, third;
+
{{CodeSample|description=Unlocking the Pyramid, using the magic of auto-stops. Note that this assumes you have enough adventures to complete it. A better script would check the questlog to verify current quest progress before beginning adventuring.|
 +
code=<syntaxhighlight>
 +
cli_execute("condition clear");   # conditions must be clear or stops won't be automatic.
  
first = "mox";
+
# Adventure until: A Sietch in Time
second = "moxie";
+
adventure( my_adventures(), $location[Desert (Ultrahydrated)] );
third = "MuSclE";
 
  
print(first+" gives "+to_stat(first)+".", "blue");
+
cli_execute("condition set 1 stone rose, 1 drum machine");
print(second+" gives "+to_stat(second)+".", "blue");
+
adventure( my_adventures(), $location[Oasis] );
print(third+" gives "+to_stat(third)+".", "blue");
 
</syntaxhighlight>|
 
moreinfo=
 
It gives the following output.
 
<pre>
 
mox gives none.
 
moxie gives Moxie.
 
MuSclE gives Muscle.
 
</pre>
 
}}|
 
  
see_also={{SeeAlso|to_item|to_skill|to_monster}}|
+
# Adventure until: Walk Without Rhythm
 +
retrieve_item(1, $item[can of black paint]);
 +
adventure( my_adventures(), $location[Desert (Ultrahydrated)] );
  
special=If no match is found for {{pspan|convert}}, this function returns $stat[ none ].|
+
cli_execute("condition set worm-riding manual pages 3-15");
}}
+
adventure( my_adventures(), $location[Oasis] );
  
[[Category:Datatype Conversions]]
+
# Adventure until: The Sleeper Has Awakened
 +
adventure( my_adventures(), $location[Desert (Ultrahydrated)] );
 +
 
 +
# Equip wormhooks, use drum machine and then re-equip original weapon.
 +
cli_execute("checkpoint; equip worm hooks; use drum machine; outfit checkpoint");
 +
</syntaxhighlight>}}
 +
 
 +
[[Category:Automation]]

Latest revision as of 23:10, 22 September 2013

Auto-stops are places where mafia's automation will automatically stop, just as the name suggests. Except for the Ultra-Rare monsters, these are all KoL non-combats. If mafia detects one of these auto-stop non-combats then automation will cease immediately after the encounter.

There is just one trick to using auto-stops: mafia will only auto-stop when there are no conditions set (although it will always auto-stop on Ultra-Rare monsters). If conditions are set then mafia will continue automation until it reaches those conditions and stop normally. This is to prevent auto-stops from interfering with regular automation.


Unlocking the White Citadel can make use of the auto-stop to be this simple.

adventure( my_adventures(), $location[whitey's grove] );
adventure( my_adventures(), $location[white citadel );

Unlocking the Pyramid, using the magic of auto-stops. Note that this assumes you have enough adventures to complete it. A better script would check the questlog to verify current quest progress before beginning adventuring.

cli_execute("condition clear");   # conditions must be clear or stops won't be automatic.

# Adventure until: A Sietch in Time
adventure( my_adventures(), $location[Desert (Ultrahydrated)] );

cli_execute("condition set 1 stone rose, 1 drum machine");
adventure( my_adventures(), $location[Oasis] );

# Adventure until: Walk Without Rhythm
retrieve_item(1, $item[can of black paint]);
adventure( my_adventures(), $location[Desert (Ultrahydrated)] );

cli_execute("condition set worm-riding manual pages 3-15");
adventure( my_adventures(), $location[Oasis] );

# Adventure until: The Sleeper Has Awakened
adventure( my_adventures(), $location[Desert (Ultrahydrated)] );

# Equip wormhooks, use drum machine and then re-equip original weapon.
cli_execute("checkpoint; equip worm hooks; use drum machine; outfit checkpoint");