import random import time enName = "Proxima Midnight" enHp = 0 enAtt = 1 enMove = 0 enDef = 14 myName = "Caleb" myHp = 50 myAtt = 4 myDef = 13 print("You are face to face with Proxima Midnight") print() time.sleep(1) print("Health levels:") print(f" You: {myHp}") print(f" Proxima: {enHp}") time.sleep(1) print() sword = "s" axe = "a" potion = "p" magic = "m" defend = "d" print("Possible actions:") print(" [s]attack with your sword") print(" [a]attack with your axe") print(" [p]drink a healing potion") print(" [m]attack with magic") print(" [d]defend with your shield") time.sleep(1) choice = input("Your choice?: ") if choice == "d": print("Proxima Midnight slashes at you with her energy blade and you choose to defend...") deflect = random.randint(1, 2) if deflect == 1: enAtt = random.randint(1,25) print("You were too slow and Proxima caught you off guard") myHp = myHp - enAtt break