def Helm(Character): u = Character uHP = WSD[Character].HP uENE = WSD[Character].ENE uSTR = WSD[Character].STR uSPR = WSD[Character].SPR uSKL = WSD[Character].SKL uABL = WSD[Character].ABL uAGI = WSD[Character].AGI uEVA = WSD[Character].EVA uTGH = WSD[Character].TGH uRES = WSD[Character].RES uLCK = WSD[Character].LCK uPAR = WSD[Character].PAR uMAR = WSD[Character].MAR uWT = WSD[Character].ArmorWT choice = input( "Select something!\n [St]atcheck!\n [Ba]ttlestats!\n [We]apons!\n [T]oggle Shield!\n [I]nventory!\n [C]onfirm Actions!\n " ) if choice == "ST" or choice == "St" or choice == "st": print("-----------------") print("HP:", uHP) print("ENE:", uENE) print("STR:", uSTR) print("SPR:", uSPR) print("SKL:", uSKL) print("ABL:", uABL) print("AGI:", uAGI) print("EVA:", uEVA) print("TGH:", uTGH) print("RES:", uRES) print("LCK:", uLCK) print("PAR:", uPAR) print("MAR:", uMAR) print("WT:", uWT) print("-----------------") elif choice == "BA" or choice == "Ba" or choice == "ba": print("-----------------") importlib.reload(HealthBar) print("Current HP:", HealthBar.HelmHP) importlib.reload(EnergyBar) print("Current ENE:", EnergyBar.HelmENE) print("-----------------") elif choice == "T" or choice == "t": UserShield = "HelmShield" importlib.reload(Shielding) ShieldPos = getattr(Shielding, UserShield) if ShieldPos == "Equipped": with open( 'C:\\Users\\seven\\OneDrive\\Desktop\\RoPH OOP Update\\Shielding.py', 'a+') as f: importlib.reload(Shielding) print(UserShield + "=NotEquipped", file=f) else: with open( 'C:\\Users\\seven\\OneDrive\\Desktop\\RoPH OOP Update\\Shielding.py', 'a+') as f: importlib.reload(Shielding) print(UserShield + "=Equipped", file=f) elif choice == "WE" or choice == "We" or choice == "we": choice = input( "Which weapon?\n [1] Copper Saber!\n [2] Ivory Handbow!\n ") if choice == "1": choice = input( "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Tr]iple Combo!\n [Be]ginner's Parry!\n [Bl]azing Cutlass!\n " ) if choice == "Q" or choice == "q": AttacksOO.Saber(WSD["Helm"].Weapon1, "Helm", Storm, 1.25, 0, 0).QATK elif choice == "N" or choice == "n": AttacksOO.Saber(WSD["Helm"].Weapon1, "Helm", Storm, 1.25, 0, 0).NATK elif choice == "H" or choice == "h": AttacksOO.Saber(WSD["Helm"].Weapon1, "Helm", Storm, 1.25, 0, 0).HATK elif choice == "TR" or choice == "Tr" or choice == "tr": AttacksOO.Saber(WSD["Helm"].Weapon1, "Helm", Storm, 1.25, 0, 0).TripleCombo elif choice == "BE" or choice == "Be" or choice == "be": AttacksOO.Saber(WSD["Helm"].Weapon1, "Helm", Storm, 1.25, 0, 0).BeginnersParry elif choice == "BL" or choice == "Bl" or choice == "bl": AttacksOO.Saber(WSD["Helm"].Weapon1, "Helm", Flame, 1.25, 0, 0).BlazingCutlass elif choice == "2": choice = input( "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Tr]iple Play!\n " ) if choice == "Q" or choice == "q": AttacksOO.Handbow(WSD["Helm"].Weapon2, "Helm", Storm, 1, 0, 0).QATK elif choice == "N" or choice == "n": AttacksOO.Handbow(WSD["Helm"].Weapon2, "Helm", Storm, 1, 0, 0).NATK elif choice == "H" or choice == "h": AttacksOO.Handbow(WSD["Helm"].Weapon2, "Helm", Storm, 1, 0, 0).HATK elif choice == "TR" or choice == "Tr" or choice == "tr": AttacksOO.Handbow(WSD["Helm"].Weapon2, "Helm", Storm, 1, 0, 0).TriplePlay elif choice == "I" or choice == "i": choice = input( "Select an item!\n [HB] Herbal Bandage!\n [TJ] Tomato Juice!\n [P]ick!\n " ) if choice == "HB" or choice == "Hb" or choice == "hb": Items.HerbalBandage("Helm") elif choice == "TJ" or choice == "Tj" or choice == "tj": Items.TomatoJuice("Helm") elif choice == "P" or choice == "p": ItemUsed = eval("Items." + input("Item is: ")) exec(str(ItemUsed("Helm"))) elif choice == "C" or choice == "c": choice = input( "Select a Type!\n [A]ttackcheck!\n [S]killcheck!\n [I]temcheck!\n " ) User = "******" UserLevel = WSD[User].Level if choice == "A" or choice == "a": Check.Attackcheck(User).Confirm elif choice == "S" or choice == "s": Check.Skillcheck(User, UserLevel).Choice elif choice == "I" or choice == "i": Check.Itemcheck(User).Confirm
def Helm(Unit): u = Unit uHP = WSD[Unit].HP uENE = WSD[Unit].ENE uSTR = WSD[Unit].STR uSPR = WSD[Unit].SPR uSKL = WSD[Unit].SKL uABL = WSD[Unit].ABL uAGI = WSD[Unit].AGI uEVA = WSD[Unit].EVA uTGH = WSD[Unit].TGH uRES = WSD[Unit].RES uLCK = WSD[Unit].LCK uPAR = WSD[Unit].PAR uMAR = WSD[Unit].MAR uWT = WSD[Unit].ArmorWT choice = input( "Select something!\n [St]atcheck!\n [At]tack!\n [I]nventory!\n [Sk]illcheck!\n " ) if choice == "ST" or choice == "St" or choice == "st": print("-----------------") print("HP:", uHP) print("ENE:", uENE) print("STR:", uSTR) print("SPR:", uSPR) print("SKL:", uSKL) print("ABL:", uABL) print("AGI:", uAGI) print("EVA:", uEVA) print("TGH:", uTGH) print("RES:", uRES) print("LCK:", uLCK) print("PAR:", uPAR) print("MAR:", uMAR) print("WT:", uWT) print("-----------------") elif choice == "AT" or choice == "At" or choice == "at": choice = input( "Which weapon?\n [1] Ivory Handbow!\n [2] Copper Saber!\n ") if choice == "1": choice = input( "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Tr]iple Play!\n " ) if choice == "Q" or choice == "q": AttacksOO.Handbow("NormalIvoryHandbow0", "Helm", Water, 1, 0).QATK elif choice == "N" or choice == "n": AttacksOO.Handbow("NormalIvoryHandbow0", "Helm", Water, 1, 0).NATK elif choice == "H" or choice == "h": AttacksOO.Handbow("NormalIvoryHandbow0", "Helm", Water, 1, 0).HATK elif choice == "TR" or choice == "Tr" or choice == "tr": AttacksOO.Handbow("NormalIvoryHandbow0", "Helm", Water, 1, 0).TriplePlay elif choice == "2": choice = input( "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Tr]iple Combo!\n [Be]ginner's Parry!\n [Bl]azing Cutlass!\n " ) if choice == "Q" or choice == "q": AttacksOO.Saber("NormalCopperSaber0", "Helm", Water, 1.25, 0).QATK elif choice == "N" or choice == "n": AttacksOO.Saber("NormalCopperSaber0", "Helm", Water, 1.25, 0).NATK elif choice == "H" or choice == "h": AttacksOO.Saber("NormalCopperSaber0", "Helm", Water, 1.25, 0).HATK elif choice == "TR" or choice == "Tr" or choice == "tr": AttacksOO.Saber("NormalCopperSaber0", "Helm", Water, 1.25, 0).TripleCombo elif choice == "BE" or choice == "Be" or choice == "be": AttacksOO.Saber("NormalCopperSaber0", "Helm", Water, 1.25, 0).BeginnersParry elif choice == "BL" or choice == "Bl" or choice == "bl": AttacksOO.Saber("NormalCopperSaber0", "Helm", Flame, 1.25, 0).BlazingCutlass elif choice == "I" or choice == "i": choice = input("Select an item!\n ") if choice == "HE" or choice == "He" or choice == "he": Items.HerbalBandage("Helm") elif choice == "TO" or choice == "To" or choice == "to": Items.TomatoJuice("Helm") elif choice == "SK" or choice == "Sk" or choice == "sk": Check.Skillcheck("Helm", 1).Choice