Guest User

Untitled

a guest
May 20th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.09 KB | None | 0 0
  1. puts " -----------------------------------"
  2. puts "| Welcome Adventurer to Text Quest! |"
  3. puts "| a pick your own adventure game |"
  4. puts "| by Dan Hasan |"
  5. puts " -----------------------------------"
  6. puts ""
  7. puts " !!!IMORTANT!!!"
  8. puts "While playing this game, please answer"
  9. puts " all questions in a lowercase manner"
  10. puts " and with the given options"
  11. puts ""
  12. puts "First off Adventurer, what is your name?"
  13. char_name = gets.chomp
  14. puts ""
  15. puts "Greetings, #{char_name}!"
  16. puts "Your quest begins now!"
  17. puts "------------------------------------"
  18. puts ""
  19. puts "You begin to stir, all is dark around you."
  20. puts "What do you do?"
  21. puts "------------------------------------"
  22. puts "a: try to move"
  23. puts "b: try to ascertain your surroundings"
  24. puts "c: panic"
  25. puts ""
  26. choice_one = gets.chomp
  27. case choice_one
  28. when "a", "b"
  29. if choice_one == "a"
  30. puts ""
  31. puts "You try to move your arms and legs"
  32. puts "only to find they are bound."
  33. end
  34. puts ""
  35. puts "You focus on the sounds nearby, trying"
  36. puts "to find out what's going on around you."
  37. puts ""
  38. puts "You hear the clatter of wheels and the"
  39. puts "braying of donkeys. A voice can be heard"
  40. puts "but what they are saying is inaudible..."
  41. puts ""
  42. puts "What do you do?"
  43. puts "------------------------------------"
  44. puts "a: silently struggle to break free (rolls a D10)"
  45. puts "b: nothing, lets see where this goes"
  46. puts ""
  47. choice_two = gets.chomp
  48. case choice_two
  49. when "a", "b"
  50. if choice_two == "a"
  51. puts ""
  52. puts "You attempt to silently break your bonds"
  53. struggle = rand(1..10)
  54. puts ""
  55. puts "<<target dice check 6+, you rolled a #{struggle}>>"
  56. if struggle <=5
  57. puts ""
  58. puts "You struggle with all your might, however"
  59. puts "you bump into something next to you, causing"
  60. puts "an incredibly heavy object to fall on top of you"
  61. puts ""
  62. puts ""
  63. puts "GAME OVER"
  64. puts "-BAD END-"
  65. exit
  66. else
  67. puts ""
  68. puts "You rotate your arms, trying to break the bonds"
  69. puts "around them, sadly to no avail"
  70. end
  71. end
  72. puts ""
  73. puts "You decide that struggling is pointless, you choose"
  74. puts "to sit idly by and see what happens"
  75. puts ""
  76. puts "You wait for what appears to be 5 minutes, when suddenly"
  77. puts "you feel a hand grab you by the shoulders and pulls you"
  78. puts "to your feet. Light explodes into your vision, blinding"
  79. puts "you for a moment. A gruff bandit smiles a toothless grin"
  80. puts "at you."
  81. puts ""
  82. puts "Bandit: Well, well, well, if it aint #{char_name}!"
  83. puts "I'll be damned! We are gonna get a pretty sack of"
  84. puts "coin for you!"
  85. puts ""
  86. puts "What do you do?"
  87. puts "------------------------------------"
  88. puts "a: headbutt the bandit and try to make a break for it"
  89. puts "b: scan the location around you"
  90. puts "c: cry"
  91. puts ""
  92. choice_three = gets.chomp
  93. case choice_three
  94. when "a"
  95. puts ""
  96. puts "You reel your head back and slam into the bandit's"
  97. puts "face as hard as you possibly can. You hear an audible"
  98. puts "'crunch' as his nose sprays a stream of blood."
  99. puts ""
  100. puts "Bandit: MY BLOODY NOSE! YOU LITTLE SHITE, I OUGHTA GUT"
  101. puts "YA WHERE YE STAND!"
  102. puts ""
  103. puts "The bandit,covering his face with one hand, swings his"
  104. puts "dagger around blindly with the other"
  105. puts ""
  106. puts "What do you do?"
  107. puts "------------------------------------"
  108. puts "a: take advantage of the confusion and escape"
  109. puts "b: attempt to have the bandit cut off your bindings (roll a D10)"
  110. puts ""
  111. choice_four_a = gets.chomp
  112. case choice_four_a
  113. when "a"
  114. puts ""
  115. puts "You take advantage of the confusion and head for the bushes."
  116. puts "You get no more than 10 feet before a pack of wolves lunge out"
  117. puts "of the shrubbery. Still bound, you are defenseless against their"
  118. puts "assault. In a fit of fangs, spit, and blood, you are relentlessly"
  119. puts "eaten by the starving beasts."
  120. puts ""
  121. puts "GAME OVER"
  122. puts "-BAD END-"
  123. exit
  124. when "b"
  125. puts ""
  126. puts "In a moment of sheer madness, you decide to step closer to the"
  127. puts "flailing bandit and hold out your arms"
  128. cut = rand(1..10)
  129. puts ""
  130. puts "<<target dice check 6+, you rolled a #{cut}>>"
  131. if cut <= 5
  132. puts ""
  133. puts "You look away as you approach the bandit, arms outstretched."
  134. puts "Fear has completely taken over at this point. You take a step"
  135. puts "forward, but before you know it you feel the steel enter your"
  136. puts "gut as the blade leaves its mark. You feel cold as your innards"
  137. puts "fall out, the last thing you hear is 'DAMN IT ALL TO THE SEVEN HELLS!'"
  138. puts "It seems you were worth nothing dead..."
  139. puts ""
  140. puts "GAME OVER"
  141. puts "-BAD END-"
  142. exit
  143. else
  144. puts ""
  145. puts "You muster up any and all courage you have left and approach the"
  146. puts "flailing bandit. You study his every move and fix your timing."
  147. puts "When the timing is right, you charge him, using his dagger to cut"
  148. puts "your bindings. Finally free, you run into the forest and manage to"
  149. puts "find a neighboring village. They welcome you with open arms as one"
  150. puts "of their own. You settle down and live a happy life with filled with"
  151. puts "joy and laughter. Sometimes the real treasure is from the heart."
  152. puts ""
  153. puts "GAME OVER"
  154. puts "GOOD END!"
  155. exit
  156. end
  157. else
  158. puts ""
  159. puts "Rocks fall, everyone dies"
  160. exit
  161. end
  162. when "b"
  163. puts ""
  164. puts "You look around at your surroundings again, hoping to"
  165. puts "catch a glimpse of something, anything! When suddenly"
  166. puts "a faint glimmer catches your eye. You hit the ground as"
  167. puts "a pack of wolves lunge at the bandit, tearing his throat out."
  168. puts "He lets out a gargling scream as blood sprays through the air"
  169. puts "as he falls dead at your feet. You are now surrounded by wolves"
  170. puts ""
  171. puts "What do you do?"
  172. puts "------------------------------------"
  173. puts "a: attempt to run from them"
  174. puts "b: quickly try to loot the bandit, maybe he had a weapon (roll a D10)"
  175. puts ""
  176. choice_four_b = gets.chomp
  177. case choice_four_b
  178. when "a"
  179. puts ""
  180. puts "Scared for your life, you take off running. Faster and faster,"
  181. puts "the fastest you've ever ran! You can hear them behind you."
  182. puts "Snarling and growling. Still, they hunger... In your plight, you trip"
  183. puts "on the root of a tree. With your arms still bound, you have no way of"
  184. puts "stopping yourself as you come crashing down. THUD! You feel the weight"
  185. puts "of the earth appear beneath you, your vision blurs, and then...you feel"
  186. puts "it. The pain. Erupting from your body as fangs sink their way into you."
  187. puts "Agony, as your flesh is torn asunder. Your mind slowly goes blank from"
  188. puts "the pain as the cold embrace of death claims you."
  189. puts ""
  190. puts "GAME OVER"
  191. puts "-BAD END-"
  192. exit
  193. when "b"
  194. puts ""
  195. puts "You attempt to loot the bandits' corpse. You could have sworn you saw"
  196. puts "a dagger or something on his person"
  197. loot = rand(1..10)
  198. puts ""
  199. puts "<<target dice check 6+, you rolled a #{loot}>>"
  200. if loot <= 5
  201. puts ""
  202. puts "You frantically throw yourself at the dead body in a desperate effort"
  203. puts "to locate something to defend yourself with. You find some tobacco, a"
  204. puts "small pouch of coins, and a vial of gods know what. You would be able"
  205. puts "to search more thoroughly had you found a way to unbind your hands,"
  206. puts "but all you find is death at the maw of hungry wolves...next time"
  207. puts "dont go rummaging through a dead guys pants when his dagger is on his"
  208. puts "belt?"
  209. puts ""
  210. puts "GAME OVER"
  211. puts "-BAD END-"
  212. exit
  213. else
  214. puts ""
  215. puts "You quickly notice his unsheathed dagger lying at his side, what luck!"
  216. puts "You throw yourself at the ground and grab the dagger, cutting yourself"
  217. puts "free. You are now armed with a dagger, but the wolves have closed in on"
  218. puts "you and are now circling around."
  219. puts "What do you do?"
  220. puts "------------------------------------"
  221. puts "a: stand and fight (roll a D10)"
  222. puts ""
  223. choice_five = gets.chomp
  224. case choice_five
  225. when "a"
  226. puts "You decide to take your fate into your own hands. No wolves are going"
  227. puts "to make a meal out of you! You enter a battle stance with your newly"
  228. puts "aqcuired dagger."
  229. fight = rand(1..10)
  230. puts ""
  231. puts "<<target dice check 6+, you rolled a #{fight}>>"
  232. if fight <= 5
  233. puts "You toss the dagger from hand to hand. Your adrenaline is firing on"
  234. puts "on all cylinders! The alpha wolf lunges at you! You're ready! The"
  235. puts "wolf lands on you and pins you to the ground. It is in this moment"
  236. puts "you realize, you have never learned to fight with a weapon. This"
  237. puts "oversight just cost you dearly, maybe in the next life you'll not"
  238. puts "doze off during weapons 101..."
  239. puts ""
  240. puts "GAME OVER"
  241. puts "-BAD END-"
  242. exit
  243. else
  244. puts "You waste no time, you throw yourself at the alpha of the pack."
  245. puts "As you reach out with your blade, the wolf lashes out at you"
  246. puts "with teeth fully bared. Your dagger however finds its mark in"
  247. puts "roof of the wolfs' mouth. It tries to close its bleeding maw, but"
  248. puts "the crossguard and scabbard of the dagger prevent it from doing so"
  249. puts "You drag the blade free, cleaving the wolfs' head in two, it's"
  250. puts "lifeless body lays limp before you. Clearly shaken by the display"
  251. puts "before them, the other wolves turn tail and run."
  252. puts ""
  253. puts "You skin the alpha and make a makeshift tunic from his hide."
  254. puts "Dinner that night consisted of wolf meat and was quite filling!"
  255. puts "You decide to become a hunter, trapping wild game and selling their"
  256. puts "meat and hide. Life is good and the hunt is better. Congrats, you"
  257. puts "are now the founder of #{char_name}'s Meat's and Hide!"
  258. puts ""
  259. puts "GAME OVER"
  260. puts "GOOD END!"
  261. exit
  262. end
  263. else
  264. puts ""
  265. puts "Rocks fall, everyone dies"
  266. exit
  267. end
  268. end
  269. end
  270. when "c"
  271. puts ""
  272. puts "You start to cry and plead for your life. The Bandit lets out a"
  273. puts "a wheezing laugh"
  274. puts ""
  275. puts "Bandit: Mercy eh? Yeah I'll show you mercy!"
  276. puts ""
  277. puts "The Bandit quickly hits you in the temple with the sheath of his"
  278. puts "dagger, knocking you out immediately. Hey, who knows? Maybe a life"
  279. puts "servitude may not be so bad after all?"
  280. puts ""
  281. puts "GAME OVER"
  282. puts "-BAD END-"
  283. exit
  284. else
  285. puts ""
  286. puts "Rocks fall, everyone dies"
  287. exit
  288. end
  289. else
  290. puts ""
  291. puts "Rocks fall, everyone dies"
  292. exit
  293. end
  294. when "c"
  295. puts ""
  296. puts "You let loose a scream, immediately"
  297. puts "you are met with sounds of shouting."
  298. puts "A sharp pain fills your gut as a man"
  299. puts "runs you through with a sword..."
  300. puts ""
  301. puts ""
  302. puts "GAME OVER"
  303. puts "-BAD END-"
  304. exit
  305. else
  306. puts ""
  307. puts "Rocks fall, everyone dies"
  308. end
  309. puts ""
  310. puts "See you next adventure!"
Add Comment
Please, Sign In to add comment