Set location
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.