Guest User

Untitled

a guest
Jan 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. --[[Functions]]--
  2. function clear()
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. end
  6. function colorscheme(scheme)
  7. if scheme == "normal" then
  8. term.setBackgroundColor(colours.black)
  9. term.setTextColor(colours.white)
  10. elseif scheme == "glados" then
  11. term.setBackgroundColor(colours.black)
  12. term.setTextColor(colours.red)
  13. end
  14. end
  15. function slowprint(text)
  16. textutils.slowPrint(text)
  17. end
  18. --[[Variables]]--
  19. name = nil
  20. --[[Coding]]--
  21. --[[Intro]]--
  22. clear()
  23. colorscheme("glados")
  24. slowprint("Hello, and welcome to the Aperture Science Enrichment Program.")
  25. slowprint("Our goal is the ultimate in brain progression.")
  26. sleep(3)
  27. clear()
  28. slowprint("Now, what is your name?")
  29. colorscheme("normal")
  30. write(">> ")
  31. name = read()
  32. if name == "" then
  33. colorscheme("glados")
  34. slowprint("Okay then, I will call you 'fatty', do you like that name Fatty? I bet you do.")
  35. slowprint("Anyways,")
  36. name = "Fatty"
  37. end
  38. slowprint("END")to the Aperture Science Enrichment Center.")
Add Comment
Please, Sign In to add comment