Guest User

startup

a guest
Apr 1st, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.56 KB | None | 0 0
  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.    print("* DEACTIVATED   REACTORS 1 - 3 *")
  68.    print("********************************")
  69.    sleep(3)
  70.    white = not white
  71.   end
  72.   if input == "3" then
  73.    c = colors.subtract(c, colors.black)
  74.    rs.setBundledOutput("back", c)
  75.    term.clear()
  76.    term.setCursorPos(9,10)
  77.    print("********************************")
  78.    print("* ACTIVATED     REACTORS 4 - 6 *")
  79.    print("********************************")
  80. sleep(3)
  81.    black = not black
  82.   end
  83.   if input == "4" then
  84.    c = colors.combine(c, colors.black)
  85.    rs.setBundledOutput("back", c)
  86.    term.clear()
  87.    term.setCursorPos(9,10)
  88.    print("********************************")
  89.    print("* DEACTIVATED   REACTORS 4 - 6 *")
  90.    print("********************************")
  91.    sleep(3)
  92.    black = not black
  93.   end
  94.   if input == "5" then
  95.    c = colors.subtract(c, colors.red)
  96.    rs.setBundledOutput("back", c)
  97.    term.clear()
  98.    term.setCursorPos(9,10)
  99.    print("********************************")
  100.    print("* ACTIVATED     BREEDER CORE 1 *")
  101.    print("********************************")
  102.    sleep(3)
  103.    red = not red
  104.   end
  105.   if input == "6" then
  106.    c = colors.combine(c, colors.red)
  107.    rs.setBundledOutput("back", c)
  108.    term.clear()
  109.    term.setCursorPos(9,10)
  110.    print("********************************")
  111.    print("* DEACTIVATED   BREEDER CORE 1 *")
  112.    print("********************************")
  113.    sleep(3)
  114.    red = not red
  115.   end
  116.   if input == "7" then
  117.    c = colors.subtract(c, colors.green)
  118.    rs.setBundledOutput("back", c)
  119.    term.clear()
  120.    term.setCursorPos(9,10)
  121.    print("********************************")
  122.    print("* ACTIVATED     BREEDER CORE 2 *")
  123.    print("********************************")
  124.    sleep(3)
  125.    green = not green
  126.   end
  127.   if input == "8" then
  128.    c = colors.combine(c, colors.green)
  129.    rs.setBundledOutput("back", c)
  130.    term.clear()
  131.    term.setCursorPos(9,10)
  132.    print("********************************")
  133.    print("* DEACTIVATED   BREEDER CORE 2 *")
  134.    print("********************************")
  135.    sleep(3)
  136.    green = not green
  137.   end
  138.   if input == "0" then
  139.   c = colors.combine(colors.green,colors.red,colors.white,colors.black)
  140.    term.setTextColor(colors.red)
  141.    green = false
  142.    red = false
  143.    black = false
  144.    white = false
  145.    rs.setBundledOutput("back", c)
  146.    term.clear()
  147.    term.setCursorPos(9,10)
  148.    print("********************************")
  149.    print("* EMERGENCY SHUTDOWN INITIATED *")
  150.    print("********************************")
  151.    sleep(3)
  152.   end
  153. end
Advertisement
Add Comment
Please, Sign In to add comment