Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = colors.combine(colors.red,colors.black,colors.white,colors.green)
- white = false
- black = false
- green = false
- red = false
- while true do
- term.clear()
- term.setTextColor(colors.lime)
- term.setCursorPos(1,1)
- print("**************************************************")
- print("***** VAULT-TEC REACTOR MK 4 CONTROL STATION *****")
- print("***** AUTHORIZED PERSONEL ONLY! *****")
- print("**************************************************")
- i=1
- while i <= 13 do
- term.setCursorPos(1,i+4)
- print("***** *****")
- i=i+1
- end
- print("**************************************************")
- term.setCursorPos(7,15)
- print("**************************************************")
- term.setTextColor(colors.blue)
- term.setCursorPos(11,6)
- print("[1] ACTIVATE REACTORS 1 - 3")
- term.setCursorPos(11,7)
- print("[2] DEACTIVATE REACTORS 1 - 3")
- term.setCursorPos(11,8)
- print("[3] ACTIVATE REACTORS 4 - 6")
- term.setCursorPos(11,9)
- print("[4] DEACTIVATE REACTORS 4 - 6")
- term.setCursorPos(11,10)
- print("[5] ACTIVATE BREEDER CORE 1")
- term.setCursorPos(11,11)
- print("[6] DEACTIVATE BREEDER CORE 1")
- term.setCursorPos(11,12)
- print("[7] ACTIVATE BREEDER CORE 2")
- term.setCursorPos(11,13)
- print("[8] DEACTIVATE BREEDER CORE 2")
- term.setCursorPos(11,14)
- term.setTextColor(colors.red)
- print("[0] -EMERGENCY- CORE SHUTDOWN")
- term.setTextColor(colors.blue)
- term.setCursorPos(7,17)
- print(" ENTER CHOICE: [ ]")
- term.setCursorPos(26,17)
- input = read()
- if input == "1" then
- c = colors.subtract(c, colors.white)
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,9)
- print("********************************"
- print("* ACTIVATED REACTORS 1 - 3 *"
- print("********************************"
- sleep(3)
- white = not white
- end
- if input == "2" then
- c = colors.combine(c, colors.white)
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,10)
- print("********************************"
- print("* DEACTIVATED REACTORS 1 - 3 *"
- print("********************************"
- sleep(3)
- white = not white
- end
- if input == "3" then
- c = colors.subtract(c, colors.black)
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,10)
- print("********************************"
- print("* ACTIVATED REACTORS 4 - 6 *"
- print("********************************"
- sleep(3)
- black = not black
- end
- if input == "4" then
- c = colors.combine(c, colors.black)
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,10)
- print("********************************"
- print("* DEACTIVATED REACTORS 4 - 6 *"
- print("********************************"
- sleep(3)
- black = not black
- end
- if input == "5" then
- c = colors.subtract(c, colors.red)
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,10)
- print("********************************"
- print("* ACTIVATED BREEDER CORE 1 *"
- print("********************************"
- sleep(3)
- red = not red
- end
- if input == "6" then
- c = colors.combine(c, colors.red)
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,10)
- print("********************************"
- print("* DEACTIVATED BREEDER CORE 1 *"
- print("********************************"
- sleep(3)
- red = not red
- end
- if input == "7" then
- c = colors.subtract(c, colors.green)
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,10)
- print("********************************"
- print("* ACTIVATED BREEDER CORE 2 *"
- print("********************************"
- sleep(3)
- green = not green
- end
- if input == "8" then
- c = colors.combine(c, colors.green)
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,10)
- print("********************************"
- print("* DEACTIVATED BREEDER CORE 2 *"
- print("********************************"
- sleep(3)
- green = not green
- end
- if input == "0" then
- c = colors.combine(colors.green,colors.red,colors.white,colors.black)
- green = false
- red = false
- black = false
- white = false
- rs.setBundledOutput("back", c)
- term.clear()
- setCursorPos(9,10)
- print("********************************"
- print("* EMERGENCY SHUTDOWN INITIATED *"
- print("********************************"
- sleep(3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement