Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setTextColor(colors.green)
- while x ~= "exit" do
- print("-------------------------------")
- print("Titan Manifold Control System:")
- print("Alpha to select Titan Activation Protocols.")
- print("Omega to select Titan Adminstrative Protocols.")
- print("Type exit to go back to previous menu.")
- write(" Enter a command now my princeps.")
- print("-------------------------------")
- x = io.read()
- if x == "Alpha" then
- while y ~= "exit" do
- y = io.read()
- if y == "on" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- print" ---------------------------------------------- "
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" ---------------------------------------------- "
- term.setCursorPos(19,3)
- print"Current Status:"
- if colors.test(redstone.getBundledOutput("back"), colors.blue) == false then
- Reactor = "Off"
- else
- Reactor = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.black) == false then
- Containment = "Off"
- else
- Containment = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.yellow) == false then
- Flood_Protocol = "Off"
- else
- Flood_Protocol = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.gray) == false then
- Illumination = "Off"
- else
- Illumination = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.red) == false then
- Reactor_Access = "Off"
- else
- Reactor_Access = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.orange) == false then
- HazMat_locker = "Off"
- else
- HazMat_locker = "On"
- end
- term.setCursorPos(5,5)
- write("1 - Reactor activation: ")
- write(Reactor)
- term.setCursorPos(28,5)
- write("2 - Reactor_Containment: ")
- write(Containment)
- term.setCursorPos(5,7)
- write("3 - Flood_Protocol: ")
- write(Flood)
- term.setCursorPos(28,7)
- write("4 - Illumination: ")
- write(Illumination)
- term.setCursorPos(5,9)
- write("5 - Reactor_Access: ")
- write(Reactor_Access)
- term.setCursorPos(28,9)
- write("6 - HazMat_locker: ")
- write(HazMat_locker)
- term.setCursorPos(3,12)
- write("Select a Service From The List Above And Enter")
- term.setCursorPos(7,13)
- write("Its ID Below Or leave Blank To Log Out")
- term.setCursorPos(21,15)
- write("Enter ID: ")
- sleep(1)
- input = read()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- print" ---------------------------------------------- "
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" ---------------------------------------------- "
- term.setCursorPos(15,9)
- if input == "1" then
- if Reactor == "On" then
- print"Reactor Initialised"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.blue))
- else
- print"Reactor Deactivated"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.blue))
- end
- elseif input == "2" then
- if Reactor_Containment == "On" then
- print" Reactor_Containment Deactivated"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.black))
- else
- print" Reactor_Containment Activated"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.black))
- end
- elseif input == "3" then
- if Flood_Protocol == "On" then
- print"Flood_Protocol Deactive"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.yellow))
- else
- print"Flood_Protocol Active"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.yellow))
- end
- elseif input == "4" then
- if Titan_Illumination == "On" then
- print" Titan_Illumination deactivated"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.gray))
- else
- print" Titan_Illumination Activated"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.gray))
- end
- elseif input == "5" then
- if Reactor_Access == "On" then
- print"Reactor_Access Withdrawn"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.red))
- else
- print"Reactor_Access Granted"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.red))
- end
- elseif input == "6" then
- if HazMat_locker == "On" then
- print" HazMat_locker locked"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.orange))
- else
- print" HazMat_locker unlocked"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.orange))
- end
- else
- end -- if y = on/off
- end -- while y
- end -- if Alpha
- if x == "Omega" then
- while u ~= "exit" do
- u=io.read()
- if y == "on" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- print" ---------------------------------------------- "
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" ---------------------------------------------- "
- term.setCursorPos(19,3)
- print"Current Status:"
- if colors.test(redstone.getBundledOutput("back"), colors.blue) == false then
- Head_blast_doors = "Off"
- else
- Head_blast_doors = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.black) == false then
- Carapace_access_hatches = "Off"
- else
- Carapace_access_hatches = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.yellow) == false then
- Carapace_boarding_hatch = "Off"
- else
- Carapace_boarding_hatch = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.gray) == false then
- Thoracic_Elevator = "Off"
- else
- Thoracic_Elevator = "On"
- end
- if colors.test(redstone.getBundledOutput("back"), colors.red) == false then
- Point_Defence_system = "Off"
- else
- Point_Defence_system = "On"
- end
- term.setCursorPos(5,5)
- write("1 - Head_blast_doors: ")
- write(Head_blast_doors)
- term.setCursorPos(28,5)
- write("2 - Carapace_access_hatches: ")
- write(Carapace_access_hatches)
- term.setCursorPos(5,7)
- write("3 - Carapace_boarding_hatch: ")
- write(Carapace_boarding_hatch)
- term.setCursorPos(28,7)
- write("4 - Thoracic_Elevator: ")
- write(Thoracic_Elevator)
- term.setCursorPos(5,9)
- write("5 - Point_Defence_system: ")
- write(Point_Defence_system)
- term.setCursorPos(3,12)
- write("Select a Service From The List Above And Enter")
- term.setCursorPos(7,13)
- write("Its ID Below Or leave Blank To Log Out")
- term.setCursorPos(21,15)
- write("Enter ID: ")
- sleep(1)
- input = read()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- print" ---------------------------------------------- "
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" | |"
- print" ---------------------------------------------- "
- term.setCursorPos(15,9)
- if input == "1" then
- if Head_blast_doors == "On" then
- print"Head_doors_extended"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.blue))
- else
- print"Head_doors_Retracted"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.blue))
- end
- elseif input == "2" then
- if Carapace_access_hatches == "On" then
- print" Carapace_access_hatches Sealed"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.black))
- else
- print" Carapace_access_hatches Open"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.black))
- end
- elseif input == "3" then
- if Carapace_boarding_hatch == "On" then
- print"Carapace_boarding_hatch Retracted"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.yellow))
- else
- print"Carapace boarding hatch Sealed."
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.yellow))
- end
- elseif input == "4" then
- if Thoracic_Elevator == "On" then
- print" Thoracic_Elevator Direction Upper level"
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.gray))
- else
- print" Thoracic_Elevator Direction Lower level"
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.gray))
- end
- elseif input == "5" then
- if Point_Defence_system == "On" then
- print"Point Defence system Deactivated."
- rs.setBundledOutput("back", colors.subtract( rs.getBundledOutput( "back" ), colors.red))
- else
- print"Point_Defence_system Active."
- rs.setBundledOutput("back", colors.combine( rs.getBundledOutput( "back" ), colors.red))
- end
- else
- end -- if u = on/off
- end -- while u
- end -- if em
- end -- while z
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment