Advertisement
Folstaria

Untitled

Jun 19th, 2015
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. local color = colors.lime
  2.  
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. password = "cycle"
  6. inverted = true
  7. side = "bottom"
  8. opentime = 5
  9.  
  10. term.setTextColor(color)
  11. rs.setOutput(side,inverted)
  12. print("--------------------------------------------------")
  13. print("--------------VAULT-TEC DOOR CONTROLS-------------")
  14. print("------------------MAIN VAULT DOOR-----------------")
  15. print("--------------------------------------------------")
  16. print("-- --")
  17. print("-- --")
  18. print("-- --")
  19. print("-- --")
  20. print("-- --")
  21. print("-- --")
  22. print("-- INPUT COMMAND: --")
  23. print("-- --")
  24. print("-- --")
  25. print("-- --")
  26. print("-- --")
  27. print("-- --")
  28. print("-- UI Model 0.1 --")
  29. print("--------------------------------------------------")
  30. print("--------------------------------------------------")
  31.  
  32. term.setCursorPos(23,11)
  33. input = read("*")
  34. if input == password then
  35. if inverted == true then
  36. term.setCursorPos(6,12)
  37. print("Command Recognised. Vault Door Cycling.")
  38. rs.setOutput(side, false)
  39. sleep(opentime)
  40. os.reboot()
  41. end
  42. else
  43. term.setCursorPos(15,12)
  44. print("Command not Recognised.")
  45. sleep(3)
  46. os.reboot()
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement