[Command] OverwriteCurrentLocation

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

OverwriteCurrentLocation(location)


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 ..."
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply