Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts " -----------------------------------"
- puts "| Welcome Adventurer to Text Quest! |"
- puts "| a pick your own adventure game |"
- puts "| by Dan Hasan |"
- puts " -----------------------------------"
- puts ""
- puts " !!!IMORTANT!!!"
- puts "While playing this game, please answer"
- puts " all questions in a lowercase manner"
- puts " and with the given options"
- puts ""
- puts "First off Adventurer, what is your name?"
- char_name = gets.chomp
- puts ""
- puts "Greetings, #{char_name}!"
- puts "Your quest begins now!"
- puts "------------------------------------"
- puts ""
- puts "You begin to stir, all is dark around you."
- puts "What do you do?"
- puts "------------------------------------"
- puts "a: try to move"
- puts "b: try to ascertain your surroundings"
- puts "c: panic"
- puts ""
- choice_one = gets.chomp
- case choice_one
- when "a", "b"
- if choice_one == "a"
- puts ""
- puts "You try to move your arms and legs"
- puts "only to find they are bound."
- end
- puts ""
- puts "You focus on the sounds nearby, trying"
- puts "to find out what's going on around you."
- puts ""
- puts "You hear the clatter of wheels and the"
- puts "braying of donkeys. A voice can be heard"
- puts "but what they are saying is inaudible..."
- puts ""
- puts "What do you do?"
- puts "------------------------------------"
- puts "a: silently struggle to break free (rolls a D10)"
- puts "b: nothing, lets see where this goes"
- puts ""
- choice_two = gets.chomp
- case choice_two
- when "a", "b"
- if choice_two == "a"
- puts ""
- puts "You attempt to silently break your bonds"
- struggle = rand(1..10)
- puts ""
- puts "<<target dice check 6+, you rolled a #{struggle}>>"
- if struggle <=5
- puts ""
- puts "You struggle with all your might, however"
- puts "you bump into something next to you, causing"
- puts "an incredibly heavy object to fall on top of you"
- puts ""
- puts ""
- puts "GAME OVER"
- puts "-BAD END-"
- exit
- else
- puts ""
- puts "You rotate your arms, trying to break the bonds"
- puts "around them, sadly to no avail"
- end
- end
- puts ""
- puts "You decide that struggling is pointless, you choose"
- puts "to sit idly by and see what happens"
- puts ""
- puts "You wait for what appears to be 5 minutes, when suddenly"
- puts "you feel a hand grab you by the shoulders and pulls you"
- puts "to your feet. Light explodes into your vision, blinding"
- puts "you for a moment. A gruff bandit smiles a toothless grin"
- puts "at you."
- puts ""
- puts "Bandit: Well, well, well, if it aint #{char_name}!"
- puts "I'll be damned! We are gonna get a pretty sack of"
- puts "coin for you!"
- puts ""
- puts "What do you do?"
- puts "------------------------------------"
- puts "a: headbutt the bandit and try to make a break for it"
- puts "b: scan the location around you"
- puts "c: cry"
- puts ""
- choice_three = gets.chomp
- case choice_three
- when "a"
- puts ""
- puts "You reel your head back and slam into the bandit's"
- puts "face as hard as you possibly can. You hear an audible"
- puts "'crunch' as his nose sprays a stream of blood."
- puts ""
- puts "Bandit: MY BLOODY NOSE! YOU LITTLE SHITE, I OUGHTA GUT"
- puts "YA WHERE YE STAND!"
- puts ""
- puts "The bandit,covering his face with one hand, swings his"
- puts "dagger around blindly with the other"
- puts ""
- puts "What do you do?"
- puts "------------------------------------"
- puts "a: take advantage of the confusion and escape"
- puts "b: attempt to have the bandit cut off your bindings (roll a D10)"
- puts ""
- choice_four_a = gets.chomp
- case choice_four_a
- when "a"
- puts ""
- puts "You take advantage of the confusion and head for the bushes."
- puts "You get no more than 10 feet before a pack of wolves lunge out"
- puts "of the shrubbery. Still bound, you are defenseless against their"
- puts "assault. In a fit of fangs, spit, and blood, you are relentlessly"
- puts "eaten by the starving beasts."
- puts ""
- puts "GAME OVER"
- puts "-BAD END-"
- exit
- when "b"
- puts ""
- puts "In a moment of sheer madness, you decide to step closer to the"
- puts "flailing bandit and hold out your arms"
- cut = rand(1..10)
- puts ""
- puts "<<target dice check 6+, you rolled a #{cut}>>"
- if cut <= 5
- puts ""
- puts "You look away as you approach the bandit, arms outstretched."
- puts "Fear has completely taken over at this point. You take a step"
- puts "forward, but before you know it you feel the steel enter your"
- puts "gut as the blade leaves its mark. You feel cold as your innards"
- puts "fall out, the last thing you hear is 'DAMN IT ALL TO THE SEVEN HELLS!'"
- puts "It seems you were worth nothing dead..."
- puts ""
- puts "GAME OVER"
- puts "-BAD END-"
- exit
- else
- puts ""
- puts "You muster up any and all courage you have left and approach the"
- puts "flailing bandit. You study his every move and fix your timing."
- puts "When the timing is right, you charge him, using his dagger to cut"
- puts "your bindings. Finally free, you run into the forest and manage to"
- puts "find a neighboring village. They welcome you with open arms as one"
- puts "of their own. You settle down and live a happy life with filled with"
- puts "joy and laughter. Sometimes the real treasure is from the heart."
- puts ""
- puts "GAME OVER"
- puts "GOOD END!"
- exit
- end
- else
- puts ""
- puts "Rocks fall, everyone dies"
- exit
- end
- when "b"
- puts ""
- puts "You look around at your surroundings again, hoping to"
- puts "catch a glimpse of something, anything! When suddenly"
- puts "a faint glimmer catches your eye. You hit the ground as"
- puts "a pack of wolves lunge at the bandit, tearing his throat out."
- puts "He lets out a gargling scream as blood sprays through the air"
- puts "as he falls dead at your feet. You are now surrounded by wolves"
- puts ""
- puts "What do you do?"
- puts "------------------------------------"
- puts "a: attempt to run from them"
- puts "b: quickly try to loot the bandit, maybe he had a weapon (roll a D10)"
- puts ""
- choice_four_b = gets.chomp
- case choice_four_b
- when "a"
- puts ""
- puts "Scared for your life, you take off running. Faster and faster,"
- puts "the fastest you've ever ran! You can hear them behind you."
- puts "Snarling and growling. Still, they hunger... In your plight, you trip"
- puts "on the root of a tree. With your arms still bound, you have no way of"
- puts "stopping yourself as you come crashing down. THUD! You feel the weight"
- puts "of the earth appear beneath you, your vision blurs, and then...you feel"
- puts "it. The pain. Erupting from your body as fangs sink their way into you."
- puts "Agony, as your flesh is torn asunder. Your mind slowly goes blank from"
- puts "the pain as the cold embrace of death claims you."
- puts ""
- puts "GAME OVER"
- puts "-BAD END-"
- exit
- when "b"
- puts ""
- puts "You attempt to loot the bandits' corpse. You could have sworn you saw"
- puts "a dagger or something on his person"
- loot = rand(1..10)
- puts ""
- puts "<<target dice check 6+, you rolled a #{loot}>>"
- if loot <= 5
- puts ""
- puts "You frantically throw yourself at the dead body in a desperate effort"
- puts "to locate something to defend yourself with. You find some tobacco, a"
- puts "small pouch of coins, and a vial of gods know what. You would be able"
- puts "to search more thoroughly had you found a way to unbind your hands,"
- puts "but all you find is death at the maw of hungry wolves...next time"
- puts "dont go rummaging through a dead guys pants when his dagger is on his"
- puts "belt?"
- puts ""
- puts "GAME OVER"
- puts "-BAD END-"
- exit
- else
- puts ""
- puts "You quickly notice his unsheathed dagger lying at his side, what luck!"
- puts "You throw yourself at the ground and grab the dagger, cutting yourself"
- puts "free. You are now armed with a dagger, but the wolves have closed in on"
- puts "you and are now circling around."
- puts "What do you do?"
- puts "------------------------------------"
- puts "a: stand and fight (roll a D10)"
- puts ""
- choice_five = gets.chomp
- case choice_five
- when "a"
- puts "You decide to take your fate into your own hands. No wolves are going"
- puts "to make a meal out of you! You enter a battle stance with your newly"
- puts "aqcuired dagger."
- fight = rand(1..10)
- puts ""
- puts "<<target dice check 6+, you rolled a #{fight}>>"
- if fight <= 5
- puts "You toss the dagger from hand to hand. Your adrenaline is firing on"
- puts "on all cylinders! The alpha wolf lunges at you! You're ready! The"
- puts "wolf lands on you and pins you to the ground. It is in this moment"
- puts "you realize, you have never learned to fight with a weapon. This"
- puts "oversight just cost you dearly, maybe in the next life you'll not"
- puts "doze off during weapons 101..."
- puts ""
- puts "GAME OVER"
- puts "-BAD END-"
- exit
- else
- puts "You waste no time, you throw yourself at the alpha of the pack."
- puts "As you reach out with your blade, the wolf lashes out at you"
- puts "with teeth fully bared. Your dagger however finds its mark in"
- puts "roof of the wolfs' mouth. It tries to close its bleeding maw, but"
- puts "the crossguard and scabbard of the dagger prevent it from doing so"
- puts "You drag the blade free, cleaving the wolfs' head in two, it's"
- puts "lifeless body lays limp before you. Clearly shaken by the display"
- puts "before them, the other wolves turn tail and run."
- puts ""
- puts "You skin the alpha and make a makeshift tunic from his hide."
- puts "Dinner that night consisted of wolf meat and was quite filling!"
- puts "You decide to become a hunter, trapping wild game and selling their"
- puts "meat and hide. Life is good and the hunt is better. Congrats, you"
- puts "are now the founder of #{char_name}'s Meat's and Hide!"
- puts ""
- puts "GAME OVER"
- puts "GOOD END!"
- exit
- end
- else
- puts ""
- puts "Rocks fall, everyone dies"
- exit
- end
- end
- end
- when "c"
- puts ""
- puts "You start to cry and plead for your life. The Bandit lets out a"
- puts "a wheezing laugh"
- puts ""
- puts "Bandit: Mercy eh? Yeah I'll show you mercy!"
- puts ""
- puts "The Bandit quickly hits you in the temple with the sheath of his"
- puts "dagger, knocking you out immediately. Hey, who knows? Maybe a life"
- puts "servitude may not be so bad after all?"
- puts ""
- puts "GAME OVER"
- puts "-BAD END-"
- exit
- else
- puts ""
- puts "Rocks fall, everyone dies"
- exit
- end
- else
- puts ""
- puts "Rocks fall, everyone dies"
- exit
- end
- when "c"
- puts ""
- puts "You let loose a scream, immediately"
- puts "you are met with sounds of shouting."
- puts "A sharp pain fills your gut as a man"
- puts "runs you through with a sword..."
- puts ""
- puts ""
- puts "GAME OVER"
- puts "-BAD END-"
- exit
- else
- puts ""
- puts "Rocks fall, everyone dies"
- end
- puts ""
- puts "See you next adventure!"
Add Comment
Please, Sign In to add comment