Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("right")
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Type LIST for camera locations or type CAM to choose which camera to view.")
- option = read()
- if option == "LIST" then -- asks to explain where each camera lies and what you will see when you select it
- term.clear()
- term.setCursorPos(1, 1)
- print("ROOM lists the various cameras for non reactor rooms.")
- print("REACTOR lists the various cameras for the nuclear reactors.")
- print("Will you list ROOM cameras or REACTOR cameras, or do you want to go BACK to the main menu?")
- option2 = read()
- if option2 == "ROOM" then
- print("01 is - Front Entrance")
- print("02 is - Entrance Hallway")
- print("03 is - South-East Hallway")
- print("04 is - Control Room 1")
- print("05 is - Development Room 1")
- print("06 is - Control Room 2")
- print("07 is - Upper Hallway")
- elseif option2 == "REACTOR" then
- print("01 is - Fluid Reactors 1 & 2")
- print("02 is - Fluid Reactors 3 & 4")
- print("03 is - EU Reactors 1 & 2")
- print("04 is - EU Reactors 3 & 4")
- print("05 is - EU Reactor 5")
- print("06 is - EU Reactor 6")
- elseif option2 == "BACK" then
- term.clear()
- term.setCursorPos(1, 1)
- end
- end
- end
- else
- print("Unknown command, please input either ROOM, REACTOR or BACK.")
- sleep(6)
- term.clear()
- term.setCursorPos(1, 1)
- end
- end
- elseif option == "CAM" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Will you select ROOM cameras, REACTOR cameras or will you go BACK to the main menu?")
- option3 = read()
- if option3 == "ROOM" then
- print("Please input a camera number to view that specific camera type BACK to choose a different category")
- option4 = read()
- if option4 == "01" then
- print("You are viewing - Front Entrance")
- monitor.videoChannel(8001)
- elseif option4 == "02" then
- print("You are viewing - Entrance Hallway")
- monitor.videoChannel(8002)
- elseif option4 == "03" then
- print("You are viewing - South-East Hallway")
- monitor.videoChannel(8003)
- elseif option4 == "04" then
- print("You are viewing - Control Room 1")
- monitor.videoChannel(8004)
- elseif option4 == "05" then
- print("You are viewing - Development Room 1")
- monitor.videoChannel(8005)
- elseif option4 == "06" then
- print("You are viewing - Control Room 2")
- monitor.videoChannel(8006)
- elseif option4 == "07" then
- print("You are viewing - Upper Hallway")
- monitor.videoChannel(8007)
- elseif option4 == "BACK" then
- term.clear()
- term.setCursorPos(1, 1)
- end
- end
- end
- end
- else
- print("Unknown camera number, use numbers 01-07 or type BACK")
- sleep(6)
- term.clear()
- term.setCursorPos(1, 1)
- end
- end
- elseif option3 == "REACTOR" then
- print("Please input a camera number to view that specific camera type BACK to choose a different category")
- option5 = read()
- if option5 == "01" then
- print("You are viewing - Fluid Reactors 1 & 2")
- monitor.videoChannel(8021)
- elseif option5 == "02" then
- print("You are viewing - Fluid Reactors 3 & 4")
- monitor.videoChannel(8022)
- elseif option5 == "03" then
- print("You are viewing - EU Reactors 1 & 2")
- monitor.videoChannel(8023)
- elseif option5 == "04" then
- print("You are viewing - EU Reactors 3 & 4")
- monitor.videoChannel(8024)
- elseif option5 == "05" then
- print("You are viewing - EU Reactor 5")
- monitor.videoChannel(8025)
- elseif option5 == "06" then
- print("You are viewing - EU Reactor 6")
- monitor.videoChannel(8026)
- elseif option5 == "BACK" then
- term.clear()
- term.setCursorPos(1, 1)
- end
- end
- end
- else
- print("Unknown camera number, use numbers 01-06 or type BACK.")
- sleep(6)
- term.clear()
- term.setCursorPos(1, 1)
- end
- end
- else
- print("Unknown command, please input either LIST or CAM.") -- PERSONAL NOTE, ADD TERM.CLEAR AFTER EVERY MONITOR CHANGE
- sleep(6)
- end
- end
Add Comment
Please, Sign In to add comment