SHOW:
|
|
- or go back to the newest paste.
| 1 | c = colors.combine(colors.red,colors.black,colors.white,colors.green) | |
| 2 | white = false | |
| 3 | black = false | |
| 4 | green = false | |
| 5 | red = false | |
| 6 | ||
| 7 | while true do | |
| 8 | term.clear() | |
| 9 | term.setTextColor(colors.lime) | |
| 10 | term.setCursorPos(1,1) | |
| 11 | print("**************************************************")
| |
| 12 | print("***** VAULT-TEC REACTOR MK 4 CONTROL STATION *****")
| |
| 13 | print("***** AUTHORIZED PERSONEL ONLY! *****")
| |
| 14 | print("**************************************************")
| |
| 15 | i=1 | |
| 16 | while i <= 13 do | |
| 17 | term.setCursorPos(1,i+4) | |
| 18 | print("***** *****")
| |
| 19 | i=i+1 | |
| 20 | end | |
| 21 | print("**************************************************")
| |
| 22 | term.setCursorPos(7,15) | |
| 23 | print("**************************************************")
| |
| 24 | term.setTextColor(colors.blue) | |
| 25 | term.setCursorPos(11,6) | |
| 26 | print("[1] ACTIVATE REACTORS 1 - 3")
| |
| 27 | term.setCursorPos(11,7) | |
| 28 | print("[2] DEACTIVATE REACTORS 1 - 3")
| |
| 29 | term.setCursorPos(11,8) | |
| 30 | print("[3] ACTIVATE REACTORS 4 - 6")
| |
| 31 | term.setCursorPos(11,9) | |
| 32 | print("[4] DEACTIVATE REACTORS 4 - 6")
| |
| 33 | term.setCursorPos(11,10) | |
| 34 | print("[5] ACTIVATE BREEDER CORE 1")
| |
| 35 | term.setCursorPos(11,11) | |
| 36 | print("[6] DEACTIVATE BREEDER CORE 1")
| |
| 37 | term.setCursorPos(11,12) | |
| 38 | print("[7] ACTIVATE BREEDER CORE 2")
| |
| 39 | term.setCursorPos(11,13) | |
| 40 | print("[8] DEACTIVATE BREEDER CORE 2")
| |
| 41 | term.setCursorPos(11,14) | |
| 42 | term.setTextColor(colors.red) | |
| 43 | print("[0] -EMERGENCY- CORE SHUTDOWN")
| |
| 44 | term.setTextColor(colors.blue) | |
| 45 | term.setCursorPos(7,17) | |
| 46 | print(" ENTER CHOICE: [ ]")
| |
| 47 | term.setCursorPos(26,17) | |
| 48 | input = read() | |
| 49 | term.setTextColor(colors.lime) | |
| 50 | if input == "1" then | |
| 51 | c = colors.subtract(c, colors.white) | |
| 52 | rs.setBundledOutput("back", c)
| |
| 53 | term.clear() | |
| 54 | term.setCursorPos(9,9) | |
| 55 | print("********************************")
| |
| 56 | print("* ACTIVATED REACTORS 1 - 3 *")
| |
| 57 | print("********************************")
| |
| 58 | sleep(3) | |
| 59 | white = not white | |
| 60 | end | |
| 61 | if input == "2" then | |
| 62 | c = colors.combine(c, colors.white) | |
| 63 | rs.setBundledOutput("back", c)
| |
| 64 | term.clear() | |
| 65 | term.setCursorPos(9,10) | |
| 66 | print("********************************")
| |
| 67 | term.setCursorPos(9,11) | |
| 68 | print("* DEACTIVATED REACTORS 1 - 3 *")
| |
| 69 | term.setCursorPos(9,12) | |
| 70 | print("********************************")
| |
| 71 | sleep(3) | |
| 72 | white = not white | |
| 73 | end | |
| 74 | if input == "3" then | |
| 75 | c = colors.subtract(c, colors.black) | |
| 76 | rs.setBundledOutput("back", c)
| |
| 77 | term.clear() | |
| 78 | term.setCursorPos(9,10) | |
| 79 | print("********************************")
| |
| 80 | term.setCursorPos(9,11) | |
| 81 | print("* ACTIVATED REACTORS 4 - 6 *")
| |
| 82 | term.setCursorPos(9,12) | |
| 83 | print("********************************")
| |
| 84 | sleep(3) | |
| 85 | black = not black | |
| 86 | end | |
| 87 | if input == "4" then | |
| 88 | c = colors.combine(c, colors.black) | |
| 89 | rs.setBundledOutput("back", c)
| |
| 90 | term.clear() | |
| 91 | term.setCursorPos(9,10) | |
| 92 | print("********************************")
| |
| 93 | term.setCursorPos(9,11) | |
| 94 | print("* DEACTIVATED REACTORS 4 - 6 *")
| |
| 95 | term.setCursorPos(9,12) | |
| 96 | print("********************************")
| |
| 97 | sleep(3) | |
| 98 | black = not black | |
| 99 | end | |
| 100 | if input == "5" then | |
| 101 | c = colors.subtract(c, colors.red) | |
| 102 | rs.setBundledOutput("back", c)
| |
| 103 | term.clear() | |
| 104 | term.setCursorPos(9,10) | |
| 105 | print("********************************")
| |
| 106 | term.setCursorPos(9,11) | |
| 107 | print("* ACTIVATED BREEDER CORE 1 *")
| |
| 108 | term.setCursorPos(9,12) | |
| 109 | print("********************************")
| |
| 110 | sleep(3) | |
| 111 | red = not red | |
| 112 | end | |
| 113 | if input == "6" then | |
| 114 | c = colors.combine(c, colors.red) | |
| 115 | rs.setBundledOutput("back", c)
| |
| 116 | term.clear() | |
| 117 | term.setCursorPos(9,10) | |
| 118 | print("********************************")
| |
| 119 | term.setCursorPos(9,11) | |
| 120 | print("* DEACTIVATED BREEDER CORE 1 *")
| |
| 121 | term.setCursorPos(9,12) | |
| 122 | print("********************************")
| |
| 123 | sleep(3) | |
| 124 | red = not red | |
| 125 | end | |
| 126 | if input == "7" then | |
| 127 | c = colors.subtract(c, colors.green) | |
| 128 | rs.setBundledOutput("back", c)
| |
| 129 | term.clear() | |
| 130 | term.setCursorPos(9,10) | |
| 131 | print("********************************")
| |
| 132 | term.setCursorPos(9,11) | |
| 133 | print("* ACTIVATED BREEDER CORE 2 *")
| |
| 134 | term.setCursorPos(9,12) | |
| 135 | print("********************************")
| |
| 136 | sleep(3) | |
| 137 | green = not green | |
| 138 | end | |
| 139 | if input == "8" then | |
| 140 | c = colors.combine(c, colors.green) | |
| 141 | rs.setBundledOutput("back", c)
| |
| 142 | term.clear() | |
| 143 | term.setCursorPos(9,10) | |
| 144 | print("********************************")
| |
| 145 | term.setCursorPos(9,11) | |
| 146 | print("* DEACTIVATED BREEDER CORE 2 *")
| |
| 147 | term.setCursorPos(9,12) | |
| 148 | print("********************************")
| |
| 149 | sleep(3) | |
| 150 | green = not green | |
| 151 | end | |
| 152 | if input == "0" then | |
| 153 | c = colors.combine(colors.green,colors.red,colors.white,colors.black) | |
| 154 | term.setTextColor(colors.red) | |
| 155 | green = false | |
| 156 | red = false | |
| 157 | black = false | |
| 158 | white = false | |
| 159 | rs.setBundledOutput("back", c)
| |
| 160 | term.clear() | |
| 161 | term.setCursorPos(9,10) | |
| 162 | print("********************************")
| |
| 163 | term.setCursorPos(9,11) | |
| 164 | print("* EMERGENCY SHUTDOWN INITIATED *")
| |
| 165 | term.setCursorPos(9,12) | |
| 166 | print("********************************")
| |
| 167 | sleep(3) | |
| 168 | end | |
| 169 | end |