dim EndProgram as Boolean = False
dim name, dif, dice2, count, hp, pwr, dice3, dice4, troll, dif2, answer, Angel, time, roll, roll2, roll3, roll4 as string
Dim RandomNumber as New Random()
Dim dice As Integer = RandomNumber.Next(1, 7)
Console.writeline("Back again? You've already played once. Ok then.")
Console.writeline("Back again? You've already played " & time & " times. Ok then")
Console.WriteLine("Enter your name")
Console.writeline("Right, you will now be referred to as " & name & " ♥")
Console.writeline("Please select the difficulty:E(asy), M(edium) or H(ard). Enter the letter outside of the brackets.")
console.writeline("That's not one of the options. Prepare for impossible mode.")
Console.writeline(name & " You are now playing Dragonstone! Lucky you. Let this dice determine your class. Type Y to continue.")
roll = Console.readline()
dice = RandomNumber.Next(1, 8)
COnsole.writeline("You rolled a " & dice & "!")
console.writeline("You are a wizard!")
console.writeline("You are a wizard!")
console.writeline("You are a human warrior (kinda lame).")
console.writeline("You are a human warrior (kinda lame).")
Console.writeline("You are an elf warrior!")
Console.writeline("You are an elf warrior!")
Console.writeline("That's not on a six sided dice. You're now a rubber ball.")
Console.writeline("Please roll a dice again to determine your stats. Press Y to continue")
roll2 = Console.readline()
dice2 = RandomNumber.next(1, 7)
Console.writeline("You rolled a " & dice2 & " !")
Console.writeline("Sorry")
if dice2 = "1" or dice2 = "2" and count = 1 then
Console.writeline("Power rating: 30")
Console.writeline("Healthpoints: 10")
else if dice2 = "3" or dice2 = "4" and count = 1 then
Console.writeline("Power rating: 40")
Console.writeline("Health points: 10")
else if dice2 = "5" or dice2 = "6" and count = 1 then
Console.writeline("Power rating: 50")
Console.writeline("Health points: 10")
else if dice2 = "1" or dice2 = "2" and count = 2 then
Console.writeline("Power rating: 5")
Console.writeline("Health points: 20")
else if dice2 = "3" or dice2 = "4" and count = 2 then
Console.writeline("Power rating: 10")
Console.writeline("Health points: 20")
else if dice2 = "5" or dice2 = "6" and count = 2 then
Console.writeline("Power rating: 15")
Console.writeline("Health points: 20")
else if dice2 = "1" or dice2 = "2" and count = 3 then
Console.writeline("Power rating: 10")
Console.writeline("Health points: 15")
else if dice2 = "3" or dice2 = "4" and count = 3 then
Console.writeline("Power rating: 20")
Console.writeline("Health points: 15")
else if dice2 = "5" or dice2 = "6" and count = 3 then
Console.writeline("Power rating: 30")
Console.writeline("Health points: 15")
Console.writeline("Power rating 0.1")
Console.writeline("Health points: 10000")
Console.writeline("Power rating 1 billion")
Console.writeline("Health points: 1 billion")
Console.WriteLine("Now that we've set your character, let's start!")
Console.writeline("You begin your journey by walking thorough a forest")
Console.writeline("How peaceful. Peaceful until a troll appears! it looks like it has " & troll & " hp!")
Console.writeline("I told you it would be impossible.")
Console.writeline("It swings! It will deal 5 damage if it hits! Roll a dice to dodge! Press Y to continue")
roll3 = Console.readline()
dice3 = RandomNumber.next(1, 7)
Console.writeline("You rolled a " & dice3 & " !")
Console.writeline("wow.")
if dice3 = "1" or dice3 = "2" or dice3 = "3" then
Console.writeline("Nice one klutz. You tripped and he hit you.")
Console.writeline("You have " & hp & " hp left.")
Console.Writeline("An angel smiles upon you and you feel its healing warmth")
Console.writeline("Do you wish to accept its Gift? (Y or N)")
Angel = Console.readline()
Console.writeline("Turns out this angel was a demon in disguise. You die.")
Console.writeline("I dont know why you wouldn't stay in that glow.")
else if dice3 = "4" or dice3 = "5" or dice3 = "6" then
Console.writeline("Nice! You dodged! Your precious health remains intact.")
Console.Writeline("Be serious")
Console.writeline("You're dead but you can make one last valiant effort to beat it. Attack!")
Console.writeline("Now it's your turn. Beat that loser into a pulp! Press Y to continue!")
roll4 = Console.readline()
dice4 = RandomNumber.next(1, 7)
Console.writeline("You rolled a " & dice2 & " !")
Console.writeline("wow.")
if dice4 = "1" or dice4 = "2" or dice4 = "3" then
Console.writeline("You're kidding, right? You missed? I know you can't see it but this troll is huge!")
else if dice4 = "4" or dice4 = "5" or dice4 = "6" then
Console.writeline("Wow! You hit it! That's impressive, it's tiny!")
Console.writeline("The troll has " & troll & " hp left")
Console.writeline("Be serious")
loop until hp <= 0 or troll <= 0
Console.writeline("Congratulations brave hero. You have saved us all. Sorry the game was so short.")
Console.writeline("Beaten by a troll? You suck. Try the game again.")
else if troll <= 0 And hp <= 0
Console.writeline("You lay dying next to the troll. A valiant effort. Your life may have ended but so too has the troll's. Of course, it is really weak, so it's not that big a hill to die on but whatever.")
Console.WriteLine("What's this? You stumble across a pocketwatch lying on the floor. Do you wish to touch it? (Y or N)")
answer = Console.ReadLine()
Console.WriteLine("Be on your way brave warrior, thank you for playing.")
Loop Until EndProgram = True