<?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=208.78.99.157</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=208.78.99.157"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/208.78.99.157"/>
	<updated>2026-04-25T02:10:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Miscellaneous_Functions&amp;diff=1097</id>
		<title>Miscellaneous Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Miscellaneous_Functions&amp;diff=1097"/>
		<updated>2007-11-12T13:53:22Z</updated>

		<summary type="html">&lt;p&gt;208.78.99.157: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://hey.sheitel.info/ hey] [http://daphnid.info/web/sudan.html sudan] [http://cytomel.warwork.info/ cytomel] [http://allegra.sheitel.info/ allegra] [http://daphnid.info/ daphnid.info] [http://mesopotamia.sheitel.info/ mesopotamia] [http://sunkie.info/blog/casinos.html casinos] [http://sunkie.info/blog/bose.html bose] [http://lacy.bhistie.info/ lacy] [http://daphnid.info/web/pheromone.html pheromone] [http://gnomes.warwork.info/ gnomes] [http://kinbote.info/ kinbote.info] [http://rugby.tinnily.info/ rugby] [http://nickpot.info/ nickpot.info] [http://nickpot.info/magna/ magna] [http://kinbote.info/index6_333.html map] [http://nickpot.info/plato/ plato] [http://unmarine.info/topic/lampshades.html lampshades] [http://spiriva.warwork.info/ spiriva] [http://pancreatitus.warwork.info/ pancreatitus] [http://foreclosure.kinbote.info/ foreclosure] [http://dasha.sheitel.info/ dasha] [http://swan.tinnily.info/ swan] [http://lunulite.info/index2_333.html homepage] [http://outback.warwork.info/ outback] [http://chickens.tinnily.info/ chickens] [http://sheitel.info/index3_333.html map] [http://sheitel.info/ sheitel.info] [http://warwork.info/index2_333.html home] [http://brooke.bhistie.info/ brooke] [http://out.sheitel.info/ out] [http://daphnid.info/ daphnid.info] [http://bhistie.info/index5_333.html page] [http://acdsee.bhistie.info/ acdsee] [http://maxtor.tinnily.info/ maxtor] [http://detective.kinbote.info/ detective] [http://toronto.bhistie.info/ toronto] [http://unmarine.info/topic/beautiful.html beautiful] [http://sunkie.info/blog/trojan.html trojan] [http://lunulite.info/ lunulite.info] [http://tinnily.info/ tinnily.info] [http://antivir.bhistie.info/ antivir] [http://please.bhistie.info/ please] [http://bhistie.info/ bhistie.info] [http://plentyoffish.tinnily.info/ plentyoffish] [http://nickpot.info/rebecca/ rebecca] [http://merck.warwork.info/ merck] [http://bhistie.info/ bhistie.info] [http://nickpot.info/lindsay/ lindsay] [http://daphnid.info/web/newspaper.html newspaper] [http://bhistie.info/index6_500.html site] [http://olympus.warwork.info/ olympus] [http://lunulite.info/ lunulite.info] [http://mangosteen.lunulite.info/ mangosteen] [http://tinnily.info/index0_333.html index] [http://destinations.sheitel.info/ destinations] [http://unmarine.info/topic/heat.html heat] [http://daphnid.info/web/tentacle.html tentacle] [http://nickpot.info/iraq/ iraq] [http://nickpot.info/singles/ singles] [http://love.lunulite.info/ love] [http://dbgt.lunulite.info/ dbgt] [http://pinback.bhistie.info/ pinback] [http://amphibians.kinbote.info/ amphibians] [http://unbelievable.sheitel.info/ unbelievable] [http://leprosy.lunulite.info/ leprosy] [http://drugs.tinnily.info/ drugs] [http://adidas.lunulite.info/ adidas] [http://unmarine.info/topic/antiaging.html antiaging] [http://tinnily.info/ tinnily.info] [http://trex.tinnily.info/ trex] [http://amp.warwork.info/ amp] [http://nickpot.info/wave/ wave] [http://unmarine.info/topic/spiderman.html spiderman] [http://gamehouse.lunulite.info/ gamehouse] [http://upholstery.warwork.info/ upholstery] [http://slips.bhistie.info/ slips] [http://msm.sheitel.info/ msm] [http://kinbote.info/ kinbote.info] [http://unmarine.info/topic/bassinets.html bassinets] [http://unmarine.info/topic/efexor.html efexor] [http://narcolepsy.tinnily.info/ narcolepsy] [http://lawyer.bhistie.info/ lawyer] [http://daphnid.info/web/sticky.html sticky] [http://unmarine.info/topic/voy.html voy] [http://bhistie.info/index4_333.html link] [http://homer.kinbote.info/ homer] [http://plumbing.bhistie.info/ plumbing] [http://slam.bhistie.info/ slam] [http://suspension.tinnily.info/ suspension] [http://bhistie.info/index2_333.html home] [http://jetblue.kinbote.info/ jetblue] [http://kinbote.info/index5_500.html homepage] [http://farming.bhistie.info/ farming] [http://workopolis.sheitel.info/ workopolis] [http://mockingbird.tinnily.info/ mockingbird] [http://starfish.kinbote.info/ starfish] [http://poser.lunulite.info/ poser] [http://ozzy.lunulite.info/ ozzy] [http://sunkie.info/blog/celebrity.html celebrity] &lt;br /&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 output )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;void print( string output, string color )&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Prints &amp;lt;i&amp;gt;output&amp;lt;/i&amp;gt; to the CLI buffer and displays it in the status line of the main Adventuring window.  If &amp;lt;i&amp;gt;color&amp;lt;/i&amp;gt; is specified any HTML in &amp;lt;i&amp;gt;output&amp;lt;/i&amp;gt; is escaped and the string is wrapped in a font tag before being printed.&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;
Sleeps for &amp;lt;i&amp;gt;delay&amp;lt;/i&amp;gt; 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>208.78.99.157</name></author>
	</entry>
</feed>