def addExperience(enemy1, enemy2, enemy3): music.killMusic() expGain = checkXP(enemy1) expGain += checkXP(enemy2) expGain += checkXP(enemy3) dat.characterXP += int(expGain) checkPlayerLV()
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
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
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
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()
def showExpGain(enemy1, enemy2, enemy3): music.killMusic() expGain = checkXP(enemy1) expGain += checkXP(enemy2) expGain += checkXP(enemy3) return expGain