Difference between revisions of "Get campground"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>StDoodle
m (using wiki-formatted lists in function_description borks things (use html))
Line 16: Line 16:
  
 
function_description=Returns a map of your campground items as integers, keyed by item names.
 
function_description=Returns a map of your campground items as integers, keyed by item names.
*Most values will be 1 to represent the item exists; can be as high as 9 for some things, such as pretty bouquets and fences.
+
<ul>
*Not all items will be included; Hippy Stone, Colossal Closet, Quest Log, Trophy Case, Terrarium, Telescope, and Mystical Bookshelf are ignored.
+
<li> Most values will be 1 to represent the item exists; can be as high as 9 for some things, such as pretty bouquets and fences.</li>
*Furnishings for your dwelling (some "Tasteful" gifts, Really Good Feng Shui, etc.) will be listed on their own in the result.|
+
<li> Not all items will be included; Hippy Stone, Colossal Closet, Quest Log, Trophy Case, Terrarium, Telescope, and Mystical Bookshelf are ignored.</li>
 +
<li> Furnishings for your dwelling (some "Tasteful" gifts, Really Good Feng Shui, etc.) will be listed on their own in the result.</li>
 +
</ul>|
  
 
code1={{CodeSample|
 
code1={{CodeSample|

Revision as of 19:01, 22 April 2010

Function Syntax

int [item] get_campground()

Returns a map of your campground items as integers, keyed by item names.

  • Most values will be 1 to represent the item exists; can be as high as 9 for some things, such as pretty bouquets and fences.
  • Not all items will be included; Hippy Stone, Colossal Closet, Quest Log, Trophy Case, Terrarium, Telescope, and Mystical Bookshelf are ignored.
  • Furnishings for your dwelling (some "Tasteful" gifts, Really Good Feng Shui, etc.) will be listed on their own in the result.

Code Sample

The following will save a text file in your data directory with your campground information.

int [item] mystuff;
mystuff = get_campground();
map_to_file(mystuff , "campy.txt");

See Also

map_to_file()