Guest User

startup

a guest
Apr 1st, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.78 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. rs.setBundledOutput("back", c)
  7.  
  8.  while true do
  9.   term.clear()
  10.   term.setTextColor(colors.lime)
  11.   term.setCursorPos(1,1)
  12.   print("**************************************************")
  13.   print("***** VAULT-TEC REACTOR MK 4 CONTROL STATION *****")
  14.   print("*****       AUTHORIZED PERSONEL  ONLY!       *****")
  15.   print("**************************************************")
  16.   i=1
  17.   while i <= 13 do
  18.   term.setCursorPos(1,i+4)
  19.   print("*****                                        *****")
  20.   i=i+1
  21.   end
  22.   print("**************************************************")
  23.   term.setCursorPos(7,15)
  24.   print("**************************************************")
  25.   term.setTextColor(colors.blue)
  26.   term.setCursorPos(7,5)
  27.   print(" [1] ACTIVATE    REACTORS 1 - 3")
  28.   term.setCursorPos(7,6)
  29.   print(" [2] DEACTIVATE  REACTORS 1 - 3")
  30.   term.setCursorPos(7,7)
  31.   print(" [3] ACTIVATE    REACTORS 4 - 6")
  32.   term.setCursorPos(7,8)
  33.   print(" [4] DEACTIVATE  REACTORS 4 - 6")
  34.   term.setCursorPos(7,9)
  35.   print(" [5] ACTIVATE    BREEDER CORE 1")
  36.   term.setCursorPos(7,10)
  37.   print(" [6] DEACTIVATE  BREEDER CORE 1")
  38.   term.setCursorPos(7,11)
  39.   print(" [7] ACTIVATE    BREEDER CORE 2")
  40.   term.setCursorPos(7,12)
  41.   print(" [8] DEACTIVATE  BREEDER CORE 2")
  42.   term.setCursorPos(7,13)
  43.   term.setTextColor(colors.red)
  44.   print(" [0] -EMERGENCY-  CORE SHUTDOWN")
  45.   term.setTextColor(colors.blue)      
  46.   term.setCursorPos(7,17)
  47.   print(" ENTER CHOICE: [ ]")
  48.   term.setCursorPos(23,17)
  49.   input = read()
  50.    
  51.   if input == "1" then
  52.   c = colors.subtract(c, colors.white)
  53.   rs.setBundledOutput("back",c)
  54.   white = not white
  55.   end
  56.   if input == "2" then
  57.   c = colors.combine(c, colors.white)
  58.   rs.setBundledOutput("back",c)
  59.   white = not white
  60.   end
  61.   if input == "3" then
  62.   c = colors.subtract(c, colors.black)
  63.   rs.setBundledOutput("back",c)
  64.   black = not black
  65.   end
  66.   if input == "4" then
  67.   c = colors.combine(c, colors.black)
  68.   rs.setBundledOutput("back",c)
  69.   black = not black
  70.   end
  71.   if input == "5" then
  72.   c = colors.subtract(c, colors.red)
  73.   rs.setBundledOutput("back",c)
  74.   red = not red
  75.   end
  76.   if input == "6" then
  77.   c = colors.combine(c, colors.red)
  78.   rs.setBundledOutput("back",c)
  79.   red = not red
  80.   end
  81.   if input == "7" then
  82.   c = colors.subtract(c, colors.green)
  83.   rs.setBundledOutput("back",c)
  84.   green = not green
  85.   end
  86.   if input == "8" then
  87.   c = colors.combine(c, colors.green)
  88.   rs.setBundledOutput("back", c)
  89.   green = not green
  90.   end
  91.   if input == "0" then
  92.   c = colors.combine(colors.green,colors.red,colors.white,colors.black)
  93.   green = false
  94.   red = false
  95.   black = false
  96.   white = false
  97.   rs.setBundledOutput("back", c)
  98.   end
  99. end
Advertisement
Add Comment
Please, Sign In to add comment