#------------------------------# # Name : Hayden | # Purpose : 11DGT | # Author: Hayden kent | # Created : 19/02/2024 | # Copyright : ©HaydenKent2008| #------------------------------# import random import time #hp and loop variables cap = 50 grape = 150 again = True Name = input("Welcome hero what is your hero name?") if Name == "Markiplier" : print("REAL?!?!?!?") print("Anyways welcome", Name, "You are the last hero left that can stand a chance against the threat uhhhh") time.sleep(2) Threatname = input("Ummm i forgotten the threats name.. What was it again?") time.sleep(1) if Threatname == "Shadow the hedgehog" : print("I dont think that he is a fictional hedgehog...") time.sleep(2) print("Well we are sending you to the battlefield to eliminate", Threatname, "due to his raw power being able to destroy the multiverse!") time.sleep(5) print("You arrive at the scene and both you and", Threatname, "charge at eachother to enitiate the battle of the century!") time.sleep(4) while again == True : #attacking variables Caphit = random.randint(1,20) thanosHit = random.randint(15,26) deflect = random.randint(1,2) protect = random.randint(1, 13) retaliate = random.randint(1,10) critical = random.randint(20,28) critchance = random.randint(1,20) Heal = random.randint(10, 17) revive = random.randint(1,2) aethist = random.randint(1,15) #All praying variables pray = random.randint(1,32) Pheal = random.randint(14, 20) Phit = random.randint(23,28) Pself = random.randint(10,15) #instant game over!!! Pgg = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 time.sleep(2) print("You have", cap, "Health") time.sleep(2) print(Threatname, "has", grape, "Health!") choice=input("Will you (a)ttack?, (d)efend?, (h)eal? or will you (p)ray for hope?") time.sleep(1) if choice.lower() == "a" : if Caphit == critchance : print("You threw your mighty fists at", Threatname) time.sleep(1) print("But moistcritikal gave a blessing to you powering up you attack!") time.sleep(2) print("You dealt", critical, "damage to", Threatname) time.sleep(2) grape -= critical if grape < 0 : if revive == 1 : print(Threatname,"revived from the dead out of pure hatred and restored 60 hp! ") time.sleep(2) grape += 60 if revive == 2 : print("You the great", Name, "have defeated the idiot clown and saved the universe!") break print( Threatname, "now has", grape, "Hp and he is mad!") time.sleep(2) print(Threatname, "is about to strike a punch") time.sleep(2) print(Threatname, "dealt", thanosHit, "Damage to you") cap -= thanosHit time.sleep(2) if cap < 0 : print("You have fallen game over") break if Caphit != critchance : print("You threw your mighty fists at", Threatname) time.sleep(1) print("You dealt", Caphit, "Damage to", Threatname) grape -= Caphit time.sleep(1) if grape < 0 : if revive == 1 : print(Threatname,"revived from the dead out of pure hatred and restored 60 hp! ") time.sleep(2) grape += 60 if revive == 2 : print("You the great", Name, "have defeated the idiot clown and saved the universe!") break print( Threatname, "now has", grape, "Hp and they is mad!") time.sleep(2) print(Threatname, "is about to strike a punch") time.sleep(2) print(Threatname, "dealt", thanosHit, "Damage to you") cap -= thanosHit time.sleep(2) if cap < 0 : print("You have fallen game over") break if choice.lower() == "d" : print("You summon the psychic shield of", Name, "to protect yourself") time.sleep(2) if deflect == 1 : print(Threatname, "charged at you and the psychic shield deflected the damage onto themself dealing", thanosHit, "damage to himself!") grape -= thanosHit time.sleep(4) if grape < 0 : if revive == 1 : print(Threatname,"revived from the dead out of pure hatred and restored 60 hp! ") time.sleep(2) grape += 60 if revive == 2 : print("You have defeated", Threatname, "and the name", Name, "will be remembered in history") break print("Thanos retaliated in anger!") time.sleep(1) print("He dealt", retaliate, "damage to you!") if deflect == 2 : print(Threatname, "threw a punch at your psychic shield and somehow his punch went through it only dealing", protect, "damage to you!") cap -= protect if cap < 0 : time.sleep(3) print("You have fallen to ultimate lifeform.... GAME OVER") break if choice.lower() == "h" : print("You casted the ancient spell of", Name, "justsu to gain", Heal, "hp!") cap += Heal time.sleep(2.5) print("Out of anger that you healed infront of him", Threatname, "used the kamehamea dealing", thanosHit, "damage to you!") if cap < 0 : time.sleep(3) print("You are forever known as the man who died whilst healing....") break if choice.lower() == "p" : print("You pray to the Penquin0z for assistance") time.sleep(2) if pray == 3 : print("You pray so hard you take") time.sleep(1) print(Pgg, "Damage to yourself!") cap -= Pgg time.sleep(5) print("Unlucky loser!") time.sleep(2) break if pray == 2 : print("Jesus blesses you giving you", Pheal, "Hp") time.sleep(2) cap += Pheal print(Threatname, "Is fed up with you shenanigings already so he throws a pebble at you dealing", thanosHit, "damage") cap -= thanosHit if cap < 0 : print("You died whilst praying really?") break if pray == 1 : print("Jesus wants you to stop praying so he gives you a quick damage boost which deals", Phit, "Damage to", Threatname) grape -= Phit if grape < 0 : if revive == 1 : print("Anti moistcritikal gave life to", Threatname, "to win a bet with moistcritikal and that healed him back to life by 60 hp") if revive == 2 : print("You saved the world thanks to the power of praying to moistcritikal") break time.sleep(3) print(Threatname, "is confused on what the hell that was so he slaps you dealing", thanosHit, "damage") cap -= thanosHit if cap < 0 : print("You died whilst praying really?") break if pray == 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32: print("Nothing happend") time.sleep(2) print(Threatname, "Ran towards you and got a free shot dealing", thanosHit, "damage!") cap -= thanosHit if cap < 0 : print("You died whilst praying really?") break