Esempio n. 1
0
def run(player):
    print("You encounter a thicket of vines preventing you from proceeding. What do you do?")
    choice = input("[Push Through, Cut Vines, Go Back]")
    if choice.title() in ["Push", "Push Through", "Through", "P"]:
        print("You push through the vines to the other side. Unfortunately, you realize that the vines were actually poisonous.")
        tx = curseScript.toxins()
        tx.severity = 3
        player.curses.append(tx)
    elif choice.title() in ["Cut", "Vines", "Cut Vines", "C"]:
        if baseM.hasWeapon(player):
            print("As you carefully cut the vines you start to feel the ground move beneath you.")
            print("You leap back onto solid ground as the giant green creature rises before you.")
            print("The creature turns to you and massive, moss-covered arms move toward you.")
            print("The enormous creature stands before you, and it looks like it's preparing to attack...")
            baseM.runBasicFight(player, [MossyGoober()], playerFirst = True)
        else:
            print("Without a proper weapon, you are unable to cut the vines.")
            run(player)
    elif choice.title() in ["Go Back", "Go", "Back", "G"]:
        print("You turn away from the vines only to find more vines blocking the entrance from which you came..")
        print("Or was it? As you look around, vines cover every wall and stretch in front of the many doorways into and out of this room.")
        print("Confused and dizzy, you sit down on the ground to reconsider your options.")
        player.curses.append(curseScript.madness())
    else:
        baseM.checkCommands(choice,player)
        run(player)
    return player
Esempio n. 2
0
def waitp2(player):
    ch2 = input("Your legs start to grow tired, and you feel as though you've been standing for hours..[Sit Down, Stay Standing]")
    if ch2.title() in ["Sit", "Sit Down", "Down"]:
        print("You sit down by the tree.")
        for i in range(5):
            for j in range(3):
                time.sleep(2)
                print('.',end='')
                player.timeClimbing+=2
            print()
        print("You fall asleep.")
        player.timeClimbing+= 100
        print("You wake up, hearing the murmers of numerous hooded figures standing around you.")
        waitp3(player)
    elif ch2.title() in ["Stand", "Stay", "Stay Standing"]:
        print("You stay standing.")
        for i in range(2):
            for i in range(3):
                time.sleep(2)
                print('.',end='')
                player.timeClimbing+=2
        print("Nothing happens. After waiting for hours, you grow bored and leave.")
    else:
        baseM.checkCommands(ch2, player)
        waitp2(player)
    return player
Esempio n. 3
0
def bigManChoice1(player):
    choice = input(
        "[\"I'm just looking around.\", \"How do you deal with this temperature?\", \"I would like your assistance.\"]"
    )
    if choice.title() in [
            "I'm Just Looking Around", "Im Just Looking Around", "Looking",
            "Around", "Just Looking Around", "Looking Around"
    ]:
        print("\"LOOKING AROUND, HM? FEEL FREE TO TAKE ANYTHING YOU LIKE.\"")
        print(
            "You walk around the hallway and notice a few glowing weapons resting against the wall."
        )
        pickWeapon(player)
    elif choice.title() in [
            "How Do You Deal With This Temperature", "Temp", "Temperature",
            "Heat", "Hot", "Warm"
    ]:
        print(
            "The voice laughs. \"TOO WARM FOR YOU? THE HEAT IS NECESSARY TO FORGE WEAPONRY WITH SUCH DURABILITY.\""
        )
        print(
            "You look around and realize that many of the weapons on the walls have existed for centuries. Despite this, they all still seem sturdy and powerful."
        )
        print("Suddenly, ")
    elif choice.title() in [
            "I Would Like Your Assistance", "Assistance", "Help"
    ]:
        print("\"WHAT CAN I MAKE FOR YOU?\"")
        bigManChoice2(player)
    else:
        baseM.checkCommands(choice, player)
        bigManChoice1(player)
