Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- Boss = "The King of Monsters"
- Boss_HP = 150
- HP = 130
- Heals = 10
- Power = 0
- Power_tank = 1
- Creeper = 2
- Air = 999
- Gold = 40
- while Boss_HP >= 1 and HP >= 1:
- print(Boss, "has", Boss_HP, "HP left you have", HP, "HP left.")
- print("Power is at", Power)
- print("You can do")
- print("Fight")
- if Power >= 100:
- print("Power")
- print("Heal")
- print("Item")
- print("Check")
- act = input("What will you do? ")
- if act == "fight" or act == "Fight":
- Boss_HP -= random.randint(1, 30)
- HP -= random.randint(1, 60)
- print("You attcked and did some damage to him.")
- print("You got hit")
- Power += 10
- elif act == "heal" or act == "Heal":
- if Heals >= 1:
- print("You Healed 5 HP")
- HP += 5
- Heals -= 1
- Boss_HP += random.randint(1, 3)
- print("You lost 1 healing item you now have", Heals, "healing items but the boss has more HP")
- print("now.")
- elif Heals <= 0:
- print("You have No heals left but the boss got more HP")
- Boss_HP += random.randint(1, 10)
- elif act == "check" or act == "Check":
- print(Boss, "can do up to 60 damage.")
- print("You got hit")
- HP -= random.randint(1, 60)
- elif act == "Power" or act == "power":
- if Power >= 100:
- print("Did 60 damage")
- Power -= 100
- Boss_HP -= 60
- else:
- print("Not enough power")
- elif act == "item" or act == "Item":
- if Power_tank == 1:
- print("Power Tank", Power_tank)
- if Creeper >= 1:
- print("Creeper", Creeper)
- if Air >= 1:
- print("Air in a Can", Air)
- Item = input("What item do you want to use? ")
- if Item == "Power Tank" or Item == "power tank" or Item == "Power tank" or Item == "Power" or Item == "Power":
- if Power_tank == 1:
- Power += 50
- print("Your Power is at now", Power)
- Power_tank -= 1
- else:
- print("Don't do that")
- elif Item == "creeper" or Item == "Creeper":
- if Creeper >= 1:
- print("You used a Creeper")
- print("Aww Man")
- Creeper -= 1
- Boss_HP -= random.randint(0, 190)
- HP -= random.randint(0, 190)
- else:
- print("Don't do that")
- elif Item == "Air" or Item == "Air in a can" or Item == "Air in a Can" or Item == "air in a can" or Item == "air":
- if Air >= 1:
- print("Why?")
- Air -= 1
- else:
- print("Don't do that")
- if HP <= 0:
- print("You Died")
- print("The boss was at", Boss_HP)
- else:
- print("You Won")
- print("You have", HP, "left")
- Gold = HP + Gold
- print("You got", Gold, "Gold")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement