[Command] OverwriteCurrentLocation
Posted: Wed Jun 15, 2022 6:49 pm
OverwriteCurrentLocation(location)
USE:
Change an actor's current location by overwriting the current location.
TYPE: Command, Ref
RETURNS:
THEME: Location
COMPARE: setCurrentLocation
EXAMPLE:
USE:
Change an actor's current location by overwriting the current location.
TYPE: Command, Ref
RETURNS:
THEME: Location
COMPARE: setCurrentLocation
EXAMPLE:
Code: Select all
"Where should I go?"
0:: "To the nearest swimming pool"
1:: "To the nearest riverbed"
2:: "To the nearest beach"
3:: "To the nearest park"
4:: "To the nearest forest"
5:: "To the nearest mountain"
6:: "Stay here"
If 0
OverwriteCurrentLocation(pool)
Elseif 1
OverwriteCurrentLocation(river)
Elseif 2
OverwriteCurrentLocation(beach)
Elseif 3
OverwriteCurrentLocation(park)
Elseif 4
OverwriteCurrentLocation(forest)
Elseif 5
OverwriteCurrentLocation(mountain)
Endif
"Here I am ..."