Advertisement
Guest User

random batle

a guest
Nov 12th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  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. Bomb = 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 Bomb >= 1:
  58. print("Bomb", Bomb)
  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 == "bomb" or Item == "Bomb":
  71. if Bomb >= 1:
  72. print("You used a Bomb")
  73. Bomb -= 1
  74. Boss_HP -= random.randint(0, 190)
  75. HP -= random.randint(0, 190)
  76. else:
  77. print("Don't do that")
  78. elif Item == "Air" or Item == "Air in a can" or Item == "Air in a Can" or Item == "air in a can" or Item == "air":
  79. if Air >= 1:
  80. print("Why?")
  81. Air -= 1
  82. else:
  83. print("Don't do that")
  84.  
  85. if HP <= 0:
  86. print("You Died")
  87. print("The boss was at", Boss_HP)
  88. else:
  89. print("You Won")
  90. print("You have", HP, "left")
  91. Gold = HP + Gold
  92. print("You got", Gold, "Gold")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement