<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ZammyWarrior</id>
	<title>Kolmafia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ZammyWarrior"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/ZammyWarrior"/>
	<updated>2026-04-24T22:27:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Talk:Main_Page&amp;diff=660</id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Talk:Main_Page&amp;diff=660"/>
		<updated>2007-12-08T00:35:28Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: /* Current wiki layout... */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Save these links for now:&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikipedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
21895299452399151244860&lt;br /&gt;
&lt;br /&gt;
== Wiki layout... ==&lt;br /&gt;
&lt;br /&gt;
We really should consider exactly how to lay out the wiki... We should probably see how others (especially the KoL wiki) do it and take inspiration... :)&lt;br /&gt;
&lt;br /&gt;
Also, I&#039;m thinking we should eventually have a page for each function, to make searching the wiki more valuable... :)&lt;br /&gt;
&lt;br /&gt;
--[[User:Daychilde|Daychilde]] 23:00, 8 January 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
I agree with your idea about one-page-per-function.&lt;br /&gt;
&lt;br /&gt;
Also I think every* function&#039;s documentation should show a real-world example of use.  The links to example scripts are a good start in this direction, but some code to read right on the function page would be nice.  (*Yes, even the &amp;quot;you are not cool enough to use this&amp;quot; undocumented stuff.)&lt;br /&gt;
&lt;br /&gt;
A master ASH function list page would be helpful.  When trying to Find a keyword in browser to see if KM implements a given functionality, it&#039;s a minor PITA to have to click into each categorized page and search them all individually.&lt;br /&gt;
&lt;br /&gt;
Also welcome would be some kind of icon, color, or other indicator for newly-added functions.  Master list sorted/sortable by implementation version/date if possible.&lt;br /&gt;
&lt;br /&gt;
Also, on the subject of general layout/UI improvements (since you asked):  for the main page, I prefer a high-level bulleted-listy index/ToC, kinda like the ToCs on the current sourceforge manual pages.  Personally, I find this more useful than the increasingly popular &amp;quot;widgety-portaly-stocks-news-and-weather&amp;quot; look.&lt;br /&gt;
&lt;br /&gt;
Redundancy should be removed wherever possible -- e.g. (ASHRM) in front of every link.  I understand if prefixes of that sort are there to assist in organizing the underlying database, but if not, I think they are totally unnecessary and a distraction -- that is, provided the containing page is appropriately identified with a nice big &amp;quot;ASH Reference Manual&amp;quot; heading at the top, breadcrumbs, etc.&lt;br /&gt;
&lt;br /&gt;
I&#039;ll quit before I arrive at a frenzy of usability fanaticism the likes of which would make J. Nielsen repent like a dirty sinner.  (Got work to do, actually.  Now maybe if there was a &amp;quot;job opportunities&amp;quot; section.......)&lt;br /&gt;
&lt;br /&gt;
--[[User:somebody who sincerely appreciates not having to register/login and probably wouldn&#039;t participate elsewise]] 12:35, 30 January 2007 (EST)&lt;br /&gt;
&lt;br /&gt;
On the other hand, speed-bumping idiot apammers may be worth it.  I could go on for ages about how offensive I find that kind of griefing (If you think life isn&#039;t a game, you&#039;re doing it wrong)--[[User:Metraxis|Metraxis]] 11:27, 18 February 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
== Updating? ==&lt;br /&gt;
Let&#039;s get started, guys. Soon enough, I&#039;ll have a list of all the functions, which I think should go in a wiki page to (as someone above said) search and link. Also, is there a way to do monospacing with code? --[[User:MagiNinjA|MagiNinjA]] 00:35, 29 March 2007 (CDT)&lt;br /&gt;
:You can get mono-spaced text by using &amp;amp;lt;code&amp;amp;gt; tags.  For example, using &amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;EXAMPLE TEXT&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt; produces this as a result.  &amp;lt;code&amp;gt;EXAMPLE TEXT&amp;lt;/code&amp;gt;&lt;br /&gt;
:If you need anymore help, just drop me a line on my [[User_talk:Ksumoe|talk page]]. &amp;amp;#151;[[User:Ksumoe|ksumoe]] &amp;lt;sup&amp;gt;([[User_talk:Ksumoe|talk]] &amp;amp;#149; [[Special:Contributions/Ksumoe|contrib]])&amp;lt;/sup&amp;gt; 18:35, 10 April 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
== Ideas... ==&lt;br /&gt;
&lt;br /&gt;
These are my ideas that I have floating around in my head:&lt;br /&gt;
# A template to put all the relevant information about a function into a table (with proper colored backgrounds and such)&lt;br /&gt;
## I can do this; I just need to know what information is &#039;relevant&#039;.&lt;br /&gt;
# Move this type of discussion to the Community Portal.  Right now the CP is just a bunch of links (we can make a &#039;links&#039; page and add it to the sidebar if needed).&lt;br /&gt;
# An overhaul of the main page.  Someone said that they don&#039;t like the &#039;portal&#039; type of look, but that kind of look has become the &#039;&#039;de facto&#039;&#039; standard for wikis, as it is the most popular.  I&#039;ll pound out a rough draft on a subpage of my user space.&lt;br /&gt;
# Creation of a template structure.  Templates for requesting deletion, protection, etc.  That way non-sysop flagged users can &#039;tag&#039; pages [[Talk:Bad title|such as this]] for deletion.&lt;br /&gt;
# Logo!  &#039;Cause we need to be cool like that.&lt;br /&gt;
# Define a category structure.  Do it now before too many pages get created.&lt;br /&gt;
&lt;br /&gt;
Like I said... I&#039;m here to help.  [[User_talk:Ksumoe|Comments]] &amp;lt;!--or below for that matter--&amp;gt; plox.  &amp;amp;#151;[[User:Ksumoe|ksumoe]] &amp;lt;sup&amp;gt;([[User_talk:Ksumoe|talk]] &amp;amp;#149; [[Special:Contributions/Ksumoe|contrib]])&amp;lt;/sup&amp;gt; 21:17, 13 April 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
I added some links on the home page -- hope that helps users find more documentation... :) -Daychilde&lt;br /&gt;
&lt;br /&gt;
I corrected the Script Repository link to http://www.kolmafia.us from http://www.kolmafia.ua.  ;)  -Regnar&lt;br /&gt;
&lt;br /&gt;
== Links to Redirects? ==&lt;br /&gt;
&lt;br /&gt;
While I understand the need for redirect, why are we linking to redirect pages? Why not use &amp;lt;nowiki&amp;gt;[[Page Title|Displayed Text]]&amp;lt;/nowiki&amp;gt; links instead?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Protection ==&lt;br /&gt;
Seriously, protect the front page. This is getting completely destroyed by spam [[User:80.189.248.109|80.189.248.109]] 12:05, 27 August 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
Is $wgSpamRegex set? If not it should be. If it is, it needs updating. Spam storming in like the flood! -divinewind420&lt;br /&gt;
&lt;br /&gt;
Articles on the subject&lt;br /&gt;
http://nothing.tmtm.com/archives/2571&lt;br /&gt;
http://wiki.evernex.com/index.php?title=Blocking_Spam_in_Mediawiki&lt;br /&gt;
-divinewind420&lt;br /&gt;
&lt;br /&gt;
== Current wiki layout ==&lt;br /&gt;
I was just curious if we could get the current wiki main page layout centered? As in simply putting &amp;lt;pre&amp;gt; &amp;lt;center&amp;gt; &amp;lt;/center&amp;gt; &amp;lt;/pre&amp;gt; around the main text.&lt;br /&gt;
--[[User:ZammyWarrior|ZammyWarrior]] 16:35, 7 December 2007 (PST)&lt;br /&gt;
&lt;br /&gt;
What do you mean? And please sign your comments --[[User:Fewyn|Fewyn]] 10:59, 6 December 2007 (PST)&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Fullness_limit&amp;diff=2437</id>
		<title>Fullness limit</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Fullness_limit&amp;diff=2437"/>
		<updated>2007-12-06T04:33:03Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Will return your maximum fullness level.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_fulness() &amp;lt; fulness_limit())&lt;br /&gt;
  if(fulness_limit()== 15)&lt;br /&gt;
    eat(3, $item[hot hi mein]);&lt;br /&gt;
  else if(fulness_limit() == 20)&lt;br /&gt;
    eat(4, $item[hot hi mein]);&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Fullness_limit&amp;diff=2436</id>
		<title>Fullness limit</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Fullness_limit&amp;diff=2436"/>
		<updated>2007-12-06T04:32:54Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: New page: Will return your maximum fullness level.  &amp;lt;pre&amp;gt;if(my_fulness() &amp;lt; fulness_limit())   if(fulness_limit()== 15)     eat(3, $item[hot hi mein]);   else if(fulness_limit() == 20)     eat(4, $it...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Will return your maximum fullness level.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_fulness() &amp;lt; fulness_limit())&lt;br /&gt;
  if(fulness_limit()== 15)&lt;br /&gt;
    eat(3, $item[hot hi mein]);&lt;br /&gt;
  else if(fulness_limit() == 20)&lt;br /&gt;
    eat(4, $item[hot hi mein]);&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_fullness&amp;diff=2428</id>
		<title>My fullness</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_fullness&amp;diff=2428"/>
		<updated>2007-12-06T04:30:49Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: New page: Will return and int value of your current fullness level.  &amp;lt;pre&amp;gt;if(my_fullness() &amp;lt; fullness_limit()){ eat(1, $item[papaya]); }&amp;lt;/pre&amp;gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Will return and int value of your current fullness level.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_fullness() &amp;lt; fullness_limit()){&lt;br /&gt;
eat(1, $item[papaya]);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Stat_bonus_tomorrow&amp;diff=2357</id>
		<title>Stat bonus tomorrow</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Stat_bonus_tomorrow&amp;diff=2357"/>
		<updated>2007-11-17T00:03:14Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat stat_bonus_tomorrow()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat that is benefited by the moon phases today or tomorrow. If it is an “ordinary” day, the return value is $stat[none].&lt;br /&gt;
&amp;lt;pre&amp;gt;if(stat_bonus_tomorrow() == $stat[muscle] &amp;amp;&amp;amp; my_adventures() &amp;lt;= 140){&lt;br /&gt;
  abort(&amp;quot;Stat day tomorrow!!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Your Character | Stat bonus tomorrow()]]&lt;br /&gt;
[[Category:Ash Functions |Stat bonus tomorrow()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Stat_bonus_tomorrow&amp;diff=2356</id>
		<title>Stat bonus tomorrow</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Stat_bonus_tomorrow&amp;diff=2356"/>
		<updated>2007-11-17T00:02:53Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat stat_bonus_tomorrow()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat that is benefited by the moon phases today or tomorrow. If it is an “ordinary” day, the return value is $stat[none].&lt;br /&gt;
if(stat_bonus_tomorrow() == $stat[muscle] &amp;amp;&amp;amp; my_adventures() &amp;lt;= 140){&lt;br /&gt;
  abort(&amp;quot;Stat day tomorrow!!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Your Character | Stat bonus tomorrow()]]&lt;br /&gt;
[[Category:Ash Functions |Stat bonus tomorrow()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Stat_bonus_tomorrow&amp;diff=2355</id>
		<title>Stat bonus tomorrow</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Stat_bonus_tomorrow&amp;diff=2355"/>
		<updated>2007-11-17T00:02:48Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat stat_bonus_tomorrow()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat that is benefited by the moon phases today or tomorrow. If it is an “ordinary” day, the return value is $stat[none].&lt;br /&gt;
if(stat_bonus_tomorrow() == $stat[muscle] &amp;amp;&amp;amp; my_adventures() &amp;lt;= 140){&lt;br /&gt;
  abort(&amp;quot;Stat day tomorrow!!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[[Category:Your Character | Stat bonus tomorrow()]]&lt;br /&gt;
[[Category:Ash Functions |Stat bonus tomorrow()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Stat_bonus_tomorrow&amp;diff=2354</id>
		<title>Stat bonus tomorrow</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Stat_bonus_tomorrow&amp;diff=2354"/>
		<updated>2007-11-17T00:02:37Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat stat_bonus_tomorrow()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat that is benefited by the moon phases today or tomorrow. If it is an “ordinary” day, the return value is $stat[none].&lt;br /&gt;
if(stat_bonus_tomorrow() == $stat[muscle] &amp;amp;&amp;amp; my_adventures() &amp;lt;= 140){&lt;br /&gt;
  abort(&amp;quot;Stat day tomorrow!!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
[[Category:Your Character | Stat bonus tomorrow()]]&lt;br /&gt;
[[Category:Ash Functions |Stat bonus tomorrow()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Stat_bonus_today&amp;diff=2346</id>
		<title>Stat bonus today</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Stat_bonus_today&amp;diff=2346"/>
		<updated>2007-11-17T00:01:07Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat stat_bonus_today()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat that is benefitted by the moon phases today. If it is an “ordinary” day, the return value is $stat[none].&lt;br /&gt;
&amp;lt;pre&amp;gt;if(stat_bonus_today() == $stat[moxie]){&lt;br /&gt;
eat(3, $item[rat appendix chow mein]);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Your Character | Stat bonus today()]]&lt;br /&gt;
[[Category:Ash Functions |Stat bonus today()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Stat_bonus_today&amp;diff=2345</id>
		<title>Stat bonus today</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Stat_bonus_today&amp;diff=2345"/>
		<updated>2007-11-17T00:00:55Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat stat_bonus_today()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat that is benefitted by the moon phases today. If it is an “ordinary” day, the return value is $stat[none].&lt;br /&gt;
&amp;lt;pre&amp;gt;if(stat_bonus_today() == $stat[moxie]){&lt;br /&gt;
eat(3, $item[rat appendix chow mein]);&lt;br /&gt;
}&lt;br /&gt;
[[Category:Your Character | Stat bonus today()]]&lt;br /&gt;
[[Category:Ash Functions |Stat bonus today()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_familiar&amp;diff=2233</id>
		<title>My familiar</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_familiar&amp;diff=2233"/>
		<updated>2007-11-16T23:59:51Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;familiar my_familiar()&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns your current familiar.&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character | My familiar()]]&lt;br /&gt;
[[Category:Ash Functions |My familiar()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#Script check if your current familiar is leprechaun. If true it will retrieve 1 meat detector&lt;br /&gt;
if(my_familiar() == $familiar[leprechaun]){&lt;br /&gt;
retrieve_item(1, $item[meat detector]);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_name&amp;diff=1637</id>
		<title>My name</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_name&amp;diff=1637"/>
		<updated>2007-11-16T23:59:23Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[string]] [[my_name()]]&lt;br /&gt;
&lt;br /&gt;
This function returns the logged-in character&#039;s name as a [[string]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character | My name()]]&lt;br /&gt;
[[Category:Ash Functions |My name()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#Script checks players name. If your name returns ZammyWarrior it will import Zammy Morning.ash script.&lt;br /&gt;
#If name returns Hippymon it will import Hippymon Morning.ash script.&lt;br /&gt;
#Great script for one with multiple accounts as a &amp;quot;breakfast script&amp;quot;.&lt;br /&gt;
if(my_name() == &amp;quot;ZammyWarrior&amp;quot;){&lt;br /&gt;
import &amp;lt;Zammy Morning.ash&amp;gt;;&lt;br /&gt;
}&lt;br /&gt;
else if(my_name() == &amp;quot;Hippymon&amp;quot;){&lt;br /&gt;
import &amp;lt;Hippy Morning.ash&amp;gt;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_primestat&amp;diff=2246</id>
		<title>My primestat</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_primestat&amp;diff=2246"/>
		<updated>2007-11-16T23:59:19Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat my_primestat()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat associated with your class.&lt;br /&gt;
[[Category:Your Character | My primestat()]]&lt;br /&gt;
[[Category:Ash Functions |My primestat()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#If primestat returns mysticality, script will retrieve X amount of delectable catalyst&lt;br /&gt;
#(X = amount of scrumptious reagents in inventory). Then it will use all of the delectable catalyst in your inventory.&lt;br /&gt;
#Designed to create scrumpdiddlyumptious solutions equal to the amount of scrumptious reagents in your inventory.&lt;br /&gt;
&lt;br /&gt;
if(my_primestat() == $stat[mysticality]){&lt;br /&gt;
retrieve_item(item_amount($item[scrumptious reagent]), $item[delectable catalyst]);&lt;br /&gt;
use(item_amount($item[delectable catalyst]), $item[delectable catalyst]);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_mp&amp;diff=2303</id>
		<title>My mp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_mp&amp;diff=2303"/>
		<updated>2007-11-16T23:59:11Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_mp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your current and highest available HP and MP levels&lt;br /&gt;
[[Category:Your Character | My mp()]]&lt;br /&gt;
[[Category:Ash Functions |My mp()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_mp() == 0){&lt;br /&gt;
restore_mp(mymax_mp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_maxmp&amp;diff=2323</id>
		<title>My maxmp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_maxmp&amp;diff=2323"/>
		<updated>2007-11-16T23:59:08Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_maxmp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your highest possible MP level&lt;br /&gt;
[[Category:Your Character | My maxmp()]]&lt;br /&gt;
[[Category:Ash Functions |My maxmp()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_mp() == 0){&lt;br /&gt;
restore_mp(mymax_mp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_maxhp&amp;diff=2314</id>
		<title>My maxhp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_maxhp&amp;diff=2314"/>
		<updated>2007-11-16T23:59:02Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_maxhp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your highest available HP level&lt;br /&gt;
[[Category:Your Character | My maxhp()]]&lt;br /&gt;
[[Category:Ash Functions |My maxhp()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_hp() == 0){&lt;br /&gt;
restore_hp(mymax_hp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_hp&amp;diff=2294</id>
		<title>My hp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_hp&amp;diff=2294"/>
		<updated>2007-11-16T23:58:58Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_hp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your current HP level&lt;br /&gt;
[[Category:Your Character | My hp()]]&lt;br /&gt;
[[Category:Ash Functions |My hp()]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_hp() == 0){&lt;br /&gt;
restore_hp(mymax_hp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In_mysticality_sign&amp;diff=2281</id>
		<title>In mysticality sign</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In_mysticality_sign&amp;diff=2281"/>
		<updated>2007-11-16T23:58:53Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;boolean in_mysticality_sign()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns true if your ascension sign is a mysticality sign otherwise false.&lt;br /&gt;
[[Category:Your Character | In mysticality sign()]]&lt;br /&gt;
[[Category:Ash Functions |In mysticality sign()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#Script checks to see if your in mysticality sign. If true, it &#039;farms&#039; the logging camp. &lt;br /&gt;
&lt;br /&gt;
if(in_mysticality_sign() &amp;amp;&amp;amp; my_adventures() &amp;gt; 0){&lt;br /&gt;
adventure(my_adventure(), $location[logging camp]);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In_muscle_sign&amp;diff=2269</id>
		<title>In muscle sign</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In_muscle_sign&amp;diff=2269"/>
		<updated>2007-11-16T23:58:49Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;boolean in_muscle_sign()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns true if your ascension sign is a muscle sign otherwise false.&lt;br /&gt;
[[Category:Your Character | In muscle sign()]]&lt;br /&gt;
[[Category:Ash Functions |In muscle sign()]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#script checks to see if you are in a muscle sign. If true, it will import a script designed to plant mushrooms. &lt;br /&gt;
#If false, it does nothing.&lt;br /&gt;
&lt;br /&gt;
if(in_muscle_sign()){&lt;br /&gt;
import &amp;lt;Mushroom Script.ash&amp;gt;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In_moxie_sign&amp;diff=2257</id>
		<title>In moxie sign</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In_moxie_sign&amp;diff=2257"/>
		<updated>2007-11-16T23:58:20Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;boolean in_moxie_sign()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns true if your ascension sign is a moxie sign otherwise false.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#If in moxie sign script will &#039;farm&#039; the thugnerdome.&lt;br /&gt;
&lt;br /&gt;
if(in_moxie_sign() &amp;amp;&amp;amp; my_adventures &amp;gt; 0){&lt;br /&gt;
adventure(my_adventures(), $location[thugnerdome]);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character | In moxie sign()]]&lt;br /&gt;
[[Category:Ash Functions |In moxie sign()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Current_mcd&amp;diff=2334</id>
		<title>Current mcd</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Current_mcd&amp;diff=2334"/>
		<updated>2007-11-16T23:57:57Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int current_mind_control_level()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the level of the Super-Secret Canadian Mind-Control Device&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#This script simply checks to see if the Super-Secret Canadian Mind-Control Device&lt;br /&gt;
#is set at level 5 if it is then it will adventure once to attempt to kill the bonerdrag.&lt;br /&gt;
&lt;br /&gt;
boolean Bonerdrag(){&lt;br /&gt;
&lt;br /&gt;
if(in_mysticality_sign() &amp;amp;&amp;amp; current_mind_control_level() == 5){&lt;br /&gt;
&lt;br /&gt;
adventure(1, $location[Haert of the Cyrpt])&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character | Current mind control level()]]&lt;br /&gt;
[[Category:Ash Functions |Current mind control level()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Miscellaneous_Functions&amp;diff=958</id>
		<title>Miscellaneous Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Miscellaneous_Functions&amp;diff=958"/>
		<updated>2007-09-09T20:49:26Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 7 - Miscellaneous ==&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Mostly internal stuff. Some good for everyone, some only for ASH wizards.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void print( string helloworld )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Prints the given string to the graphical CLI window and to the status line of the main Adventuring window&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean cli_execute( string command )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Executes the given command as if it were entered into the graphical CLI window. This can be used for CLI commands or, if you&amp;amp;#8217;re careful and not an asshat, for raw URLs.&amp;lt;br /&amp;gt;&lt;br /&gt;
See the [http://kolmafia.sourceforge.net/scripting.html CLI manual] for more details.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;em&amp;gt;Sample&amp;lt;/em&amp;gt;:[[%28ASHRM%29_Code_Samples#Sample_4:_Hedging|Hedging]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void wait( int delay )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Does nothing for the desired number of seconds.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string get_property( string key )&amp;lt;br /&amp;gt;&lt;br /&gt;
boolean set_property( string key, string value )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Gets or sets a stored property from your character&amp;amp;#8217;s .kcs file.&amp;lt;br /&amp;gt;&lt;br /&gt;
The KoLmafia [[%28ASHRM%29_KoLMafia_Properties|properties]] page contains details on many of the keys that are available for access.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;em&amp;gt;Sample&amp;lt;/em&amp;gt;:[[%28ASHRM%29_Code_Samples#Sample_2:_Battlefield_gather|Battlefield_gather]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean file_to_map( string file_to_load, map map_to_fill )&amp;lt;br /&amp;gt;&lt;br /&gt;
boolean map_to_file( map map_to_save, string file_to_write )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Loads and saves maps as tab-delimited text files.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int random( int range )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Generates a random integer between 0 and (range-1) inclusive.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int round( float ratio )&amp;lt;br /&amp;gt;&lt;br /&gt;
int floor( float ratio )&amp;lt;br /&amp;gt;&lt;br /&gt;
int ceil( float ratio )&amp;lt;br /&amp;gt;&lt;br /&gt;
int truncate( float ratio )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns an integer near the given real number.  Respectively, it returns the nearest, next lowest, next highest, and decimal-stripped integer.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int count( map )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns the number of defined keys for the aggregate.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void clear( map )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Remove all keys from a map. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void disable( string function_name )&amp;lt;br /&amp;gt;&lt;br /&gt;
void enable( string function_name )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
For debugging purposes disables or enables the indicated function&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;float square_root( float value )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the square root of the passed value&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string today_to_string()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns today&amp;amp;#8217;s (real-world) date in the form yyyymmdd.  It is based on your computer&amp;amp;#8217;s system date&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1576</id>
		<title>In-combat Consulting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1576"/>
		<updated>2007-09-09T20:48:11Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 6 - In-combat functions for consulting scripting ==&lt;br /&gt;
These functions are for use when handling a battle in a script using your custom combat settings. There is very little documentation of how to do this, and for most people these functions are useless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string attack()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string runaway()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string use_skill(  skill touse )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string throw_item(  item tothrow )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string throw_items(  item tothrow1,  item tothrow2 )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns a string containing the html response from sending the appropriate url request for the associated action while in battle.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean use_skill( int count, skill touse )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle.&amp;lt;br /&amp;gt;&lt;br /&gt;
See [[Skills and Effects]]&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;element monster_attack_element()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;element monster_defense_element()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the element that the monster attacks with, or defends against accordingly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int monster_attack()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int monster_defense()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int monster_hp()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the (current?) attack, defense, and hp of the monster.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean will_usually_miss()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;boolean will_usually_dodge()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns if you will normally miss, or will usually be missed in battle.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1575</id>
		<title>In-combat Consulting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1575"/>
		<updated>2007-09-09T20:47:49Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 6 - In-combat functions for consulting scripting ==&lt;br /&gt;
These functions are for use when handling a battle in a script using your custom combat settings. There is very little documentation of how to do this, and for most people these functions are useless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string attack()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string runaway()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string use_skill(  skill touse )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string throw_item(  item tothrow )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string throw_items(  item tothrow1,  item tothrow2 )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns a string containing the html response from sending the appropriate url request for the associated action while in battle.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean use_skill( int count, skill touse )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle.&amp;lt;br /&amp;gt;&lt;br /&gt;
See [[Skills and Effects]]&amp;lt;/p&amp;gt;&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;element monster_attack_element()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;element monster_defense_element()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the element that the monster attacks with, or defends against accordingly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int monster_attack()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int monster_defense()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int monster_hp()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the (current?) attack, defense, and hp of the monster.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean will_usually_miss()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;boolean will_usually_dodge()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns if you will normally miss, or will usually be missed in battle.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1574</id>
		<title>In-combat Consulting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1574"/>
		<updated>2007-09-09T20:47:11Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 6 - In-combat functions for consulting scripting ==&lt;br /&gt;
These functions are for use when handling a battle in a script using your custom combat settings. There is very little documentation of how to do this, and for most people these functions are useless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string attack()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string runaway()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string use_skill(  skill touse )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string throw_item(  item tothrow )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string throw_items(  item tothrow1,  item tothrow2 )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns a string containing the html response from sending the appropriate url request for the associated action while in battle.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean use_skill( int count, skill touse )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle.&amp;lt;br /&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
See [[Skills and Effects]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;element monster_attack_element()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;element monster_defense_element()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the element that the monster attacks with, or defends against accordingly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int monster_attack()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int monster_defense()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int monster_hp()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the (current?) attack, defense, and hp of the monster.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean will_usually_miss()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean will_usually_dodge()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns if you will normally miss, or will usually be missed in battle.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Miscellaneous_Functions&amp;diff=957</id>
		<title>Miscellaneous Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Miscellaneous_Functions&amp;diff=957"/>
		<updated>2007-09-09T20:45:57Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 6 - In-combat functions for consulting scripting ==&lt;br /&gt;
These functions are for use when handling a battle in a script using your custom combat settings. There is very little documentation of how to do this, and for most people these functions are useless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string attack()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string runaway()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string use_skill(  skill touse )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string throw_item(  item tothrow )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string throw_items(  item tothrow1,  item tothrow2 )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns a string containing the html response from sending the appropriate url request for the associated action while in battle.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean use_skill( int count, skill touse )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle.&amp;lt;br /&amp;gt;&lt;br /&gt;
See [[Skills and Effects]]&amp;lt;br /&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;element monster_attack_element()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;element monster_defense_element()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns the element that the monster attacks with, or defends against accordingly.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int monster_attack()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int monster_defense()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int monster_hp()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the (current?) attack, defense, and hp of the monster.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean will_usually_miss()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;boolean will_usually_dodge()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns if you will normally miss, or will usually be missed in battle.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1573</id>
		<title>In-combat Consulting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1573"/>
		<updated>2007-09-09T20:42:35Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 6 - In-combat functions for consulting scripting ==&lt;br /&gt;
These functions are for use when handling a battle in a script using your custom combat settings. There is very little documentation of how to do this, and for most people these functions are useless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string attack()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string runaway()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string use_skill(  skill touse )&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string throw_item(  item tothrow )&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string throw_items(  item tothrow1,  item tothrow2 )&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns a string containing the html response from sending the appropriate url request for the associated action while in battle.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;boolean use_skill( int count, skill touse )&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle.&amp;lt;br /&amp;gt;&lt;br /&gt;
See [[Skills and Effects]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;element monster_attack_element()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;element monster_defense_element()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the element that the monster attacks with, or defends against accordingly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;int monster_attack()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;int monster_defense()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;int monster_hp()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the (current?) attack, defense, and hp of the monster&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;boolean will_usually_miss()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;boolean will_usually_dodge()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns if you will normally miss, or will usually be missed in battle.&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=KoLmafia_Properties&amp;diff=1204</id>
		<title>KoLmafia Properties</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=KoLmafia_Properties&amp;diff=1204"/>
		<updated>2007-09-09T20:40:44Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 11 - KoLmafia Properties ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;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.  &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;To see all of the pre-defined variables that exist, look in the &amp;amp;#8220;data&amp;amp;#8221; subfolder wherever you keep the KoLmafia executable and open up any of the .kcs 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&amp;amp;#8217;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:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Edit: I believe the preferences are now stored in the &amp;quot;settings&amp;quot; folder, rather than the &amp;quot;data&amp;quot; folder, and are named &amp;quot;prefs_character_name.txt&amp;quot;.  Anyone more knowledgable than I care to confirm?  --[[User:HallowedWeasel|HallowedWeasel]] 15:59, 27 February 2007 (CST) &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Choice Adventures&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;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&amp;amp;#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?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;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 &amp;amp;#8220;more&amp;amp;#8221; direct.  These line up as follows:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;TABLE BORDER=1 CELLPADDING=4&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TH&amp;gt;Property Name&amp;lt;/TH&amp;gt;&amp;lt;TH&amp;gt;Preferences Tab Name&amp;lt;/TH&amp;gt;&amp;lt;TH&amp;gt;KoL Adventure Name&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TH&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure2&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Palindome&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Denim Axes Examined&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure3&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Teleportitis&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;The Oracle Will See You Now&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure4&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;South of the Border&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Finger-Lickin&amp;amp;#8217; &amp;amp;#8230; Death&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure5&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Gravy Barrow 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Heart of Very, Very Dark Darkness&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure7&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Gravy Barrow 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;How Depressing&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure8&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Gravy Barrow 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;On the Verge of a Dirge&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure15&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;eXtreme Slope 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Yeti Nother Hippy&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure16&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;eXtreme Slope 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Saint Beernard&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure17&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;eXtreme Slope 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Generic Teen Comedy&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure18&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Itznotyerzitz Mine 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;A Flat Miner&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure19&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Itznotyerzitz Mine 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;100% Legal&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure20&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Itznotyerzitz Mine 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;See You Next Fall&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure21&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Sleazy Back Alley&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Under the Knife&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure22&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Pirate&amp;amp;#8217;s Cove 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;The Arrrbitrator&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure23&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Pirate&amp;amp;#8217;s Cove 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Barrie Me at Sea&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure24&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Pirate&amp;amp;#8217;s Cove 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Amatearrr Night&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure25&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Dungeon of Doom&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Ouch!  You bump into a door!&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure40&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Cola Wars 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;The Effervescent Fray&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure41&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Cola Wars 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Smells Like Team Spirit&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure42&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Cola Wars 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;What is it Good For?&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure45&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Spooky Forest 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Maps and Legends&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure46&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Spooky Forest 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;An Interesting Choice&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure47&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Spooky Forest 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Have a Heart&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure73&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Whitey&amp;amp;#8217;s Grove 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Don&amp;amp;#8217;t Fence Me In&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure74&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Whitey&amp;amp;#8217;s Grove 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;The Only Thing About Him&amp;amp;#8230;&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure75&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Whitey&amp;amp;#8217;s Grove 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Rapido!&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;/TABLE&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Changing the settings for these adventures is as easy as an ASH function like set_property(&amp;amp;#8221;choiceAdventure40&amp;amp;#8243;, &amp;amp;#8220;2&amp;amp;#8243;) or the CLI command &amp;amp;#8220;set choiceAdventure46=3&amp;amp;#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&amp;amp;#8217;s .kcs file to see the value that was set for the appropriate key.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;However, according to Holatuwol ([http://kolmafia.us/index.php/topic,1155.0.html here]), the settings map to &amp;quot;X=pick the Xth Option&amp;quot; and X+1=pick an item you don&#039;t have (i.e., complete the outfit).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Other KoLmafia-based preferences&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This is going to be a limited survey of the more interesting of the settings that you can control.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;battleAction&amp;lt;/b&amp;gt; - This specifies the strategy that you will use in battle.  The sorts of values that you might select here are &amp;amp;#8220;attack&amp;amp;#8221; for normal attacking, &amp;amp;#8220;custom&amp;amp;#8221; to use the Custom Combat Scripts, &amp;amp;#8220;item dictionary&amp;amp;#8221; when you&amp;amp;#8217;re adventuring in the Valley beyond Orc Chasm, or &amp;amp;#8220;skill thrust smack&amp;amp;#8221; to use TS during the entire battle.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;hpAutoRecovery&amp;lt;/b&amp;gt; - This is a float value that specifies the percentage of your HP at which the autohealer kicks in.  I haven&amp;amp;#8217;t tried it, but I think you&amp;amp;#8217;d be generally unhappy if you set it to something other than a multiple of 0.1.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;hpAutoRecoveryTarget&amp;lt;/b&amp;gt; - A companion to the above, this is the target that the autohealer will aspire to achieve.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As before, feel free to peruse the .kcs file to see all of the values.  The names aren&amp;amp;#8217;t very subtle, so you should be able to guess what they&amp;amp;#8217;re all for.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;User-defined variables&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;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&amp;amp;#8217;s value to the null string, there is currently no way to delete a key (aside from editing the .kcs file in the text processor of your choice and deleting the line that contains the key).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=KoLmafia_Properties&amp;diff=1203</id>
		<title>KoLmafia Properties</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=KoLmafia_Properties&amp;diff=1203"/>
		<updated>2007-09-09T20:40:19Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part  11 - KoLmafia Properties ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;entrytext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Well, whadda ya know?&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;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.  &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;To see all of the pre-defined variables that exist, look in the &amp;amp;#8220;data&amp;amp;#8221; subfolder wherever you keep the KoLmafia executable and open up any of the .kcs 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&amp;amp;#8217;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:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Edit: I believe the preferences are now stored in the &amp;quot;settings&amp;quot; folder, rather than the &amp;quot;data&amp;quot; folder, and are named &amp;quot;prefs_character_name.txt&amp;quot;.  Anyone more knowledgable than I care to confirm?  --[[User:HallowedWeasel|HallowedWeasel]] 15:59, 27 February 2007 (CST) &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Choice Adventures&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;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&amp;amp;#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?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;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 &amp;amp;#8220;more&amp;amp;#8221; direct.  These line up as follows:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;TABLE BORDER=1 CELLPADDING=4&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TH&amp;gt;Property Name&amp;lt;/TH&amp;gt;&amp;lt;TH&amp;gt;Preferences Tab Name&amp;lt;/TH&amp;gt;&amp;lt;TH&amp;gt;KoL Adventure Name&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TH&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure2&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Palindome&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Denim Axes Examined&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure3&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Teleportitis&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;The Oracle Will See You Now&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure4&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;South of the Border&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Finger-Lickin&amp;amp;#8217; &amp;amp;#8230; Death&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure5&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Gravy Barrow 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Heart of Very, Very Dark Darkness&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure7&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Gravy Barrow 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;How Depressing&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure8&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Gravy Barrow 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;On the Verge of a Dirge&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure15&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;eXtreme Slope 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Yeti Nother Hippy&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure16&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;eXtreme Slope 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Saint Beernard&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure17&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;eXtreme Slope 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Generic Teen Comedy&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure18&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Itznotyerzitz Mine 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;A Flat Miner&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure19&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Itznotyerzitz Mine 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;100% Legal&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure20&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Itznotyerzitz Mine 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;See You Next Fall&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure21&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Sleazy Back Alley&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Under the Knife&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure22&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Pirate&amp;amp;#8217;s Cove 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;The Arrrbitrator&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure23&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Pirate&amp;amp;#8217;s Cove 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Barrie Me at Sea&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure24&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Pirate&amp;amp;#8217;s Cove 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Amatearrr Night&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure25&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Dungeon of Doom&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Ouch!  You bump into a door!&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure40&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Cola Wars 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;The Effervescent Fray&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure41&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Cola Wars 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Smells Like Team Spirit&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure42&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Cola Wars 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;What is it Good For?&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure45&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Spooky Forest 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Maps and Legends&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure46&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Spooky Forest 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;An Interesting Choice&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure47&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Spooky Forest 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Have a Heart&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure73&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Whitey&amp;amp;#8217;s Grove 1&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Don&amp;amp;#8217;t Fence Me In&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure74&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Whitey&amp;amp;#8217;s Grove 2&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;The Only Thing About Him&amp;amp;#8230;&amp;lt;br /&amp;gt;&lt;br /&gt;
	&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;choiceAdventure75&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;Whitey&amp;amp;#8217;s Grove 3&amp;lt;/TD&amp;gt;&amp;lt;TD ALIGN=LEFT&amp;gt;Rapido!&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;/TABLE&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Changing the settings for these adventures is as easy as an ASH function like set_property(&amp;amp;#8221;choiceAdventure40&amp;amp;#8243;, &amp;amp;#8220;2&amp;amp;#8243;) or the CLI command &amp;amp;#8220;set choiceAdventure46=3&amp;amp;#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&amp;amp;#8217;s .kcs file to see the value that was set for the appropriate key.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;However, according to Holatuwol ([http://kolmafia.us/index.php/topic,1155.0.html here]), the settings map to &amp;quot;X=pick the Xth Option&amp;quot; and X+1=pick an item you don&#039;t have (i.e., complete the outfit).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Other KoLmafia-based preferences&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This is going to be a limited survey of the more interesting of the settings that you can control.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;battleAction&amp;lt;/b&amp;gt; - This specifies the strategy that you will use in battle.  The sorts of values that you might select here are &amp;amp;#8220;attack&amp;amp;#8221; for normal attacking, &amp;amp;#8220;custom&amp;amp;#8221; to use the Custom Combat Scripts, &amp;amp;#8220;item dictionary&amp;amp;#8221; when you&amp;amp;#8217;re adventuring in the Valley beyond Orc Chasm, or &amp;amp;#8220;skill thrust smack&amp;amp;#8221; to use TS during the entire battle.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;hpAutoRecovery&amp;lt;/b&amp;gt; - This is a float value that specifies the percentage of your HP at which the autohealer kicks in.  I haven&amp;amp;#8217;t tried it, but I think you&amp;amp;#8217;d be generally unhappy if you set it to something other than a multiple of 0.1.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;hpAutoRecoveryTarget&amp;lt;/b&amp;gt; - A companion to the above, this is the target that the autohealer will aspire to achieve.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As before, feel free to peruse the .kcs file to see all of the values.  The names aren&amp;amp;#8217;t very subtle, so you should be able to guess what they&amp;amp;#8217;re all for.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;User-defined variables&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;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&amp;amp;#8217;s value to the null string, there is currently no way to delete a key (aside from editing the .kcs file in the text processor of your choice and deleting the line that contains the key).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Datatype_Conversions&amp;diff=1819</id>
		<title>Datatype Conversions</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Datatype_Conversions&amp;diff=1819"/>
		<updated>2007-09-09T20:39:15Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 10 - Datatype Conversions ==&lt;br /&gt;
&lt;br /&gt;
These functions will convert 1 type of data to another.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string to_string( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts in-game variables to printable counterparts. The print command will cast non-string values properly now, but these are still useful for building URLs and setting properties.&amp;lt;br /&amp;gt;&lt;br /&gt;
accepts: boolean, int, float, item, zodiac, location, familiar, class, stat, skill, effect, slot, element, monster&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int to_int( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into the number that will be recognized by the KoL server. Needed when you&amp;amp;#8217;re building raw URLs from time to time.&amp;lt;br /&amp;gt;&lt;br /&gt;
accepts: String, float, item, zodiac, location, familiar, skill, effect, slot, element, monster&amp;lt;br /&amp;gt;&lt;br /&gt;
may accept: boolean,  class, stat&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean to_boolean( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into boolean.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: String&amp;lt;br /&amp;gt;&lt;br /&gt;
may accept: Int&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;float to_float( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into a float.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: String&amp;lt;br /&amp;gt;&lt;br /&gt;
may accept: int&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;item to_item( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into an item.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: string, int&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;location to_location( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into a location.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: string&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;familiar to_familiar( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into a familiar.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: string, int&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;skill to_skill( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into a skill.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: string, int, effect&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;effect to_effect( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into an effect.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: string, int, skill&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;slot to_slot( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into a slot.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: item&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;monster to_monster( variable )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Converts the ASH-based object into a monster.&amp;lt;br /&amp;gt;&lt;br /&gt;
Accepts: string&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=String_Handling_Routines&amp;diff=1319</id>
		<title>String Handling Routines</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=String_Handling_Routines&amp;diff=1319"/>
		<updated>2007-09-09T20:38:01Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part  8 - String Handling Routines ==&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Under Construction&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void print( string helloworld )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;void echo( string helloworld )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Prints the given string to the graphical CLI window and to the status line of the main Adventuring window.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string visit_url( string url )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Accesses the specified URL, manages any applicable redirects (including if the page offered a choice adventure), and returns the HTML of the final response page.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string location_to_url( location place )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the URL that would need to be accessed to visit the specified location.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean contains_text( string source, string query )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Reveals if the query string is a substring of the source string.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int extract_meat( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the amount of meat contained in a string passed to it in integer format. For use in k-mail parsing. *Not for use on pending trades.*&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int [item] extract_items( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
takes the text you have provided and parses it for any items that KoLmafia would have found normally.  This means you have access to the built-in pluralization handler as well as the ability to NOT have to lookup description IDs or whatever other loops you had to use to access that information. For use in k-mail parsing. *Not for use on pending trades.*&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int length( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the length of the given string.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int index_of( string source, string search )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the first index of a given substring in a string.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int index_of( string source, string search, int start )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the next index of a given substring in a string starting from the given position.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;int last_index_of( string source, string search )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the last index of a given substring in a string.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string substring( string source, int startfrom )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns the substring of the given string starting from the given character position in the string, and ending at the last character.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string substring( string source, int start, int end )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the substring of the given string starting from the character position indicated by start in the string, and ending at the character position indicated by end.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string replace_string( string source, string search, string replace )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
searches the source string for the search string and replaces all instances with the replace string&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string url_encode( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string url_decode( string text )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Converts a string text into a formatted string for using with raw URLs or from a formatted string back into “normal” text.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string [int] split_string( string source )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Returns a map of strings which is the passed string split into individual lines. Originally implemented for use when parsing session logs, but may see more uses in the future.&lt;br /&gt;
http://kolmafia.us/index.php/topic,794.msg3868.html#msg3868 &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string [int] split_string( string source, string regex )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;string [int,int] group_string( string source, string regex )&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
see this post located on the script repository for more information:  http://kolmafia.us/index.php/topic,451.msg2235.html#msg2235 &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;string [int] session_logs( string player, int day_count )&amp;lt;/strong&amp;gt;&lt;br /&gt;
Gives access to the session logs saved by kolmafia. More details will be added when this function&#039;s own page is written. For now, more extensive details can be found here: http://kolmafia.us/index.php/topic,794.msg3879.html#msg3879&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1572</id>
		<title>In-combat Consulting</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In-combat_Consulting&amp;diff=1572"/>
		<updated>2007-09-09T20:37:22Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 6 - In-combat functions for consultiung scripting ==&lt;br /&gt;
These functions are for use when handling a battle in a script using your custom combat settings. There is very little documentation of how to do this, and for most people these functions are useless.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string attack()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string runaway()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string use_skill(  skill touse )&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string throw_item(  item tothrow )&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;string throw_items(  item tothrow1,  item tothrow2 )&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns a string containing the html response from sending the appropriate url request for the associated action while in battle.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;boolean use_skill( int count, skill touse )&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle.&amp;lt;br /&amp;gt;&lt;br /&gt;
See [[Skills and Effects]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;element monster_attack_element()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;element monster_defense_element()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the element that the monster attacks with, or defends against accordingly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;int monster_attack()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;int monster_defense()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;int monster_hp()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the (current?) attack, defense, and hp of the monster&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;boolean will_usually_miss()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&#039;&#039;&#039;boolean will_usually_dodge()&#039;&#039;&#039;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns if you will normally miss, or will usually be missed in battle.&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Miscellaneous_Functions&amp;diff=956</id>
		<title>Miscellaneous Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Miscellaneous_Functions&amp;diff=956"/>
		<updated>2007-09-09T20:26:27Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 6 - Miscellaneous ==&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Mostly internal stuff. Some good for everyone, some only for ASH wizards.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void print( string helloworld )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Prints the given string to the graphical CLI window and to the status line of the main Adventuring window&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean cli_execute( string command )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Executes the given command as if it were entered into the graphical CLI window. This can be used for CLI commands or, if you&amp;amp;#8217;re careful and not an asshat, for raw URLs.&amp;lt;br /&amp;gt;&lt;br /&gt;
See the [http://kolmafia.sourceforge.net/scripting.html CLI manual] for more details.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;em&amp;gt;Sample&amp;lt;/em&amp;gt;:[[%28ASHRM%29_Code_Samples#Sample_4:_Hedging|Hedging]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void wait( int delay )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Does nothing for the desired number of seconds.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string get_property( string key )&amp;lt;br /&amp;gt;&lt;br /&gt;
boolean set_property( string key, string value )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Gets or sets a stored property from your character&amp;amp;#8217;s .kcs file.&amp;lt;br /&amp;gt;&lt;br /&gt;
The KoLmafia [[%28ASHRM%29_KoLMafia_Properties|properties]] page contains details on many of the keys that are available for access.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;em&amp;gt;Sample&amp;lt;/em&amp;gt;:[[%28ASHRM%29_Code_Samples#Sample_2:_Battlefield_gather|Battlefield_gather]]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;boolean file_to_map( string file_to_load, map map_to_fill )&amp;lt;br /&amp;gt;&lt;br /&gt;
boolean map_to_file( map map_to_save, string file_to_write )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Loads and saves maps as tab-delimited text files.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int random( int range )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Generates a random integer between 0 and (range-1) inclusive.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int round( float ratio )&amp;lt;br /&amp;gt;&lt;br /&gt;
int floor( float ratio )&amp;lt;br /&amp;gt;&lt;br /&gt;
int ceil( float ratio )&amp;lt;br /&amp;gt;&lt;br /&gt;
int truncate( float ratio )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns an integer near the given real number.  Respectively, it returns the nearest, next lowest, next highest, and decimal-stripped integer.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;int count( map )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns the number of defined keys for the aggregate.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void clear( map )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Remove all keys from a map. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;void disable( string function_name )&amp;lt;br /&amp;gt;&lt;br /&gt;
void enable( string function_name )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
For debugging purposes disables or enables the indicated function&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;float square_root( float value )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
returns the square root of the passed value&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;string today_to_string()&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns today&amp;amp;#8217;s (real-world) date in the form yyyymmdd.  It is based on your computer&amp;amp;#8217;s system date&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_primestat&amp;diff=2245</id>
		<title>My primestat</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_primestat&amp;diff=2245"/>
		<updated>2007-08-31T03:44:44Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat my_primestat()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat associated with your class.&lt;br /&gt;
[[Category:Your Character | My primestat()]]&lt;br /&gt;
[[Category:Ash Functions |My primestat()]]&lt;br /&gt;
[[Category:Needs Code Samples | My primestat()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#If primestat returns mysticality, script will retrieve X amount of delectable catalyst&lt;br /&gt;
#(X = amount of scrumptious reagents in inventory). Then it will use all of the delectable catalyst in your inventory.&lt;br /&gt;
#Designed to create scrumpdiddlyumptious solutions equal to the amount of scrumptious reagents in your inventory.&lt;br /&gt;
&lt;br /&gt;
if(my_primestat() == $stat[mysticality]){&lt;br /&gt;
retrieve_item(item_amount($item[scrumptious reagent]), $item[delectable catalyst]);&lt;br /&gt;
use(item_amount($item[delectable catalyst]), $item[delectable catalyst]);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_primestat&amp;diff=2244</id>
		<title>My primestat</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_primestat&amp;diff=2244"/>
		<updated>2007-08-31T03:44:27Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;stat my_primestat()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the stat associated with your class.&lt;br /&gt;
[[Category:Your Character | My primestat()]]&lt;br /&gt;
[[Category:Ash Functions |My primestat()]]&lt;br /&gt;
[[Category:Needs Code Samples | My primestat()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#If primestat returns mysticality, script will retrieve X amount of delectable catalyst&lt;br /&gt;
#(X = amount of scrumptious reagents in inventory). Then it will use all of the delectable catalyst in your inventory.&lt;br /&gt;
#Designed to create scrumpdiosldajksd solutions equal to the amount of scrumptious reagents in your inventory.&lt;br /&gt;
if(my_primestat() == $stat[mysticality]){&lt;br /&gt;
retrieve_item(item_amount($item[scrumptious reagent]), $item[delectable catalyst]);&lt;br /&gt;
use(item_amount($item[delectable catalyst]), $item[delectable catalyst]);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_name&amp;diff=1636</id>
		<title>My name</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_name&amp;diff=1636"/>
		<updated>2007-08-31T03:39:07Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[string]] [[my_name()]]&lt;br /&gt;
&lt;br /&gt;
This function returns the logged-in character&#039;s name as a [[string]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character | My name()]]&lt;br /&gt;
[[Category:Ash Functions |My name()]]&lt;br /&gt;
[[Category:Needs Code Samples | My name()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#Script checks players name. If your name returns ZammyWarrior it will import Zammy Morning.ash script.&lt;br /&gt;
#If name returns Hippymon it will import Hippymon Morning.ash script.&lt;br /&gt;
#Great script for one with multiple accounts as a &amp;quot;breakfast script&amp;quot;.&lt;br /&gt;
if(my_name() == &amp;quot;ZammyWarrior&amp;quot;){&lt;br /&gt;
import &amp;lt;Zammy Morning.ash&amp;gt;;&lt;br /&gt;
}&lt;br /&gt;
else if(my_name() == &amp;quot;Hippymon&amp;quot;){&lt;br /&gt;
import &amp;lt;Hippy Morning.ash&amp;gt;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_familiar&amp;diff=2232</id>
		<title>My familiar</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_familiar&amp;diff=2232"/>
		<updated>2007-08-31T03:34:45Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;familiar my_familiar()&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Returns your current familiar.&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character | My familiar()]]&lt;br /&gt;
[[Category:Ash Functions |My familiar()]]&lt;br /&gt;
[[Category:Needs Code Samples | My familiar()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#Script check if your current familiar is leprechaun. If true it will retrieve 1 meat detector&lt;br /&gt;
if(my_familiar() == $familiar[leprechaun]){&lt;br /&gt;
retrieve_item(1, $item[meat detector]);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In_moxie_sign&amp;diff=2256</id>
		<title>In moxie sign</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In_moxie_sign&amp;diff=2256"/>
		<updated>2007-08-31T03:32:29Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;boolean in_moxie_sign()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns true if your ascension sign is a moxie sign otherwise false.&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character | In moxie sign()]]&lt;br /&gt;
[[Category:Ash Functions |In moxie sign()]]&lt;br /&gt;
[[Category:Needs Code Samples | In moxie sign()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#If in moxie sign script will &#039;farm&#039; the thugnerdome.&lt;br /&gt;
&lt;br /&gt;
if(in_moxie_sign() &amp;amp;&amp;amp; my_adventures &amp;gt; 0){&lt;br /&gt;
adventure(my_adventures(), $location[thugnerdome]);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In_mysticality_sign&amp;diff=2280</id>
		<title>In mysticality sign</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In_mysticality_sign&amp;diff=2280"/>
		<updated>2007-08-31T03:30:52Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;boolean in_mysticality_sign()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns true if your ascension sign is a mysticality sign otherwise false.&lt;br /&gt;
[[Category:Your Character | In mysticality sign()]]&lt;br /&gt;
[[Category:Ash Functions |In mysticality sign()]]&lt;br /&gt;
[[Category:Needs Code Samples | In mysticality sign()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;#Script checks to see if your in mysticality sign. If true, it &#039;farms&#039; the logging camp. &lt;br /&gt;
&lt;br /&gt;
if(in_mysticality_sign() &amp;amp;&amp;amp; my_adventures() &amp;gt; 0){&lt;br /&gt;
adventure(my_adventure(), $location[logging camp]);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In_muscle_sign&amp;diff=2268</id>
		<title>In muscle sign</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In_muscle_sign&amp;diff=2268"/>
		<updated>2007-08-31T03:28:49Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;boolean in_muscle_sign()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns true if your ascension sign is a muscle sign otherwise false.&lt;br /&gt;
[[Category:Your Character | In muscle sign()]]&lt;br /&gt;
[[Category:Ash Functions |In muscle sign()]]&lt;br /&gt;
[[Category:Needs Code Samples | In muscle sign()]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#script checks to see if you are in a muscle sign. If true, it will import a script designed to plant mushrooms. &lt;br /&gt;
#If false, it does nothing.&lt;br /&gt;
&lt;br /&gt;
if(in_muscle_sign()){&lt;br /&gt;
import &amp;lt;Mushroom Script.ash&amp;gt;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=In_muscle_sign&amp;diff=2267</id>
		<title>In muscle sign</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=In_muscle_sign&amp;diff=2267"/>
		<updated>2007-08-31T03:28:41Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;boolean in_muscle_sign()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns true if your ascension sign is a muscle sign otherwise false.&lt;br /&gt;
[[Category:Your Character | In muscle sign()]]&lt;br /&gt;
[[Category:Ash Functions |In muscle sign()]]&lt;br /&gt;
[[Category:Needs Code Samples | In muscle sign()]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#script checks to see if you are in a muscle sign. If true, it will import a script designed to plant mushrooms. &lt;br /&gt;
#If false, it does nothing.&lt;br /&gt;
if(in_muscle_sign()){&lt;br /&gt;
import &amp;lt;Mushroom Script.ash&amp;gt;;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_maxhp&amp;diff=2313</id>
		<title>My maxhp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_maxhp&amp;diff=2313"/>
		<updated>2007-08-31T03:25:59Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_maxhp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your highest available HP level&lt;br /&gt;
[[Category:Your Character | My maxhp()]]&lt;br /&gt;
[[Category:Ash Functions |My maxhp()]]&lt;br /&gt;
[[Category:Needs Code Samples | My maxhp()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_hp() == 0){&lt;br /&gt;
restore_hp(mymax_hp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_hp&amp;diff=2293</id>
		<title>My hp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_hp&amp;diff=2293"/>
		<updated>2007-08-31T03:25:51Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_hp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your current HP level&lt;br /&gt;
[[Category:Your Character | My hp()]]&lt;br /&gt;
[[Category:Ash Functions |My hp()]]&lt;br /&gt;
[[Category:Needs Code Samples | My hp()]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_hp() == 0){&lt;br /&gt;
restore_hp(mymax_hp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_mp&amp;diff=2302</id>
		<title>My mp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_mp&amp;diff=2302"/>
		<updated>2007-08-31T03:25:35Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_mp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your current and highest available HP and MP levels&lt;br /&gt;
[[Category:Your Character | My mp()]]&lt;br /&gt;
[[Category:Ash Functions |My mp()]]&lt;br /&gt;
[[Category:Needs Code Samples | My mp()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_mp() == 0){&lt;br /&gt;
restore_mp(mymax_mp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_maxmp&amp;diff=2322</id>
		<title>My maxmp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_maxmp&amp;diff=2322"/>
		<updated>2007-08-31T03:25:29Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_maxmp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your highest possible MP level&lt;br /&gt;
[[Category:Your Character | My maxmp()]]&lt;br /&gt;
[[Category:Ash Functions |My maxmp()]]&lt;br /&gt;
[[Category:Needs Code Samples | My maxmp()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_mp() == 0){&lt;br /&gt;
restore_mp(mymax_mp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_maxhp&amp;diff=2312</id>
		<title>My maxhp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_maxhp&amp;diff=2312"/>
		<updated>2007-08-31T03:25:06Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_maxhp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your highest available HP level&lt;br /&gt;
[[Category:Your Character | My maxhp()]]&lt;br /&gt;
[[Category:Ash Functions |My maxhp()]]&lt;br /&gt;
[[Category:Needs Code Samples | My maxhp()]]&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_hp() == 0){&lt;br /&gt;
restore_hp(mymax_mp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=My_hp&amp;diff=2292</id>
		<title>My hp</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=My_hp&amp;diff=2292"/>
		<updated>2007-08-31T03:24:52Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int my_hp()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns your current HP level&lt;br /&gt;
[[Category:Your Character | My hp()]]&lt;br /&gt;
[[Category:Ash Functions |My hp()]]&lt;br /&gt;
[[Category:Needs Code Samples | My hp()]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if(my_hp() == 0){&lt;br /&gt;
restore_hp(mymax_mp());&lt;br /&gt;
} &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Current_mcd&amp;diff=2333</id>
		<title>Current mcd</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Current_mcd&amp;diff=2333"/>
		<updated>2007-08-04T23:40:51Z</updated>

		<summary type="html">&lt;p&gt;ZammyWarrior: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;int current_mind_control_level()&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
Returns the level of the Super-Secret Canadian Mind-Control Device&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#This script simply checks to see if the Super-Secret Canadian Mind-Control Device&lt;br /&gt;
#is set at level 5 if it is then it will adventure once to attempt to kill the bonerdrag.&lt;br /&gt;
&lt;br /&gt;
boolean Bonerdrag(){&lt;br /&gt;
&lt;br /&gt;
if(in_mysticality_sign() &amp;amp;&amp;amp; current_mind_control_level() == 5){&lt;br /&gt;
&lt;br /&gt;
adventure(1, $location[Haert of the Cyrpt])&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Your Character | Current mind control level()]]&lt;br /&gt;
[[Category:Ash Functions |Current mind control level()]]&lt;br /&gt;
[[Category:Needs Code Samples | Current mind control level()]]&lt;/div&gt;</summary>
		<author><name>ZammyWarrior</name></author>
	</entry>
</feed>