Difference between revisions of "KoLmafia Properties"

From Kolmafia
Jump to navigation Jump to search
imported>Alhifar
m
imported>Zarqon
(removed oudated table/info, converted first-person references)
Line 5: Line 5:
  
 
<h3>Choice Adventures</h3>
 
<h3>Choice Adventures</h3>
<p>These settings control all of the non-combat adventures that give you a choice of outcomes.  In the GUI, you can view and set these options in the Choices tab of the Preferences window, but you can also more-or-less directly access the values from ASH.  This is slightly unorthodox behavior, given that the GUI doesn&#8217;t get notified that the true value has been updated and so your Choices page could be out of synch, but needs must when the Devil drives, eh?</p>
+
There is a large and ever-growing number of settings for choice adventures, all with the name [tt]choiceAdventureX[/tt] (X is the number of the adventure). These settings control all of the non-combat adventures that give you a choice of outcomes.  In the GUI, you can view and set these options in the Choices tab of the Preferences window, but you can also read and write the values from ASH using [[get_property()]] and [[set_property()]].
<p>As I said before, setting these values may be more-or-less direct, which turns out to be true in a literal sense.  Of the two sections on the Choices tab, the lower set is &#8220;more&#8221; direct. These line up as follows:</p>
 
  
<p><TABLE BORDER=1 CELLPADDING=4><TR><TH>Property Name</TH><TH>Preferences Tab Name</TH><TH>KoL Adventure Name<br />
+
Each choiceAdventure is set to a number, which corresponds to which choice you want to make from the available options in KoL (or in the GUI, in the case that mafia provides more options than KoL).  According to Holatuwol ([http://kolmafia.us/index.php/topic,1155.0.html here]), the settings map to "X=pick the Xth Option" and "X+1=pick an item you don't have" (i.e., complete the outfit).
</TH></TR><TR><TD>choiceAdventure2</TD><TD>Palindome</TD><TD ALIGN=LEFT>Denim Axes Examined<br />
 
</TD></TR><TR><TD>choiceAdventure3</TD><TD>Teleportitis</TD><TD ALIGN=LEFT>The Oracle Will See You Now<br />
 
</TD></TR><TR><TD>choiceAdventure4</TD><TD>South of the Border</TD><TD ALIGN=LEFT>Finger-Lickin&#8217; &#8230; Death<br />
 
  
</TD></TR><TR><TD>choiceAdventure5</TD><TD>Gravy Barrow 1</TD><TD ALIGN=LEFT>Heart of Very, Very Dark Darkness<br />
+
For a complete (and very useful) list of choice adventures, consult [http://kol.coldfront.net/thekolwiki/index.php/Choice_Adventures_by_Number this page of the KoL Wiki].
</TD></TR><TR><TD>choiceAdventure7</TD><TD>Gravy Barrow 2</TD><TD ALIGN=LEFT>How Depressing<br />
 
</TD></TR><TR><TD>choiceAdventure8</TD><TD>Gravy Barrow 3</TD><TD ALIGN=LEFT>On the Verge of a Dirge<br />
 
</TD></TR><TR><TD>choiceAdventure15</TD><TD>eXtreme Slope 1</TD><TD ALIGN=LEFT>Yeti Nother Hippy<br />
 
  
</TD></TR><TR><TD>choiceAdventure16</TD><TD>eXtreme Slope 2</TD><TD ALIGN=LEFT>Saint Beernard<br />
+
Optionally, you can figure out the correct numeric value by logging in to KoLmafia, using the Preferences Window to set the value to what you want, exiting KoLmafia, and then checking your character&#8217;s settings file (''yourname''_prefs.txt) to see the value that was set for the appropriate key.
</TD></TR><TR><TD>choiceAdventure17</TD><TD>eXtreme Slope 3</TD><TD ALIGN=LEFT>Generic Teen Comedy<br />
 
</TD></TR><TR><TD>choiceAdventure18</TD><TD>Itznotyerzitz Mine 1</TD><TD ALIGN=LEFT>A Flat Miner<br />
 
</TD></TR><TR><TD>choiceAdventure19</TD><TD>Itznotyerzitz Mine 2</TD><TD ALIGN=LEFT>100% Legal<br />
 
 
 
</TD></TR><TR><TD>choiceAdventure20</TD><TD>Itznotyerzitz Mine 3</TD><TD ALIGN=LEFT>See You Next Fall<br />
 
</TD></TR><TR><TD>choiceAdventure21</TD><TD>Sleazy Back Alley</TD><TD ALIGN=LEFT>Under the Knife<br />
 
</TD></TR><TR><TD>choiceAdventure22</TD><TD>Pirate&#8217;s Cove 1</TD><TD ALIGN=LEFT>The Arrrbitrator<br />
 
</TD></TR><TR><TD>choiceAdventure23</TD><TD>Pirate&#8217;s Cove 2</TD><TD ALIGN=LEFT>Barrie Me at Sea<br />
 
 
 
</TD></TR><TR><TD>choiceAdventure24</TD><TD>Pirate&#8217;s Cove 3</TD><TD ALIGN=LEFT>Amatearrr Night<br />
 
</TD></TR><TR><TD>choiceAdventure25</TD><TD>Dungeon of Doom</TD><TD ALIGN=LEFT>Ouch!  You bump into a door!<br />
 
</TD></TR><TR><TD>choiceAdventure40</TD><TD>Cola Wars 1</TD><TD ALIGN=LEFT>The Effervescent Fray<br />
 
</TD></TR><TR><TD>choiceAdventure41</TD><TD>Cola Wars 2</TD><TD ALIGN=LEFT>Smells Like Team Spirit<br />
 
 
 
</TD></TR><TR><TD>choiceAdventure42</TD><TD>Cola Wars 3</TD><TD ALIGN=LEFT>What is it Good For?<br />
 
</TD></TR><TR><TD>choiceAdventure45</TD><TD>Spooky Forest 1</TD><TD ALIGN=LEFT>Maps and Legends<br />
 
</TD></TR><TR><TD>choiceAdventure46</TD><TD>Spooky Forest 2</TD><TD ALIGN=LEFT>An Interesting Choice<br />
 
</TD></TR><TR><TD>choiceAdventure47</TD><TD>Spooky Forest 3</TD><TD ALIGN=LEFT>Have a Heart<br />
 
 
 
</TD></TR><TR><TD>choiceAdventure73</TD><TD>Whitey&#8217;s Grove 1</TD><TD ALIGN=LEFT>Don&#8217;t Fence Me In<br />
 
</TD></TR><TR><TD>choiceAdventure74</TD><TD>Whitey&#8217;s Grove 2</TD><TD ALIGN=LEFT>The Only Thing About Him&#8230;<br />
 
</TD></TR><TR><TD>choiceAdventure75</TD><TD>Whitey&#8217;s Grove 3</TD><TD ALIGN=LEFT>Rapido!<br />
 
 
 
</TD></TR></TABLE></p>
 
<p>Changing the settings for these adventures is as easy as an ASH function like set_property(&#8221;choiceAdventure40&#8243;, &#8220;2&#8243;) or the CLI command &#8220;set choiceAdventure46=3&#8243;.  To be candid, I can never figure out the correct numeric value by any amount of cleverness, so what I do is to log in to KoLmafia, use the Preferences Window to set the value to what I want, quit KoLmafia, and then check my character&#8217;s .txt file to see the value that was set for the appropriate key.</p>
 
<p>By contrast, there is limited support for setting the adventures in the upper set, as these are compound settings.  The two that are most affected are Castle Wheel, which controls all of choiceAdventure9 through choiceAdventure12, and which corpse you want to loot in the Spooky Forest, which covers choiceAdventure26 through choiceAdventure29.  Again, your best bet is to set these two adventures to the choice you want and then check your data file to see which specific settings correspond to the high-level decision.  So far as I know, there is no way to use scripts to specify your choices for the Astral Trip.</p>
 
<p>A full list of the choice adventure numbers can be found on the KoL Wiki here: [http://kol.coldfront.net/thekolwiki/index.php/Choice_adventures_by_number]</p>
 
<p>However, according to Holatuwol ([http://kolmafia.us/index.php/topic,1155.0.html here]), the settings map to "X=pick the Xth Option" and X+1=pick an item you don't have (i.e., complete the outfit).
 
  
 
<h3>Other KoLmafia-based preferences</h3>
 
<h3>Other KoLmafia-based preferences</h3>

Revision as of 08:13, 19 February 2009

Part 11 - KoLmafia Properties

In addition to affecting gameplay directly through ASH functions and CLI commands, scripters also have the ability to control certain core behaviors of KoLmafia through direct modification of the preferences file. In addition, scripters can also create variables that will survive across sessions.

To see all of the pre-defined variables that exist, look in the “settings” subfolder wherever you keep the KoLmafia executable and open up any of the prefs_<character name>.txt and GLOBAL_prefs.txt files named for your characters. This guide will not attempt to describe all of the variables that are there: many are uninteresting from the player’s point of view and others are too unwieldy to be properly set at the moment. Of those that are interesting and accessable, the functionality can be divided into three main sections:

Choice Adventures

There is a large and ever-growing number of settings for choice adventures, all with the name [tt]choiceAdventureX[/tt] (X is the number of the adventure). These settings control all of the non-combat adventures that give you a choice of outcomes. In the GUI, you can view and set these options in the Choices tab of the Preferences window, but you can also read and write the values from ASH using get_property() and set_property().

Each choiceAdventure is set to a number, which corresponds to which choice you want to make from the available options in KoL (or in the GUI, in the case that mafia provides more options than KoL). According to Holatuwol (here), the settings map to "X=pick the Xth Option" and "X+1=pick an item you don't have" (i.e., complete the outfit).

For a complete (and very useful) list of choice adventures, consult this page of the KoL Wiki.

Optionally, you can figure out the correct numeric value by logging in to KoLmafia, using the Preferences Window to set the value to what you want, exiting KoLmafia, and then checking your character’s settings file (yourname_prefs.txt) to see the value that was set for the appropriate key.

Other KoLmafia-based preferences

This is going to be a limited survey of the more interesting of the settings that you can control.

battleAction - This specifies the strategy that you will use in battle. The sorts of values that you might select here are “attack” for normal attacking, “custom” to use the Custom Combat Scripts, “item dictionary” when you’re adventuring in the Valley beyond Orc Chasm, or “skill thrust smack” to use TS during the entire battle.

hpAutoRecovery - This is a float value that specifies the percentage of your HP at which the autohealer kicks in. I haven’t tried it, but I think you’d be generally unhappy if you set it to something other than a multiple of 0.1.

hpAutoRecoveryTarget - A companion to the above, this is the target that the autohealer will aspire to achieve.

As before, feel free to peruse the .kcs file to see all of the values. The names aren’t very subtle, so you should be able to guess what they’re all for.

User-defined variables

In addition to setting the variables that KoLmafia predefines, you can also create any others to cover any information you wish. As you do so, keep in mind that while you can clear a variable’s value to the null string, there is currently no way to delete a key (aside from editing the .txt file in the text processor of your choice and deleting the line that contains the key).