Get chateau

From Kolmafia
Revision as of 22:08, 8 July 2016 by imported>Degrassi knowles (very minor cleanup.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

int [item] get_chateau()

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

  • Most values will be 1 to represent the item exists.
  • Not all items will be included, players must purchase at least one item for each spot to appear.
  • Your painting is accessed separately with its own properties.

Code Sample

The following checks if Chateau Mantegna is available and then prints the contents and painting status.

  if(to_boolean(get_property("chateauAvailable")))
  {
    int [item] chateau = get_chateau();
    foreach furniture in chateau
    {
      print(furniture + " " + chateau[furniture]);
    }

    string painting = get_property("chateauMonster");
    string fought = get_property("_chateauMonsterFought");
    print(painting + " " + fought);
  }

See Also

get_campground()