Example #1
0
def addExperience(enemy1, enemy2, enemy3):
    music.killMusic()
    expGain = checkXP(enemy1)
    expGain += checkXP(enemy2)
    expGain += checkXP(enemy3)
    dat.characterXP += int(expGain)
    checkPlayerLV()
Example #2
0
def runAway():
    music.killMusic()
    dat.sceneTransition = 1
    os.system('cls')
    print '\n\n\n\n\n\n You Successfully ran away!!!'
    os.system('pause')
    return
Example #3
0
def winBattle(gold, exp):
    music.killMusic()
    dat.sceneTransition = 1
    os.system('cls')
    print ('\n\n\n\n\n\n You Win!\n\n You have obtained {} gold and {} exp!!!\n\n\n\n\n\n\n\n').format(gold,exp)
    os.system('pause')
    return
Example #4
0
def loseBattle():
    music.killMusic()
    dat.sceneTransition = 1
    music.playTrackLooping('Sounds/Game-Over-Theme.wav')
    os.system('cls')
    print '\n\n\n\n\n\n You Lose!!!'
    os.system('pause')
    return
Example #5
0
def Refresh(menuCode):
    if menuCode == 0:
        MenuScreen.characterMenu()
    if menuCode == 1:
        if dat.sceneTransition == 1:
            music.killMusic()
            #music.playTrackLooping("Sounds/FILENAME.wav")
            dat.sceneTransition = 0
        dat.Location = 'town'
        MenuScreen.townMenu()
    if menuCode == 2:
        if dat.sceneTransition == 1:
            music.killMusic()
            #music.playTrackLooping("Sounds/FILENAME.wav")
            dat.sceneTransition = 0
        dat.Location = 'shop'
        MenuScreen.shopMenu()
    if menuCode == 3:
        if dat.sceneTransition == 1:
            music.killMusic()
            #music.playTrackLooping("Sounds/FILENAME.wav")
            dat.sceneTransition = 0
        dat.Location = 'field'
        MenuScreen.fieldMenu()
    if menuCode == 4:
        MenuScreen.inventoryMenu()
Example #6
0
def showExpGain(enemy1, enemy2, enemy3):
    music.killMusic()
    expGain = checkXP(enemy1)
    expGain += checkXP(enemy2)
    expGain += checkXP(enemy3)
    return expGain