aacoba

Untitled

Oct 12th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. function defSettings()
  2. password="Ice"
  3. end
  4.  
  5. function Welcome()
  6. print("Welkom bij de DegC Nucleare Controle Kamer!")
  7. print("Wat is uw wachtwoord?")
  8. userinput=read("*")
  9. end
  10.  
  11. function checkpassword()
  12. if userinput == password then
  13. rs.setOutput("back", true)
  14. sleep(1)
  15. rs.setOutput("back", false)
  16. end
  17. end
  18.  
  19. function clearscreen()
  20. sleep(3)
  21. term.clear()
  22. term.setCursorPos(1,1)
  23. end
  24.  
  25. function main()
  26. while true do
  27. defSettings()
  28. Welcome()
  29. checkpassword()
  30. clearscreen()
  31. end
  32. end
  33.  
  34. main()
Advertisement
Add Comment
Please, Sign In to add comment