Guest User

game

a guest
Jun 14th, 2014
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.38 KB | None | 0 0
  1. print("Total lines of code: 67")
  2. os.sleep(2)
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. os.sleep(1)
  6. print("You enter a shop, the owner looks into your eyes and realizes you are special.")
  7. os.sleep(3)
  8. print("He says you may have a choice of two weapons, sword or bow.")
  9. os.sleep(3)
  10. term.clear()
  11. term.setCursorPos(1, 1)
  12. os.sleep(1)
  13. print("What shall you pick?")
  14. write("Choice Console: ")
  15. input = read()
  16. if input == "sword" or input == "Sword" then
  17. print("You chose sword")
  18. os.sleep(1)
  19. term.clear()
  20. term.setCursorPos(1, 1)
  21. elseif input == "bow" or input == "Bow" then
  22. print("You chose bow")
  23. os.sleep(1)
  24. term.clear()
  25. term.setCursorPos(1, 1)
  26. else
  27. print("You can not choose "..input)
  28. os.reboot()
  29. end
  30. print("You exit the shop to find a mysterious man on a bench.")
  31. os.sleep(3)
  32. print("He says that he will not let you murder him.")
  33. os.sleep(3)
  34. print("A hole starts forming in the ground, you fall in.")
  35. os.sleep(3)
  36. print("You wake up and smell flowers. You go left or right.")
  37. os.sleep(3)
  38. write("Choice Console: ")
  39. input = read()
  40. if input == "left" or input == "Left" then
  41. print("You move left and walk into a monster. Attack of run?")
  42. input = read()
  43. if input == "attack" or input == "Attack" then
  44. print("You one shot the monster! 0/10 health.")
  45. print("Level up!")
  46. print("Attack damage +5")
  47. print("You continue on that path to a dead end. You turn around and walk into a building.")
  48. print("You find a treasure chest. You open it and find a map inside.")
  49. print("THAT'S THE END OF DA DEMO!")
  50. elseif input == "run" or input == "Run" then
  51. print("You attempt to run and fail, he attacks you and you die.")
  52. end
  53. elseif input == "right" or input == "Right" then
  54. print("You walk infront of a door to a building. Open or turn around?")
  55. input = read()
  56. if input == "open" or input == "Open" then
  57. print("You walk in.")
  58. print("You are infront of a treasure chest. You find a map inside")
  59. print("That's the end of the demo!")
  60. elseif input == "turn around" or input == "Turn around" then
  61. print("You walk into a monster and decide to attack, you kill the monster 0/10 health.")
  62. print("Level up!")
  63. print("Attack damage +5")
  64. print("You continue on that path and walk into a dead end, you go to the right path.")
  65. print("You're infront of a door to a building.")
  66. print("You walked in.")
  67. print("You are infront of a treasure chest. You find a map inside")
  68. print("That's the end of the demo!")
  69. end
  70. end
Advertisement
Add Comment
Please, Sign In to add comment