Ejemplo n.º 1
0
def Jango(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 [P]ickpocket!\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.JangoHP)
        importlib.reload(EnergyBar)
        print("Current ENE:", EnergyBar.JangoENE)
        print("-----------------")
    elif choice == "T" or choice == "t":
        UserShield = "JangoShield"
        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] Reinforced Bone Knife!\n [2] Reinforced Bone Knife!\n [3] Tin Slicer!\n "
        )
        if choice == "1":
            choice = input(
                "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Tr]iple Combo!\n [U]nknown Skill!\n "
            )
            if choice == "Q" or choice == "q":
                AttacksOO.Knife(WSD["Jango"].Weapon1, "Jango", Solar, 1.4, 0,
                                0, 0).QATK
            elif choice == "N" or choice == "n":
                AttacksOO.Knife(WSD["Jango"].Weapon1, "Jango", Solar, 1.4, 0,
                                0, 0).NATK
            elif choice == "H" or choice == "h":
                AttacksOO.Knife(WSD["Jango"].Weapon1, "Jango", Solar, 1.4, 0,
                                0, 0).HATK
            elif choice == "TR" or choice == "Tr" or choice == "tr":
                AttacksOO.Knife(WSD["Jango"].Weapon1, "Jango", Solar, 1.4, 0,
                                0, 0).TripleCombo
            elif choice == "U" or choice == "u":
                SkillUsed = eval(
                    'AttacksOO.Knife(WSD["Jango"].Weapon1,"Jango",Solar,1.4,0,0,0).'
                    + input("Skillname is: "))
                exec(str(SkillUsed))
        elif choice == "2":
            choice = input(
                "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Tr]iple Combo!\n [U]nknown Skill!\n "
            )
            if choice == "Q" or choice == "q":
                AttacksOO.Knife(WSD["Jango"].Weapon2, "Jango", Solar, 1.4, 0,
                                0, 0).QATK
            elif choice == "N" or choice == "n":
                AttacksOO.Knife(WSD["Jango"].Weapon2, "Jango", Solar, 1.4, 0,
                                0, 0).NATK
            elif choice == "H" or choice == "h":
                AttacksOO.Knife(WSD["Jango"].Weapon2, "Jango", Solar, 1.4, 0,
                                0, 0).HATK
            elif choice == "TR" or choice == "Tr" or choice == "tr":
                AttacksOO.Knife(WSD["Jango"].Weapon2, "Jango", Solar, 1.4, 0,
                                0, 0).TripleCombo
            elif choice == "U" or choice == "u":
                SkillUsed = eval(
                    'AttacksOO.Knife(WSD["Jango"].Weapon1,"Jango",Solar,1.4,0,0,0).'
                    + input("Skillname is: "))
                exec(str(SkillUsed))
        elif choice == "3":
            choice = input(
                "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n ")
            if choice == "Q" or choice == "q":
                AttacksOO.Slicer(WSD["Jango"].Weapon3, "Jango", Solar, 0.5, 0,
                                 0).QATK
            elif choice == "N" or choice == "n":
                AttacksOO.Slicer(WSD["Jango"].Weapon3, "Jango", Solar, 0.5, 0,
                                 0).NATK
            elif choice == "H" or choice == "h":
                AttacksOO.Slicer(WSD["Jango"].Weapon3, "Jango", Solar, 0.5, 0,
                                 0).HATK
    elif choice == "I" or choice == "i":
        choice = input(
            "Select an item!\n [Sh]uriken!\n [Or]ange Juice!\n [P]ick!\n ")
        if choice == "SH" or choice == "Sh" or choice == "sh":
            Items.Shuriken("Jango")
        elif choice == "OR" or choice == "Or" or choice == "or":
            Items.OrangeJuice("Jango")
        elif choice == "P" or choice == "p":
            ItemUsed = eval("Items." + input("Item is: "))
            exec(str(ItemUsed("Jango")))
    elif choice == "P" or choice == "p":
        AttacksOO.Pickpocket("Jango")
    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
Ejemplo n.º 2
0
def Jango(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 [P]ickpocket!\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] Reinforced Bone Knife!\n [2] Reinforced Bone Knife!\n "
        )
        if choice == "1" or choice == "2":
            choice = input(
                "Select an action!\n [Q]uick!\n [N]ormal!\n [H]ard!\n [Tr]iple Combo!\n "
            )
            if choice == "Q" or choice == "q":
                AttacksOO.Knife("ReinforcedBoneKnife0", "Jango", Flame, 1.3, 0,
                                0).QATK
            elif choice == "N" or choice == "n":
                AttacksOO.Knife("ReinforcedBoneKnife0", "Jango", Flame, 1.3, 0,
                                0).NATK
            elif choice == "H" or choice == "h":
                AttacksOO.Knife("ReinforcedBoneKnife0", "Jango", Flame, 1.3, 0,
                                0).HATK
            elif choice == "TR" or choice == "Tr" or choice == "tr":
                AttacksOO.Knife("ReinforcedBoneKnife0", "Jango", Flame, 1.3, 0,
                                0).TripleCombo
            elif choice == "SU" or choice == "Su" or choice == "su":
                Skills.Surprise("Jango", "ReinforcedBoneKnife0",
                                "ReinforcedBoneKnife0", "Flame", "Flame")
    elif choice == "I" or choice == "i":
        choice = input(
            "Select an item!\n [Sh]uriken!\n [Or]ange Juice!\n [Ha]nd Grenade!\n "
        )
        if choice == "SH" or choice == "Sh" or choice == "sh":
            Items.Shuriken("Jango")
        elif choice == "OR" or choice == "Or" or choice == "or":
            Items.OrangeJuice("Jango")
        elif choice == "HA" or choice == "Ha" or choice == "ha":
            Items.HandGrenade("Jango")
    elif choice == "P" or choice == "p":
        AttacksOO.Pickpocket("Jango")
    elif choice == "SK" or choice == "Sk" or choice == "sk":
        Check.Skillcheck("Jango", 1).Choice