Get dwelling

From Kolmafia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Function Syntax

item get_dwelling()

Returns the item corresponding with your dwelling (the item used to get the dwelling). Note that if you have no dwelling, this function will return $item[big rock].

Code Samples

Informs you what your current dwelling is.

item house = get_dwelling();
if (house == $item[big rock])
   print("You currently do not have a house, you should use the Newbiesport™ Tent.", "red");
else print("You are currently using "+house+" for housing.","blue");

See Also

get_campground() | map_to_file()