Esempio n. 4
0
def destree(player, timesHit = 0):
    if baseM.hasWeapon(player):
        input("You ready your weapons...")
        if timesHit == 0:
            print("\"CLANG!!!\"")
            choice = input("Leaves start raining down. However, you hear the faint sound of footsteps.. [Hit Again, Collect Leaves, Leave]")
        elif timesHit == 1:
            print("\"CLANG!!\" The shock and recoil from the tree shoots up your arms.")
            choice = input("More leaves rain down. The sound of footsteps grows louder.. [Hit Again, Collect Leaves, Leave]")
        elif timesHit == 2:
            print("\"CLANG!\" More pain shoots up your arms and you stagger back.")
            choice = input("The ground is almost covered in golden leaves. You no longer hear any footsteps. [Hit Again, Collect Leaves, Leave]")
        elif timesHit == 3:
            choice = input("\"CLANG\" You stagger back and fall down. [Hit Again, Collect Leaves, Leave]")
        elif timesHit == 4:
            print("\"clang...\" You feel weak and exhausted. You collapse onto a pile of golden leaves.")
            choice = input("[Collect Leaves, Leave]")
        if choice.title() in ["Hit", "Again", "H", "Hit Again"]:
            timesHit += 1
            destree(player, timesHit)
        elif choice.title() in ["Collect", "Leaves", "C", "Collect Leaves"]:
            input("You quickly gather up all the leaves on the ground and leave the room. [Continue]")
            pScript.earnGold(player, 17*(timesHit+1))
        elif choice.title() in ["Leave", "L"]:
            input("You leave the room wondering how much the golden leaves were really worth. [Continue]")
        else:
            baseM.checkCommands(choice, player)
            destree(player, timesHit)
    else:
        print("You punch the tree as hard as you can. A lone leaf falls down, and your hand hurts.")
        pScript.damage(player, 3)
        print("You pick up the leaf and leave the room.")
        pScript.earnGold(player, 2)
    return player
Esempio n. 5
0
def waitp3(player):
    ch3 = input('"Hello, traveller. What brings you here today?"["I\'m lost.", "I seek riches.", "I need healing."]')
    if ch3.title() in ["I'm Lost", "Im Lost", "Lost", "I Am Lost"]:
        print("\"Lost, are you? Here..\"")
        pScript.heal(player, 14)
        pScript.addItem(player, itemStats.healthPotion())
        print("The hooded figure points to a large open doorway.")
        print("\"There's the exit. Good luck with your journey.\"")
        input("The hooded figures leave. [Continue]")
    elif ch3.title() in ["I Seek Riches", "Riches", "Gold", "Money"]:
        print("\"Ah.. Riches, yes? Then you've come to the right place..\"")
        print("The hooded figure reaches up and breaks a large branch from the tree.")
        print("He handles it with expertise and carefully places it in your bag.")
        pScript.earnGold(player, 320)
        print("\"You have proven yourself. Continue your adventure.\"")
        #input("As the hooded figures leave, you notice something glimmering in your bag..[Continue]")
        #add some item here.
    elif ch3.title() in ["I Need Healing", "Heal", "Health", "Recover"]:
        print("\"You have taken much damage over your journey so far. Here\"")
        pScript.heal(player, 27)
        if len(player.curses) > 0:
            rm = []
            for curse in player.curses:
                rm.append(curse)
            for curse in rm:
                curse.remove(player)
            print("You feel light and healthy.")
        print("\"The exit is to your right. Good luck on your adventure.\"")
        input("The hooded figures leave. [Continue]")
    else:
        baseM.checkCommands(ch3, player)
        waitp3(player)
    return player
Esempio n. 6
0
def run(player, setEnemies=None):
    if setEnemies is not None:
        enemies = setEnemies[0]
        wording = setEnemies[1]
    else:
        enemies = [Ghoul()]
        wording = []
        rng = random.randint(1, 100)
        if rng <= 15:
            for i in range(3):
                enemies.append(Ghoul())
            wording = ["horde of ghouls", "ghouls", "they hit"]
        else:
            wording = ["ghoul", "ghoul", "it hits"]
    print("You encountered a {}!".format(wording[0]))
    choice = input("What do you do? [Fight, Run]\n")
    if choice.title() in ["Fight", "F"]:
        print("You engage the {} in combat!".format(wording[1]))
        baseM.runBasicFight(player, enemies)
    elif choice.title() in ["Run", "Flee", "R"]:
        print("As you fearfully flee the angry {}, {} you, dealing {} damage.".
              format(wording[1], wording[2], 7 * len(enemies)))
        player.health -= 7 * len(enemies)
    else:
        baseM.checkCommands(choice, player)
        run(player, (enemies, wording))
    return player
