dim name, classs, roll2, keepgoing, enterthecave, nextroom, errors, creature as string
dim health, trollhealth, trollpower, power, hit, dodge, dragonhealth, dragonpower, jump1, jump2, jump3, fails, arrows as integer
console.WriteLine("Hello Challenger! enter your name")
name = console.ReadLine()
Console.WriteLine("welcome to this adventure, " & name & "!")
console.writeline("allow me to introduce you to a new term. if I say D and then a number, that is a number sided dice.")
console.WriteLine("a D6 for instance is a 6 sided dice.")
console.WriteLine("please cooperate and check your spellings before you hit enter")
Console.writeline("roll a d6")
roll1 = console.readline()
if roll1 = "1" or roll1 = "2" then
console.WriteLine("you are a wizard")
else if roll1 = "3" or roll1 = "4" then
console.WriteLine("you are a human warrior")
else if roll1 = "5" or roll1 = "6" then
console.WriteLine("you are an elf")
console.writeline("Dev_Test_1. Console.Writeline ('Yay, It works Now')")
console.WriteLine("numbers below 0, above 6, and words don't work. sorry, but there are no secrets (yet)")
loop until roll1 = "1" or roll1 = "2" or roll1 = "3" or roll1 = "4" or roll1 = "5" or roll1 = "6"
console.writeline("what is your class (what you are)?")
classs = console.readline()
if classs = "human warrior" or classs = "elf" or classs = "wizard" then
console.writeline("ok got it")
console.writeline("there is an error")
loop until classs = "human warrior" or classs = "elf" or classs = "wizard"
console.WriteLine("so you are a " & classs & ", " & name)
console.WriteLine("alright, time for stats! roll another D6")
roll2 = console.ReadLine()
if classs = "wizard" then
if roll2 = 1 or roll2 = 2 then
console.WriteLine("your power is 30 and health is 10")
else if roll2 = 3 or roll2 = 4 then
console.WriteLine("your power is 40 and health is 10")
else if roll2 = 5 or roll2 = 6 then
console.writeline("your power is 50 and health is 10")
console.writeline("you are either not a wizard or there is an error")
loop until roll2 = 1 or roll2 = 2 or roll2 = 3 or roll2 = 4 or roll2 = 5 or roll2 = 6
if classs = "human warrior" then
if roll2 = 1 or roll2 = 2 then
console.WriteLine("your power is 5 and health is 20")
else if roll2 = 3 or roll2 = 4 then
console.WriteLine("your power is 10 and health is 20")
else if roll2 = 5 or roll2 = 6 then
console.writeline("your power is 15 and health is 20")
console.writeline("you are either not a human warrior or there is an error")
loop until roll2 = 1 or roll2 = 2 or roll2 = 3 or roll2 = 4 or roll2 = 5 or roll2 = 6
if roll2 = 1 or roll2 = 2 then
console.WriteLine("your power is 10 and health is 15")
else if roll2 = 3 or roll2 = 4 then
console.WriteLine("your power is 20 and health is 15")
else if roll2 = 5 or roll2 = 6 then
console.writeline("your power is 30 and health is 15")
console.writeline("you are either not an elf or there is an error")
loop until roll2 = 1 or roll2 = 2 or roll2 = 3 or roll2 = 4 or roll2 = 5 or roll2 = 6
console.WriteLine("what is your power")
power = console.ReadLine()
loop until power = 5 or power = 10 or power = 15 or power = 20 or power = 30 or power = 40 or power = 50
console.WriteLine("what is your health")
health = console.readline()
loop until health = 10 or health = 15 or health = 20
console.writeline("ok so we have your stats. i really hope you have been honest, as I have used as much code as possible to prevent cheating")
console.writeline("Ok you are now ready for your adventure")
console.writeline("you are walking through a forest")
console.writeline("when you encounter a troll!")
console.writeline("you are now going to fight it")
console.writeline("he swings at you. roll a d6")
dodge = console.readline()
if dodge = 1 or dodge = 2 or dodge = 3 then
console.writeline("the troll hits you. 5 damage")
health = health - trollpower
console.writeline("you dodge his swing")
console.writeline("you attack him. roll another d6")
if hit = 1 or hit = 2 or hit = 3 then
console.writeline("you miss him. keep trying")
console.writeline("your attack hits")
trollhealth = trollhealth - power
loop until trollhealth < 0 or health < 0 or trollhealth = 0 or health = 0
if health = 0 or health < 0 then
console.writeline("you have fallen to the troll " & name & "! next time, try harder")
console.writeline("the troll is dead! congratulations, " & name & "!")
console.writeline("if you want I can make it harder")
console.writeline("enter next if you want to continue")
keepgoing = console.readline()
if keepgoing = "next" then
console.writeline("ok, time to fight a dragon and steal it's stone")
console.writeline("a dragon flies down and is going to attack you.")
console.writeline("BRACE YOURSELVES!")
console.writeline("(you now have 50 health for helpfulnes ;p)")
console.writeline("he throws a rock at you at you. roll a d6")
dodge = console.readline()
if dodge = 1 or dodge = 2 or dodge = 3 or dodge = 4 then
console.writeline("the dragon hits you. 20 damage")
health = health - dragonpower
console.writeline("you dodge his rock")
console.writeline("you attack him. roll another d6")
if hit = 1 or hit = 2 or hit = 3 then
console.writeline("you miss him. keep trying")
console.writeline("your attack hits")
dragonhealth = dragonhealth - power
loop until dragonhealth < 0 or health < 0 or dragonhealth = 0 or health = 0
console.writeline("his final attack")
console.writeline("3 waves of fire incoming. jump over them")
console.writeline("these next three inputs are to jump")
jump1 = console.ReadLine()
jump2 = console.ReadLine()
jump3 = console.ReadLine()
if jump1 = 1 or jump1 = 2 or jump1 = 3 then
console.writeline("you miss jump 1")
health = health - dragonpower
if health = 0 or health < 0 then
console.writeline("you died to the dragon's final attack. that sucks")
console.WriteLine("you jump the first one")
if jump2 = 1 or jump2 = 2 or jump2 = 3 or jump2 = 4 then
console.writeline("you miss jump 2")
health = health - dragonpower
if health = 0 or health < 0 then
console.writeline("you died to the dragon's final attack. that sucks")
console.WriteLine("you jump the second one")
if jump3 = 1 or jump3 = 2 or jump3 = 3 or jump3 = 4 or jump3 = 5 then
console.writeline("you miss jump 3")
health = health - dragonpower
if health = 0 or health < 0 then
console.writeline("you died to the dragon's final attack. that sucks")
console.WriteLine("you jump the third one")
console.writeline("congratulations on killing the dragon. sadly, there is no more story")
console.writeline("if you wish to play again there may be some secret story you missed")
else if dragonhealth = 0 then
console.WriteLine("the dragon falls dead, and the shockwave opens up a crack in the ground")
console.WriteLine("do you wish to enter? just say yes if so (It's further story)")
enterthecave = console.readline()
if enterthecave = "yes" then
console.writeline("this is the last bit of code. there is one story here and a secret one inside it")
console.writeline("ok here we go (you have been healed to 50)")
console.writeline("you jump down into the cave")
console.writeline("you are in a room")
console.WriteLine("do you wish to go to the next room?")
console.WriteLine("each time I ask this say yes or the game will end")
nextroom = console.readline()
console.writeline("ok then")
console.writeline("you enter the next room")
console.WriteLine("in the next room, you see arrows flying off the walls")
console.writeline("roll a d6 to dodge them")
dodge = console.readline()
if dodge = 1 or dodge = 2 or dodge = 3 or dodge = 4 then
console.writeline("OUCH! that's sore")
console.writeline("roll a d6 to work out how many arrows hit you")
arrows = console.readline()
health = health - 5 * arrows
console.writeline("Your health is: " & health)
console.writeline("you make it across no damage")
console.writeline("do you wish to enter the next room")
nextroom = console.readline()
console.WriteLine("ok on we go")
console.WriteLine("you enter a room with a log swinging right at you")
console.writeline("dodge it with a d6")
dodge = console.ReadLine()
if dodge = 1 or dodge = 2 or dodge = 3 then
console.writeline("OOF! slammed in the face")
console.writeline("nice duck. you dodge the log")
console.writeline("do you wish to enter the next room?")
nextroom = console.readline()
console.writeline("ok then, we're so close")
console.writeline("in this next room there is a man staring at you")
console.writeline("you know the drill. do you have social anxiety? roll a d6")
dodge = console.readline()
if dodge = 1 or dodge = 2 then
console.writeline("wow. you have social anxiety. 20 damage")
health = health - dragonpower
if health = 0 or health < 0 then
console.writeline("you are dead to social anxiety. the man says nothing")
console.writeline("you don't have social anxiety")
console.WriteLine("do you wish to enter the next room?")
nextroom = console.readline()
console.WriteLine("yes! last trapped room!")
console.writeline("there is a random array of gaps in the floor")
console.writeline("try dodging them. you know how")
dodge = console.readline()
console.writeline("you fall into a gap into a mystical chamber")
console.writeline("you have found the final secret")
console.writeline("your choice this time. 1, 2, or three?")
creature = console.readline()
console.writeline("you wake up in a forest as a troll")
console.WriteLine("you are aprroached by a " & classs & ", named " & name)
console.writeline("you have to fight him")
console.writeline("you swing your axe at them. roll a d6")
dodge = console.readline()
if dodge = 1 or dodge = 2 or dodge = 3 then
console.writeline("you hit them.")
health = health - trollpower
console.writeline("they dodge your axe")
console.writeline("they attack you. roll another d6")
if hit = 1 or hit = 2 or hit = 3 then
console.writeline("you dodge them.")
console.writeline("their attack hits")
trollhealth = trollhealth - power
loop until trollhealth < 0 or health < 0 or trollhealth = 0 or health = 0
if trollhealth = 0 or trollhealth < 0 then
console.writeline("you fall dead. you wake up back in the forest by the troll")
console.writeline("you have killed the person. you are now a troll forever")
else if creature = 2 then
console.writeline("you wake up as a dragon")
console.writeline("you are approached by a famous " & classs & ",named " & name)
console.writeline("you are to fight them with your stone")
console.writeline("you throw a rock at them. roll a d6")
dodge = console.readline()
if dodge = 1 or dodge = 2 or dodge = 3 or dodge = 4 then
console.writeline("you hit them.")
health = health - dragonpower
console.writeline("they dodge your rock")
console.writeline("they attack you. roll another d6")
if hit = 1 or hit = 2 or hit = 3 or hit = 4 then
console.writeline("you dodge them.")
console.writeline("their attack hits")
dragonhealth = dragonhealth - power
loop until dragonhealth < 0 or health < 0 or dragonhealth = 0 or health = 0
console.writeline("you unleash a final attack,killing the player along with you.")
console.writeline("you wake up in the forest next to the dragon")
else if dragonhealth = 0 then
console.writeline("you fall dead. you wake up back in the forest by the dragon")
else if health = 0 or health < 0 then
console.writeline("you have killed the person. you are now a dragon forever")
else if creature = 3 then
console.writeline("you wake up in bed. what a strange dream")
console.writeline("there is an error, or you tried to cheat. you are now dead")
console.writeline("you are into the final room, and you have the dragon's stone")
console.writeline("your hands are tired after all this work. you have three tries to escape")
console.writeline("roll d6's untill you can no longer")
dodge = console.readline()
if dodge = 1 or dodge = 2 or dodge = 3 then
console.writeline("you start to climb but slip back down")
console.writeline("you have " & 3 - fails & " tries left")
else if fails = 2 & dodge = 1 or 2 or 3 then
console.writeline("you start to climb but slip back down")
console.writeline("you have " & 3 - fails & " try left")
console.writeline("you have escaped with the dragon's stone")
console.writeline("congratulations on beating the game")
loop until dodge = 4 or dodge = 5 or dodge = 6 or fails = 3
console.WriteLine("your hands no longer work, and you are stuck here for eternity.")
console.writeline("at least you still have the man to talk to")
console.writeline("welp ok then")
console.writeline("welp ok then")
console.writeline("welp ok then")
console.writeline("welp ok then")
console.writeline("you have fallen. congratultions on making it this far")
console.writeline("it was brave of you to do this")
console.writeline("thanks for playing")
console.writeline("type any errors in below, whether it's a spelling error, unfinished code, or a glitch (I know a few)")
errors = console.readline()
console.WriteLine("ok, thanks for your feedback")