MiStAWaFFlEZZ

archery

Oct 4th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. function easy()
  2. --easy shit
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. i = o
  6. print("Get Ready!")
  7. sleep(5)
  8. local i = 0
  9. repeat
  10. local x = math.random(12)
  11. rs.setBundledOutput("back", x)
  12. sleep(3)
  13. rs.setBundledOutput("back", 0)
  14. sleep(1)
  15. i = i + 1
  16. until i == 3
  17. end
  18.  
  19. function medium()
  20. --medium shit
  21. i = o
  22. term.clear()
  23. term.setCursorPos(1,1)
  24. print("Get Ready!")
  25. sleep(5)
  26. local i = 0
  27. repeat
  28. local x = math.random(12)
  29. rs.setBundledOutput("back", x)
  30. sleep(3)
  31. rs.setBundledOutput("back", 0)
  32. sleep(1)
  33. i = i + 1
  34. until i == 6
  35. end
  36.  
  37. function hard()
  38. --hard shit
  39. i = o
  40. term.clear()
  41. term.setCursorPos(1,1)
  42. print("Get Ready!")
  43. sleep(5)
  44. local i = 0
  45. repeat
  46. local x = math.random(12)
  47. rs.setBundledOutput("back", x)
  48. sleep(3)
  49. rs.setBundledOutput("back", 0)
  50. sleep(1)
  51. i = i + 1
  52. until i == 9
  53. end
  54.  
  55. while true do
  56. print("Welcome to the archery system!")
  57. sleep(0.5)
  58. print("Easy, Medium or Hard?")
  59. local diff = read()
  60. if diff == "easy"
  61. easy()
  62. else
  63. if diff == "medium"
  64. medium()
  65. else
  66. if diff == "hard"
  67. hard()
  68. end
  69. end
  70. end
  71.  
  72. end
Advertisement
Add Comment
Please, Sign In to add comment