Esempio n. 7
0
def run(player):
    print("You enter a seemingly empty room. [continue]")
    print("As you walk further in, you begin to feel dizzy.[continue]")
    print("You see two doors at the end of the room.[continue]")
    print("What do you do?")
    while True:
        choice = input("[Go through left door, Go through right door, Leave]")
        if choice.lower() in ["left", "left door", "go through left door"]:
            print(
                "You start towards the left door when suddenly, your body moves toward the right door. [continue]"
            )
            print(
                "You struggle to take control but it is too late. [continue]")
            print(
                "You enter the right door which reveals a golden goblet with a strange glowing liquid. [continue]"
            )
            while True:
                print("What do you do?")
                choice = input("[Drink the liquid, Leave]")
                if choice.lower() in ["drink", "liquid", "drink the liquid"]:
                    print(
                        "You drink the liquid and feel refreshed. You regain 30 health"
                    )
                    pScript.heal(player, 30)
                    break
                elif choice.lower() in ["leave"]:
                    print("You leave the room dumbfounded but unscathed")
                    break
                else:
                    baseM.checkCommands(choice, player)
            break
        elif choice.lower() in [
                "right", "right door", "go through right door"
        ]:
            print(
                "You start towards the right door when suddenly, your body moves toward the left door. [continue]"
            )
            print(
                "You struggle to take control but it is too late. [continue]")
            print(
                "You enter the left door which reveals a statue with red glowing eyes. [continue]"
            )
            print("Suddenly the statue begins to move")
            baseM.runBasicFight(player, [Gargoyle()])
            break
        elif choice.lower() in ["leave"]:
            print(
                "As you leave the room, your headache disappears. [continue]")
            break
        else:
            baseM.checkCommands(choice, player)
    return player
Esempio n. 8
0
def stealLeaves(player):
    print("You pick some leaves and place them into your bag..")
    pScript.earnGold(player, 13)
    chc = input("You feel great, but the other leaves look even more appealing...[Climb, Leave]")
    if chc.title() in ["Climb","C","More","M"]:
        print("You start to climb up the tree, collecting leaves as you go..")
        print("You continue climbing the tree.. As you reach the top, the tree starts to tip.")
        pScript.earnGold(player, 62)
        player.health -= 14
        print("You fall off the tree, taking 14 damage.")
    elif chc.title() in ["Leave", "L"]:
        print("You leave the room with the leaves in your bag.")
        return player
    else:
        baseM.checkCommands(chc, player)
        stealLeaves(player)
Esempio n. 9
0
def pickWeapon(player):
    choice = input("[Glowing Sword, Glowing Shield, Glowing Orb]")
    if choice.title() in [
            "Glowing Sword", "Sword", "Attack", "Offense", "Damage"
    ]:
        print("You pick up the glowing sword and leave the room.")
        player.items.append(itemStats.glowingSword())
    elif choice.title() in [
            "Glowing Shield", "Shield", "Defense", "Block", "Armor"
    ]:
        print("You pick up the glowing shield and leave the room.")
        player.items.append(itemStats.glowingShield())
    elif choice.title() in ["Glowing Orb", "Orb", "Abracadabra", "Magic"]:
        print("You pick up the glowing orb and leave the room.")
        player.items.append(itemStats.glowingOrb())
    else:
        baseM.checkCommands(choice, player)
        pickWeapon(player)
def run(player):
    enemies = [random.choice([Grenlim(), Snak(), Sorcerer()])]
    print("You encountered a {}!".format(enemies[0].type))
    choice = input("What do you do? [Fight, Run]\n")
    if choice.title() in ["Fight", "F", "Attack"]:
        print("You engage the {} in combat!".format(enemies[0].type))
        baseM.runBasicFight(player, enemies)
    elif choice.title() in ["Flee", "Run", "R"]:
        print("You run away from the {} and it deals {} damage to you.".format(
            enemies[0].type, enemies[0].baseDamage))
        if type(enemies[0]) == Snak:
            print("The Snak envenomated you with its attack!")
            player.curses.append(toxins())
        player.health -= enemies[0].baseDamage
    else:
        baseM.checkCommands(choice, player)
        run(player)
    return player
Esempio n. 11
0
def run(player):
    print("A golden idol stands in the middle of the hallway")
    print("Hack pieces off or touch the idol?")
    choice = input("[hack pieces, touch idol]")
    thisIdol = Idol()
    while True:
        if choice.lower() in ["hack pieces", "hack", "h"]:
            baseM.runBasicFight(player, [thisIdol], 0, True, 5)
            print("You broke " + str(round((1000 - thisIdol.health()) / 2)) +
                  " worth of gold fragments off the idol!")
            player.gold += round((1000 - thisIdol.health()) / 2)
            return player
        elif choice.lower() in ["touch idol", "touch", "t"]:
            print("The idol shrinks in size until it can fit in your backpack")
            player.items.append(itemStats.idol())
            return player
        else:
            baseM.checkCommands(choice, player)
def run(player):
    print("You encountered a Zombo-man!")
    enemies = [Zomboman()]
    for itm in player.items:
        if itm.name == "Zomboman Guts":
            enemies.append(Zomboman())
    choice = input("What do you do? [Fight, Run]\n")
    if choice.title() in ["Fight", "F"]:
        print("You engage the Zombo-man in combat!")
        baseM.runBasicFight(player, enemies)
    elif choice.title() in ["Run", "Flee", "R"]:
        print(
            "As you fearfully flee the angry Zombo-man, it punches you, dealing 1 damage."
        )
        player.health -= 1
    else:
        baseM.checkCommands(choice, player)
        run(player)
    return player
Esempio n. 13
0
def run(player):
    print("At the center of the room lies a large golden tree. The branches look sharp and irregular..")
    print("You approach the tree. Your urge to steal the golden leaves is almost irresistible...")
    choice = input("[Steal Leaves, Break Branches, Destroy Tree, Wait, Leave]")
    if choice.title() in ["Steal", "Rob", "Leaves", "Leaf", "S", "Steal Leaves"]:
        stealLeaves(player)
    elif choice.title() in ["Break", "Branches", "Branch", "Brk", "B", "Break Branches"]:
        print("You break off a branch of the tree. It's a lot heavier than you expected, and its irregular, sharp edges cut you.")
        pScript.earnGold(player, 163)
        pScript.damage(player, 30)
    elif choice.title() in ["Destroy", "Tree", "D", "Destroy Tree"]:
        destree(player)
    elif choice.title() in ["Wait", "Stay", "Stand", "W"]:
        wait(player)
    elif choice.title() in ["Leave", "L"]:
        input("You leave the room, not wanting to be greedy. [Continue]")
    else:
        baseM.checkCommands(choice, player)
        run(player)
    return player
Esempio n. 14
0
def run(player):
    items = {}
    allItems = {sword():100, shield():100, healthPotion():20, antidote():80, armoredShirt():150, torch():35, orbOfThunder():50}
    for i in range(10):
        itm = random.choice(list(allItems.keys()))
        items[itm] = allItems[itm]
    print("Welcome, Traveller! Buy something at my shop!")
    choice = input("What do you do? [Buy, Leave]\n")
    if choice.title() in ["Buy", "B"]:
        listItems(items)
        im = None
        while im not in ["leave", "l"]:
            im = input("What would you like to buy? (type 'Leave' to leave).\n")
            im = baseM.strToClsNm(im)
            found = False
            if im in ["leave", "l"]:
                break
            for i in list(items.keys()):
                if baseM.strToClsNm(i.name) == im:
                    found = True
                    if items[i] > player.gold:
                        print(random.choice(["You don't have enough money for that..", "Don't be a thief!"]))
                    else:
                        try:
                            itm = eval(im)()
                            print("You bought a {}".format(itm))
                            player.gold -= items[i]
                            player.items.append(itm)
                            items.pop(i)
                        except NameError:
                            print("Are you sure that's an item?")
                            itm = None
            if not found:
                print("This shop doesn't have that.")
            baseM.checkCommands(im, player)
    elif choice.title() in ["Leave", "L"]:
        print("You walk past this 'shop' and continue your journey...")
    else:
        baseM.checkCommands(choice, player)
        run(player)
    return player
Esempio n. 15
0
def getInput(Player,
             outputs,
             prompt=""):  # a better Input function. Has built-in UI commands.
    output = False
    while output == False:
        console = input(prompt)
        if console.lower() in ["help", "?"]:
            playerhelp()
        elif console.lower() in ["status", "stat", "me", "stats"]:
            status(Player)
        elif console.lower() in ["inventory", "inv", "items", "bag"]:
            inventory(Player)
        elif console.lower() in ["curses", "curse", "crs"]:
            curses(Player)
        elif console.lower() in ["options", "opt", "options?", "opt?"]:
            print(outputs)
        elif console.lower() in outputs:
            output = True
        else:
            baseM.checkCommands(console, Player)
    return console.lower()
Esempio n. 16
0
def run(player):
    print(
        "You enter a large hallway with countless armaments of every kind covering the walls."
    )
    print(
        "Near the center of the hall you notice an enormous anvil with an equally enormous hammer resting on it."
    )
    print(
        "As you approach the anvil, the air around you seems to grow warmer and warmer. The blistering heat seems to lightly singe your skin.."
    )
    choice = input("[Continue to Anvil, Inspect Walls, Leave]")
    if choice.title() in [
            "Continue To Anvil", "Continue", "Anvil", "Hammer", "C"
    ]:
        print(
            "You continue walking toward the anvil and begin to wonder how any creature could survive in these feverish temperatures."
        )
        print(
            "At last! You reach the anvil! As you gaze in wonder at the sheer magnitude of the anvil and its hammer, a loud, booming voice distracts you from your thoughts."
        )
        print("\"WELCOME MORTAL! WHAT BRINGS YOU HERE TODAY?\"")
        print("While loud, the voice sounds relatively harmless and inviting.")
        bigManChoice1(player)
    elif choice.title() in ["Inspect Walls", "Inspect", "Walls", "I"]:
        print(
            "Moving away from the scorching heat of the anvil, you admire the masterful craftmanship of the weapons on the walls."
        )
        print(
            "While many of the armaments stand over three times your height, a few smaller, glowing weapons catch your eye."
        )
        pickWeapon(player)
    elif choice.title() in ["Leave", "L"]:
        print(
            "Afraid to continue into the heat, you hurry to the door and leave."
        )
    else:
        baseM.checkCommands(choice, player)
        run(player)
    return player
Esempio n. 17
0
def run(player):
    print(
        "You enter a room full of mirrors. Everywhere you look you see yourself, yet they all seem.. distorted..."
    )
    print(
        "You walk up to a mirror and place your hand on it. You feel your hand start to phase through..."
    )
    choice = input("What do you do? [Continue, Leave]\n")
    if choice.title() in ["Continue", "C"]:
        print(
            "You continue, pushing through the mirror and reach the other side."
        )
        ps, texts = initPlayers()
        baseM.writePlayer(player, "data/mirrorsM.txt")
        p = random.choice(ps)
        txt = texts[ps.index(p)]
        print(
            "You look back at the mirror from which you came and see yourself there."
        )
        input("As you leave the room, you feel... {}..[Continue]".format(txt))
        player.gold = p.gold
        for i in range(3):
            player.items.remove(random.choice(player.items))
        player.items += p.items
        player.health = p.health
        return player
    elif choice.title() in ["Leave", "L"]:
        print("You jump back, startled, feeling a sharp pain in your hand.")
        player.health -= 12
        baseM.checkPlayer(player)
        if player.alive:
            input("You leave the room as if nothing has happened..[Continue]")
        else:
            return player
    else:
        baseM.checkCommands(choice, player)
        run(player)
    return player
Esempio n. 18
0
def run(player):
    # runs the room
    print(
        "You enter a room and see a bluish-purple heart floating in the middle..."
    )
    choice = input("What do you do? [Attack, Ignore, Run]\n")
    if choice.title() in ["Attack", "A", "Atk"]:
        print(
            "You prepare to attack the heart. It bleeds but is ultimately unharmed."
        )
        print(
            "The heart suddenly attacks you back! You try to defend but your best efforts seem in vain..."
        )
        baseM.runBasicFight(player, [Heart()])
        if player.alive:
            input(
                "As the heart falls, you notice a bluish-purple liquid in your bag. [Continue]"
            )
    elif choice.title() in ["Ignore", "I"]:
        ignore(player)
    elif choice.title() in ["Run", "R"]:
        print(
            "You flee the room as fast as your legs can take you. Looking back, you see the heart slowly moving toward you..."
        )
        input(
            "The heart starts to drain your health and your consciousness starts to fade....[Continue]"
        )
        print(
            "Suddenly, you see an open doorway above you! You grab the ledge and pull yourself out of the room gravely injured, but ultimately alive."
        )
        dmg = player.health - 1
        player.health = 1
        sel = input(
            "You take {} damage as you escape...[Continue]".format(dmg))
    else:
        baseM.checkCommands(choice, player)
        run(player)
    return player
Esempio n. 19
0
def ignore(player):
    print("You walk past the heart to the door at the end of the room.")
    choice = input(
        "The door slams shut! Next to it lies a slip of paper in a crack in the wall..[Take Paper, Leave it]"
    )
    if choice.title() in ["Take", "T", "Paper", "P", "Take Paper"]:
        print("As you grab the paper, the heart begins draining your life. ")
        print("You take the paper, and the door opens slowly")
        print(
            "As soon as the door opens you hurry through and escape to the next room while the heart remains trapped in its own."
        )
        input("You take 20 damage.")
        player.health -= 20
        baseM.checkPlayer(player)
    elif choice.title() in ["Leave", "L", "Leave It"]:
        print(
            "The heart moves toward you and you feel the life start to slowly drain from your body."
        )
        for i in player.items:
            try:
                if issubclass(type(i), itemStats.basicSword):
                    print(
                        "You attack the door with your weapons, ultimately destroying it."
                    )
                    player.health -= 30
                    input("You take 30 damage.")
                    baseM.checkPlayer(player)
                    return
            except TypeError:
                pass
        print(
            "You cannot open the door, and the heart fully drains your life.")
        player.health = 0
        player.alive = False
    else:
        baseM.checkCommands(choice, player)
        ignore(player)
Esempio n. 20
0
def run(player):
    print(
        "You walk into a large room with three doors glowing an ominous dark purple."
    )
    choice = input("Which door do you choose? [Left, Middle, Right]")
    if choice.title() in ["Left", "L"]:
        print("You open the left door and feel the dark energy surround you.")
        itm = random.choice(player.items)
        eph = curseScript.ephemeral()
        eph.target = itm
        print(
            "Your {} looks empowered by the dark energies, but it also seems to start to fade as you hold it."
            .format(itm))
        if issubclass(type(itm), itemStats.basicSword):
            itm.damage *= 2
        elif issubclass(type(itm), itemStats.basicDefensiveItem):
            itm.block *= 2
        player.curses.append(eph)
    elif choice.title() in ["Middle", "M"]:
        print(
            "Behind the door lies a tall mound of gold with the same purple glow."
        )
        print(
            "Filled with greed, you collect up all the gold. However, you begin to feel weak and frail.."
        )
        pScript.earnGold(player, 150)
        player.curses.append(curseScript.exhaustion())
    elif choice.title() in ["Right", "R"]:
        print(
            "As you open the door, the purple gas seeps out and surrounds you. The roomlies empty in front of you.."
        )
        print("You feel confident, as though nothing can stand in your way.")
        player.curses.append(curseScript.hubris())
    else:
        baseM.checkCommands(choice, player)
        run(player)
    return player
Esempio n. 21
0
def wait(player, repeat = False):
    if repeat:
        ch1 = input("Nothing seems to be happening...[Keep Waiting, Leave]")
    else:
        print("You wait. You feel like someone's watching you..")
        for i in range(3):
            time.sleep(2)
            print(".",end="")
            player.timeClimbing+=2
        ch1 = input("Nothing seems to be happening...[Keep Waiting, Leave]")
    if ch1.title() in ["Stay", "Keep", "Wait", "Waiting", "Keep Waiting"]:
        for i in range(3):
            for j in range(3):
                time.sleep(2)
                print(".",end="")
                player.timeClimbing+=2
            print()
        waitp2(player)
    elif ch1.title() in ["Leave","L"]:
        print("You exit the room without a sound.")
    else:
        baseM.checkCommands(ch1, player)
        wait(player, True)
    return player
Esempio n. 22
0
def bigManChoice2(player):
    choice = input("[Sword, Shield, Magic]")
    base = None
    spec = ""
    if choice.title() in ["Sword", "Attack", "Offense", "Damage"]:
        base = itemStats.basicSword
        spec = "self.name = 'Indestructible Sword'\nself.desc = 'A weapon created in the giant forge. It seems indestructible'\nself.damage = 15"
    elif choice.title() in ["Shield", "Defense", "Block", "Armor"]:
        base = itemStats.basicDefensiveItem
        spec = "self.name = 'Indestructible Shield'\nself.desc = 'A shield created in the giant forge. It seems indestructible'\nself.block = 15"
    elif choice.title() in ["Magic", "Abracadabra"]:
        base = itemStats.basicMagicItem
        spec = "self.name = 'Indestructible Staff'\nself.desc = 'A magical staff created in the giant forge. It seems indestructible'"
    else:
        baseM.checkCommands(choice, player)
        bigManChoice2(player)

    class customItem(base):
        def __init__(self):
            exec(spec)
            self.value = 177

    player.items.append(customItem())
    print("You obtained the {}!".format(customItem().name))