Advertisement
Folstaria

Untitled

Jun 19th, 2015
251
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 = "pipboy"
  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("--------------------------------------------------")
  15. print("-- --")
  16. print("-- --")
  17. print("-- --")
  18. print("-- --")
  19. print("-- --")
  20. print("-- --")
  21. print("-- PASSWORD: --")
  22. print("-- --")
  23. print("-- --")
  24. print("-- --")
  25. print("-- --")
  26. print("-- --")
  27. print("-- --")
  28. print("-- UI Model 0.1 --")
  29. print("--------------------------------------------------")
  30. print("--------------------------------------------------")
  31.  
  32. term.setCursorPos(21,11)
  33. input = read("*")
  34. if input == password then
  35. if inverted == true then
  36. term.setCursorPos(8,12)
  37. print("Password Recognised. Door Opening.")
  38. rs.setOutput(side, false)
  39. sleep(opentime)
  40. os.reboot()
  41. end
  42. else
  43. term.setCursorPos(12,12)
  44. print("Password not Recognised.")
  45. sleep(3)
  46. os.reboot()
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement