def Roselyn(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 [W]eapons!\n [Su]pport Magic!\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.RoselynHP) importlib.reload(EnergyBar) print("Current ENE:", EnergyBar.RoselynENE) print("-----------------") elif choice == "T" or choice == "t": UserShield = "RoselynShield" 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] Ivory Wand!\n [2] Cobalt Battlecannon!\n [3] N/A!\n " ) if choice == "1": choice = input( "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Fi]reball!\n " ) if choice == "Q" or choice == "q": AttacksOO.Wand(WSD["Roselyn"].Weapon1, "Roselyn", Flame, 1, 0, 0).QATK elif choice == "N" or choice == "n": AttacksOO.Wand(WSD["Roselyn"].Weapon1, "Roselyn", Flame, 1, 0, 0).NATK elif choice == "H" or choice == "h": AttacksOO.Wand(WSD["Roselyn"].Weapon1, "Roselyn", Flame, 1, 0, 0).HATK elif choice == "FI" or choice == "Fi" or choice == "fi": AttacksOO.OffenseSpell("NormalIvoryWand0", "Roselyn", Flame, 1.15, 0, 0, 0).Fireball elif choice == "2": choice = input( "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n ") if choice == "Q" or choice == "q": AttacksOO.Battlecannon(WSD["Roselyn"].Weapon2, "Roselyn", Flame, 0.5, 0, 0).QATK elif choice == "N" or choice == "n": AttacksOO.Battlecannon(WSD["Roselyn"].Weapon2, "Roselyn", Flame, 0.5, 0, 0).NATK elif choice == "H" or choice == "h": AttacksOO.Battlecannon(WSD["Roselyn"].Weapon2, "Roselyn", Flame, 0.5, 0, 0).HATK elif choice == "SU" or choice == "Su" or choice == "su": choice = input( "Select a Spell!\n [HR] Healthy Ray!\n [HG] Healthy Glow!\n [EG] Energetic Glow!\n [ER] Energetic Ray!\n " ) if choice == "HR" or choice == "Hr" or choice == "hr": AttacksOO.SupportSpell(WSD["Roselyn"].Weapon1, "Roselyn").HealthyRay elif choice == "HG" or choice == "Hg" or choice == "hg": Skills.HealthyGlow("Roselyn", "NormalIvoryWand0") elif choice == "ER" or choice == "Er" or choice == "er": Skills.EnergeticRay("Roselyn", "NormalIvoryWand0") elif choice == "EG" or choice == "Eg" or choice == "eg": Skills.EnergeticGlow("Roselyn", "NormalIvoryWand0") elif choice == "I" or choice == "i": choice = input( "Select an item!\n [SC] Strawberry Candy!\n [PO] Pearl Ointment!\n [SS] Soothing Salve!\n " ) if choice == "SC" or choice == "Sc" or choice == "sc": Items.StrawberryCandy("Roselyn") elif choice == "PO" or choice == "Po" or choice == "po": Items.PearlOintment("Roselyn") elif choice == "SS" or choice == "Ss" or choice == "ss": Items.SoothingSalve("Roselyn") elif choice == "P" or choice == "p": ItemUsed = eval("Items." + input("Item is: ")) exec(str(ItemUsed("Roselyn"))) 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 Roselyn(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 [H]ealing Field!\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 Wand!\n [2] Cobalt Battlecannon!\n ") if choice == "1": choice = input( "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Fi]reball!\n [HR] Healthy Ray!\n [HG] Healthy Glow!\n [EG] Energetic Glow!\n [ER] Energetic Ray!\n " ) if choice == "Q" or choice == "q": AttacksOO.Wand("NormalIvoryWand0", "Roselyn", Flame, 1, 0).QATK elif choice == "N" or choice == "n": AttacksOO.Wand("NormalIvoryWand0", "Roselyn", Flame, 1, 0).NATK elif choice == "H" or choice == "h": AttacksOO.Wand("NormalIvoryWand0", "Roselyn", Flame, 1, 0).HATK elif choice == "FI" or choice == "Fi" or choice == "fi": AttacksOO.OffenseSpell("NormalIvoryWand0", "Roselyn", Flame, 1.15, 0, 0).Fireball elif choice == "HR" or choice == "Hr" or choice == "hr": Skills.HealthyRay("Roselyn", "NormalIvoryWand0") elif choice == "HG" or choice == "Hg" or choice == "hg": Skills.HealthyGlow("Roselyn", "NormalIvoryWand0") elif choice == "ER" or choice == "Er" or choice == "er": Skills.EnergeticRay("Roselyn", "NormalIvoryWand0") elif choice == "EG" or choice == "Eg" or choice == "eg": Skills.EnergeticGlow("Roselyn", "NormalIvoryWand0") elif choice == "2": choice = input( "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n ") if choice == "Q" or choice == "q": AttacksOO.Battlecannon("NormalCobaltBattlecannon0", "Roselyn", Flame, 0.5, 0).QATK elif choice == "N" or choice == "n": AttacksOO.Battlecannon("NormalCobaltBattlecannon0", "Roselyn", Flame, 0.5, 0).NATK elif choice == "H" or choice == "h": AttacksOO.Battlecannon("NormalCobaltBattlecannon0", "Roselyn", Flame, 0.5, 0).HATK elif choice == "I" or choice == "i": choice = input("Select an item!\n ") elif choice == "SK" or choice == "Sk" or choice == "sk": Check.Skillcheck("Roselyn", 1).Choice