Пример #1
0
def showInventory():
    global xp_level
    global level
    global money

    money = monster_money()
    playerHealth = health_xp()
    level = xp_to_level()
    xp = xp_add()

    print(" ")
    print("     Mana:")
    print("     " + str(mana))
    print(" ")
    print("     Health:")
    print("     " + str(playerHealth))
    print(" ")
    print("     Level:")
    print("     " + str(level))
    print(" ")
    print("     xp:")
    print("     " + str(xp))
    print(" ")
    print("     Money:")
    print("     " + str(money))
    print(" ")
    print "Input command"
Пример #2
0
def showInventory():
    global xp_level
    global level
    global money

    money = monster_money()
    playerHealth = health_xp()
    level = xp_to_level()
    xp = xp_add()

    print (" ")
    print ("     Mana:")
    print ("     " + str(mana))
    print (" ")
    print ("     Health:")
    print ("     " + str(playerHealth))
    print (" ")
    print ("     Level:")
    print ("     " + str(level))
    print (" ")
    print ("     xp:")
    print ("     " + str(xp))
    print (" ")
    print ("     Money:")
    print ("     " + str(money))
    print (" ")
    print "Input command"
Пример #3
0
def store():
    global Sword
    global BowAndArrow
    global money

    money = monster_money()

    Sword, BowAndArrow = weapons_return()
    print "   Store"
    time.sleep(1)
    print ""
    if Sword == True and BowAndArrow == True:
        print "  Sorry, we're out of stock!"
        upgrade()
    if Sword == False:
        print "   Sword -- $100 -- +1 attack damage"
        time.sleep(1)
    if BowAndArrow == False:
        print "   Bow an Arrow -- $150 -- +2 attack damage"
        time.sleep(1)

    print ("   You have $" + str(money))
    time.sleep(1.5)
    print ""
    print ("   Do you want to buy anything today?('yes' or 'no')  ")
    buy = raw_input("   > ").lower()
    if buy == "yes":
        print ("   What do you want to buy?('Sword','Bow and Arrow' or 'nothing')")
        choice = raw_input("   > ").lower()
        if choice == "bow and arrow":
            if money >= 150:
                print "   You just bought a Bow and Arrow!"
                BowAndArrow_change()
                bow_and_arrow_money()
                time.sleep(1)
                print ""
                print "Input Command"
            else:
                print ("   You don't have enough money.")
                time.sleep(1)
                print ""
                print "Input Command"
        if choice == "sword":
            if money >= 100:
                print "   You just bought a Sword!"
                Sword_change()
                sword_money()
                time.sleep(1)
                print ""
                print "Input Command"
            else:
                print "   You don't have enough money."
                time.sleep(1)
                print ""
                print "Input Command"
        if choice == "nothing":
            print "   Now get out there and hammer those monsters!"
            time.sleep(1)
            print ""
            print "Input Command"

    if buy == "no":

        upgrade()
        print "   Now get out there and hammer those monsters!"
        time.sleep(1)
        print ""
        print "Input Command"
Пример #4
0
global Sword
global BowAndArrow
global money

import time
from battleEngine import monster_money
from battleEngine import sword_money
from battleEngine import bow_and_arrow_money
from battleEngine import playerHealthDev
from battleEngine import BowAndArrow_change
from battleEngine import Sword_change
from battleEngine import weapons_return
from battleEngine import bow_and_arrow_upgrade
from battleEngine import sword_upgrade

money = monster_money()


def store():
    global Sword
    global BowAndArrow
    global money

    money = monster_money()

    Sword, BowAndArrow = weapons_return()
    print "   Store"
    time.sleep(1)
    print ""
    if Sword == True and BowAndArrow == True:
        print "  Sorry, we're out of stock!"
Пример #5
0
def store():
    global Sword
    global BowAndArrow
    global money

    money = monster_money()

    Sword, BowAndArrow = weapons_return()
    print "   Store"
    time.sleep(1)
    print ""
    if Sword == True and BowAndArrow == True:
        print "  Sorry, we're out of stock!"
        upgrade()
    if Sword == False:
        print "   Sword -- $100 -- +1 attack damage"
        time.sleep(1)
    if BowAndArrow == False:
        print "   Bow an Arrow -- $150 -- +2 attack damage"
        time.sleep(1)

    print("   You have $" + str(money))
    time.sleep(1.5)
    print ""
    print("   Do you want to buy anything today?('yes' or 'no')  ")
    buy = raw_input("   > ").lower()
    if buy == "yes":
        print(
            "   What do you want to buy?('Sword','Bow and Arrow' or 'nothing')"
        )
        choice = raw_input("   > ").lower()
        if choice == "bow and arrow":
            if money >= 150:
                print "   You just bought a Bow and Arrow!"
                BowAndArrow_change()
                bow_and_arrow_money()
                time.sleep(1)
                print ""
                print "Input Command"
            else:
                print("   You don't have enough money.")
                time.sleep(1)
                print ""
                print "Input Command"
        if choice == "sword":
            if money >= 100:
                print "   You just bought a Sword!"
                Sword_change()
                sword_money()
                time.sleep(1)
                print ""
                print "Input Command"
            else:
                print "   You don't have enough money."
                time.sleep(1)
                print ""
                print "Input Command"
        if choice == "nothing":
            print "   Now get out there and hammer those monsters!"
            time.sleep(1)
            print ""
            print "Input Command"

    if buy == "no":

        upgrade()
        print "   Now get out there and hammer those monsters!"
        time.sleep(1)
        print ""
        print "Input Command"
Пример #6
0
global Sword
global BowAndArrow
global money

import time
from battleEngine import monster_money
from battleEngine import sword_money
from battleEngine import bow_and_arrow_money
from battleEngine import playerHealthDev
from battleEngine import BowAndArrow_change
from battleEngine import Sword_change
from battleEngine import weapons_return
from battleEngine import bow_and_arrow_upgrade
from battleEngine import sword_upgrade

money = monster_money()


def store():
    global Sword
    global BowAndArrow
    global money

    money = monster_money()

    Sword, BowAndArrow = weapons_return()
    print "   Store"
    time.sleep(1)
    print ""
    if Sword == True and BowAndArrow == True:
        print "  Sorry, we're out of stock!"