Set location

From Kolmafia
Revision as of 18:25, 31 January 2011 by imported>StDoodle (parameter added)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

void set_location(location place )

  • place is the new location

Changes the value returned by my_location() to place. This is significant because it allows scripts which check current adventuring location to provide results based on the location that you are about to adventure at.

CLI Equivalent

The CLI command "locations" will list all locations adventured at during your current session, along with adventures spent at each.

See Also

adventure() | my_location()