SHARE
TWEET

random batle creeper ver

a guest Nov 12th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random
  2.  
  3. Boss = "The King of Monsters"
  4. Boss_HP = 150
  5. HP = 130
  6. Heals = 10
  7. Power = 0
  8. Power_tank = 1
  9. Creeper = 2
  10. Air = 999
  11. Gold = 40
  12.  
  13. while Boss_HP >= 1 and HP >= 1:
  14.     print(Boss, "has", Boss_HP, "HP left you have", HP, "HP left.")
  15.     print("Power is at", Power)
  16.     print("You can do")
  17.     print("Fight")
  18.     if Power >= 100:
  19.         print("Power")
  20.     print("Heal")
  21.     print("Item")
  22.     print("Check")
  23.     act = input("What will you do? ")
  24.     if act == "fight" or act == "Fight":
  25.         Boss_HP -= random.randint(1, 30)
  26.         HP -= random.randint(1, 60)
  27.         print("You attcked and did some damage to him.")
  28.         print("You got hit")
  29.         Power += 10
  30.        
  31.     elif act == "heal" or act == "Heal":
  32.         if Heals >= 1:
  33.             print("You Healed 5 HP")
  34.             HP += 5
  35.             Heals -= 1
  36.             Boss_HP += random.randint(1, 3)
  37.             print("You lost 1 healing item you now have", Heals, "healing items but the boss has more HP")
  38.             print("now.")
  39.         elif Heals <= 0:
  40.             print("You have No heals left but the boss got more HP")
  41.             Boss_HP += random.randint(1, 10)
  42.            
  43.     elif act == "check" or act == "Check":
  44.         print(Boss, "can do up to 60 damage.")
  45.         print("You got hit")
  46.         HP -= random.randint(1, 60)
  47.     elif act == "Power" or act == "power":
  48.         if Power >= 100:
  49.             print("Did 60 damage")
  50.             Power -= 100
  51.             Boss_HP -= 60
  52.         else:
  53.             print("Not enough power")
  54.     elif act == "item" or act == "Item":
  55.         if Power_tank == 1:
  56.             print("Power Tank", Power_tank)
  57.         if Creeper >= 1:
  58.             print("Creeper", Creeper)
  59.         if Air >= 1:
  60.             print("Air in a Can", Air)
  61.         Item = input("What item do you want to use? ")
  62.         if Item == "Power Tank" or Item == "power tank" or Item == "Power tank" or Item == "Power" or Item == "Power":
  63.             if Power_tank == 1:
  64.                 Power += 50
  65.                 print("Your Power is at now", Power)
  66.                 Power_tank -= 1
  67.             else:
  68.                 print("Don't do that")
  69.                    
  70.         elif Item == "creeper" or Item == "Creeper":
  71.             if Creeper >= 1:
  72.                 print("You used a Creeper")
  73.                 print("Aww Man")
  74.                 Creeper -= 1
  75.                 Boss_HP -= random.randint(0, 190)
  76.                 HP -= random.randint(0, 190)
  77.             else:
  78.                 print("Don't do that")
  79.         elif Item == "Air" or Item == "Air in a can" or Item == "Air in a Can" or Item == "air in a  can" or Item == "air":
  80.             if Air >= 1:
  81.                 print("Why?")
  82.                 Air -= 1
  83.             else:
  84.                 print("Don't do that")
  85.  
  86. if HP <= 0:
  87.     print("You Died")
  88.     print("The boss was at", Boss_HP)
  89. else:
  90.     print("You Won")
  91.     print("You have", HP, "left")
  92.     Gold = HP + Gold
  93.     print("You got", Gold, "Gold")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top