Last active
March 29, 2023 04:49
-
-
Save remiq/3e53aaa3e5a80029fe81 to your computer and use it in GitHub Desktop.
Alternative MissingPersonFinder for Else Heart.Break()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Else Heart.Break() | |
# Alternative MissingPersonFinder | |
# Valid computers: | |
# - (PoliceOfficeInterior) PoliceOfficeInterior_MinistryOfficeWorkstationComputer_1 | |
# - (TownHall apartment) Playstation | |
Menu() | |
return | |
bool Menu() | |
loop | |
Print("Pick one:") | |
Print("1. FindPerson") | |
Print("2. FindRoom") | |
Print("3. Things in room") | |
Print("4. Character inventory") | |
Print("5. People") | |
Print("6. Item pos") | |
Print("7. Teleport to") | |
Print("8. Teleport to person") | |
var o = Input("> ") | |
if o == "1" | |
ShowPeople() | |
else if o == "2" | |
ShowRooms() | |
else if o == "3" | |
var room = Input("Room> ") | |
ShowItems(room) | |
else if o == "4" | |
var char = Input("Who> ") | |
ShowItems(char + "_inventory") | |
else if o == "5" | |
ListPeople() | |
else if o == "6" | |
var item = Input("What> ") | |
Print(GetPosition(item)) | |
else if o == "7" | |
var room = Input("Room> ") | |
Teleport(room) | |
else if o == "8" | |
var person = Input("Who> ") | |
TeleportTo(person) | |
end | |
end | |
end | |
bool Teleport(string room) | |
var items = GetThingsInRoom(room) | |
SetPosition(GetUser(), items[0]) | |
end | |
bool TeleportTo(string person) | |
var room = GetRoom(person) | |
Teleport(room) | |
end | |
bool InRoom() | |
loop GetThingsInRoom("Internet") | |
Print(@) | |
Print(GetPosition(@)) | |
Input("") | |
end | |
end | |
bool ListPeople() | |
loop GetPeople() | |
Print(@) | |
Sleep(0.3) | |
end | |
end | |
bool ShowPeople() | |
loop GetPeople() | |
var pos = GetPosition(@) | |
Print(@ + ": " + pos) | |
Sleep(0.5) | |
end | |
end | |
bool ShowRooms() | |
loop GetAllRooms() | |
Print(@) | |
Sleep(0.2) | |
end | |
end | |
bool ShowItems(string room) | |
loop GetThingsInRoom(room) | |
Print(@) | |
Sleep(0.3) | |
end | |
end | |
loop | |
#ClearText() | |
Print("") | |
Print("MissingPersonFinder") | |
Print("===================") | |
var name = Input("Enter name: ") | |
var pos = GetPosition(name) | |
Print(name + " " + pos) | |
Input("") | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment