Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Location = 1
- local Junctions = {
- { 0, 2048, 5, 9, 1, 3, 19, 51, 243, 371, 627, 1651, 3699},
- { 2048, 0, 5, 9, 1, 3, 19, 51, 243, 371, 627, 1651, 3699}
- }
- term.clear()
- term.setCursorPos(1,1)
- print(" Welcome to")
- print(" Transport for Regions Around Marbleville (TRAM)")
- print("---------------------------------------------------")
- print(" Please select your destination:")
- print()
- print("ts = Train Station pt = Processing Towers")
- print("pc = Computers ap = Advanced Processing")
- print("br = Bedroom as = Automated Storage")
- print("gs = General Storage ab = Assembly")
- print("fi = Fields rf = Refinery")
- print("cp = Coal Processing eg = Engines")
- print("fs = Factory Storage")
- print()
- print("Please use lower case symbols for your station code (2 letters)")
- local Destination_Code = read()
- term.clear()
- term.setCursorPos(1,1)
- local Destination_Table = {"ts","pc","br","gs","fi","cp","fs","pt","ap","as","ab","rf","eg"}
- local Destination = 1
- while Destination_Code ~= Destination_Table[Destination] do
- Destination = Destination + 1
- if (Destination > 16) or (Destination_Code == 0) then
- print("Invalid destination code!")
- sleep(3)
- os.reboot()
- end
- end
- if Destination == Location then
- print("You're already there you dumbass!")
- sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement