Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #loop so that the computer types letters individually
- #treasure chest find0
- #battling monsters
- #finds potions and shops
- #choose different classes of warrior/mage/archer/dictator
- #trying to save your friend
- import time
- import random
- import sys
- from os import system, name
- from time import sleep
- HP = 0
- DMG = 0
- SPD = 0
- RANGE = 0
- PERCENT = 100
- CLASS = 0
- ENEMY = 0
- MHP = 0
- Floor = 0
- Rooms = 0
- ATK_NUMBER = 0
- Gold = 0
- def clear():
- if name=="nt":
- _=system("cls")
- else:
- _=system("clear")
- def print1(s):
- for c in s:
- sys.stdout.write(c)
- sys.stdout.flush()
- time.sleep(0.05)
- #Cited from Stack Overflow due to issues with other program
- def skull():
- print ("███████▀▀▀░░░░░░░▀▀▀███████")
- print ("██████▀░░░░░░░░░░░░░░░▀████")
- print ("█████│░░░░░░░░░░░░░░░░│████")
- print ("████└┐░░░░░░░░░░░░░░░┌┘░███")
- print ("███░░└┐░░░░░░░░░░░░░░┌┘░░██")
- print ("███░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██")
- print ("██▌░▄██████▄░░░▄██████▄░▐██")
- print ("███─┘░░▓▓▓▓░░░░░▓▓▓▓░░└─███")
- print ("██▀▓▓▓░▓▓▓▓░░░░░▓▓▓▓░▓▓░▀██")
- print ("██▄▓▓▓░▓▓▓▓▄▄▄▄▄▓▓▓▓░▓▓▄███")
- print ("████▄─┘█████████████└─▄████")
- print ("█████░░▐███████████▌░░█████")
- print ("██████░░▀█████████▀░░▐█████")
- print ("███████░░░░▓▓▓▓▓░░░░▄██████")
- print ("████████▄░░░░░░░░░▄████████")
- def skull2():
- print ("███████▀▀▀░░░░░░░▀▀▀███████")
- print ("██████▀░░░░░░░░░░░░░░░▀████")
- print ("█████│░░░░░░░░░░░░░░░░│████")
- print ("████└┐░░░░░░░░░░░░░░░┌┘░███")
- print ("███░░└┐░░░░░░░░░░░░░░┌┘░░██")
- print ("███░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██")
- print ("██▌░▄███__█▄░░░▄██__██▄░▐██")
- print ("███─┘░░▓▓▓▓░░░░░▓▓▓▓░░└─███")
- print ("██▀▓▓▓░▓▓▓▓░░░░░▓▓▓▓░▓▓░▀██")
- print ("██▄▓▓▓░▓▓▓▓▄▄▄▄▄▓▓▓▓░▓▓▄███")
- print ("██████░░▀█████████▀░░▐█████")
- print ("███████░░░░▓▓▓▓▓░░░░▄██████")
- print ("████████▄░░░░░░░░░▄████████")
- print ("███████████████████████████")
- print ("███████████████████████████")
- print ("███████████████████████████")
- def skull_animation():
- for i in range(1,20):
- skull()
- time.sleep(0.1)
- clear()
- skull2()
- time.sleep(0.1)
- clear()
- def Warrior_info():
- print1 ("The Warrior class is a class that has high Melee Damage \n")
- time.sleep(2)
- print1 ("The Warrior has High Healh/Armour to withstand damage \n")
- time.sleep(2)
- print1 ("The Warrior has a medium attack speed, so you fast players can attack you 2 times every time you attack \n")
- time.sleep(2)
- clear()
- def Mage_info():
- print1("The Mage is the most magical of the 4 classes \n")
- time.sleep(2)
- print1("The Mage has the highest ranged damage in the game \n")
- time.sleep(2)
- print1("Although the mage has very low armour and attack speed in the game \n")
- time.sleep(2)
- print1("Being the class with the highest damage, the mage gets to attack 2 times before they engage in melee combat \n")
- time.sleep(2)
- print1("Once the Mage is in Melee Combat, it is very weak as it has virtually no health \n")
- time.sleep(2)
- clear()
- def Ranger_info():
- print1("The Ranger is the class that is known for it's super speed \n")
- time.sleep(2)
- print1("The Ranger can deal a medium ammount of damage \n")
- time.sleep(2)
- print1("The Ranger has low health though in exchange for it's speed \n")
- time.sleep(2)
- print1("With the ranger being, the super fast class... it can attack 4 times before engaging in melee \n")
- time.sleep(2)
- print1("Once the ranger engages in melee combat,it can easily be taken down \n")
- time.sleep(2)
- clear()
- def Phsycic_info():
- print1("The Phsycic is the most unique class in the game \n")
- time.sleep(2)
- print1("The Phsycic can either deal very high Damage or very low damage \n")
- time.sleep(2)
- print1("Although the Phsycic has a 50/50 chance to deal damage \n")
- time.sleep(2)
- print1("Although the Phsycic has a decent ammount of health, but more health than the Ranger and Mage \n")
- time.sleep(2)
- print1("The Phsycic has a medium range which means it can get 2 turns to attack before engaging in melee \n")
- clear()
- def Choose_Class_Info():
- print1("There are 4 classes in this game \n")
- time.sleep (1)
- print1("They are: The Warrior, The Ranger, The Mage, & the Phsycic \n")
- time.sleep(1)
- run = True
- while run:
- info = input("Which class would you like to know about? (Without The), if not say no: ")
- if info == "warrior" or info == "Warrior":
- Warrior_info()
- elif info == "Mage" or info == "mage":
- Mage_info()
- elif info == "Ranger" or info == "ranger":
- Ranger_info()
- elif info == "Phsycic" or info == "phsycic":
- Phsycic_info()
- elif info == "no" or info == "No":
- run = False
- else:
- print ("Please enter a valid word not", info)
- print ("You may enter the keywords: Warrior/warrior/mage/Mage/Ranger/ranger/phsycic/Phsycic")
- clear()
- def Class_Choose():
- global HP, DMG,SPD, RANGE,CLASS, PERCENT
- print1("Your choices are Warrior, Mage, Ranger, or Phsycic \n")
- time.sleep(1.5)
- Class = input("Which Class would you like to choose?: ")
- while Class != "Phsycic" and Class != "Phsycic" and Class!= "Ranger" and Class != "ranger" and Class != "Mage" and Class != "mage" and Class!= "warrior" and Class != "Warrior":
- Class = input("Please Choose a valid class: ")
- if Class == "warrior" or Class == "Warrior":
- HP += 250
- DMG += 50
- SPD += 1
- RANGE += 1
- CLASS += 1
- print1("Congratulations on selecting the Warrior Class \n")
- time.sleep(1.5)
- print1("It seems like you like full-on Combat \n")
- time.sleep(1.5)
- clear()
- if Class == "Mage" or Class == "mage":
- HP += 50
- DMG += 100
- SPD += 1
- RANGE += 3
- CLASS += 2
- print1("Congratulations on selecting the Mage Class \n")
- time.sleep(1.5)
- print1("It seems like you like to do your magic \n")
- time.sleep (1.5)
- clear()
- if Class == "Ranger" or Class == "ranger":
- HP += 10
- DMG += 50
- SPD += 2
- RANGE += 2
- CLASS += 3
- print1("Congratulations on selecting the Ranger Class \n")
- time.sleep(1.5)
- print1("It seems like, you like to be very speeedy \n")
- time.sleep(1.5)
- clear()
- if Class == "Phsycic" or Class == "Phsycic":
- HP += 100
- DMG += 200
- SPD += 1
- RANGE += 2
- PERCENT -= 50
- CLASS += 4
- print1("Congratualtions on selecting the Phsycic Class \n")
- time.sleep (1.5)
- print1("It seems like you have a very strong and intelegent mind \n")
- time.sleep(1.5)
- clear()
- def stats():
- global HP, DMG,SPD, RANGE,CLASS, PERCENT
- stats_ask = input("Would you like to know your stats?: ")
- if stats_ask == "yes" or stats_ask == "Yes":
- print1("You have " +str(HP) +" Health Points \n")
- time.sleep(1)
- print1("You have " +str(DMG) +" Damage \n")
- time.sleep(1)
- print1("You have a range of " + str(RANGE) + " \n")
- time.sleep(1)
- if CLASS == 3:
- print1("You have super fast speed as the ranger")
- else:
- print1("Your speed is hit to hit on the enemy")
- if PERCENT != 100:
- print1("You are a Phsycic which means you have a 50/50 chance of attacking \n")
- time.sleep(1.5)
- print1("If your not a Phsycic, then you have bugged the game \n")
- print ("You have ",Gold, "Gold to spend in the shop \n")
- else:
- print1("Enjoy not knowing your stats \n")
- time.sleep (1.5)
- def Mode():
- global HP, Floor, Rooms
- print1("There are 4 modes to this game\n")
- time.sleep(1)
- print1("You have Easy mode which is 3 floors with 4 rooms each\n")
- time.sleep(1)
- print1("You have Medium mode with 4 floors and 6 rooms each\n")
- time.sleep(1)
- print1("You have Hard mode if you want a challenge with 6 floors and 8 rooms each\n")
- time.sleep(1)
- print1("Finally you have insane mode if you think you are a god at this game\n")
- time.sleep(1)
- Mode1 = input("Which mode would you like to play on?: ")
- if Mode1[0] == "E" or Mode1[0] == "e":
- print1("Welcome to the easy mode, this mode is usually for new players \n")
- Floor += 3
- Rooms += 4
- time.sleep(1)
- clear()
- if Mode1[0] == "M" or Mode1[0] == "m":
- print1("Welcome to Medium mode, it looks like you have a bit of experience in the game \n")
- Floor += 4
- Rooms += 6
- time.sleep(1)
- clear()
- if Mode1[0] == "H" or Mode1[0] == "h":
- print1("It seems like you have liked to give yourself a challenge with the HARD MODE! \n")
- Floor += 6
- Rooms += 8
- time.sleep(1)
- clear()
- if Mode1[0] == "I" or Mode1[0] == "i":
- print1("Welcome to INSANE MODEEE!, Prepare to be stuck inside a time rift \n")
- Floor += 20
- Rooms += 10
- time.sleep(1)
- clear()
- def Fight(i):
- global HP, DMG,SPD, RANGE,CLASS, ATKD, ATK_NUMBER, ENEMY
- while i > 0:
- if CLASS == 1 or CLASS == 2 or CLASS == 3:
- for i in range(RANGE - 2):
- ATK11 = random.randint(1,2)
- ATK1 = int(input("Choose a number between 1 and 2: "))
- if ATK11 == ATK1 and CLASS == 1:
- i -= DMG
- print ("You have dealt a good magical sword hit of", DMG, "magical damage, your Enemy has:", i ,"HP")
- elif ATK11 != ATK1 and CLASS == 1:
- i -= (DMG/2)
- print ("Your magical sword has barely hit your enemy of:", (DMG/2), "damage, your Enemy has:", i, "HP")
- elif ATK11 == ATK1 and CLASS == 2:
- i -= DMG
- print ("You have dealt a good mage shot to your enemy and have dealt:", DMG, "magical damage, your Enemy has:", i ,"HP")
- elif ATK11 != ATK1 and CLASS == 2:
- i -= (DMG/2)
- print ("You shot a fireball at the enemy but merely skimmed him and have dealt:", (DMG/2), "damage, your Enemy has:", i, "HP")
- elif ATK11 == ATK1 and CLASS == 3:
- i -= DMG
- print ("You have your crossbow at your enemy and have dealt:", DMG, "ranged damage, your Enemy has:", i ,"HP")
- elif ATK11 != ATK1 and CLASS == 3:
- i -= (DMG/2)
- print ("You attempt to shoot your enemy and have barely dealt:", (DMG/2), "ranged damage, your enemy has:", i, "HP")
- else:
- ATK11 = random.randint(1,2)
- ATK1 = int(input("Choose a number between 1 and 2: "))
- if ATK1 == 1:
- ATK_NUMBER = 1
- elif ATK1 == 2:
- ATK_NUMBER = 2
- if ATK11 == ATK_NUMBER and CLASS == 1:
- i -= DMG
- print ("You have dealt a good sword blow to the enemy and have dealt:", DMG, "damage, your Enemy has:", i ,"HP")
- elif ATK11 != ATK_NUMBER and CLASS == 1:
- i -= (DMG/2)
- print ("You swung at the enemy but didn't get a good hit on him and you have dealt:", (DMG/2), "damage, your Enemy has:", i, "HP")
- elif ATK11 == ATK1 and CLASS == 2:
- i -= DMG
- print ("You have dealt a good mage shot to your enemy and have dealt:", DMG, "magical damage, your Enemy has:", i ,"HP")
- elif ATK11 == ATK1 and CLASS == 2:
- i -= (DMG/2)
- print ("You shot a fireball at the enemy but merely skimmed him and have dealt:", (DMG/2), "damage, your Enemy has:", i, "HP")
- elif ATK11 == ATK1 and CLASS == 3:
- i -= DMG
- print("You have dealt a good Ranger slice to your enemy and have dealt:", DMG, "quick damage, your Enemy has:", i ,"HP")
- elif ATK11 != ATK1 and CLASS == 3:
- i -= (DMG/2)
- print ("You attempt to slice your enemy again and have barely dealt:", (DMG/2), "quick damage, your enemy has:", i, "HP")
- ATK1 = (input("Choose a number between 1 and 2: "))
- elif ATK11 == ATK1 and CLASS == 3:
- i -= DMG
- print ("You have dealt a good Ranger slice to your enemy and have dealt:", DMG, "quick damage, your Enemy has:", i ,"HP")
- elif ATK11 != ATK1 and CLASS == 3:
- i -= (DMG/2)
- print ("You attempt to slice your enemy again and have barely dealt:", (DMG/2), "quick damage, your enemy has:", i, "HP")
- else:
- HP += 0
- ATKD = random.randint (1,ENEMY)
- print1("Your Enemy is preparing to attack you \n")
- time.sleep(3)
- ATKP = random.randint(1,3)
- if ATKP == 3 and CLASS == 1:
- print ("You have dodged your enemy and he has mist")
- elif ATKP == 2 and CLASS == 1:
- HP -= ATKD
- print ("Your Enemy has dealt a good blow to you", str(ATKD),"Damage to you, you have", HP, "Health.")
- elif ATKP == 1 and CLASS == 1:
- HP -= (ATKD//2)
- print ("Your Enemy has dealt a weak blow to you of",str(ATKD//2),"Damage to you, you have", HP, "Health.")
- elif ATKP == 3 and CLASS == 2:
- print ("You have dodged your enemy and he has mist")
- elif ATKP == 2 and CLASS == 2:
- HP -= ATKD
- print ("Your Enemy has dealt a good blow of", ATKD,"damage to you, you have", HP, "Health.")
- elif ATKP == 1 and CLASS == 2:
- HP -= (ATKD*2)
- print ("Your Enemy has dealt a Devasting blow of",ATKD * 2,"Damage to you, you have", HP, "Health.")
- elif ATKP == 3 and CLASS == 3:
- print ("You have dodged your enemy and he has mist")
- elif ATKP == 2 and CLASS == 3:
- HP -= (ATKD//5)
- print ("Your Enemy has dealt a very weak blow of", ATKD//5,"damage to you, you have", HP, "Health.")
- elif ATKP == 1 and CLASS == 3:
- HP -= (ATKD*3)
- print ("Your Enemy has dealt a Destroying blow of",ATKD * 3,"Damage to you, you have", HP, "Health.")
- if HP <= 0 and CLASS == 1:
- print("You have faithfully died a warrior's death trying to save your friend, please restart the game")
- exit()
- elif HP < 0 and CLASS == 2:
- print("It looks like your magic couldn't save you, you've enter magical heaven... please restart the game")
- exit()
- elif HP < 0 and CLASS == 3:
- print("It looks like your speed wasn't enough to save you, you have died a quick death, please restart the game")
- exit()
- else:
- HP+=0
- clear()
- # if CLASS == 2:
- # for i in range(RANGE - 2):
- # ATK11 = random.randint(1,2)
- # ATK1 = int(input("Choose a number between 1 and 2: "))
- # if ATK11 == ATK1:
- # i -= DMG
- # print ("You have dealt a good mage shot to your enemy and have dealt:", DMG, "magical damage, your Enemy has:", i ,"HP")
- # else:
- # i -= (DMG/2)
- # print ("You shot a fireball at the enemy but merely skimmed him and have dealt:", (DMG/2), "damage, your Enemy has:", i, "HP")
- # else:
- # ATK11 = random.randint(1,2)
- # ATK1 = (input("Choose a number between 1 and 2: "))
- # if ATK1 == 1:
- # ATK_NUMBER = 1
- # elif ATK1 == 2:
- # ATK_NUMBER = 2
- # if ATK11 == ATK1:
- # i -= DMG
- # print ("You have dealt a good mage shot to your enemy and have dealt:", DMG, "magical damage, your Enemy has:", i ,"HP")
- # else:
- # i -= (DMG/2)
- # print ("You shot a fireball at the enemy but merely skimmed him and have dealt:", (DMG/2), "damage, your Enemy has:", i, "HP")
- # ATKD = random.randint (1,ENEMY)
- # print1("Your Enemy is preparing to attack you \n")
- # time.sleep(4)
- # ATKP = random.randint(1,3)
- # if ATKP == 3:
- # print ("You have dodged your enemy and he has mist")
- # if ATKP == 2:
- # HP -= ATKD
- # print ("Your Enemy has dealt a good blow of", ATKD,"damage to you, you have", HP, "Health.")
- # if ATKP == 1:
- # HP -= (ATKD*2)
- # print ("Your Enemy has dealt a Devasting blow of",ATKD * 2,"Damage to you, you have", HP, "Health.")
- # if HP < 0:
- # print("It looks like your magic couldn't save you, you've enter magical heaven... please restart the game")
- # exit()
- # if CLASS == 3:
- # for i in range(RANGE - 2):
- # ATK11 = random.randint(1,2)
- # ATK1 = int(input("Choose a number between 1 and 2: "))
- # if ATK11 == ATK1:
- # i -= DMG
- # print ("You have your crossbow at your enemy and have dealt:", DMG, "ranged damage, your Enemy has:", i ,"HP")
- # else:
- # i -= (DMG/2)
- # print ("You attempt to shoot your enemy and have barely dealt:", (DMG/2), "ranged damage, your enemy has:", i, "HP")
- # else:
- # ATK11 = random.randint(1,2)
- # ATK1 = int(input("Choose a number between 1 and 2: "))
- # if ATK11 == ATK1:
- # i -= DMG
- # print("You have dealt a good Ranger slice to your enemy and have dealt:", DMG, "quick damage, your Enemy has:", i ,"HP")
- # else:
- # i -= (DMG/2)
- # print ("You attempt to slice your enemy again and have barely dealt:", (DMG/2), "quick damage, your enemy has:", i, "HP")
- # ATK1 = (input("Choose a number between 1 and 2: "))
- # if ATK11 == ATK1:
- # i -= DMG
- # print ("You have dealt a good Ranger slice to your enemy and have dealt:", DMG, "quick damage, your Enemy has:", i ,"HP")
- # else:
- # i -= (DMG/2)
- # print ("You attempt to slice your enemy again and have barely dealt:", (DMG/2), "quick damage, your enemy has:", i, "HP")
- # ATKD = random.randint (1,ENEMY)
- # print1("Your Enemy is preparing to attack you \n")
- # time.sleep(4)
- # ATKP = random.randint(1,3)
- # if ATKP == 3:
- # print ("You have dodged your enemy and he has mist")
- # if ATKP == 2:
- # HP -= (ATKD//5)
- # print ("Your Enemy has dealt a very weak blow of", ATKD//5,"damage to you, you have", HP, "Health.")
- # if ATKP == 1:
- # HP -= (ATKD*3)
- # print ("Your Enemy has dealt a Destroying blow of",ATKD * 3,"Damage to you, you have", HP, "Health.")
- # if HP < 0:
- # print("It looks like your speed wasn't enough to save you, you have died a quick death, please restart the game")
- # exit()
- if CLASS == 4:
- ATK11 = random.randint(1,2)
- ATK1 = int(input("Choose a number between 1 and 2: "))
- if ATK1 == 1:
- ATK_NUMBER = 1
- elif ATK1 == 2:
- ATK_NUMBER = 2
- if ATK11 == ATK_NUMBER:
- i -= DMG
- print ("You have tried to control your enemies mind and have dealt:", DMG, " mind damage, your Enemy has:", i ,"HP")
- elif ATK11 != ATK_NUMBER:
- print ("You have tried to control your enemy but he has a strong mind and you have deal no damage, your Enemy has:", i, "HP")
- ATKD = random.randint (1,ENEMY)
- print1("Your Enemy is preparing to attack you \n")
- time.sleep(3)
- ATKP = random.randint(1,3)
- if ATKP == 3:
- print ("You have stopped your enemy with your mind")
- if ATKP == 2:
- HP -= ATKD
- print ("Your Enemy has dealt a great blow to your weak body of of", str(ATKD),"Damage to you, you have", HP, "Health.")
- if ATKP == 1:
- HP -= (ATKD//2)
- print ("Your Enemy has dealt a weak blow to you of",str(ATKD//2),"Damage to you, you have", HP, "Health, but it still hurts.")
- if HP <= 0:
- print("It turns out your enemie's mind was too strong and has resisted your controlling powers")
- exit()
- print1("It turns out that you have defeated your enemy well enough, great job! \n")
- def Monster_Dungeon1():
- global HP, DMG,SPD, RANGE,CLASS, ENEMY
- print ("You enter a Dark Scary Dungeon \n")
- time.sleep(1.5)
- clear()
- print ("You hear a scary sound Snarling in the dungeon \n")
- time.sleep(1.5)
- clear()
- Go_On = input("Would you like to go on?: ")
- if Go_On == "Yes" or Go_On == "yes":
- print ("You continue on to enter through the room \n")
- else:
- print ("You try to move away but your instincts tell you to move on")
- time.sleep(1.5)
- clear()
- print ("You then hear a Dark Loud Growl")
- time.sleep(1.5)
- clear()
- print ("A Big Brown Fuzzy Animal jumps out")
- time.sleep (2)
- clear()
- print ("You see that it's an undead bear with red eyes")
- time.sleep (2)
- clear()
- print ("You notice it's bones sticking out with flys flying around")
- time.sleep (1.5)
- clear()
- print ("The Bear Challenges You now")
- time.sleep (1.5)
- clear()
- Wanna_Fight = input("Would you like to run away?: ")
- thrown = random.randint (1,20)
- if Wanna_Fight[0] == "n" or Wanna_Fight[0] == "N":
- print ("You draw your weapon to fight the bear!")
- else:
- print ("You begin to turn and run")
- time.sleep (1.5)
- clear()
- print ("You feel a fuzzy sharp thing grab your back")
- time.sleep (1)
- clear()
- print ("You see the bear grab onto you and throw you into a corner")
- time.sleep (0.5)
- clear()
- HP -= thrown
- print ("You have taken",thrown, "Damage from being thrown")
- ENEMY += 100
- Fight(400)
- def Monster_Dungeon2():
- global HP, DMG,SPD, RANGE,CLASS, ENEMY
- print1("You enter through a dark and scary door \n")
- time.sleep(1)
- clear()
- print1("Something about this room doesn't feel right to you \n")
- time.sleep(1)
- clear()
- go = input("Are you too scared and want to hide? If not, say no: ")
- if go[0] == "n" or go [0] == "N":
- print1 ("You tell yourself that your are ready for whatever is in here and face your fears \n")
- time.sleep(1)
- clear()
- else:
- print1("You try to move around in the darkness \n")
- time.sleep(1)
- clear()
- print1("You find something solid \n")
- time.sleep(1)
- clear()
- print1("You attempt to hide under the object \n")
- time.sleep(1)
- clear()
- print1("You then feel a some bone-like items \n")
- time.sleep(1)
- clear()
- print1("You realize that you are in a monster's den \n")
- time.sleep(1)
- clear()
- print1("You scream and run! as the sight frightens you \n")
- print1("You continue to move on through the room \n")
- time.sleep(1)
- clear()
- print1("A wind blows past your face \n")
- time.sleep(1)
- clear()
- print1("You see that in front of you is a ghost \n")
- time.sleep(1)
- clear()
- print1("You are forced to fight the ghost and draw your weapon")
- ENEMY += 50
- Fight(120)
- def Monster_Dungeon3():
- print1("You enter through the door to see a group of goblins \n")
- time.sleep(1)
- clear()
- print1("You also see that they hold a hostage \n")
- time.sleep(1)
- clear()
- print1("1 of the Goblins apparently comes over and draws their weapon to fight you \n")
- time.sleep(1)
- clear()
- print1("You prepare to fight your enemy \n")
- ENEMY += 25
- Fight(75)
- print1("It seems like you easily defeated the goblin \n")
- time.sleep(1)
- clear()
- print1("You found 50 gold on the goblin \n")
- Gold += 50
- time.sleep(1)
- clear()
- print1("You see that the goblin continues to torture the prisoner \n")
- time.sleep(1)
- clear()
- print1("Another 2 goblins comes over to attack you \n")
- time.sleep(1)
- clear()
- print1("You kill them quickly in 2 succesful hits \n")
- time.sleep(1)
- clear()
- print1("You see that the big goblin now comes to fight you \n")
- ENEMY == 50
- Fight(150)
- print1("Congratulations on defeating the boss Goblin \n")
- time.sleep(1)
- clear()
- print1("The other goblins then run away as they see you killed their leader \n")
- time.sleep(1)
- clear()
- print1("You go up and take the mask off the hostage \n")
- time.sleep(1)
- clear()
- print1("You see that the hostage cannot be saved, but he does tell you one thing... \n")
- time.sleep(1)
- clear()
- print1("He tells you, don't go on, he was an adventurer trying to get in but got captured \n")
- time.sleep(1)
- clear()
- def Monster_Dungeon4():
- global HP, Gold
- print1("You enter through the door to find a torch lit \n")
- time.sleep(1)
- clear()
- print1("Your eyes then adjust to what you see \n")
- time.sleep(1)
- clear()
- print1("There, sitting on a throne of swords is a medieval armoured figure \n")
- time.sleep(1)
- clear()
- print1("You then start to hear a rumbling sound from the ground \n")
- time.sleep(1)
- clear()
- print1("You watch marvelously as the Medieval knight rises from his seat \n")
- time.sleep(1)
- clear()
- print1("The Medieval Knight then bellows to you... \n")
- print1("Hello Traveller, I am a Knight of this tower, and I challenge you to a duel with me, if not, I get to drain half of spirit(health) \n")
- duel = input("Do you fight the Knight of the tower?: ")
- if duel[0] == "n" or duel[0] == "N":
- HP/2
- else:
- ENEMY = 100
- Fight(200)
- print1("Congratulations on defeating the Knight \n")
- time.sleep(1)
- extra_gold = random.randint (50,100)
- print ("You have found", extra_gold, "gold from the knight")
- Gold+= extra_gold
- print1("You move on through the next door to see what await's you")
- time.sleep(1)
- clear()
- def Monster_Dungeon5():
- print1("You prepare yourself to enter the next door")
- time.sleep(1)
- print1("h")
- def LuckyFind():
- global HP, DMG, RANGE
- LUCKY_FIND = ["a Health Potion", "a Weapon Upgrade", "a Ranged weapon","Nothing", "some Gold"]
- NumberFind = random.randint (0,4)
- print1 ("You enter a dark room \n")
- time.sleep(1)
- print1 ("You see the door ahead \n")
- time.sleep(1)
- run = input("Would you like to go to light the room up? If not, say no and you move on: ")
- if run[0] == "y" or run[0] == "Y":
- find = LUCKY_FIND[NumberFind]
- print("You prepare to light the room up...")
- time.sleep(1)
- print("You light the room up!")
- time.sleep(1)
- print("You find:",find)
- time.sleep(1.5)
- find = "a Weapon Upgrade"
- if find == "a Health Potion":
- e = random.randint(50,150)
- HP += e
- print ("You have found" , e , "Health in the health potion")
- if find == "a Weapon Upgrade":
- e = random.randint(25,75)
- DMG += e
- print ("You have found enough tools to give you" , e , "upgrade in your weapon")
- if find == "a Ranged Weapon":
- e = random.randint(0,1)
- RANGE += e
- if e > 1:
- print ("You have found a ranged weapon that allows you to have" , e , "extra range.")
- else:
- print ("You already have this ranged weapon sorry... :(")
- if find == "some Gold":
- e = random.randint(50,150)
- Gold += e
- print ("You have found" , Gold , "Gold in the Gold Bundle")
- if find == "Nothing":
- print1("You have found nothing, the chest had already been looted by a previous adventurer")
- else:
- print("You exit the room not knowing what was in there")
- def Treasure_Find():
- # print1("You enter a bright room \n")
- # time.sleep(1)
- # print1("As your eyes clear, you see a figure \n")
- # time.sleep(1)
- # print1("You see a room that seems dusty and empty \n")
- # time.sleep(1)
- # print1("Except for that old parchment that looks interesting on the table\n")
- Parchment = input("Do you take a look at the parchment?: ")
- if Parchment[0] == "y" or Parchment[0] == "Y":
- find_time = random.randint(10,25)
- # print1 ("You go to take a closer look at the parchment \n")
- # time.sleep(1)
- # print1("It tells you that there is a hidden treasure in this room \n")
- # time.sleep(1)
- # print1("You move on to find the hidden treasure \n")
- # time.sleep(1)
- # print1("It tells you there is one condition though \n")
- # time.sleep(1)
- # print1("You have:", time, "seconds to find the treasure \n")
- # time.sleep(1)
- # print1("Look for the first dollar sign, in the line and say the position of it in numbers")
- random_letters = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbn<>/?:;[]{}-_=+$"
- password = ""
- for i in range(300):
- Number = random.randint(1,65)
- password +=(random.choice(random_letters))
- print (password)
- dollar = password.find("$")
- dollar_find = int(input("Enter the number position of the $ sign: "))
- if dollar_find == dollar:
- Gold += (random.randint(100,150))
- else:
- ("Y")
- # password += random_letters[random.randint(0,len(random_letters-1))]
- if Parchment[0] in ["n", "N"]:
- print1("You go on to the next room not knowing what the parchment said")
- time.sleep(1)
- print1("You prepare to move on to the next door")
- def Level():
- global Floor, Rooms
- for i in range(Floor):
- for i in range (Rooms):
- List_Rooms = [Monster_Dungeon1, Monster_Dungeon2, Monster_Dungeon3, Monster_Dungeon4, Monster_Dungeon5, LuckyFind, Treasure_Find]
- random.choice (List_Rooms)()
- f = input("Enter your Best Friend's Name: ")
- Saving_Friend = input("Would you like to save " + f + "?: ")
- if Saving_Friend[0] == "n" or Saving_Friend[0] == "N":
- print1("You win the Game, because your friend turned out to be horrible \n")
- elif Saving_Friend[0] == "m":
- print1("You lose because you can't make decisions on your own \n")
- else:
- print1("You are a brave person trying to save your friend \n")
- time.sleep (1)
- print1("It looks like your are a very courageous friend \n")
- time.sleep (1)
- print1("Welcome to The Dungeon Heros! \n")
- time.sleep(0.5)
- skull_animation()
- Choose_Class_Info()
- Class_Choose()
- stats()
- Mode()
- Level()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement