To url
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
string to_url(location place )
- place is an in-game location to parse
Returns the short url (normally of the form "adventure.php?snarfblat=") used to visit the location place.
Code Samples
Following example shows basic to_url operations.
location first;
first = $location[The Poop Deck];
print(first+" gives "+to_url(first)+".", "blue");
It gives the following output.
The Poop Deck gives adventure.php?snarfblat=159.
See Also
Special
Trying to use $location[none] will generate an "Unexpected error."