Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start:
- TextWindow.Clear()
- TextWindow.Title = ("Dungeon Quest")
- TextWindow.ForegroundColor = "white"
- TextWindow.WriteLine("Dungeon Quest")
- havekey = 0
- TextWindow.WriteLine("While walking through the woods, you stumble across a strange door in a rock face.")
- TextWindow.WriteLine("What do you do? 1-Leave it alone 2-Enter")
- response1 = TextWindow.ReadNumber()
- If (response1 = 1) Then
- TextWindow.WriteLine("You continue along on your journey. A very boring adventure if you ask me...")
- TextWindow.WriteLine("Would you like to play again? 1-Play Again 2-Exit")
- response2 = TextWindow.ReadNumber()
- If (response2 = 1) Then
- Goto start
- Else
- Program.End()
- EndIf
- Else
- doors:
- TextWindow.WriteLine("You enter a dimly lit room with two doors.")
- TextWindow.WriteLine("Which door do you enter? 1-Left Door 2-Right Door")
- response3 = TextWindow.ReadNumber()
- If (response3 = 1) Then
- TextWindow.WriteLine("You enter into a large room with a grand chest on the far wall, and a chained prisoner on the right.")
- TextWindow.WriteLine("The prisoner is gagged, but seems to be trying to tell you something.")
- TextWindow.WriteLine("What do you do? 1-Open Chest 2-Free Prisoner")
- response4 = TextWindow.ReadNumber()
- If (response4 = 1) Then
- TextWindow.WriteLine("You quickly rush across the room and open the chest.")
- TextWindow.WriteLine("You only have a second to notice the crossbow in the chest before an arrow flys into you.")
- TextWindow.WriteLine("Would you like to play again? 1-Play Again 2-Exit")
- response5 = TextWindow.ReadNumber()
- If (response5 = 1) Then
- Goto start
- Else
- Program.End()
- EndIf
- Else
- TextWindow.WriteLine("You free the prisoner and untie him.")
- TextWindow.WriteLine("He thanks you and informs you that the chest was a trap. He then quickly runs out of the dungeon.")
- TextWindow.WriteLine("Dissappointed but relieved, you walk quickly out of the room.")
- Goto doors
- EndIf
- Else
- cyclops:
- TextWindow.WriteLine("You enter into a narrow hallway with a cyclops guarding the only other door.")
- TextWindow.WriteLine("There is a large chandelier hanging on the ceiling, and a rope tied to the wall next to you.")
- TextWindow.WriteLine("What do you do? 1-Charge Cyclops 2-Cut Rope")
- response6 = TextWindow.ReadNumber()
- If (response6 = 1) Then
- TextWindow.WriteLine("You charge bravely at the cyclops, who then casually crushes you with his club.")
- TextWindow.WriteLine("Would you like to play again? 1-Play Again 2-Exit")
- response7 = TextWindow.ReadNumber()
- If (response7 = 1) Then
- Goto cyclops
- Else
- Program.End()
- EndIf
- Else
- TextWindow.WriteLine("You quickly cut the rope.")
- TextWindow.WriteLine("Just before the cyclops charges at you, the chandelier falls down and crushes him.")
- TextWindow.WriteLine("With the door now unguarded, you cautiously enter the strange door.")
- hall:
- TextWindow.WriteLine("You enter into a grand hall with three doors. An old hag greets you.")
- TextWindow.WriteLine("What do you do? 1-Enter First Door 2-Enter Second Door 3-Enter Third Door 4-Try to Rob the Old Hag.")
- response8 = TextWindow.ReadNumber()
- EndIf
- If (response8 = 1) Then
- fountain:
- TextWindow.WriteLine("You enter into a small room with a fountain in it.")
- TextWindow.WriteLine("What do you do? 1-Drink 2-Go Back to the Hall.")
- response9 = TextWindow.ReadNumber()
- If (response9 = 1) Then
- TextWindow.Write("What a refreshing drink! ")
- Goto fountain
- Else
- Goto hall
- EndIf
- Else
- If (response8 = 2) Then
- corridor:
- TextWindow.WriteLine("You enter into a long corridor.")
- TextWindow.WriteLine("There are two doors at the end of the corridor.")
- TextWindow.WriteLine("What do you do? 1-Go Back 2-Enter Left Door 3-Enter Right Door")
- response12 = TextWindow.ReadNumber()
- If (response12 = 1) Then
- Goto hall
- Else
- If (response12 = 2) Then
- TextWindow.WriteLine("You enter into a small room with crossbows lined up along the walls.")
- TextWindow.WriteLine("As you move closer to investigate, you hear a sharp *click*")
- TextWindow.WriteLine("You have only a moment to realize that you stepped on a pressure plate before you are hit with a dozen arrows.")
- TextWindow.WriteLine("Would you like to play again? 1-Play Again 2-Exit")
- response13 = TextWindow.ReadNumber()
- If (response13 = 1) Then
- Goto corridor
- Else
- Program.End()
- EndIf
- Else
- If (response12 = 3) Then
- tresureroom:
- TextWindow.WriteLine("You find yourself in a well-lit, well-decorated room.")
- TextWindow.WriteLine("At the end of the room, you find an ogre guarding a golden door.")
- TextWindow.WriteLine("What do you do? 1-Go Back 2-Fight Ogre")
- response14 = TextWindow.ReadNumber()
- If (response14 = 1) Then
- Goto corridor
- Else
- TextWindow.WriteLine("You take out your sword and begin to fight the ogre.")
- TextWindow.WriteLine("You quickly realize that you cannot physically overpower him, and he throws you on the ground.")
- TextWindow.WriteLine("Just before the ogre cleaves you in two with his axe, you reach for a nearby torch and crack him over the head with it.")
- TextWindow.WriteLine("The ogre falls to the ground, and appears to be unconscious.")
- TextWindow.WriteLine("You quickly rush towards the door.")
- TextWindow.WriteLine("What do you do? 1-Open Door 2-Go Back")
- response16 =TextWindow.ReadNumber()
- If (response16 = 1) Then
- If (havekey = 1) Then
- TextWindow.WriteLine("You eagerly reach for the key in your pocket and stick it into the door.")
- TextWindow.WriteLine("When you enter the room, you find a grand golden treasure chest.")
- TextWindow.WriteLine("Cautiously you open the chest...")
- TextWindow.WriteLine("Inside the chest is a mountain of gold coins.")
- TextWindow.WriteLine("You immediately stuff the contents of the chest into your bag, and run out of the dungeon as quickly as you can.")
- TextWindow.WriteLine("Congratulations, YOU WIN!")
- TextWindow.WriteLine("Would you like to play again? 1-Play Again 2-Exit")
- response15 = TextWindow.ReadNumber()
- If (response15 = 1) Then
- Goto start
- Else
- Program.End()
- EndIf
- Else
- If (havekey = 0) Then
- TextWindow.WriteLine("This door appears to need a key.")
- TextWindow.WriteLine("Fearful that the ogre might wake up, you run out of the room to retrace your steps.")
- Goto corridor
- EndIf
- EndIf
- Else
- Goto corridor
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
- Else
- If (response8 = 3) Then
- TextWindow.WriteLine("You find yourself inside of a small, empty room.")
- TextWindow.WriteLine("There appear to be a few small, strange-looking rocks in the corner.")
- TextWindow.WriteLine("What do you do? 1-Leave Room 2-Investigate Rocks")
- response11 = TextWindow.ReadNumber()
- If (response11 = 1) Then
- Goto hall
- Else
- TextWindow.WriteLine("Upon futher investigation of these strange rocks, you find that they are loose.")
- TextWindow.WriteLine("You pull away the rocks, and under the rocks is a small bag.")
- TextWindow.WriteLine("You cautiously open the bag to find a small gold key.")
- TextWindow.WriteLine("Seeing that there is nothing of value left in the room, you go back to the hall.")
- havekey = 1
- Goto hall
- EndIf
- Else
- If (response8 = 4) Then
- TextWindow.WriteLine("Seeing that you are trying to rob her, the old hag throws a strange powder in your face.")
- TextWindow.WriteLine("You immediately fall asleep. When you awake, you find yourself outside the dungeon.")
- TextWindow.WriteLine("Looking around you, you see that the door has disappeared; as has all the gold in your purse.")
- TextWindow.WriteLine("Would you like to play again? 1-Play Again 2-Exit")
- response10 = TextWindow.ReadNumber()
- If (response10 = 1) Then
- Goto hall
- Else
- Program.End()
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
Advertisement
Add Comment
Please, Sign In to add comment