Difference between revisions of "Get campground"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{#vardefine:name|get_campground}} {{#vardefine:return_type|int [item]}} {{#vardefine:aggregate|yes}} {{FunctionPage| name={{#var:name}}| function_category=Item Management| fun…')
 
imported>Fredg1
m (lists the telescope)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:name|get_campground}}
+
{{
{{#vardefine:return_type|int [item]}}
+
#vardefine:name|get_campground}}{{
{{#vardefine:aggregate|yes}}
+
#vardefine:return_type|int [item]}}{{
 +
#vardefine:aggregate|yes}}{{
  
{{FunctionPage|
+
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Item Management|
 
  
 
function1={{Function|
 
function1={{Function|
Line 15: Line 15:
  
 
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; some can be as high as 9, 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, and Mystical Bookshelf are ignored.</li>
 +
<li> Your dwelling itself is processed separately, using {{f|get_dwelling}}</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|
Line 29: Line 32:
 
</syntaxhighlight>}}|
 
</syntaxhighlight>}}|
  
see_also={{SeeAlso|map_to_file}}|
+
see_also={{SeeAlso|get_dwelling|get_clan_lounge|map_to_file}}|
 
}}
 
}}
 +
 +
[[Category:Item Management]]

Latest revision as of 04:45, 22 July 2020

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; some can be as high as 9, such as pretty bouquets and fences.
  • Not all items will be included; Hippy Stone, Colossal Closet, Quest Log, Trophy Case, Terrarium, and Mystical Bookshelf are ignored.
  • Your dwelling itself is processed separately, using get_dwelling()
  • 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

get_dwelling() | get_clan_lounge() | map_to_file()