<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=User%3AOut_of_practice</id>
	<title>User:Out of practice - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=User%3AOut_of_practice"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=User:Out_of_practice&amp;action=history"/>
	<updated>2026-04-30T16:59:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=User:Out_of_practice&amp;diff=3085&amp;oldid=prev</id>
		<title>Out of practice: A new page, just for me, just about me! :)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=User:Out_of_practice&amp;diff=3085&amp;oldid=prev"/>
		<updated>2009-09-10T07:07:31Z</updated>

		<summary type="html">&lt;p&gt;A new page, just for me, just about me! :)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== My Details ==&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve been a long time KoL player (back since the summer of 04&amp;#039; I believe), and easily regard it as one of the most fun games I&amp;#039;ve played. Although I seem to have forgotten KoL&amp;#039;s &amp;quot;casual game&amp;quot; status (yeah, right) in the mean time, it is definitely a fun way to pass the time. Which works out well, since while I&amp;#039;m here in New Zealand for the year without a powerful computer, KoL is literally the only game I can play at the moment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KoLMafia Wiki Stuffs ==&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m not the best coder by a long shot, but I&amp;#039;ve decided to help with the definition pages. If I were just a bit better at phrasing things, I&amp;#039;d say the ones I&amp;#039;ve written were epic! Well, they&amp;#039;re not Nobel quality, but they are functional (and informational) for sure. Or should be. Wow, I make myself sound &amp;#039;&amp;#039;horrible&amp;#039;&amp;#039; at writing them here... xD&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== My Scripts and/or Scripting Examples (Here on the Wiki) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;#039;&amp;#039;Because personalized questions are for squares: (My [[map_to_file()]] example code)&amp;#039;&amp;#039;&amp;lt;pre&amp;gt;#The &amp;quot;What do you like?&amp;quot; script, v9.23b&lt;br /&gt;
&lt;br /&gt;
#First, a declaration of the custom class (for use as the map&amp;#039;s slices)&lt;br /&gt;
record personal_preference {&lt;br /&gt;
   string item_name;&lt;br /&gt;
   boolean like_it;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
#Next, we fill out the .item_name field of the map slices we&amp;#039;re using. These will be used later as a plugin for the questions.&lt;br /&gt;
&lt;br /&gt;
personal_preference[int] likes_and_dislikes;&lt;br /&gt;
likes_and_dislikes[1].item_name = &amp;quot;Toffee&amp;quot;;&lt;br /&gt;
likes_and_dislikes[2].item_name = &amp;quot;Sunshine&amp;quot;;&lt;br /&gt;
likes_and_dislikes[3].item_name = &amp;quot;Onions&amp;quot;;&lt;br /&gt;
likes_and_dislikes[4].item_name = &amp;quot;Sleep Deprivation&amp;quot;;&lt;br /&gt;
likes_and_dislikes[5].item_name = &amp;quot;The Kingdom of Loathing&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
#We set up a loop with a &amp;#039;counter&amp;#039; variable, and tell it to go from &amp;quot;q = 1&amp;quot; all the way to &amp;quot;q = [Number of keys in the map]&amp;quot;&lt;br /&gt;
for q from 1 upto count(likes_and_dislikes) {&lt;br /&gt;
   &lt;br /&gt;
   #We create a pop-up confirmation &amp;quot;dialogue box&amp;quot;, which (by its KoLMafia definition) will present the user with yes/no options&lt;br /&gt;
   if( user_confirm( &amp;quot;Do you like &amp;quot;+likes_and_dislikes[q].item_name+&amp;quot;?&amp;quot; ) == true ) likes_and_dislikes[q].like_it = true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
print( &amp;quot;Survey completed successfully! We appreciate your input!&amp;quot; , &amp;quot;Green&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
#Finally, we save the map (questions, answers, and all) to &amp;quot;user_preference.txt&amp;quot; in the KoLMafia\Scripts\ directory,&lt;br /&gt;
#While enclosing it in an if() statement, so that were the save to fail, a message notifying the user of the failure will be printed&lt;br /&gt;
if( map_to_file( likes_and_dislikes , &amp;quot;user_preference.txt&amp;quot; ) == false ) print( &amp;quot;Your completed survey failed to save.&amp;quot; , &amp;quot;Red&amp;quot; );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;#039;&amp;#039;Deep down, we all want KoLMafia to spontaniously break into song: (My [[file_to_map()]] example code)&amp;#039;&amp;#039;&amp;lt;pre&amp;gt;#Loading (and displaying) an arbitrary map from a file&lt;br /&gt;
string[int] favorite_things;&lt;br /&gt;
&lt;br /&gt;
if( file_to_map( &amp;quot;ponies_and_candycanes.txt&amp;quot; , favorite_things ) )&lt;br /&gt;
{&lt;br /&gt;
   print( &amp;quot;All of your favorite things have come here to KoLMafia to play! Yay! There&amp;#039;s:&amp;quot; , &amp;quot;#FF6666&amp;quot; );&lt;br /&gt;
   for cycle from 1 upto (count(favorite_things)-1)&lt;br /&gt;
   {&lt;br /&gt;
      print( &amp;quot;&amp;quot;+favorite_things[cycle]+&amp;quot;, and...&amp;quot; , &amp;quot;#FF00CC&amp;quot; );&lt;br /&gt;
   }&lt;br /&gt;
   print( &amp;quot;&amp;quot;+favorite_things[count(favorite_things)]+&amp;quot;, oh my!&amp;quot; , &amp;quot;#FF00CC&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
   print( &amp;quot;Your favorite things failed to load. Apparently they don&amp;#039;t love you back.&amp;quot; , &amp;quot;Red&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Will result (in my case) in the following being printed (in bright pinks):&lt;br /&gt;
#&lt;br /&gt;
# All of your favorite things have come here to KoLMafia to play! Yay! There&amp;#039;s:&lt;br /&gt;
# Sunshine, and...&lt;br /&gt;
# Cabbage, and...&lt;br /&gt;
# The Sound of Music, and...&lt;br /&gt;
# Nuns blowing up, and...&lt;br /&gt;
# Waking up bleeding in the alley, and...&lt;br /&gt;
# Finding out your lover is a really a transvestite, oh my!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Out of practice</name></author>
	</entry>
</feed>