STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228131
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/36270236?noj=FRM36270236-16DC" width="1" height="1"></div>

Megaman RPG Engine.swf

This is the info page for
Flash #56354

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 2 { } movieClip 3 { frame 1 { apos = random(2); ab = 10 - random(10); if (ab == 0) { ab = -30; } avaluex = (random(6) - random(6)) * 75; avaluey = (random(2) - random(2)) * 75; box1._x = avaluex; box1._y = avaluey; } frame 2 { axpos = (eval(box1))._x; aypos = (eval(box1))._y; if (apos == 0) { box1._x = axpos + ab; } else { if (apos == 1) { box1._y = aypos + ab; } } } frame 3 { if (axpos > 250 || axpos < -250 || aypos > 200 || aypos < -200) { gotoAndPlay(1); } else { gotoAndPlay(2); } } } movieClip 4 particleFX { frame 1 { i = '1'; amount = '10'; boxtotal._visible = '0'; } frame 2 { duplicateMovieClip('boxtotal', 'boxtotal' + i, 1000 - i); eval('boxtotal' + i)._alpha = random(50) + 10; i = Number(i) + 1; } frame 3 { if (Number(i) < Number(amount)) { gotoAndPlay(2); } else { gotoAndPlay(1); } } } // unknown tag 88 length 84 movieClip 9 picture4 { } movieClip 13 picture2 { } movieClip 17 picture3 { } movieClip 21 picture1 { } movieClip 25 picture0 { } movieClip 28 { } movieClip 29 readyClipFinal { frame 12 { _global.voice0.start(); } frame 61 { _global.splashIntroLayer.play(); this.stop(); } } movieClip 31 { } // unknown tag 88 length 84 movieClip 34 { } movieClip 35 { frame 1 { if (_global.victorySplashMovieLayer.levelUpArray.length <= 0) { stop(); } else { gotoAndPlay('loop'); } } frame 5 { iData = eval('_root.chrIData_' + _root.party_Order[_global.victorySplashMovieLayer.levelUpArray[0]]); levelText.inText.text = iData[0] + ' LEVELED UP!'; _global.fx7.start(); } frame 56 { _global.victorySplashMovieLayer.levelUpArray.shift(); if (_global.victorySplashMovieLayer.levelUpArray.length <= 0) { stop(); } else { gotoAndPlay('loop'); } } } movieClip 40 xpPoints { frame 1 { _global.xpAndSkillLayer = this; } frame 11 { quickSkip = new Object(); quickSkip.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(quickSkip); _global.xpAndSkillLayer.gotoAndPlay('endClip'); delete quickSkip; _global.fx6.start(); } }; Key.addListener(quickSkip); xpText.text = '+' + _global.currentScriptLayer.totalXP; spText.text = '+' + _global.currentScriptLayer.totalSP; _global.victorySplashMovieLayer.levelUpArray; } frame 33 { stop(); } frame 39 { Key.removeListener(quickSkip); _global.victorySplashMovieLayer.play(); stop(); } } movieClip 43 techPoints { frame 1 { _global.xpAndSkillLayer = this; } frame 11 { whoText.text = (eval('_root.chrIData_' + _root.learnedNewSkill[_root.learnedNewSkill.length - 1][0]))[0] + ' LEARNED A NEW MOVE!'; newMoveText.text = _root.learnedNewSkill[_root.learnedNewSkill.length - 1][1]; _root.learnedNewSkill.pop(); _global.fx7.start(); } frame 39 { if (_root.learnedNewSkill.length <= 0) { _global.victorySplashMovieLayer.play(); stop(); } if (_root.learnedNewSkill.length >= 1) { gotoAndPlay('moveLoop'); } } } movieClip 46 rewardsMovieClip { frame 1 { rewardText = ''; rewardBox._yscale = 40 + _global.victorySplashMovieLayer.rewardCounter * 10; if (_global.victorySplashMovieLayer.rewardCounter == 0) { rewardBox._yscale = 50; } quickSkip = new Object(); quickSkip.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(quickSkip); this.gotoAndPlay('endClip'); _global.fx6.start(); delete quickSkip; } }; Key.addListener(quickSkip); } frame 15 { Key.removeListener(quickSkip); } frame 16 { rewards = ''; if (_global.victorySplashMovieLayer.rewardCounter == 0) { rewardBox._yscale = 50; rewards = 'Nothing aquired.'; } else { varX = 1; while (varX <= _global.victorySplashMovieLayer.rewardCounter) { randomNumber = Math.round(Math.random() * 5); rewards += 'x1 ' + (eval('_root.item_' + randomNumber))[0] + '\r'; _global.fx820.start(); ++_root.itemListData[randomNumber]; if (_root.itemListData[randomNumber] >= 99) { _root.itemListData[randomNumber] = 99; } ++varX; } } rewardTextBox.text = rewards; } frame 28 { quickStop = new Object(); quickStop.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(quickStop); gotoAndPlay('clipEnd'); _global.fx6.start(); delete quickStop; } }; Key.addListener(quickStop); stop(); } frame 42 { Key.removeListener(quickSkip); _global.victorySplashMovieLayer.play(); stop(); } } movieClip 48 { } movieClip 50 { frame 1 { list = ''; varX = 0; while (varX <= 10) { if (_root.battle_ObjectivesMain[varX] == true) { list += _root.battle_ObjectiveList[varX][0]; } ++varX; } listText.text = list; } } movieClip 52 { } movieClip 54 { frame 1 { list = ''; varX = 0; while (varX <= 10) { if (_root.battle_ObjectivesMain[varX] == true) { if (varX == 0) { if (_global.currentBattleLayer.battleStatistics[0][3][0] >= _global.currentScriptLayer.totalEnemies) { list += 'ACCOMPLISHED \r'; } else { list += 'FAILED \r'; } } if (varX == 1 or varX == 2 or varX == 3 or varX == 4) { if (_global.currentBattleLayer.battleStatistics[0][4][0] == true) { list += 'ACCOMPLISHED \r'; } else { list += 'FAILED \r'; } } } ++varX; } listText.text = list; } } movieClip 56 { frame 1 { list = ''; varX = 0; while (varX <= 20) { if (_root.battle_ObjectivesSec[varX] == true) { list += _root.battle_secObjectiveList[varX][0]; } ++varX; } listText.text = list; } } movieClip 58 { frame 1 { list = ''; _global.victorySplashMovieLayer.rewardCounter = 0; varX = 0; while (varX <= _root.battle_secObjectiveList.length) { if (_root.battle_ObjectivesSec[varX] == true) { if (varX == 0) { if (_global.currentBattleLayer.battleStatistics[1][0][0] <= 0) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 1) { if (_global.currentBattleLayer.battleStatistics[0][2][0] >= 5) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 2) { if (_global.currentBattleLayer.battleStatistics[1][1][0] >= 1) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 3) { if (_global.currentScriptLayer.battleStatistics[1][2][0] <= 0) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 4) { if (_global.currentBattleLayer.battleStatistics[0][5][2] <= 0) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 5) { if (_global.currentBattleLayer.battleStatistics[1][0][0] >= 5) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 6) { totalAttacks = _global.currentBattleLayer.battleStatistics[0][5][0] + _global.currentBattleLayer.battleStatistics[0][5][1] + _global.currentBattleLayer.battleStatistics[0][5][2] + _global.currentBattleLayer.battleStatistics[0][5][3]; if (totalAttacks >= 20) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } delete totalAttacks; } if (varX == 7) { if (_global.currentBattleLayer.battleStatistics[0][5][0] >= 1 and _global.currentBattleLayer.battleStatistics[0][5][1] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][2] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][3] <= 0) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 8) { if (_global.currentBattleLayer.battleStatistics[0][5][1] >= 1 and _global.currentBattleLayer.battleStatistics[0][5][0] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][2] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][3] <= 0) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 9) { if (_global.currentBattleLayer.battleStatistics[0][5][2] >= 1 and _global.currentBattleLayer.battleStatistics[0][5][1] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][0] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][3] <= 0) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } if (varX == 10) { if (_global.currentBattleLayer.battleStatistics[0][5][3] >= 1 and _global.currentBattleLayer.battleStatistics[0][5][0] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][1] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][2] <= 0) { list += 'DONE \r'; ++_global.victorySplashMovieLayer.rewardCounter; } else { list += 'NOT MET \r'; } } } ++varX; } listText.text = list; } } movieClip 59 objectivesCleared { frame 1 { _global.objectiveListLayer = this; quickSkip = new Object(); quickSkip.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(quickSkip); _global.objectiveListLayer.gotoAndPlay('firstClick'); _global.fx6.start(); delete quickSkip; } }; Key.addListener(quickSkip); } frame 125 { Key.removeListener(quickSkip); } frame 126 { Key.removeListener(quickSkip); } frame 132 { quickSkip = new Object(); quickSkip.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(quickSkip); _global.objectiveListLayer.gotoAndPlay('endClip'); _global.fx6.start(); delete quickSkip; } }; Key.addListener(quickSkip); stop(); } frame 137 { Key.removeListener(quickSkip); } frame 144 { Key.removeListener(quickSkip); _global.victorySplashMovieLayer.play(); stop(); } } movieClip 62 { } movieClip 63 missionClearClip { frame 18 { _global.fx44.start(); } frame 73 { _global.victorySplashMovieLayer.play(); stop(); } frame 92 { stop(); } } movieClip 64 { frame 1 { _global.backgroundLayer = this; _global.backgroundLayer.attachMovie('bg' + _global.currentBackground, 'background', 0, {'_x': 40, '_y': 30}); } frame 7 { stop(); } } movieClip 65 battleBG { frame 1 { _global.battleBGLayer = this; } frame 11 { stop(); } frame 14 { _global.currentScriptLayer.healthBarCode._visible = false; _global.currentScriptLayer.enemyDisplay._visible = false; } frame 26 { stop(); } frame 41 { _global.currentScriptLayer.enemyDisplay._visible = true; stop(); } frame 45 { tempCount = 0; } frame 48 { randomX = Math.round(Math.random() * 800); randomY = Math.round(Math.random() * 600); randomZ = Math.round(Math.random() * 100); attachMovie('bossExplosion', 'bossExplosion' + tempCount, tempCount, {'_x': randomX, '_y': randomY}); (eval('bossExplosion' + tempCount))._xscale = randomZ + 100; (eval('bossExplosion' + tempCount))._yscale = randomZ + 100; ++tempCount; } frame 55 { randomX = Math.round(Math.random() * 800); randomY = Math.round(Math.random() * 600); attachMovie('bossExplosion', 'bossExplosion' + tempList[tempCount], tempList[tempCount], {'_x': randomX, '_y': randomY}); ++tempCount; } frame 62 { gotoAndPlay('killLoop'); } frame 84 { gotoAndPlay('normal'); } frame 102 { gotoAndPlay('shakeContinue'); } frame 118 { gotoAndPlay('normal'); } frame 139 { gotoAndPlay('sicklyCamera'); } } movieClip 69 profilePic_Zero { } movieClip 72 profilePic_Sigma { } movieClip 75 profilePic_MegaMan { } movieClip 76 event0_Right { frame 6 { _root.mapTransferData = [['stage1_MainMC'], [0, 'fadeIn'], []]; _global.currentStage.gotoAndPlay('fadeOut'); } frame 7 { stop(); } } movieClip 77 event0_Fall { frame 6 { _root.mapTransferData = [['stage0_MainMC'], [1, 'fadeIn'], []]; _global.currentStage.gotoAndPlay('fadeOut'); } frame 7 { stop(); } } movieClip 104 0Intro { frame 1 { stop(); } frame 48 { gotoAndPlay('running'); } frame 62 { gotoAndPlay('standing'); } frame 87 { stop(); } frame 99 { gotoAndPlay('standing'); } } movieClip 107 { } movieClip 112 { } movieClip 113 { } movieClip 115 { } movieClip 117 { } movieClip 119 { } movieClip 123 { } movieClip 124 { } movieClip 127 { } movieClip 131 { } movieClip 134 { } movieClip 135 { } movieClip 137 { } movieClip 138 { } movieClip 139 { } movieClip 140 { } movieClip 141 { frame 1 { _global.pictureLayer = this; pictureNum = 0; } frame 4 { attachMovie('picture' + pictureNum, 'picture', 0, {'_x': 0, '_y': 0}); } frame 14 { ++pictureNum; if (pictureNum > 4) { pictureNum = 0; } stop(); } frame 15 { removeMovieClip(picture); } frame 25 { stop(); } } movieClip 142 { frame 322 { _global.pictureLayer.gotoAndPlay('newPicture'); } } button 149 { on (release) { startMovie(); } } movieClip 150 [NGL]_LOADER { frame 1 { function timerHandler() { if (!loadingComplete) { var v2 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * v2; trace(v2); if (v2 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop('loaded'); } return undefined; } } dt = getTimer() - time; time += dt; frameAccum += dt; updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return undefined; } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof clip[childName] == 'movieclip') { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _global.pictureLayer.gotoAndPlay('close'); play(); } _root.stop(); stop(); var FRAME_TIME = 33.33333333333334; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler(); } frame 2 { stop(); } frame 13 { stop(); _root.gotoAndPlay('afterPreLoad'); } } frame 1 { gameVariables = [[[_root.enemyFormationData[_global.battleNumber][2], 100, true, true]], [[true, 4], ['high']], [[false, false]]]; if (_root.gameVariables[1][1][0] == 'low') { gameResolution = [60, 165, 125]; } if (_root.gameVariables[1][1][0] == 'med') { gameResolution = [75, 100, 75]; } if (_root.gameVariables[1][1][0] == 'high') { gameResolution = [80, 80, 65]; } if (_root.gameVariables[1][1][0] == 'max') { gameResolution = [100, 0, 0]; } _global.beatGame = 0; } movieClip 153 { } movieClip 157 { frame 1 { introMask._xscale = _root.gameResolution[0]; introMask._yscale = _root.gameResolution[0]; introMask._x = _root.gameResolution[1]; introMask._y = _root.gameResolution[2]; } } movieClip 160 bg0 { } movieClip 163 bg1 { } movieClip 166 bg2 { } movieClip 169 bg3 { } movieClip 172 bg4 { } movieClip 175 bg5 { } movieClip 177 bgMask { } movieClip 178 { } movieClip 180 { } // unknown tag 88 length 91 movieClip 183 defeatedClip { frame 1 { _global.defeatedLayer = this; varX = _root.gameVariables[0][0][1]; while (varX >= 0) { (eval('_global.song' + _global.currentSong)).setVolume(varX); if (varX <= 5) { (eval('_global.song' + _root.gameVariables[0][0][0])).stop(); break; } varX -= 0.001; } } frame 240 { _root.slideMemory = 0; _global.help_Text = 'Try again?'; _root.slideMenu(0, 400, 1, ['Yes!', 'retry'], ['No.', 'endGame']); stop(); } frame 250 { stop(); } } movieClip 184 { } movieClip 185 battleSplashIntro { frame 1 { _global.splashIntroLayer = this; } frame 32 { attachMovie('readyClipFinal', 'splashClip', 0, {'_x': 0, '_y': 0}); } frame 44 { stop(); } frame 49 { removeMovieClip(splashClip); attachMovie('objectivesClip', 'objectivesClip', 0, {'_x': 0, '_y': 0}); } frame 54 { splashListener = new Object(); splashListener.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(splashListener); _global.objectiveListLayer.gotoAndPlay('clipEnd'); delete splashListener; } }; Key.addListener(splashListener); } frame 61 { stop(); } frame 80 { _global.currentScriptLayer.play(); stop(); } } movieClip 187 objectivesClip { frame 1 { _global.objectiveListLayer = this; } frame 132 { quickStop = new Object(); quickStop.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(quickStop); _global.objectiveListLayer.gotoAndPlay('endClip'); delete quickStop; } }; Key.addListener(quickStop); stop(); } frame 144 { Key.removeListener(quickStop); _global.splashIntroLayer.play(); stop(); } } movieClip 188 { } movieClip 189 victorySplashMovie { frame 1 { _global.victorySplashMovieLayer = this; varX = _root.gameVariables[0][0][1]; while (varX >= 0) { (eval('_global.song' + _global.currentSong)).setVolume(varX); if (varX <= _root.gameVariables[0][0][1] / 2) { break; } varX -= 0.001; } } frame 28 { _global.victorySplashMovieLayer.levelUpArray = []; levelCounter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { levelData = eval('_root.chrLevel_' + _root.party_Order[varX]); levelData[1] += _global.currentBattleLayer.totalXP; ++varX; } } frame 31 { counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { levelData = eval('_root.chrLevel_' + _root.party_Order[varX]); neededXP = levelData[0] * 100; earnedXP = _global.currentBattleLayer.totalXP; if (levelData[1] > neededXP) { _global.victorySplashMovieLayer.levelUpArray[levelCounter] = varX; ++levelData[0]; levelData[1] = Math.abs(levelData[1] - neededXP); ++counter; ++levelCounter; } ++varX; } } frame 34 { if (counter > 0) { gotoAndPlay('calXP'); } } frame 35 { attachMovie('missionClearClip', 'clearClip', 0, {'_x': 0, '_y': 0}); } frame 39 { stop(); } frame 43 { attachMovie('xpPoints', 'xpPoints', 30, {'_x': 0, '_y': 0}); } frame 48 { stop(); } frame 52 { if (_root.learnedNewSkill.length > 1) { attachMovie('techPoints', 'techPoints', 40, {'_x': 0, '_y': 100}); stop(); } else { gotoAndPlay('cleared'); } } frame 64 { removeMovieClip(techPoints); removeMovieClip(xpPoints); attachMovie('objectivesCleared', 'objectivesCleared', 10, {'_x': 0, '_y': 100}); } frame 71 { stop(); } frame 77 { objectivesCleared._alpha = 50; attachMovie('rewardsMovieClip', 'rewardsMovieClip', 20, {'_x': -80, '_y': 220}); } frame 84 { stop(); } frame 85 { varX = _root.gameVariables[0][0][1] / 2; while (varX >= 0) { (eval('_global.song' + _global.currentSong)).setVolume(varX); if (varX <= 10) { (eval('_global.song' + _root.gameVariables[0][0][0])).stop(); stopAllSounds(); clearClip.gotoAndPlay('close'); break; } varX -= 0.001; } } frame 94 { removeMovieClip(objectivesCleared); removeMovieClip(rewardsMovieClip); delete totalXP; delete totalSP; } frame 140 { _global.currentScriptLayer.gotoAndPlay('endVictory'); stop(); } } // unknown tag 88 length 91 movieClip 193 affBlind { } movieClip 196 affCircuit { } movieClip 199 affPoisen { } movieClip 202 affScan { } movieClip 205 affShock { } movieClip 219 { } movieClip 221 affSlow { } movieClip 224 brokenArmor { } movieClip 226 brokenBuster { } movieClip 228 brokenWeapon { } movieClip 231 buffRegain { } movieClip 232 affCircuit_p { } movieClip 234 affBlind_p { } movieClip 235 affPoisen_p { } movieClip 237 affScan_p { } movieClip 238 affShock_p { } movieClip 239 affSlow_p { } movieClip 240 brokenArmor_p { } movieClip 242 brokenBuster_p { } movieClip 243 brokenWeapon_p { } movieClip 244 buffRegain_P { } movieClip 246 beamShield { } movieClip 248 bioShield { } movieClip 250 busterShield { } movieClip 252 elecShield { } movieClip 254 fireShield { } movieClip 256 iceShield { } movieClip 258 meleeShield { } movieClip 260 omniShield { } movieClip 298 { frame 1 { _global.fx101.start(); } frame 1 { this._x += 10; } frame 5 { this._x += 10; } frame 8 { _global.fx102.start(); } frame 8 { this._x += 10; } frame 28 { stop(); } } movieClip 301 battle_BomberJoe { frame 5 { play(); } frame 22 { gotoAndStop('standing'); } frame 47 { gotoAndStop('standing'); } frame 66 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] - 15; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 75 { _global.fx31.start(); } frame 81 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 85 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; } frame 99 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 122 { _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } frame 139 { _global.fx60.start(); } frame 173 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 174 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 187 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 208 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 212 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 237 { gotoAndStop('standing'); } frame 261 { gotoAndStop('standing'); } frame 303 { _global.fx800.start(); } frame 309 { _global.fx800.start(); } frame 421 { stop(); } } movieClip 329 { } movieClip 352 battle_Boss1 { frame 49 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx112.start(); } frame 86 { play(); } frame 106 { gotoAndStop('standing'); } frame 131 { gotoAndPlay('standing'); } frame 156 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] * 4; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 162 { _global.fx304.start(); } frame 194 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 204 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 218 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; } frame 232 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 255 { _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } frame 297 { _global.fx409.start(); } frame 323 { _global.fx203.start(0.5); } frame 340 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 341 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 355 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 369 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] * 4; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 370 { _global.fx404.start(); } frame 392 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); _global.fx112.start(); stop(); } frame 441 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); _global.fx112.start(); stop(); } frame 442 { _global.fx202.start(); } frame 493 { gotoAndStop('standing'); _global.currentScriptLayer.play(); enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; } frame 523 { gotoAndStop('standing'); } frame 547 { gotoAndStop('standing'); } frame 552 { _global.battleBGLayer.gotoAndPlay('killBoss'); } frame 710 { _global.battleBGLayer.gotoAndPlay('normal'); stop(); } } movieClip 372 battle_CanonJoe { frame 4 { play(); } frame 22 { gotoAndStop('standing'); } frame 53 { gotoAndStop('standing'); } frame 78 { _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } frame 79 { _global.fx50.start(); } frame 108 { _global.fx112.start(); } frame 131 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 132 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 148 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 172 { gotoAndStop('standing'); } frame 193 { gotoAndStop('standing'); } frame 332 { stop(); } } movieClip 393 { } movieClip 395 { } movieClip 425 battle_Flamey { frame 5 { play(); } frame 42 { if (Math.round(Math.random() * 2) <= 0) { this.play; } else { this.gotoAndStop('standing'); } } frame 49 { if (Math.round(Math.random() * 2) <= 0) { this.play; } else { this.gotoAndStop('standing'); } } frame 58 { gotoAndStop('standing'); } frame 83 { gotoAndStop('standing'); } frame 102 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] + 10; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 164 { _global.fx50.start(); } frame 216 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); _global.fx55.start(); stop(); } frame 229 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 252 { _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } frame 257 { _global.fx50.start(); } frame 279 { _global.fx106.start(); } frame 318 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 319 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 329 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 352 { _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } frame 357 { _global.fx50.start(); } frame 379 { _global.fx106.start(); } frame 418 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 419 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 429 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 457 { gotoAndStop('standing'); } frame 481 { gotoAndStop('standing'); } frame 552 { stop(); } } movieClip 482 battle_Swordman { frame 5 { play(); } frame 22 { gotoAndStop('standing'); } frame 47 { gotoAndStop('standing'); } frame 79 { _global.fx59.start(); } frame 95 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] - 30; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 102 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); _global.fx55.start(); } frame 117 { stop(); } frame 138 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; } frame 162 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 194 { _global.fx59.start(); } frame 209 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] - 30; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 218 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx55.start(); } frame 231 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 235 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx55.start(); } frame 246 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 251 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx55.start(); } frame 263 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 327 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; } frame 350 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 380 { _global.fx59.start(); } frame 396 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] - 90; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 401 { _global.fx60.start(); } frame 405 { _global.fx60.start(); } frame 409 { _global.fx60.start(); } frame 414 { _global.fx55.start(); } frame 434 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 451 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; } frame 473 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 507 { gotoAndStop('standing'); } frame 531 { gotoAndStop('standing'); } frame 536 { _global.battleBGLayer.gotoAndPlay('killBoss'); } frame 604 { _global.battleBGLayer.gotoAndPlay('killBoss'); } frame 707 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 755 { stop(); } } movieClip 487 { frame 1 { stop(); } frame 45 { stop(); } } movieClip 493 { frame 1 { comboCountText.text = 'x' + _global.currentScriptLayer.comboCount; comboTotalDamageText.text = _global.currentScriptLayer.comboTotalDamage; comboEnemyName.text = _global.currentScriptLayer.enemy_Name; } } movieClip 498 comboCounter { frame 1 { _global.comboCounterLayer = this; } frame 3 { comboPart._visible = true; comboTexts._visible = true; damagePlainText._visible = true; if (_global.currentScriptLayer.comboCount > _global.currentScriptLayer.battleStatistics[0][2][0]) { _global.currentScriptLayer.battleStatistics[0][2][0] = _global.currentScriptLayer.comboCount; } } frame 65 { if (_global.currentScriptLayer.comboCount > _global.currentScriptLayer.battleStatistics[0][2][0]) { _global.currentScriptLayer.battleStatistics[0][2][0] = _global.currentScriptLayer.comboCount; } } frame 101 { if (_global.currentScriptLayer.comboCount > _global.currentScriptLayer.battleStatistics[0][2][0]) { _global.currentScriptLayer.battleStatistics[0][2][0] = _global.currentScriptLayer.comboCount; } } frame 147 { if (_global.currentScriptLayer.comboCount > _global.currentScriptLayer.battleStatistics[0][2][0]) { _global.currentScriptLayer.battleStatistics[0][2][0] = _global.currentScriptLayer.comboCount; } } frame 177 { if (_global.currentScriptLayer.comboCount > _global.currentScriptLayer.battleStatistics[0][2][0]) { _global.currentScriptLayer.battleStatistics[0][2][0] = _global.currentScriptLayer.comboCount; } } frame 182 { _global.currentScriptLayer.comboCount = 0; _global.currentScriptLayer.oldWho = 99; _global.currentScriptLayer.comboTotalDamage = 0; } frame 182 { comboPart.play(); } frame 214 { gotoAndStop(1); comboPart._visible = false; enemyName._visible = false; damagePlainText._visible = false; comboTexts._visible = false; } } // unknown tag 88 length 99 // unknown tag 88 length 81 movieClip 514 { frame 1 { function onEnterFrame() { if (_global.currentScriptLayer.actionSelectorOn == false) { currentTime = getTimer(); if (currentTime >= newSecond + 1000) { newSecond = currentTime; --secondIs; } if (secondIs < 0) { secondIs = 59; --minuteIs; } if (secondIs < 10) { timeText.text = '0' + secondIs; } else { timeText.text = secondIs; } if (minuteIs <= 0 and secondIs <= 0) { _global.currentScriptLayer.battleStatistics[0][4][0] = true; _global.battleOrder[_global.battleOrder.length] = ['TimerOut']; } miliText.text = currentTime; minutesText.text = minuteIs; } } _global.countdownTimerLayer = this; newSecond = 0; secondIs = 0; varX = 0; while (varX <= 10) { if (_root.battle_ObjectivesMain[varX] == true) { if (varX == 1) { minuteIs = 2; } if (varX == 2) { minuteIs = 5; } } ++varX; } } } movieClip 515 timerDownMovie { frame 139 { stop(); } } movieClip 519 { frame 1 { function onEnterFrame() { currentTime = getTimer(); if (currentTime >= newSecond + 1000) { newSecond = currentTime; ++secondIs; } if (secondIs > 59) { secondIs = 0; ++minuteIs; } if (secondIs < 10) { timeText.text = '0' + secondIs; } else { timeText.text = secondIs; } if (minuteIs >= minuteOver) { _global.currentScriptLayer.battleStatistics[0][4][0] = false; _global.battleOrder[_global.battleOrder.length] = ['TimerOut']; } miliText.text = currentTime; minutesText.text = minuteIs; } _global.countdownTimerLayer = this; newSecond = 0; secondIs = 0; minuteIs = 0; varX = 0; while (varX <= 10) { if (_root.battle_ObjectivesMain[varX] == true) { if (varX == 3) { minuteOver = 2; } if (varX == 4) { minuteOver = 5; } } ++varX; } } } movieClip 520 timerUpMovie { frame 139 { stop(); } } movieClip 524 { } // unknown tag 88 length 79 movieClip 536 { frame 1 { _global.enemyScan1DisplayLayer = this; } } movieClip 547 { frame 1 { _global.enemyScan2DisplayLayer = this; } } movieClip 549 { frame 1 { _global.enemyDataDisplayBarLayer = this; scan2Bar._visible = false; scan1Bar._visible = false; } frame 8 { if (_global.enemyStatusBarLayer.scan_Level > 0) { scan1Bar._visible = true; } if (_global.enemyStatusBarLayer.scan_Level > 1) { scan2Bar._visible = true; } } frame 16 { elementalData = (eval('_root.enemyBaseData_' + _global.currentScriptLayer.selectedEnemies[_global.rotateLogicLayer.enemyAliveList[_global.rotateLogicLayer.selectNum]]))[2]; enemyTData = eval('_root.enemyTData_' + _global.rotateLogicLayer.enemyAliveList[_global.rotateLogicLayer.selectNum]); fireShield = enemyTData[4][1]; iceShield = enemyTData[4][2]; beamShield = enemyTData[4][3]; electShield = enemyTData[4][4]; bioShield = enemyTData[4][5]; meleeShield = enemyTData[4][6]; busterShield = enemyTData[4][7]; elementShieldArray = [fireShield, iceShield, beamShield, electShield, bioShield, meleeShield, busterShield]; delete enemyTData; delete fireShield; delete iceShield; delete beamShield; delete electShield; delete bioShield; delete meleeSheild; delete busterShield; tempArray = ['fire', 'ice', 'beam', 'elect', 'bio', 'melee', 'shoot']; varX = 0; while (varX <= tempArray.length - 1) { if (elementalData[varX] + elementShieldArray[varX] > 0) { (eval('_global.enemyScan2DisplayLayer.' + tempArray[varX] + 'Text')).text = 'X'; } else { (eval('_global.enemyScan2DisplayLayer.' + tempArray[varX] + 'Text')).text = '-'; } if (elementalData[varX] + elementShieldArray[varX] < 0) { (eval('_global.enemyScan1DisplayLayer.' + tempArray[varX] + 'Text')).text = 'X'; } else { (eval('_global.enemyScan2DisplayLayer.' + tempArray[varX] + 'Text')).text = '-'; } if (elementalData[varX] + elementShieldArray[varX] == 0) { eText = ' '; } ++varX; } } frame 17 { stop(); } } movieClip 553 { } movieClip 554 { frame 1 { _global.hpPartLayer = this; } } movieClip 555 enemyDisplay { frame 1 { function updateEnemyHPBar(enemy_Who, scanLevel) { enemyTData = eval('_root.enemyTData_' + enemy_Who); enemyBData = eval('_root.enemyBData_' + enemy_Who); enemyIData = eval('_root.enemyIData_' + _global.currentScriptLayer.selectedEnemies[enemy_Who]); eName = enemyIData[0] + ' ' + _root.alphabetArray[enemy_Who]; etHP = enemyTData[1][0]; eHP = enemyBData[1][0]; scan_Level = scanLevel; _global.enemyDataDisplayBarLayer.gotoAndPlay('normal'); _global.hpPartLayer.enemyID.text = _root.alphabetArray[enemy_Who]; _global.hpPartLayer.enemyName.text = eName + ' [LVL: ' + enemyTData[0][0] + ']'; if (scan_Level > 0) { _global.hpPartLayer.enemyName.text += ' HP: ' + etHP + ' / ' + eHP; } _global.hpPartLayer.enemyHPBar._xscale = (etHP / eHP) * 100; if (_global.hpPartLayer.enemyHPBar._xscale <= 0) { _global.hpPartLayer.enemyHPBar._xscale = 0; } varX = 0; while (varX <= 10) { removeMovieClip('e_Buff' + varX); ++varX; } removeMovieClip(shieldBuff); counter = 0; if (enemyTData[3][1] > 0) { attachMovie('affScan', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[3][2] > 0) { attachMovie('affPoisen', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[3][3] > 0) { attachMovie('affCircuit', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[3][4] > 0) { attachMovie('affShock', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[3][5] > 0) { attachMovie('affBlind', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[3][6] > 0) { attachMovie('affSlow', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[5][1] > 0) { attachMovie('buffRegain', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[3][7] > 0) { attachMovie('brokenArmor', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[3][8] > 0) { attachMovie('brokenWeapon', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[3][9] > 0) { attachMovie('brokenBuster', 'e_Buff' + counter, 100 + counter, {'_x': 5 + counter * 45, '_y': -25}); ++counter; } if (enemyTData[4][1] > 0) { shieldType = 'fire'; } if (enemyTData[4][2] > 0) { shieldType = 'ice'; } if (enemyTData[4][3] > 0) { shieldType = 'beam'; } if (enemyTData[4][4] > 0) { shieldType = 'elec'; } if (enemyTData[4][5] > 0) { shieldType = 'bio'; } if (enemyTData[4][6] > 0) { shieldType = 'melee'; } if (enemyTData[4][7] > 0) { shieldType = 'buster'; } attachMovie(shieldType + 'Shield', 'shieldBuff', 120, {'_x': 18, '_y': 23}); delete enemyTData; delete enemyBData; delete eName; delete etHP; delete eHP; delete counter; delete shieldType; } _global.enemyStatusBarLayer = this; updateEnemyHPBar(); stop(); } frame 286 { this._visible = false; gotoAndStop(1); } } movieClip 556 playerData { frame 1 { _global.playerDataDisplayLayer = this; varX = 0; while (varX <= 3) { (eval('limitBar_' + varX))._visible = false; ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { combatData = eval('_root.combatData_' + _root.party_Order[varX]); (eval('limitBar_' + varX))._xscale = combatData[2]; (eval('limitBar_' + varX))._visible = true; ++varX; } blackBase._yscale = _root.party_Order.length * 45 - (_root.party_Order.length - 1) * 15; } frame 7 { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); varX = 0; while (varX <= 3) { delete eval('limitBar_' + varX); ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); iData = eval('_root.chrIData_' + _root.party_Order[varX]); combatData = eval('_root.combatData_' + _root.party_Order[varX]); chrName = iData[0]; chrTHP = tData[0]; chrTSP = tData[1]; chrHP = cData[0]; chrSP = cData[1]; (eval('_global.healthGauge' + varX + '.hpText')).text = chrTHP; currentMovie = eval('_global.healthGauge' + varX); varA = 0; while (varA <= 20) { removeMovieClip(eval('_global.healthGauge' + varX + '.buff' + varA)); ++varA; } removeMovieClip(eval('_global.healthGauge' + varX + '.shieldBuff')); counter = 0; if (tData[3][1] > 0) { currentMovie.attachMovie('affScan_p', 'buff' + counter, 100 + counter, {'_x': 40, '_y': -120 + counter * 20}); ++counter; } if (tData[3][2] > 0) { currentMovie.attachMovie('affPoisen_p', 'buff' + counter, 100 + counter, {'_x': 40, '_y': -120 + counter * 20}); ++counter; } if (tData[3][3] > 0) { currentMovie.attachMovie('affCircuit_p', 'buff' + counter, 100 + counter, {'_x': 40, '_y': -120 + counter * 20}); ++counter; } if (tData[3][4] > 0) { currentMovie.attachMovie('affShock_p', 'buff' + counter, 100 + counter, {'_x': 40, '_y': -120 + counter * 20}); ++counter; } if (tData[3][5] > 0) { currentMovie.attachMovie('affBlind_p', 'buff' + counter, 100 + counter, {'_x': 40, '_y': -120 + counter * 20}); ++counter; } if (tData[5][1] > 0) { currentMovie.attachMovie('buffRegain_P', 'buff' + counter, 100 + counter, {'_x': 40, '_y': -120 + counter * 20}); ++counter; } newCounter = 0; if (tData[3][6] > 0) { currentMovie.attachMovie('affSlow_p', 'buff' + counter, 110 + newCounter, {'_x': -18, '_y': -125 + newCounter * 28}); ++counter; ++newCounter; } if (tData[3][7] > 0) { currentMovie.attachMovie('brokenArmor_p', 'buff' + counter, 110 + newCounter, {'_x': -18, '_y': -125 + newCounter * 28}); ++counter; ++newCounter; } if (tData[3][8] > 0) { currentMovie.attachMovie('brokenWeapon_p', 'buff' + counter, 110 + newCounter, {'_x': -18, '_y': -125 + newCounter * 28}); ++counter; ++newCounter; } if (tData[3][9] > 0) { currentMovie.attachMovie('brokenBuster_p', 'buff' + counter, 110 + newCounter, {'_x': -18, '_y': -125 + newCounter * 28}); ++counter; ++newCounter; } if (tData[4][1] > 0) { shieldType = 'fire'; } if (tData[4][2] > 0) { shieldType = 'ice'; } if (tData[4][3] > 0) { shieldType = 'beam'; } if (tData[4][4] > 0) { shieldType = 'elec'; } if (tData[4][5] > 0) { shieldType = 'bio'; } if (tData[4][6] > 0) { shieldType = 'melee'; } if (tData[4][7] > 0) { shieldType = 'buster'; } currentMovie.attachMovie(shieldType + 'Shield', 'shieldBuff', 120, {'_x': 23, '_y': 25}); delete shieldType; (eval('_global.healthGauge' + varX + '.restBar' + varX))._xscale = combatData[2]; (eval('_global.healthGauge' + varX + '.hpBar'))._yscale = (chrTHP / chrHP) * 100; (eval('_global.healthGauge' + varX + '.spBar'))._yscale = (chrTSP / chrSP) * 100; ++varX; } delete hpFiller; delete nameFiller; delete spFiller; delete chrName; delete chrTHP; delete chrTSP; delete chrHP; delete chrSP; delete cData; delete iData; delete tData; delete combatData; delete varX; } frame 15 { stop(); } } movieClip 557 splashHolder { frame 1 { _global.splashHolderLayer = this; effectsBuffer = []; var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = Fx000000; cellShade.blurX = 3; cellShade.blurY = 3; if (_global.currentScriptLayer.PartyOrEnemy == 'Enemy') { varX = 0; while (varX <= _root.party_Order.length - 1) { currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varX); currentMovie._alpha = 0; ++varX; } (eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum))._alpha = 100; if (_global.currentScriptLayer.target_cmdSelect == 'Single') { effectsBuffer[effectsBuffer.length] = ['Enemy', _global.currentScriptLayer.target_cmdNum]; } if (_global.currentScriptLayer.target_cmdSelect == 'All') { enemyAlive = []; counter = 0; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAlive[counter] = varX; ++counter; } ++varX; } varX = 0; while (varX <= enemyAlive.length - 1) { effectsBuffer[varX] = ['Enemy', enemyAlive[varX]]; ++varX; } delete enemyAlive; delete counter; } } if (_global.currentScriptLayer.PartyOrEnemy == 'Party') { if (_global.currentScriptLayer.target_cmdSelect == 'Single' or _global.currentScriptLayer.target_cmdSelect == 'Self' or _global.currentScriptLayer.target_cmdSelect == 'Revive') { effectsBuffer[effectsBuffer.length] = ['Player', _global.currentScriptLayer.target_cmdNum]; } if (_global.currentScriptLayer.target_cmdSelect == 'All') { partyAlive = []; counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { partyAlive[counter] = varX; ++counter; } ++varX; } varX = 0; while (varX <= partyAlive.length - 1) { effectsBuffer[varX] = ['Player', partyAlive[varX]]; ++varX; } delete partyAlive; delete counter; } } } frame 6 { if (effectsBuffer[0][0] == 'Enemy') { if (_global.currentScriptLayer.dataPack0[8][0][1] == 'dischargeEnergy') { enemyXY = _root.battle_enemyData[1][effectsBuffer[0][1]]; enemyWH = _root.battle_enemyData[2][effectsBuffer[0][1]]; enemyLayer = _root.battle_enemyData[3][effectsBuffer[0][1]][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 100; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 130; } if (enemyXY[1] >= 580) { zoom = 160; } _global.currentScriptLayer.enemySelect = effectsBuffer[0][1]; _global.currentScriptLayer.splashHolder._x = enemyXY[0] + enemyWH[0] / 2; _global.currentScriptLayer.splashHolder._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.splashHolder._xscale = zoom; _global.currentScriptLayer.splashHolder._yscale = zoom; _global.currentScriptLayer.splashHolder.swapDepths(enemyLayer + 1); attachMovie(_global.currentScriptLayer.tech_animationData[0][2], 'currentSplash', 0, {'_x': 0, '_y': 0}); currentSplash.filters = [cellShade]; _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } if (_global.currentScriptLayer.dataPack0[8][0][1] == 'dischargeShot') { enemyXY = _root.battle_enemyData[1][effectsBuffer[0][1]]; enemyWH = _root.battle_enemyData[2][effectsBuffer[0][1]]; enemyLayer = _root.battle_enemyData[3][effectsBuffer[0][1]][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 100; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 130; } if (enemyXY[1] >= 580) { zoom = 150; } _global.currentScriptLayer.splashHolder._x = enemyXY[0] + enemyWH[0] + 175 + zoom / 8; _global.currentScriptLayer.splashHolder._y = enemyXY[1] + zoom / 8; _global.currentScriptLayer.splashHolder._xscale = zoom; _global.currentScriptLayer.splashHolder._yscale = zoom; _global.currentScriptLayer.splashHolder.swapDepths(enemyLayer + 2); attachMovie(_global.currentScriptLayer.tech_animationData[0][2], 'currentSplash', 0, {'_x': 0, '_y': 0}); currentSplash.filters = [cellShade]; _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } if (_global.currentScriptLayer.dataPack0[8][0][1] == 'useItem') { enemyXY = _root.battle_enemyData[1][effectsBuffer[0][1]]; enemyWH = _root.battle_enemyData[2][effectsBuffer[0][1]]; enemyLayer = _root.battle_enemyData[3][effectsBuffer[0][1]][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 100; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 130; } if (enemyXY[1] >= 580) { zoom = 160; } _global.currentScriptLayer.enemySelect = effectsBuffer[0][1]; _global.currentScriptLayer.splashHolder._x = enemyXY[0] + enemyWH[0] / 2; _global.currentScriptLayer.splashHolder._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.splashHolder._xscale = zoom; _global.currentScriptLayer.splashHolder._yscale = zoom; _global.currentScriptLayer.splashHolder.swapDepths(enemyLayer + 1); attachMovie(_global.currentScriptLayer.tech_animationData[0][2], 'currentSplash', 0, {'_x': 0, '_y': 0}); currentSplash.filters = [cellShade]; _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } if (_global.currentScriptLayer.side == 'E' and _global.currentScriptLayer.PartyOrEnemy == 'Enemy') { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemySelect]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemySelect]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemySelect][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 100; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 130; } if (enemyXY[1] >= 580) { zoom = 160; } _global.currentScriptLayer.splashHolder._x = enemyXY[0] + enemyWH[0] / 2; _global.currentScriptLayer.splashHolder._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.splashHolder._xscale = zoom; _global.currentScriptLayer.splashHolder._yscale = zoom; _global.currentScriptLayer.splashHolder.swapDepths(enemyLayer + 5); attachMovie(_global.currentScriptLayer.tech_animationData[0][2], 'currentSplash', 0, {'_x': 0, '_y': 0}); currentSplash.filters = [cellShade]; _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } } if (effectsBuffer[0][0] == 'Player') { playerXY = _root.battle_partyData[1][effectsBuffer[0][1]]; playerWH = _root.battle_partyData[2][effectsBuffer[0][1]]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (playerXY[1] >= 440 and playerXY[1] < 510) { zoom = 100; } if (playerXY[1] >= 510 and playerXY[1] < 580) { zoom = 130; } if (playerXY[1] >= 580) { zoom = 150; } _global.currentScriptLayer.splashHolder._x = playerXY[0] + playerWH[0] - playerWH[0] / 2; _global.currentScriptLayer.splashHolder._y = playerXY[1] - playerWH[1] + playerWH[1] / 2; attachMovie(_global.currentScriptLayer.tech_animationData[0][2], 'currentSplash', 0, {'_x': 0, '_y': 0}); _global.currentScriptLayer.splashHolder._xscale = -zoom; _global.currentScriptLayer.splashHolder._yscale = zoom; currentSplash.filters = [cellShade]; _global.currentScriptLayer.splashHolder.swapDepths(layer + 5); _global.currentScriptLayer.attachMovie('battle_blackBG', 'battle_blackBG', 105, {'_x': 0, '_y': 0}); } stop(); } frame 15 { removeMovieClip(_global.currentScriptLayer.battle_blackBG); effectsBuffer.shift(); if (effectsBuffer.length > 0) { gotoAndPlay('loop'); } if (effectsBuffer.length <= 0) { gotoAndPlay('close'); } } frame 24 { varX = 0; while (varX <= _root.party_Order.length - 1) { currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varX); currentMovie._alpha = 100; ++varX; } _global.currentScriptLayer.splashHolder.swapDepths(9008); if (_global.currentScriptLayer.side == 'P') { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).play(); } if (_global.currentScriptLayer.side == 'E') { (eval('_global.currentScriptLayer.enemyTarget_' + _global.currentScriptLayer.enemy_number)).play(); } if (_global.currentScriptLayer.target_cmdName == 'Support') { _root.battleChrLayer_S.play(); } stop(); } } movieClip 559 { } movieClip 561 gauge_2 { frame 9 { stop(); } frame 41 { gotoAndPlay('ready'); } } movieClip 562 gauge_1 { frame 9 { stop(); } frame 41 { gotoAndPlay('ready'); } } movieClip 563 gauge_0 { frame 9 { stop(); } frame 41 { gotoAndPlay('ready'); } } movieClip 567 { } movieClip 568 chrHighlight { frame 42 { gotoAndPlay('loop'); } } movieClip 570 battle_blackBG { } // unknown tag 88 length 197 movieClip 573 texta { frame 1 { txtBox.text = _global.currentScriptLayer.splashText; } } movieClip 575 valueSplash2A { frame 1 { valueText.text = _root.floatText; } frame 79 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 80 { stop(); removeMovieClip(this); } } movieClip 576 valueSplash2C { frame 1 { valueText.text = _root.floatText; } frame 79 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 80 { stop(); removeMovieClip(this); } } movieClip 578 valueSplashA { frame 1 { valueText.text = _root.valueTotal; } frame 55 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 56 { stop(); removeMovieClip(this); } } movieClip 579 valueSplashB { frame 1 { valueText.text = _root.valueTotal; } frame 55 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 56 { stop(); removeMovieClip(this); } } movieClip 580 valueSplashC { frame 1 { valueText.text = _root.valueTotal; } frame 55 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 56 { stop(); removeMovieClip(this); } } movieClip 581 valueSplashHA { frame 1 { valueText.text = _root.valueHeal; } frame 31 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 32 { stop(); removeMovieClip(this); } } movieClip 582 valueSplashHB { frame 1 { valueText.text = _root.valueHeal; } frame 31 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 32 { stop(); removeMovieClip(this); } } movieClip 583 valueSplashHC { frame 1 { valueText.text = _root.valueHeal; } frame 31 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 32 { stop(); removeMovieClip(this); } } movieClip 584 valueSplashMA { frame 1 { valueText.text = _root.valueHeal; } frame 31 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 32 { stop(); removeMovieClip(this); } } movieClip 585 valueSplashMB { frame 1 { valueText.text = _root.valueHeal; } frame 31 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 32 { stop(); removeMovieClip(this); } } movieClip 586 valueSplashMC { frame 1 { valueText.text = _root.valueHeal; } frame 31 { if (_root.valueTotal == 0) { _root.valueTotal = 'Ineffective'; this.gotoAndPlay(1); } } frame 32 { stop(); removeMovieClip(this); } } movieClip 589 { } movieClip 596 splashInE { frame 1 { _global.currentScriptLayer.stop(); _global.fx11.start(); } frame 32 { _global.fx10.start(); } frame 61 { if (_global.currentScriptLayer.side == 'E') { (eval('_global.currentScriptLayer.enemyTarget_' + _global.currentScriptLayer.enemy_number)).play(); } stop(); } } movieClip 597 splashInEmpty { frame 1 { _global.currentScriptLayer.stop(); } frame 8 { if (_global.currentScriptLayer.side == 'E') { (eval('_global.currentScriptLayer.enemyTarget_' + _global.currentScriptLayer.enemy_number)).play(); } stop(); } } movieClip 600 battlePopUpE { frame 1 { _global.currentScriptLayer.stop(); } frame 1 { annonceText.text = _global.currentScriptLayer.splashText; } frame 84 { if (_global.currentScriptLayer.side == 'E') { (eval('_global.currentScriptLayer.enemyTarget_' + _global.currentScriptLayer.enemy_number)).play(); } stop(); } } movieClip 602 battlePopUp { frame 1 { _global.currentScriptLayer.stop(); } frame 1 { annonceText.text = _global.currentScriptLayer.splashText; } frame 84 { _global.currentScriptLayer.play(); stop(); } } movieClip 604 battlePopUpP { frame 1 { _global.currentScriptLayer.stop(); } frame 1 { annonceText.text = _global.currentScriptLayer.splashText; } frame 84 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).play(); stop(); } } movieClip 614 splashIn { frame 1 { _global.currentScriptLayer.stop(); _global.fx11.start(); } frame 35 { _global.fx12.start(); } frame 75 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).play(); stop(); } } movieClip 622 splashIn2 { frame 1 { _global.currentScriptLayer.stop(); } frame 30 { _global.fx12.start(); } frame 63 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).play(); stop(); } } movieClip 630 splashIn3 { frame 1 { _global.currentScriptLayer.stop(); } frame 29 { _global.fx12.start(); } frame 63 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).play(); stop(); } } movieClip 631 valueSplash3A { frame 1 { valueText.text = _root.wavyText; } frame 101 { stop(); removeMovieClip(this); } } movieClip 632 valueSplash3B { frame 1 { valueText.text = _root.wavyText; } frame 101 { stop(); removeMovieClip(this); } } movieClip 633 valueSplash3C { frame 1 { valueText.text = _root.wavyText; } frame 101 { stop(); removeMovieClip(this); } } movieClip 634 trackerMain { } movieClip 637 { frame 1 { _global.battleIcon_5 = this; } } movieClip 638 { frame 1 { _global.battleIcon_4 = this; } } movieClip 639 { frame 1 { _global.battleIcon_3 = this; } } movieClip 640 { frame 1 { _global.battleIcon_2 = this; } } movieClip 641 { frame 1 { _global.battleIcon_1 = this; } } movieClip 642 { frame 1 { _global.battleIcon_0 = this; } } movieClip 643 { frame 1 { _global.battleIcon_A = this; } } movieClip 644 { frame 1 { _global.battleIcon_B = this; } } movieClip 645 { frame 1 { _global.rotateMovieLayer = this; gotoAndStop('R1'); } frame 9 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 16 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 23 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 30 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 37 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 51 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 58 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 65 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 72 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 79 { _global.rotateLogicLayer.gotoAndPlay('loop'); stop(); } frame 89 { stop(); } frame 96 { stop(); } frame 110 { stop(); } frame 117 { stop(); } } movieClip 649 { } // unknown tag 88 length 79 movieClip 654 { } // unknown tag 88 length 99 movieClip 665 { frame 1 { _global.elementalDataLayer = this; } } movieClip 669 { frame 1 { _global.techListLayer = this; stop(); } frame 10 { skillList = eval('_root.chrSkillList_' + _root.party_Order[_global.currentScriptLayer.actionWho]); cData = eval('_root.chrCData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); tData = eval('_root.chrTData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); techList.text = ''; costList.text = ''; counter = 0; varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (_global.rotateLogicLayer.selectCat == 0) { _global.techListLayer.catagory.text = 'Techniques '; if (skillType == 'E' or skillType == 'T') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][7] + '\r'; ++counter; } } if (_global.rotateLogicLayer.selectCat == 1) { _global.techListLayer.catagory.text = 'Healing '; if (skillType == 'H') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][7] + '\r'; ++counter; } } if (_global.rotateLogicLayer.selectCat == 2) { _global.techListLayer.catagory.text = 'Assist '; if (skillType == 'A') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][7] + '\r'; ++counter; } } ++varX; } if (counter == 0) { techList.text = 'None'; costList.text = '---'; counter = 1; } _global.techListLayer.catagory.text += 'SP: ' + tData[1] + '/' + cData[1]; boxList._yscale = counter * 100 + 55 - counter * 15; } frame 21 { _global.rotateLogicLayer.checkSkillList(); stop(); } frame 31 { gotoAndStop('load'); } } movieClip 675 { frame 1 { _global.itemListLayer = this; stop(); } frame 10 { itemList.text = ''; amountList.text = ''; counter = 0; varX = 0; while (varX <= _root.itemListData.length - 1) { if (_root.itemListData[varX] > 0) { itemIs = eval('_root.item_' + varX); itemName = itemIs[0]; itemList.text += itemName + '\r'; amountList.text += _root.itemListData[varX] + '\r'; ++counter; } ++varX; } if (counter == 0) { itemList.text = 'None'; amountList.text = '---'; counter = 1; } boxList._yscale = counter * 100 + 55 - counter * 15; } frame 21 { stop(); } frame 31 { gotoAndStop('load'); } } movieClip 676 actionSelector { frame 1 { function goBack() { cmdName = 'Pass'; cmdTarget = ' '; cmdSelect = ' '; finalSelect = ' '; dataPack0 = []; spCost = 0; _global.helpBarLayer.helpBar_Box._yscale = 100; removeMovieClip(_global.currentScriptLayer.chrHighlight2); _global.currentScriptLayer.enemyDisplay._visible = false; _global.helpText = ' '; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('close'); if (_global.comboCounterLayer._currentFrame > 1) { _global.comboCounterLayer.play(); } _global.battleOrder[_global.battleOrder.length] = ['P', _global.currentScriptLayer.actionWho, [cmdName, cmdTarget, cmdSelect]]; Key.removeListener(alternate_Listener); Key.removeListener(primary_Listener); Key.removeListener(enemySelector_Listener); Key.removeListener(playerSelector_Listener); _global.currentScriptLayer.actionSelectorOn = false; clearVar(); _global.currentScriptLayer.helpBar._visible = false; if (_root.activeBattle == true) { _global.currentScriptLayer.play(); } } function updateHelpBar() { enemyXY = _root.battle_enemyData[1][enemyAliveList[selectNum]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[selectNum]]; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; scanLevel = (eval('_root.enemyTData_' + enemyAliveList[selectNum]))[3][1]; _global.currentScriptLayer.enemyDisplay._visible = true; _global.enemyStatusBarLayer.updateEnemyHPBar(enemyAliveList[selectNum], scanLevel); _global.enemyStatusBarLayer.gotoAndStop('startCount'); _global.helpText = ' '; _global.healthBarLogic.updateText(); } function onEnter() { varX = 0; while (varX <= 10) { newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); removeMovieClip(newDuplicate); ++varX; } removeMovieClip(_global.currentScriptLayer.chrHighlight2); _global.currentScriptLayer.enemyDisplay._visible = false; _global.currentScriptLayer.trackerMain._visible = false; if (_global.comboCounterLayer._currentFrame > 1) { _global.comboCounterLayer.play(); } tData = eval('_root.chrTData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); tData[1] -= spCost; _root.checkTData(); if (comingFrom == 'openItem') { --_root.itemListData[tempList[itemNum]]; } _global.battleOrder[_global.battleOrder.length] = ['P', _global.currentScriptLayer.actionWho, [cmdName, cmdTarget, cmdSelect, finalSelect], dataPack0]; Key.removeListener(alternate_Listener); Key.removeListener(primary_Listener); Key.removeListener(enemySelector_Listener); Key.removeListener(playerSelector_Listener); clearVar(); _global.helpBarLayer.helpBar_Box._yscale = 100; _global.currentScriptLayer.helpBar._visible = false; if (_root.activeBattle == true) { _global.currentScriptLayer.play(); } } function clearVar() { delete cmdName; delete cmdTarget; delete cmdSelect; delete dataPack0; delete tData; delete cData; delete bcData; delete cmdList; delete skillList; delete combatData; delete enemyXY; delete enemyWH; delete playerXY; delete playerWH; delete oldDir; delete enemyTData; delete iData; delete spCost; } function checkSkillList() { skillList = eval('_root.chrSkillList_' + _root.party_Order[_global.currentScriptLayer.actionWho]); skillType = skillList[techNum][0][0]; tempList = []; tempList2 = []; counter = 0; varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (_global.rotateLogicLayer.selectCat == 0) { if (skillType == 'E' or skillType == 'T') { tempList[counter] = skillList[varX]; ++counter; } } if (_global.rotateLogicLayer.selectCat == 1) { if (skillType == 'H') { tempList[counter] = skillList[varX]; ++counter; } } if (_global.rotateLogicLayer.selectCat == 2) { if (skillType == 'A') { tempList[counter] = skillList[varX]; ++counter; } } ++varX; } if (counter > 0) { varX = 0; while (varX <= tempList[techNum][0][9][0].length - 1) { if (varX == 0) { _global.elementalDataLayer.fireText.text = tempList[techNum][0][9][0][varX]; } if (varX == 1) { _global.elementalDataLayer.iceText.text = tempList[techNum][0][9][0][varX]; } if (varX == 2) { _global.elementalDataLayer.beamText.text = tempList[techNum][0][9][0][varX]; } if (varX == 3) { _global.elementalDataLayer.electText.text = tempList[techNum][0][9][0][varX]; } if (varX == 4) { _global.elementalDataLayer.bioText.text = tempList[techNum][0][9][0][varX]; } if (varX == 5) { _global.elementalDataLayer.meleeText.text = tempList[techNum][0][9][0][varX]; } if (varX == 6) { _global.elementalDataLayer.shootText.text = tempList[techNum][0][9][0][varX]; } ++varX; } } if (counter == 0) { _global.elementalDataLayer.fireText.text = 0; _global.elementalDataLayer.iceText.text = 0; _global.elementalDataLayer.beamText.text = 0; _global.elementalDataLayer.electText.text = 0; _global.elementalDataLayer.bioText.text = 0; _global.elementalDataLayer.meleeText.text = 0; _global.elementalDataLayer.shootText.text = 0; } if (counter == 0) { tempList[counter] = [_root.tech_Basic0]; } _global.techListLayer.itemDescription.text = tempList[techNum][0][tempList[techNum][0].length - 1]; _global.helpText = tempList[techNum][0][0] + ' [' + tempList[techNum][0][2] + '] '; _global.healthBarLogic.updateText(); techSelect._x = -455; techSelect._y = -82 + techNum * 16.5; _global.currentScriptLayer.trackerMain.updateTracker(tempList[techNum][0][6]); } cData = eval('_root.chrCData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); iData = eval('_root.chrIData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); tData = eval('_root.chrTData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); bcData = eval('_root.chrBCData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); cmdList = eval('_root._root.chrCMDList_' + _root.party_Order[_global.currentScriptLayer.actionWho]); skillList = eval('_root.chrSkillList_' + _root.party_Order[_global.currentScriptLayer.actionWho]); combatData = eval('_root.combatData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); levelData = eval('_root.chrLevel_' + _root.party_Order[_global.currentScriptLayer.actionWho]); _global.rotateLogicLayer = this; frame = 1; oldDir = 'L'; aFrame = 1; bufferList = []; tempList = []; enemyAliveList = []; heroList = []; reviveNum = 0; selectNum = 0; itemNum = 0; cmdMax = cmdList.length - 1; cmdNum = 0; dataPack0 = ['Attack', 'Enemy', 'Single', 'T', '-', '-', 9, '-', [['', '', '']], [[0, 0, 0, 0, 0, 0, 0]]]; cmdName = 'BasicDelay'; cmdTarget = 'Enemy'; cmdSelect = 'Single'; spCost = 0; bufferList[bufferList.length] = 'A1'; chrNameText.text = iData[0]; chrLevelText.text = '[ LVL: ' + levelData[0] + ' ]'; _global.helpText = 'Attack'; _global.healthBarLogic.updateText(); comingFrom = 'alternate'; var whiteShadow = new flash.filters.DropShadowFilter(10, 45, 16777215, 5, 0, 4, 3, 1); whiteShadow.strength = 3; whiteShadow.distance = 1; whiteShadow.blurX = 10; whiteShadow.blurY = 10; if (_root.gameVariables[1][0][0] == true) { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = Fx000000; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; } _global.healthBarLogic.techBar.gotoAndPlay('open'); primary_Listener = new Object(); primary_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); ++cmdNum; ++frame; if (oldDir == 'L') { --frame; } oldDir = 'R'; if (frame > cmdMax) { bufferList[bufferList.length] = 'A2'; bufferList[bufferList.length] = 'A1'; varX = 0; while (varX <= cmdMax) { newString = 'L' + (varX + 1); bufferList[bufferList.length] = newString; ++varX; } bufferList.reverse(); cmdMax = cmdList.length - 1; cmdNum = 0; dataPack0 = ['Shoot', 'Enemy', 'Single', 'T', '-', '-', 9, '-', [['', '', '']], [[0, 0, 0, 0, 0, 0, 0]]]; cmdName = 'BasicDelay'; cmdTarget = 'Enemy'; cmdSelect = 'Single'; spCost = 0; oldDir = 'A'; aFrame = 2; Key.removeListener(primary_Listener); Key.addListener(alternate_Listener); comingFrom = 'alternate'; _global.helpText = 'Shoot'; _global.healthBarLogic.updateText(); } else { bufferList[bufferList.length] = 'R' + frame; cmdName = cmdList[cmdNum][0]; cmdTarget = cmdList[cmdNum][1]; cmdSelect = cmdList[cmdNum][2]; _global.helpText = cmdName; _global.healthBarLogic.updateText(); } } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); --cmdNum; if (cmdNum < 0) { cmdNum = 0; cmdName = 'BasicDelay'; cmdTarget = 'Enemy'; cmdSelect = 'Single'; dataPack0 = ['Attack', 'Enemy', 'Single', 'T', '-', '-', 9, '-', [['', '', '']], [[0, 0, 0, 0, 0, 0, 0]]]; spCost = 0; _global.helpText = 'Attack'; _global.healthBarLogic.updateText(); bufferList[bufferList.length] = 'A1'; Key.removeListener(primary_Listener); Key.addListener(alternate_Listener); comingFrom = 'alternate'; } else { --frame; cmdType = [cmdList[cmdNum][0], cmdList[cmdNum][1]]; if (oldDir == 'R') { ++frame; } oldDir = 'L'; if (frame < 1) { frame = 1; } bufferList[bufferList.length] = 'L' + frame; cmdName = cmdList[cmdNum][0]; cmdTarget = cmdList[cmdNum][1]; cmdSelect = cmdList[cmdNum][2]; _global.helpText = cmdName; _global.healthBarLogic.updateText(); } } if (Key.getCode() == '8') { _global.fx4.start(); goBack(); } if (Key.getCode() == '32') { _global.fx1.start(); if (cmdTarget == 'OpenTech') { comingFrom = 'openTech'; _global.techListLayer.play('openList'); techNum = 0; selectCat = 0; checkSkillList(); attachMovie('chrHighlight', 'techSelect', 9999, {'_x': 0, '_y': 0}); techSelect._x = -455; techSelect._y = -82 + techNum * 16.5; _global.currentScriptLayer.trackerMain._visible = true; Key.removeListener(primary_Listener); Key.addListener(techSelector_Listener); } if (cmdTarget == 'OpenItem') { comingFrom = 'openItem'; _global.itemListLayer.play('openList'); itemNum = 0; selectCat = 0; attachMovie('chrHighlight', 'techSelect', 9999, {'_x': 0, '_y': 0}); techSelect._x = -455; techSelect._y = -172 + itemNum * 16.5; tempList = []; counter = 0; varX = 0; while (varX <= _root.itemListData.length - 1) { if (_root.itemListData[varX] > 0) { tempList[counter] = varX; ++counter; } ++varX; } _global.itemListLayer.itemDescription.text = (eval('_root.item_' + tempList[itemNum]))[(eval('_root.item_' + tempList[itemNum])).length - 1][0]; _global.helpText = (eval('_root.item_' + tempList[itemNum]))[0] + ' [' + (eval('_root.item_' + tempList[itemNum]))[2] + '] '; _global.healthBarLogic.updateText(); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker((eval('_root.item_' + tempList[itemNum]))[6]); Key.removeListener(primary_Listener); Key.addListener(itemSelector_Listener); } if (cmdTarget == 'Enemy') { comingFrom = 'primary'; cmdName = 'CmdDelay'; dataPack0 = cmdList[cmdNum][3]; _global.helpText = ' '; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('close'); counter = 0; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveList[counter] = varX; ++counter; } ++varX; } selectNum = 0; delete counter; varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; enemyXY = _root.battle_enemyData[1][enemyAliveList[selectNum]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = enemyXY[0] + enemyWH[0]; _global.currentScriptLayer.chrHighlight._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = -150; _global.currentScriptLayer.chrHighlight._rotation = 0; _global.healthBarLogic.updateText(); updateHelpBar(); Key.removeListener(primary_Listener); Key.addListener(enemySelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } if (cmdTarget == 'Party') { comingFrom = 'primary'; cmdName = 'CmdDelay'; dataPack0 = cmdList[cmdNum][3]; varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; if (cmdSelect == 'Single' or cmdSelect == 'Self') { counter = 0; heroList = []; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { heroList[counter] = varX; ++counter; } ++varX; } selectNum = _global.currentScriptLayer.actionWho; playerXY = _root.battle_partyData[1][selectNum]; playerWH = _root.battle_partyData[2][selectNum]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.currentScriptLayer.chrHighlight._rotation = 0; if (cmdSelect == 'Self') { iData = eval('_root.chrIData_' + _root.party_Order[_global.currentScriptLayer.actionWho]); } _global.helpText = iData[0] + ' [' + cmdSelect + ']'; _global.healthBarLogic.updateText(); } if (cmdSelect == 'All') { varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { selectNum = varX; _global.currentScriptLayer.chrHighlight._rotation = 0; duplicateMovieClip(_global.currentScriptLayer.chrHighlight, 'allSelect' + varX, 8888 + varX); newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); playerXY = _root.battle_partyData[1][varX]; playerWH = _root.battle_partyData[2][varX]; newDuplicate._x = playerXY[0] - 20; newDuplicate._y = playerXY[1] - playerWH[1] / 2; newDuplicate._yscale = 150; newDuplicate._xscale = 150; _global.healthBarLogic.updateText(); } ++varX; } } Key.removeListener(primary_Listener); Key.addListener(playerSelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } } }; alternate_Listener = new Object(); alternate_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); --aFrame; cmdName = 'BasicDelay'; cmdTarget = 'Enemy'; cmdSelect = 'Single'; dataPack0 = ['Attack', 'Enemy', 'Single', '-', '-', '-', 9, '-', [['', '', '']], [[0, 0, 0, 0, 0, 100, 0]]]; spCost = 0; _global.helpText = 'Attack'; _global.healthBarLogic.updateText(); if (oldDir == 'A') { ++aFrame; } oldDir = 'B'; if (aFrame >= 2) { bufferList[bufferList.length] = 'B' + aFrame; } else { aFrame = 0; frame = 1; oldDir = 'L'; aFrame = 1; cmdName = cmdList[cmdNum][0]; cmdTarget = cmdList[cmdNum][1]; cmdSelect = cmdList[cmdNum][2]; _global.helpText = cmdList[cmdNum][0]; _global.healthBarLogic.updateText(); bufferList[bufferList.length] = 'B1'; Key.removeListener(alternate_Listener); Key.addListener(primary_Listener); comingFrom = 'primary'; } } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); cmdName = 'BasicDelay'; cmdTarget = 'Enemy'; cmdSelect = 'Single'; dataPack0 = ['Shoot', 'Enemy', 'Single', '-', '-', '-', 9, '-', [['', '', '']], [[0, 0, 0, 0, 0, 0, 100]]]; spCost = 0; _global.helpText = 'Shoot'; _global.healthBarLogic.updateText(); ++aFrame; if (oldDir == 'B') { --aFrame; } oldDir = 'A'; if (aFrame <= 2) { bufferList[bufferList.length] = 'A' + aFrame; } else { aFrame = 2; } } if (Key.getCode() == '8') { _global.fx4.start(); goBack(); } if (Key.getCode() == '32') { _global.fx1.start(); counter = 0; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveList[counter] = varX; ++counter; } ++varX; } selectNum = 0; delete counter; _global.helpText = ' '; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('close'); updateHelpBar(); varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; if (cmdSelect == 'Single') { enemyXY = _root.battle_enemyData[1][enemyAliveList[selectNum]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = enemyXY[0] + enemyWH[0]; _global.currentScriptLayer.chrHighlight._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = -150; _global.currentScriptLayer.chrHighlight._rotation = 0; _global.helpText = ' '; } if (cmdSelect == 'All') { varX = 0; while (varX <= enemyAliveList.length - 1) { enemyTData = eval('_root.enemyTData_' + _global.currentScriptLayer.selectedEnemies[varX]); _global.currentScriptLayer.chrHighlight._rotation = 0; duplicateMovieClip(_global.currentScriptLayer.chrHighlight, 'allSelect' + varX, 8888 + varX); newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); global.currentScriptLayer.chrHighlight._visible = false; enemyXY = _root.battle_enemyData[1][varX]; enemyWH = _root.battle_enemyData[2][varX]; newDuplicate._x = enemyXY[0] + enemyWH[0]; newDuplicate._y = enemyXY[1] - enemyWH[1] / 2; newDuplicate._xscale = -150; newDuplicate._yscale = 150; _global.helpText = ' '; _global.healthBarLogic.updateText(); ++varX; } } Key.removeListener(alternate_Listener); Key.addListener(enemySelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } }; Key.addListener(alternate_Listener); techSelector_Listener = new Object(); techSelector_Listener.onKeyDown = function () { skillList = eval('_root.chrSkillList_' + _root.party_Order[_global.currentScriptLayer.actionWho]); if (Key.getCode() == '37' or Key.getAscii() == '52') { _global.fx6.start(); ++selectCat; techNum = 0; if (selectCat > 2) { selectCat = 0; } checkSkillList(); _global.techListLayer.gotoAndPlay('openList'); } if (Key.getCode() == '39' or Key.getAscii() == '54') { _global.fx6.start(); --selectCat; techNum = 0; if (selectCat < 0) { selectCat = 2; } checkSkillList(); _global.techListLayer.gotoAndPlay('openList'); } if (Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); ++techNum; if (techNum > tempList.length - 1) { techNum = 0; } checkSkillList(); } if (Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); --techNum; if (techNum < 0) { techNum = tempList.length - 1; } checkSkillList(); } if (Key.getCode() == '8') { _global.fx4.start(); varX = 0; while (varX <= 10) { newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); removeMovieClip(newDuplicate); ++varX; } _global.currentScriptLayer.chrHighlight._rotation = -45; _global.helpText = 'Techs'; cmdTarget = 'OpenTech'; _global.healthBarLogic.updateText(); _global.techListLayer.itemDescription.text = ' '; _global.techListLayer.gotoAndPlay('close'); removeMovieClip(techSelect); Key.addListener(primary_Listener); Key.removeListener(techSelector_Listener); } if (tempList[techNum][0][0] != 'None' and tData[1] > tempList[techNum][0][7]) { if (Key.getCode() == '32') { _global.fx1.start(); cmdName = 'TechDelay'; cmdTarget = tempList[techNum][0][1]; cmdSelect = tempList[techNum][0][2]; dataPack0 = tempList[techNum][0]; spCost = tempList[techNum][0][7]; if (cmdTarget == 'Enemy') { _global.helpText = ' '; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('close'); counter = 0; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveList[counter] = varX; ++counter; } ++varX; } selectNum = 0; delete counter; varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; if (cmdSelect == 'Single') { enemyXY = _root.battle_enemyData[1][enemyAliveList[selectNum]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = enemyXY[0] + enemyWH[0]; _global.currentScriptLayer.chrHighlight._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = -150; _global.currentScriptLayer.chrHighlight._rotation = 0; updateHelpBar(); _global.helpText = ' '; _global.healthBarLogic.updateText(); } if (cmdSelect == 'All') { varX = 0; while (varX <= enemyAliveList.length - 1) { _global.currentScriptLayer.chrHighlight._rotation = 0; duplicateMovieClip(_global.currentScriptLayer.chrHighlight, 'allSelect' + varX, 8888 + varX); newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); global.currentScriptLayer.chrHighlight._visible = false; enemyXY = _root.battle_enemyData[1][enemyAliveList[varX]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[varX]]; newDuplicate._x = enemyXY[0] + enemyWH[0]; newDuplicate._y = enemyXY[1] - enemyWH[1] / 2; newDuplicate._xscale = -150; newDuplicate._yscale = 150; _global.helpText = ' '; _global.healthBarLogic.updateText(); ++varX; } } Key.addListener(enemySelector_Listener); Key.removeListener(techSelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } if (cmdTarget == 'Party') { if (cmdSelect == 'Single' or cmdSelect == 'Self') { counter = 0; heroList = []; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { heroList[counter] = varX; ++counter; } ++varX; } varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; selectNum = _global.currentScriptLayer.actionWho; playerXY = _root.battle_partyData[1][selectNum]; playerWH = _root.battle_partyData[2][selectNum]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.currentScriptLayer.chrHighlight._rotation = 0; _global.helpText = iData[0] + ' [' + cmdSelect + ']'; _global.healthBarLogic.updateText(); Key.removeListener(techSelector_Listener); Key.addListener(playerSelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } if (cmdSelect == 'Revive') { counter = 0; heroList = []; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] <= 0) { heroList[counter] = varX; ++counter; } ++varX; } if (heroList.length > 0) { varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; selectNum = 0; iData = eval('_root.chrIData_' + [_root.party_Order[heroList[selectNum]]]); playerXY = _root.battle_partyData[1][heroList[selectNum]]; playerWH = _root.battle_partyData[2][heroList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.currentScriptLayer.chrHighlight._rotation = 0; _global.helpText = iData[0] + ' [' + cmdSelect + ']'; _global.healthBarLogic.updateText(); Key.removeListener(techSelector_Listener); Key.addListener(playerSelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } if (heroList.length <= 0) { trace('NOBODY DEAD'); } } if (cmdSelect == 'All') { varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { selectNum = varX; _global.currentScriptLayer.chrHighlight._rotation = 0; duplicateMovieClip(_global.currentScriptLayer.chrHighlight, 'allSelect' + varX, 8888 + varX); newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); playerXY = _root.battle_partyData[1][varX]; playerWH = _root.battle_partyData[2][varX]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.helpText = 'All party members.'; _global.healthBarLogic.updateText(); } ++varX; } Key.removeListener(techSelector_Listener); Key.addListener(playerSelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } } } } }; itemSelector_Listener = new Object(); itemSelector_Listener.onKeyDown = function () { tempList = []; counter = 0; varX = 0; while (varX <= _root.itemListData.length - 1) { if (_root.itemListData[varX] > 0) { tempList[counter] = varX; ++counter; } ++varX; } itemListLength = counter; if (Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); ++itemNum; if (itemNum > itemListLength - 1) { itemNum = 0; } techSelect._x = -455; techSelect._y = -172 + itemNum * 16.5; _global.itemListLayer.itemDescription.text = (eval('_root.item_' + tempList[itemNum]))[(eval('_root.item_' + tempList[itemNum])).length - 1][0]; _global.helpText = (eval('_root.item_' + tempList[itemNum]))[0] + ' [' + (eval('_root.item_' + tempList[itemNum]))[2] + '] '; _global.healthBarLogic.updateText(); _global.currentScriptLayer.trackerMain.updateTracker((eval('_root.item_' + tempList[itemNum]))[6]); } if (Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); --itemNum; if (itemNum < 0) { itemNum = itemListLength - 1; } techSelect._x = -455; techSelect._y = -172 + itemNum * 16.5; _global.itemListLayer.itemDescription.text = (eval('_root.item_' + tempList[itemNum]))[(eval('_root.item_' + tempList[itemNum])).length - 1][0]; _global.helpText = (eval('_root.item_' + tempList[itemNum]))[0] + ' [' + (eval('_root.item_' + tempList[itemNum]))[2] + '] '; _global.healthBarLogic.updateText(); _global.currentScriptLayer.trackerMain.updateTracker((eval('_root.item_' + tempList[itemNum]))[6]); } if (Key.getCode() == '8') { _global.fx4.start(); varX = 0; while (varX <= 10) { newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); removeMovieClip(newDuplicate); ++varX; } _global.currentScriptLayer.chrHighlight._rotation = -45; _global.helpText = 'Items'; cmdTarget = 'OpenItem'; _global.healthBarLogic.updateText(); _global.itemListLayer.itemDescription.text = ' '; _global.itemListLayer.gotoAndPlay('close'); removeMovieClip(techSelect); Key.addListener(primary_Listener); Key.removeListener(itemSelector_Listener); } if (itemListLength > 0) { if (Key.getCode() == '32') { _global.fx1.start(); cmdName = 'ItemDelay'; cmdTarget = (eval('_root.item_' + tempList[itemNum]))[1]; cmdSelect = (eval('_root.item_' + tempList[itemNum]))[2]; dataPack0 = eval('_root.item_' + tempList[itemNum]); spCost = (eval('_root.item_' + tempList[itemNum]))[7]; if (cmdTarget == 'Enemy') { _global.helpText = ' '; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('close'); counter = 0; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveList[counter] = varX; ++counter; } ++varX; } selectNum = 0; delete counter; varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; if (cmdSelect == 'Single') { enemyXY = _root.battle_enemyData[1][enemyAliveList[selectNum]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = enemyXY[0] + enemyWH[0]; _global.currentScriptLayer.chrHighlight._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = -150; _global.currentScriptLayer.chrHighlight._rotation = 0; updateHelpBar(); _global.helpText = ' '; _global.healthBarLogic.updateText(); } if (cmdSelect == 'All') { varX = 0; while (varX <= enemyAliveList.length - 1) { _global.currentScriptLayer.chrHighlight._rotation = 0; duplicateMovieClip(_global.currentScriptLayer.chrHighlight, 'allSelect' + varX, 8888 + varX); newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); global.currentScriptLayer.chrHighlight._visible = false; enemyXY = _root.battle_enemyData[1][enemyAliveList[varX]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[varX]]; newDuplicate._x = enemyXY[0] + enemyWH[0]; newDuplicate._y = enemyXY[1] - enemyWH[1] / 2; newDuplicate._xscale = -150; newDuplicate._yscale = 150; _global.helpText = ' '; _global.healthBarLogic.updateText(); ++varX; } } Key.addListener(enemySelector_Listener); Key.removeListener(itemSelector_Listener); } if (cmdTarget == 'Party') { if (cmdSelect == 'Single' or cmdSelect == 'Self') { counter = 0; heroList = []; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { heroList[counter] = varX; ++counter; } ++varX; } varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; selectNum = _global.currentScriptLayer.actionWho; playerXY = _root.battle_partyData[1][selectNum]; playerWH = _root.battle_partyData[2][selectNum]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.currentScriptLayer.chrHighlight._rotation = 0; _global.helpText = iData[0] + ' [' + cmdSelect + ']'; _global.healthBarLogic.updateText(); Key.removeListener(itemSelector_Listener); Key.addListener(playerSelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } if (cmdSelect == 'Revive') { counter = 0; heroList = []; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] <= 0) { heroList[counter] = varX; ++counter; } ++varX; } if (heroList.length > 0) { varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; selectNum = 0; iData = eval('_root.chrIData_' + [_root.party_Order[heroList[selectNum]]]); playerXY = _root.battle_partyData[1][heroList[selectNum]]; playerWH = _root.battle_partyData[2][heroList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.currentScriptLayer.chrHighlight._rotation = 0; _global.helpText = iData[0] + ' [' + cmdSelect + ']'; _global.healthBarLogic.updateText(); Key.removeListener(itemSelector_Listener); Key.addListener(playerSelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } if (heroList.length <= 0) { trace('NOBODY DEAD'); } } if (cmdSelect == 'All') { varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); chrMovie.filters = [cellShade]; ++varA; } _global.currentScriptLayer.actionSelector._alpha = 0; _global.currentScriptLayer.battle_blackBG._alpha = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { selectNum = varX; _global.currentScriptLayer.chrHighlight._rotation = 0; duplicateMovieClip(_global.currentScriptLayer.chrHighlight, 'allSelect' + varX, 8888 + varX); newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); playerXY = _root.battle_partyData[1][varX]; playerWH = _root.battle_partyData[2][varX]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.helpText = 'All party members.'; _global.healthBarLogic.updateText(); } ++varX; } Key.removeListener(itemSelector_Listener); Key.addListener(playerSelector_Listener); _global.currentScriptLayer.trackerMain._visible = true; _global.currentScriptLayer.trackerMain.updateTracker(dataPack0[6]); } } } } }; playerSelector_Listener = new Object(); playerSelector_Listener.onKeyDown = function () { if (cmdSelect == 'Single' or cmdSelect == 'Revive') { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); --selectNum; if (selectNum < 0) { selectNum = heroList.length - 1; } iData = eval('_root.chrIData_' + [_root.party_Order[heroList[selectNum]]]); playerXY = _root.battle_partyData[1][heroList[selectNum]]; playerWH = _root.battle_partyData[2][heroList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.currentScriptLayer.chrHighlight._rotation = 0; _global.helpText = iData[0] + ' [' + cmdSelect + ']'; _global.healthBarLogic.updateText(); } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); ++selectNum; if (selectNum > heroList.length - 1) { selectNum = 0; } iData = eval('_root.chrIData_' + [_root.party_Order[heroList[selectNum]]]); playerXY = _root.battle_partyData[1][heroList[selectNum]]; playerWH = _root.battle_partyData[2][heroList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = playerXY[0] - 20; _global.currentScriptLayer.chrHighlight._y = playerXY[1] - playerWH[1] / 2; _global.currentScriptLayer.chrHighlight._yscale = 150; _global.currentScriptLayer.chrHighlight._xscale = 150; _global.currentScriptLayer.chrHighlight._rotation = 0; _global.helpText = iData[0] + ' [' + cmdSelect + ']'; _global.healthBarLogic.updateText(); } } if (Key.getCode() == '8') { _global.fx4.start(); if (comingFrom == 'alternate') { Key.addListener(alternate_Listener); _global.helpText = cmdName; _global.healthBarLogic.updateText(); } if (comingFrom == 'primary') { Key.addListener(primary_Listener); cmdName = cmdList[cmdNum][0]; _global.helpText = cmdName; _global.healthBarLogic.updateText(); } if (comingFrom == 'openTech') { Key.addListener(techSelector_Listener); _global.techListLayer.gotoAndPlay('openList'); cmdTarget = 'OpenTech'; techSelect._x = -455; techSelect._y = -82 + techNum * 16.5; _global.helpText = tempList[techNum][0][0] + ' [' + tempList[techNum][0][2] + '] '; _global.healthBarLogic.updateText(); } if (comingFrom == 'openItem') { Key.addListener(itemSelector_Listener); _global.itemListLayer.gotoAndPlay('openList'); techSelect._x = -455; techSelect._y = -172 + itemNum * 16.5; _global.helpText = (eval('_root.item_' + tempList[itemNum]))[0] + ' [' + (eval('_root.item_' + tempList[itemNum]))[2] + '] '; _global.healthBarLogic.updateText(); } Key.removeListener(playerSelector_Listener); _global.currentScriptLayer.trackerMain._visible = false; _global.currentScriptLayer.actionSelector._alpha = 100; _global.currentScriptLayer.battle_blackBG._alpha = 100; _global.currentScriptLayer.chrHighlight._yscale = 100; _global.currentScriptLayer.chrHighlight._xscale = 100; varX = 0; while (varX <= 10) { newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); removeMovieClip(newDuplicate); ++varX; } chrXY = _root.battle_partyData[1][_global.currentScriptLayer.chrOrder[0]]; chrWH = _root.battle_partyData[2][_global.currentScriptLayer.chrOrder[0]]; chrLayer = _root.battle_partyData[3][_global.currentScriptLayer.chrOrder[0]]; _global.currentScriptLayer.chrHighlight._x = 675; _global.currentScriptLayer.chrHighlight._y = 205; _global.currentScriptLayer.chrHighlight._rotation = -45; varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'invert'; ++varA; } chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.chrOrder[0]); chrMovie.swapDepths(2001); chrMovie.blendMode = 'normal'; chrMovie.filters = [whiteShadow]; } if (Key.getCode() == '32') { _global.fx1.start(); _global.helpText = ' '; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('close'); finalSelect = heroList[selectNum]; onEnter(); } }; enemySelector_Listener = new Object(); enemySelector_Listener.onKeyDown = function () { if (cmdSelect == 'Single') { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); --selectNum; if (selectNum < 0) { selectNum = enemyAliveList.length - 1; } enemyXY = _root.battle_enemyData[1][enemyAliveList[selectNum]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = enemyXY[0] + enemyWH[0]; _global.currentScriptLayer.chrHighlight._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.chrHighlight._rotation = 0; updateHelpBar(); } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); ++selectNum; if (selectNum > enemyAliveList.length - 1) { selectNum = 0; } enemyXY = _root.battle_enemyData[1][enemyAliveList[selectNum]]; enemyWH = _root.battle_enemyData[2][enemyAliveList[selectNum]]; _global.currentScriptLayer.chrHighlight._x = enemyXY[0] + enemyWH[0]; _global.currentScriptLayer.chrHighlight._y = enemyXY[1] - enemyWH[1] / 2; _global.currentScriptLayer.chrHighlight._rotation = 0; updateHelpBar(); } } if (Key.getCode() == '8') { _global.fx4.start(); if (comingFrom == 'alternate') { Key.addListener(alternate_Listener); _global.helpText = dataPack0[0]; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('open'); } if (comingFrom == 'primary') { Key.addListener(primary_Listener); cmdName = cmdList[cmdNum][0]; _global.helpText = cmdName; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('open'); } if (comingFrom == 'openTech') { Key.addListener(techSelector_Listener); _global.techListLayer.gotoAndPlay('openList'); cmdTarget = 'OpenTech'; techSelect._x = -455; techSelect._y = -82 + techNum * 16.5; _global.helpText = tempList[techNum][0][0] + ' [' + tempList[techNum][0][2] + '] '; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('open'); } if (comingFrom == 'openItem') { Key.addListener(itemSelector_Listener); _global.itemListLayer.gotoAndPlay('openList'); cmdTarget = 'OpenItem'; techSelect._x = -455; techSelect._y = -172 + itemNum * 16.5; _global.helpText = (eval('_root.item_' + tempList[itemNum]))[0] + ' [' + (eval('_root.item_' + tempList[itemNum]))[2] + '] '; _global.healthBarLogic.updateText(); _global.healthBarLogic.techBar.gotoAndPlay('open'); } Key.removeListener(enemySelector_Listener); _global.currentScriptLayer.actionSelector._alpha = 100; _global.currentScriptLayer.battle_blackBG._alpha = 100; _global.currentScriptLayer.chrHighlight._yscale = 100; _global.currentScriptLayer.chrHighlight._xscale = 100; _global.helpBarLayer.helpBar_Box._yscale = 100; _global.currentScriptLayer.trackerMain._visible = false; _global.currentScriptLayer.enemyDisplay._visible = false; varX = 0; while (varX <= 10) { newDuplicate = eval('_global.currentScriptLayer.allSelect' + varX); removeMovieClip(newDuplicate); ++varX; } chrXY = _root.battle_partyData[1][_global.currentScriptLayer.chrOrder[0]]; chrWH = _root.battle_partyData[2][_global.currentScriptLayer.chrOrder[0]]; chrLayer = _root.battle_partyData[3][_global.currentScriptLayer.chrOrder[0]]; _global.currentScriptLayer.chrHighlight._x = 675; _global.currentScriptLayer.chrHighlight._y = 205; _global.currentScriptLayer.chrHighlight._rotation = -45; varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'invert'; ++varA; } chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.chrOrder[0]); chrMovie.swapDepths(2001); chrMovie.blendMode = 'normal'; chrMovie.filters = [whiteShadow]; } if (Key.getCode() == '32') { _global.fx1.start(); finalSelect = enemyAliveList[selectNum]; onEnter(); } }; } frame 10 { function initialSetup() { varX = 0; while (varX < cmdList.length) { (eval('_global.battleIcon_' + varX)).attachMovie(cmdList[varX][0] + 'Cmd', 'battleIcon' + varX, 0, {'_x': 0, '_y': 0}); ++varX; } _global.battleIcon_A.attachMovie('attackCmd', 'battleIcon', 0, {'_x': 0, '_y': 0}); _global.battleIcon_B.attachMovie('shootCmd', 'battleIcon', 0, {'_x': 0, '_y': 0}); } initialSetup(); cmdName.text = cmdList[cmdNum][0]; gotoAndPlay('loop'); } frame 20 { if (bufferList.length > 0) { _global.rotateMovieLayer.gotoAndPlay(bufferList[0]); bufferList.shift(); } } frame 22 { gotoAndPlay('loop'); } } movieClip 679 AttackCmd { } movieClip 682 BlockCmd { } movieClip 685 FleeCmd { } movieClip 688 ItemsCmd { } movieClip 691 RechargeCmd { } movieClip 694 RegenerateCmd { } movieClip 696 ScanCmd { } movieClip 699 ShootCmd { } movieClip 702 TechsCmd { } movieClip 705 ThrowCmd { } movieClip 709 { } movieClip 710 { frame 1 { function onEnterFrame() { supportGauge._yscale = (_global.currentBattleLayer.supportTimer / _global.currentBattleLayer.supportLimit) * 100; } } } movieClip 712 { } // unknown tag 88 length 84 movieClip 717 { } movieClip 719 { frame 1 { attachMovie('healthBarPic' + _root.support_Party[0], 'portrait', 1, {'_x': 0, '_y': 0}); } } movieClip 728 { frame 1 { stop(); } frame 24 { stop(); } } movieClip 732 { } movieClip 734 { } movieClip 736 { } movieClip 739 { frame 1 { attachMovie('healthBarPic' + _root.party_Order[0], 'healthBarPic', 0, {'_x': 0, '_y': 0}); } } movieClip 740 { frame 1 { _global.healthGauge0 = this; } frame 9 { stop(); } } movieClip 743 { frame 1 { attachMovie('healthBarPic' + _root.party_Order[2], 'healthBarPic', 0, {'_x': 0, '_y': 0}); } } movieClip 744 { frame 1 { _global.healthGauge2 = this; } } movieClip 746 { frame 1 { attachMovie('healthBarPic' + _root.party_Order[1], 'healthBarPic', 0, {'_x': 0, '_y': 0}); } } movieClip 747 { frame 1 { _global.healthGauge1 = this; } } movieClip 748 { frame 1 { _global.healthbarRotate = this; varX = 0; while (varX <= 4) { (eval('_global.healthbarRotate.statusBar' + varX))._visible = false; ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { (eval('_global.healthbarRotate.statusBar' + varX))._visible = true; ++varX; } stop(); } frame 2 { _global.healthBarLogic.stop(); } frame 12 { _global.healthBarLogic.gotoAndPlay('loop'); stop(); } frame 13 { _global.healthBarLogic.stop(); } frame 23 { _global.healthBarLogic.gotoAndPlay('loop'); stop(); } frame 24 { _global.healthBarLogic.stop(); } frame 35 { _global.healthBarLogic.gotoAndPlay('loop'); stop(); } frame 36 { _global.healthBarLogic.stop(); } frame 48 { _global.healthBarLogic.gotoAndPlay('loop'); stop(); } frame 49 { _global.healthBarLogic.stop(); } frame 59 { _global.healthBarLogic.gotoAndPlay('loop'); stop(); } frame 60 { _global.healthBarLogic.stop(); } frame 70 { _global.healthBarLogic.gotoAndPlay('loop'); stop(); } } movieClip 749 healthBarCode { frame 1 { function updateText() { techBarText.text = _global.helpText; } function findPlace(newLocation) { oldFrame = frame; frame = newLocation; if (oldFrame == 0 and frame == 2) { bufferList[bufferList.length] = 'L2'; } if (oldFrame == 0 and frame == 1) { bufferList[bufferList.length] = 'R0'; } if (oldFrame == 2 and frame == 1) { bufferList[bufferList.length] = 'L1'; } if (oldFrame == 2 and frame == 0) { bufferList[bufferList.length] = 'R2'; } if (oldFrame == 1 and frame == 0) { bufferList[bufferList.length] = 'L0'; } if (oldFrame == 1 and frame == 2) { bufferList[bufferList.length] = 'R1'; } } _global.healthBarLogic = this; frame = 0; oldLocation = 'L'; oldFrame = 0; bufferList = ['']; gotoAndPlay('loop'); } frame 6 { if (bufferList.length > 0) { _global.healthbarRotate.gotoAndPlay(bufferList[0]); bufferList.shift(); } } frame 10 { gotoAndPlay('loop'); } } movieClip 779 battleStatsMonitor { frame 1 { function onEnterFrame() { text0.text = _global.currentScriptLayer.battleStatistics[0][0][0]; text1.text = _global.currentScriptLayer.battleStatistics[0][1][0]; text2.text = _global.currentScriptLayer.battleStatistics[0][2][0]; text3.text = _global.currentScriptLayer.battleStatistics[0][3][1] + ' / ' + _global.currentScriptLayer.battleStatistics[0][3][0]; text4.text = _global.currentScriptLayer.battleStatistics[0][4][0]; text5a.text = _global.currentScriptLayer.battleStatistics[0][5][0]; text5b.text = _global.currentScriptLayer.battleStatistics[0][5][1]; text5c.text = _global.currentScriptLayer.battleStatistics[0][5][2]; text5d.text = _global.currentScriptLayer.battleStatistics[0][5][3]; text6.text = _global.currentScriptLayer.battleStatistics[0][6][0] + ' / ' + _global.currentScriptLayer.battleStatistics[0][6][1]; text10a.text = _global.currentScriptLayer.battleStatistics[1][0][0]; text10b.text = _global.currentScriptLayer.battleStatistics[1][1][0]; text10c.text = _global.currentScriptLayer.battleStatistics[1][1][1]; } } } movieClip 798 ani-explosion1 { frame 1 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); _global.fx104.start(); } frame 48 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 799 ani-explosion2 { frame 1 { _global.fx101.start(); } frame 1 { this._x += 10; } frame 5 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 5 { this._x += 10; } frame 6 { _global.fx102.start(); } frame 8 { this._x += 10; } frame 38 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 800 ani-fire1 { frame 1 { _global.fx101.start(); _global.fx106.start(); } frame 7 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 28 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 802 { } movieClip 808 ani-fireGrenade { frame 17 { _global.fx111.start(); } frame 23 { _global.fx111.start(); } frame 91 { _global.fx101.start(); } frame 92 { _global.battleBGLayer.gotoAndPlay('zoomQuick'); _global.fx104.start(); } frame 96 { this._x += 10; } frame 100 { this._x += 10; } frame 101 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 103 { this._x += 10; } frame 147 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 825 ani-flameThrower1 { frame 1 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).gotoAndStop('dischargeShotLoop'); _global.fx50.start(); } frame 39 { _global.fx103.start(); } frame 44 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).gotoAndPlay('dischargeShotLoop'); _global.fx103.start(); } frame 54 { _global.battleBGLayer.gotoAndPlay('shakeContinue'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 62 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 70 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 77 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 83 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 107 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 834 ani-flashBang { frame 17 { _global.fx111.start(); } frame 23 { _global.fx111.start(); } frame 91 { _global.fx101.start(); } frame 92 { _global.battleBGLayer.gotoAndPlay('zoomQuick'); _global.fx105.start(); } frame 96 { this._x += 10; } frame 100 { this._x += 10; } frame 101 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 103 { this._x += 10; } frame 147 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 845 ani-pillar1 { frame 1 { _global.fx106.start(); _global.fx103.start(); } frame 10 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); _global.battleBGLayer.gotoAndPlay('zoomQuick'); } frame 40 { } frame 71 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 859 ani-pillar2 { frame 1 { _global.fx106.start(); _global.fx103.start(); } frame 33 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); _global.battleBGLayer.gotoAndPlay('zoomQuick'); } frame 63 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 860 bossExplosion { frame 1 { _global.fx101.start(); } frame 7 { _global.fx104.start(); } frame 47 { stop(); } } movieClip 877 ani-ice1 { frame 1 { _global.fx201.start(); } frame 26 { _global.battleBGLayer.gotoAndPlay('zoomQuick'); } frame 30 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 54 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 886 ani-iceGrenade1 { frame 17 { _global.fx111.start(); } frame 23 { _global.fx111.start(); } frame 29 { _global.fx111.start(); } frame 92 { _global.battleBGLayer.gotoAndPlay('zoomQuick'); _global.fx303.start(); } frame 95 { _global.fx304.start(); } frame 101 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 147 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 907 { frame 1 { _global.fx304.start(); } frame 36 { _global.fx60.start(); } frame 39 { _global.fx55.start(); } frame 53 { _global.fx60.start(); } frame 56 { _global.fx55.start(); } frame 64 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 82 { stop(); } } movieClip 908 ani-iceMissle1 { frame 1 { } frame 78 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 925 { frame 1 { _global.fx304.start(); } frame 122 { _global.fx305.start(); _global.fx107.start(); } frame 146 { _global.fx304.start(); _global.fx107.start(); } frame 161 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 174 { stop(); } } movieClip 926 ani-icePillar1 { frame 184 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 946 { frame 1 { _global.fx203.start(); } frame 39 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 70 { stop(); } } movieClip 947 ani-tornado { frame 34 { } frame 67 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 960 ani-electric1 { frame 1 { _global.fireball2.start(); } frame 2 { _global.fx301.start(); } frame 7 { } frame 56 { _global.fx302.start(); } frame 60 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [50]]); } frame 86 { _global.fx302.start(); } frame 89 { _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [50]]); } frame 127 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 984 ani-electricBeam1 { frame 1 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).stop(); _global.fx51.start(); } frame 115 { _global.fx302.start(); } frame 137 { _global.fx302.start(); } frame 183 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).gotoAndPlay('dischargeShotLoop'); _global.fx301.start(); } frame 196 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx301.start(); } frame 212 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx410.start(); } frame 220 { _global.fx410.start(); } frame 236 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx410.start(); } frame 285 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1001 ani-beam2 { frame 1 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).gotoAndStop('dischargeShotLoop'); } frame 2 { _global.fx401.start(); } frame 42 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).gotoAndPlay('dischargeShotLoop'); _global.fx402.start(); } frame 51 { _global.battleBGLayer.gotoAndPlay('shakeContinue'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 52 { _global.fx403.start(); } frame 63 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 74 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 85 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); } frame 93 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1005 { } movieClip 1006 ani-beam3 { frame 1 { _global.fx404.start(); } frame 17 { _global.battleBGLayer.gotoAndPlay('shakeContinue'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 26 { _global.fx405.start(0, 5); } frame 29 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 37 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 45 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 53 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 61 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 69 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 77 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 85 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 93 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 94 { marker = (eval('_global.song' + _global.currentSong)).position / 1000; _global.fx405.stop(); _global.fx406.start(); (eval('_global.song' + _global.currentSong)).start(marker); } frame 112 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 132 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1012 ani-beam4 { frame 1 { _global.fx409.start(); } frame 17 { _global.battleBGLayer.gotoAndPlay('shakeContinue'); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 26 { _global.fx405.start(0, 5); } frame 29 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 30 { _global.fx407.start(0, 5); } frame 37 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 45 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 53 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 61 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 69 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 77 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 85 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 93 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [10]]); } frame 94 { marker = (eval('_global.song' + _global.currentSong)).position / 1000; _global.fx405.stop(); _global.fx407.stop(); _global.fx408.start(); (eval('_global.song' + _global.currentSong)).start(marker); } frame 112 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 132 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1025 ani-poisen1 { frame 1 { _global.battleBGLayer.gotoAndPlay('sicklyCamera'); _global.fx601.start(); } frame 19 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 29 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1031 { frame 52 { gotoAndPlay(1); } } movieClip 1032 { frame 42 { stop(); } } movieClip 1033 ani-heal1 { frame 1 { _global.fx500.start(); } frame 58 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 82 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1034 ani-mana1 { frame 1 { _global.fx503.start(); } frame 58 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 82 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1035 ani-regain1 { frame 1 { _global.fx502.start(); } frame 58 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 82 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1054 ani-buster1 { frame 1 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).stop(); _global.fx51.start(); } frame 115 { _global.fx302.start(); } frame 137 { _global.fx302.start(); } frame 182 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).play(); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx112.start(); } frame 185 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx112.start(); } frame 188 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.battleBGLayer.gotoAndPlay('shakeOnce'); _global.fx112.start(); } frame 239 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1071 ani-fireBeam1 { frame 1 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).stop(); _global.fx51.start(); } frame 115 { _global.fx302.start(); } frame 137 { _global.fx302.start(); } frame 183 { _global.fx406.start(); } frame 194 { _global.fx113.start(); } frame 196 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).gotoAndPlay('dischargeShotLoop'); _global.fx406.start(); } frame 205 { marker = (eval('_global.song' + _global.currentSong)).position / 1000; _global.fx113.stop(); _global.fx113.start(); (eval('_global.song' + _global.currentSong)).start(marker); } frame 212 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); } frame 213 { _global.fx406.start(); } frame 220 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.absNum])).gotoAndPlay('dischargeShotLoop'); } frame 233 { marker = (eval('_global.song' + _global.currentSong)).position / 1000; _global.fx113.stop(); _global.fx113.start(); (eval('_global.song' + _global.currentSong)).start(marker); } frame 236 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); } frame 285 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1077 ani-impact { frame 1 { _global.fx43.start(); _global.fx55.start(); _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 19 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1078 ani-none { frame 1 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 23 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1079 ani-noneShort { frame 1 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1081 ani-scan1 { frame 40 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 69 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1089 { } movieClip 1090 ani-shield { frame 1 { _global.fx510.start(); } frame 1 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [100]]); } frame 85 { _global.splashHolderLayer.gotoAndPlay('logic'); this.stop(); } } movieClip 1091 { } movieClip 1094 objectivesMC { frame 1 { objectiveListener = new Object(); objectiveListener.onKeyDown = function () { if (Key.getCode() == '79') { play(); } }; Key.addListener(objectiveListener); } frame 7 { stop(); } frame 8 { function onEnterFrame() { list2 = 'PRIMARY OBJECTIVES:\r'; list = '\r'; varX = 0; while (varX <= 10) { if (_root.battle_ObjectivesMain[varX] == true) { list += _root.battle_ObjectiveList[varX][0] + '\r'; list2 += '[On-going]\r'; } ++varX; } list2 += '\rSECONDARY OBJECTIVES:\r'; list += '\r'; varX = 0; while (varX <= _root.battle_secObjectiveList.length) { if (_root.battle_ObjectivesSec[varX] == true) { if (varX == 0) { if (_global.currentBattleLayer.battleStatistics[1][0][0] <= 0) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 1) { if (_global.currentBattleLayer.battleStatistics[0][2][0] >= 5) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 2) { if (_global.currentBattleLayer.battleStatistics[1][1][0] >= 1) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 3) { if (_global.currentScriptLayer.battleStatistics[1][2][0] <= 0) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 4) { if (_global.currentBattleLayer.battleStatistics[0][5][2] <= 0) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 5) { list += _root.battle_secObjectiveList[varX][0]; if (_global.currentBattleLayer.battleStatistics[1][0][0] >= 5) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 6) { totalAttacks = _global.currentBattleLayer.battleStatistics[0][5][0] + _global.currentBattleLayer.battleStatistics[0][5][1] + _global.currentBattleLayer.battleStatistics[0][5][2] + _global.currentBattleLayer.battleStatistics[0][5][3]; if (totalAttacks >= 20) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } delete totalAttacks; } if (varX == 7) { if (_global.currentBattleLayer.battleStatistics[0][5][0] >= 1 and _global.currentBattleLayer.battleStatistics[0][5][1] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][2] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][3] <= 0) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 8) { list += _root.battle_secObjectiveList[varX][0]; if (_global.currentBattleLayer.battleStatistics[0][5][1] >= 1 and _global.currentBattleLayer.battleStatistics[0][5][0] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][2] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][3] <= 0) { list += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 9) { if (_global.currentBattleLayer.battleStatistics[0][5][2] >= 1 and _global.currentBattleLayer.battleStatistics[0][5][1] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][0] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][3] <= 0) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } if (varX == 10) { if (_global.currentBattleLayer.battleStatistics[0][5][3] >= 1 and _global.currentBattleLayer.battleStatistics[0][5][0] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][1] <= 0 and _global.currentBattleLayer.battleStatistics[0][5][2] <= 0) { list += _root.battle_secObjectiveList[varX][0]; list2 += '[DONE]\r'; } else { list += _root.battle_secObjectiveList[varX][0]; list2 += '[NOT MET]\r'; } } } ++varX; } listText.text = list; listText2.text = list2; } } frame 13 { stop(); } frame 14 { Key.removeListener(objectiveListener); } frame 15 { gotoAndPlay('load'); } } movieClip 1096 musicLooper { frame 1 { songLoopData = [[13.42, 101, 0], [15.675, 90.33, 0], [7.62, 85.37000000000001, 0]]; songPlaying = eval('_global.song' + _global.currentSong); songPlaying.setVolume(_root.gameVariables[0][0][1]); if (_root.gameVariables[0][0][2] == true) { songPlaying.start(0); } if (_root.gameVariables[0][0][2] == true) { gotoAndPlay('loop'); } else { stop; } } frame 7 { function onEnterFrame() { if ((eval('_global.song' + _global.currentSong)).position / 1000 >= songLoopData[_global.currentSong][1]) { (eval('_global.song' + _global.currentSong)).stop(); songPlaying.start(songLoopData[_global.currentSong][0]); } } stop(); } } movieClip 1122 battle_gruntArm { frame 5 { play(); } frame 22 { gotoAndPlay('standing'); } frame 47 { gotoAndStop('standing'); } frame 66 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] - 15; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 77 { _global.fx31.start(); } frame 83 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 87 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; } frame 101 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 118 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.target_cmdNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.target_cmdNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.target_cmdNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; _global.currentScriptLayer.currentMovie._x = playerXY[0] - playerWH[0] - 15; _global.currentScriptLayer.currentMovie._y = playerXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(layer + 1); _global.currentScriptLayer.currentMovie._xscale = zoom; _global.currentScriptLayer.currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 129 { _global.fx31.start(); } frame 135 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 177 { (eval('_root.battleChrLayer_' + _root.party_Order[_global.currentScriptLayer.target_cmdNum])).gotoAndPlay('damage0'); _global.currentScriptLayer.splashAnimation(); stop(); } frame 185 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.enemy_number]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.enemy_number]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][0]; enemyZoom = _root.battle_enemyData[3][_global.currentScriptLayer.enemy_number][1]; _global.currentScriptLayer.currentMovie._x = enemyXY[0]; _global.currentScriptLayer.currentMovie._y = enemyXY[1]; _global.currentScriptLayer.currentMovie.swapDepths(enemyLayer); _global.currentScriptLayer.currentMovie._xscale = enemyZoom; _global.currentScriptLayer.currentMovie._yscale = enemyZoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyZoom; } frame 199 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 221 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 234 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 259 { gotoAndStop('standing'); } frame 283 { gotoAndStop('standing'); } frame 409 { stop(); } } movieClip 1253 chrAni1 { frame 1 { _root.battleChrLayer_1 = this; if (Math.round(Math.random() * 2) == 0) { gotoAndPlay('intro'); } else { gotoAndPlay('standing'); } } frame 17 { _global.fx406.start(); } frame 81 { gotoAndPlay('standing'); } frame 85 { gotoState = 'standing'; play(); } frame 85 { counter = 0; } frame 110 { play(); } frame 124 { if (_root.chrTData_1[0] < _root.chrCData_1[0] / 4) { if (_root.chrTData_1[0] <= 0) { gotoAndStop('defeated'); } if (_root.chrTData_1[0] > 0) { gotoAndStop('injured'); } } else { if (Math.round(Math.random() * 4) == 0) { gotoAndStop('standing'); } else { gotoAndStop('standLoop'); } } } frame 129 { gotoState = 'injured'; play(); } frame 129 { counter = 0; } frame 148 { _global.fx302.start(); } frame 169 { play(); } frame 182 { if (_root.chrTData_1[0] <= 0) { gotoAndStop('defeated'); } else { if (Math.round(Math.random() * 4) == 0) { gotoAndStop('injured'); } else { gotoAndStop('injuryLoop'); } } } frame 187 { gotoState = 'chargingShot'; play(); } frame 190 { _global.fx401.start(); } frame 219 { _global.fx50.start(); } frame 228 { play(); } frame 233 { gotoAndStop('chargingShotLoop'); } frame 238 { gotoState = 'chargingEnergy'; play(); } frame 257 { _global.fx50.start(); } frame 262 { play(); } frame 267 { gotoAndStop('chargeLoop'); } frame 271 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); clearInterval(startPause); _global.fx50.start(); } frame 273 { _global.currentScriptLayer.cameraControls('zoomInPlayer'); } frame 278 { _global.fx302.start(); } frame 308 { _global.currentScriptLayer.cameraControls('quickNormal'); _global.currentScriptLayer.healthBarCode._visible = true; } frame 309 { _global.fx105.start(); } frame 312 { _global.fx408.start(); } frame 335 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 336 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 339 { _root.battleChrLayer_1.gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 343 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 358 { _global.fx202.start(); } frame 379 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.target_cmdNum]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.target_cmdNum]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 155; xZoom = 100; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 185; xZoom = 130; } if (enemyXY[1] >= 580) { zoom = 215; xZoom = 160; } currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = enemyXY[0] + enemyWH[0] + 175 + xZoom / 2; currentMovie._y = enemyXY[1]; currentMovie.swapDepths(enemyLayer + 1); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyLayer; delete xZoom; } frame 382 { _global.fx401.start(); } frame 430 { _global.currentScriptLayer.splashAnimation(); } frame 431 { play(); } frame 448 { stop(); } frame 449 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 451 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 457 { _global.currentScriptLayer.play(); gotoAndStop('standing'); } frame 461 { _global.currentScriptLayer.stop(); play(); } frame 479 { _global.fx202.start(); } frame 501 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.target_cmdNum]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.target_cmdNum]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 155; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 185; } if (enemyXY[1] >= 580) { zoom = 215; } currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = enemyXY[0] + enemyWH[0] + 70; currentMovie._y = enemyXY[1]; currentMovie.swapDepths(enemyLayer + 1); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyLayer; } frame 502 { cancelBtn_Listener = new Object(); cancelBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); extraDmg = false; } }; extraDmgBtn_Listener = new Object(); extraDmgBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { extraDmg = true; } }; extraDmg = false; dmgBtn = false; Key.addListener(extraDmgBtn_Listener); Key.addListener(cancelBtn_Listener); } frame 517 { Key.removeListener(cancelBtn_Listener); } frame 529 { _global.fx105.start(); } frame 535 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [100]]); _global.fx55.start(); } frame 543 { ++_global.currentScriptLayer.battleStatistics[0][6][0]; if (extraDmg == true) { ++_global.currentScriptLayer.battleStatistics[0][6][1]; gotoAndPlay('extraAttack'); } } frame 547 { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); } frame 548 { } frame 549 { gotoAndPlay('endBonusAtk'); } frame 550 { _global.fx105.start(); } frame 555 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [80]]); _global.fx55.start(); } frame 570 { } frame 573 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 580 { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 586 { _global.currentScriptLayer.stop(); _global.fx50.start(); play(); } frame 606 { cancelBtn_Listener = new Object(); cancelBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); extraDmg = false; } }; extraDmgBtn_Listener = new Object(); extraDmgBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { extraDmg = true; } }; extraDmg = false; dmgBtn = false; Key.addListener(extraDmgBtn_Listener); Key.addListener(cancelBtn_Listener); } frame 610 { Key.removeListener(cancelBtn_Listener); } frame 620 { ++_global.currentScriptLayer.battleStatistics[0][6][0]; if (extraDmg == true) { ++_global.currentScriptLayer.battleStatistics[0][6][1]; extraDmg = 50; } else { extraDmg = 0; } } frame 625 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [100 + extraDmg]]); _global.fx20.start(); } frame 653 { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); _global.currentScriptLayer.play(); gotoAndStop('standing'); } frame 681 { _global.currentScriptLayer.splashAnimation(); _global.fx59.start(); stop(); } frame 704 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 709 { play(); } frame 727 { gotoAndStop(gotoState); } frame 731 { play(); } frame 753 { gotoAndStop(gotoState); } frame 757 { play(); } frame 823 { if (_root.chrTData_1[0] > 0) { gotoAndPlay('standing'); } play(); } frame 831 { if (Math.round(Math.random() * 4) <= 0) { this.play; } else { this.gotoAndPlay('defeatLoop'); } } frame 851 { gotoAndStop('defeatLoop'); } frame 855 { _global.currentScriptLayer.stop(); play(); } frame 895 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.target_cmdNum]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.target_cmdNum]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 155; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 185; } if (enemyXY[1] >= 580) { zoom = 215; } currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = enemyXY[0] + enemyWH[0] + 50; currentMovie._y = enemyXY[1]; currentMovie.swapDepths(enemyLayer + 1); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyLayer; } frame 917 { _global.fx105.start(); } frame 922 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [80]]); _global.fx55.start(); } frame 929 { _global.fx105.start(); } frame 935 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [80]]); _global.fx55.start(); } frame 951 { _global.fx105.start(); } frame 956 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [80]]); _global.fx55.start(); } frame 970 { } frame 975 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; _global.currentScriptLayer.play(); } frame 979 { gotoAndStop('standing'); } frame 1017 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [80]]); } frame 1030 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [20]]); } frame 1051 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [20]]); } frame 1065 { oldTime = getTimer(); duration = 200; oldTime += duration; clearInterval(startPause); startPause = setInterval(waitFunction, 1); stop(); } frame 1070 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; _global.currentScriptLayer.play(); } frame 1074 { gotoAndPlay('standing'); } } movieClip 1291 { } movieClip 1323 chrAni2 { frame 1 { _root.battleChrLayer_2 = this; if (Math.round(Math.random() * 2) == 0) { gotoAndPlay('intro'); } else { gotoAndPlay('standing'); } } frame 11 { _global.fx410.start(); } frame 36 { _global.fx411.start(); } frame 48 { gotoAndPlay('standing'); } frame 54 { gotoState = 'standing'; play(); } frame 54 { counter = 0; } frame 77 { randomNumber = Math.round(Math.random(4) * 1); if (randomNumber == 0 and counter < 1) { gotoAndPlay('blink'); ++counter; } else { delete randomNumber; delete counter; } } frame 78 { play(); } frame 92 { if (_root.chrTData_2[0] < _root.chrCData_2[0] / 4) { if (_root.chrTData_2[0] <= 0) { gotoAndStop('defeated'); } if (_root.chrTData_2[0] > 0) { gotoAndStop('injured'); } } else { if (Math.round(Math.random() * 4) == 0) { gotoAndStop('standing'); } else { gotoAndStop('standLoop'); } } } frame 97 { gotoState = 'injured'; play(); } frame 123 { play(); } frame 138 { if (_root.chrTData_2[0] <= 0) { gotoAndStop('defeated'); } else { if (Math.round(Math.random() * 4) == 0) { gotoAndStop('injured'); } else { gotoAndStop('injuryLoop'); } } } frame 144 { gotoState = 'chargingShot'; play(); } frame 169 { _global.fx105.start(); } frame 170 { _global.fx50.start(); } frame 175 { _global.fx401.start(); } frame 182 { play(); } frame 187 { gotoAndStop('chargeShotLoop'); } frame 193 { gotoState = 'chargingEnergy'; play(); } frame 210 { _global.fx105.start(); } frame 215 { _global.fx50.start(); } frame 222 { play(); } frame 227 { gotoAndStop('chargeEnergyLoop'); } frame 234 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); } frame 250 { _global.fx202.start(); } frame 274 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.target_cmdNum]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.target_cmdNum]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 155; xZoom = 100; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 185; xZoom = 130; } if (enemyXY[1] >= 580) { zoom = 215; xZoom = 160; } currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = enemyXY[0] + enemyWH[0] + 175 + xZoom / 2; currentMovie._y = enemyXY[1]; currentMovie.swapDepths(enemyLayer + 1); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyLayer; delete xZoom; } frame 290 { _global.currentScriptLayer.splashAnimation(); } frame 291 { play(); } frame 325 { stop(); } frame 326 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 348 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 350 { _global.currentScriptLayer.play(); gotoAndStop('standing'); } frame 356 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); clearInterval(startPause); _global.fx50.start(); } frame 360 { _global.currentScriptLayer.cameraControls('zoomInPlayer'); } frame 372 { _global.fx401.start(); } frame 412 { _global.fx302.start(); } frame 422 { _global.currentScriptLayer.cameraControls('quickNormal'); _global.currentScriptLayer.healthBarCode._visible = true; } frame 429 { _global.fx403.start(); } frame 451 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 452 { _global.battleBGLayer.gotoAndPlay('normal'); _global.currentScriptLayer.healthBarCode._visible = true; } frame 460 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 467 { _global.currentScriptLayer.stop(); play(); } frame 482 { _global.fx202.start(); } frame 503 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.target_cmdNum]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.target_cmdNum]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 155; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 185; } if (enemyXY[1] >= 580) { zoom = 215; } currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = enemyXY[0] + enemyWH[0] + 55; currentMovie._y = enemyXY[1]; currentMovie.swapDepths(enemyLayer + 1); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyLayer; } frame 504 { cancelBtn_Listener = new Object(); cancelBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); extraDmg = false; } }; extraDmgBtn_Listener = new Object(); extraDmgBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { extraDmg = true; } }; extraDmg = false; dmgBtn = false; Key.addListener(extraDmgBtn_Listener); Key.addListener(cancelBtn_Listener); } frame 504 { _global.fx302.start(); } frame 512 { Key.removeListener(cancelBtn_Listener); } frame 526 { ++_global.currentScriptLayer.battleStatistics[0][6][0]; if (extraDmg == true) { ++_global.currentScriptLayer.battleStatistics[0][6][1]; extraDmg = 50; } else { extraDmg = 0; } _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [100 + extraDmg]]); _global.fx55.start(); } frame 544 { } frame 545 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); } frame 549 { _global.currentScriptLayer.play(); gotoAndStop('standing'); } frame 555 { _global.currentScriptLayer.stop(); play(); } frame 570 { _global.fx202.start(); } frame 591 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.target_cmdNum]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.target_cmdNum]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 155; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 185; } if (enemyXY[1] >= 580) { zoom = 215; } currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = enemyXY[0] + enemyWH[0] + 55; currentMovie._y = enemyXY[1]; currentMovie.swapDepths(enemyLayer + 1); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyLayer; } frame 592 { cancelBtn_Listener = new Object(); cancelBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); extraDmg = false; } }; extraDmgBtn_Listener = new Object(); extraDmgBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { extraDmg = true; } }; extraDmg = false; dmgBtn = false; Key.addListener(extraDmgBtn_Listener); Key.addListener(cancelBtn_Listener); } frame 592 { _global.fx301.start(); } frame 598 { } frame 599 { Key.removeListener(cancelBtn_Listener); } frame 613 { ++_global.currentScriptLayer.battleStatistics[0][6][0]; if (extraDmg == true) { ++_global.currentScriptLayer.battleStatistics[0][6][1]; extraDmg = 50; } else { extraDmg = 0; } _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [100 + extraDmg]]); _global.fx55.start(); } frame 650 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); } frame 655 { _global.currentScriptLayer.play(); gotoAndStop('standing'); } frame 668 { _global.fx59.start(); } frame 679 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 694 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 703 { play(); } frame 721 { gotoAndStop(gotoState); } frame 727 { play(); } frame 740 { gotoAndStop(gotoState); } frame 747 { play(); } frame 797 { if (_root.chrTData_2[0] > 0) { gotoAndPlay('standing'); } play(); } frame 806 { if (Math.round(Math.random() * 4) <= 0) { this.play; } else { this.gotoAndStop('defeatLoop'); } } frame 827 { gotoAndStop('defeatLoop'); } } movieClip 1446 chrAni0 { frame 1 { _root.battleChrLayer_0 = this; if (Math.round(Math.random() * 2) == 0) { gotoAndPlay('intro'); } else { gotoAndPlay('standing'); } } frame 11 { _global.fx404.start(); } frame 18 { _global.fx404.start(); } frame 42 { _global.fx105.start(); } frame 67 { } frame 71 { gotoAndPlay('standing'); } frame 75 { gotoState = 'standing'; play(); } frame 75 { counter = 0; } frame 92 { randomNumber = Math.round(Math.random(4) * 1); if (randomNumber == 0 and counter < 1) { gotoAndPlay('blink'); ++counter; } else { delete randomNumber; delete counter; } } frame 101 { play(); } frame 119 { if (_root.chrTData_0[0] < _root.chrCData_0[0] / 4) { if (_root.chrTData_0[0] <= 0) { gotoAndStop('defeated'); } if (_root.chrTData_0[0] > 0) { gotoAndStop('injured'); } } else { if (Math.round(Math.random() * 4) == 0) { gotoAndStop('standing'); } else { gotoAndStop('standLoop'); } } } frame 123 { gotoState = 'injured'; counter = 0; play(); } frame 153 { play(); } frame 177 { if (_root.chrTData_0[0] <= 0) { gotoAndStop('defeated'); } else { if (Math.round(Math.random() * 4) == 0) { gotoAndStop('injured'); } else { gotoAndStop('injuryLoop'); } } } frame 183 { gotoState = 'chargingShot'; } frame 211 { _global.fx52.start(); } frame 223 { play(); } frame 229 { gotoAndStop('chargeCycle'); } frame 234 { gotoState = 'chargingEnergy'; play(); } frame 252 { _global.fx404.start(); } frame 258 { _global.fx404.start(); } frame 264 { _global.fx404.start(); } frame 273 { play(); } frame 279 { gotoAndStop('energyLoop'); } frame 285 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 306 { _global.fx202.start(); } frame 326 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.target_cmdNum]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.target_cmdNum]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 155; xZoom = 100; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 185; xZoom = 130; } if (enemyXY[1] >= 580) { zoom = 215; xZoom = 160; } currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = enemyXY[0] + enemyWH[0] + 175 + xZoom / 2; currentMovie._y = enemyXY[1]; currentMovie.swapDepths(enemyLayer + 1); currentMovie._xscale = zoom; currentMovie._yscale = zoom; _global.comboCounterLayer.play(); delete enemyXY; delete enemyWH; delete currentMovie; delete enemyLayer; delete xZoom; } frame 335 { _global.currentScriptLayer.splashAnimation(); } frame 336 { play(); } frame 368 { stop(); } frame 369 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 383 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; } frame 396 { _root.battleChrLayer_0.gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 402 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 402 { } frame 408 { _global.currentScriptLayer.cameraControls('zoomInPlayer'); } frame 422 { } frame 449 { _global.fx403.start(); } frame 452 { _global.currentScriptLayer.cameraControls('quickNormal'); _global.currentScriptLayer.healthBarCode._visible = true; } frame 465 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 470 { } frame 471 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 476 { _root.battleChrLayer_0.gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 480 { _global.currentScriptLayer.stop(); play(); } frame 496 { _global.fx61.start(); } frame 507 { } frame 521 { _global.fx202.start(); } frame 549 { enemyXY = _root.battle_enemyData[1][_global.currentScriptLayer.target_cmdNum]; enemyWH = _root.battle_enemyData[2][_global.currentScriptLayer.target_cmdNum]; enemyLayer = _root.battle_enemyData[3][_global.currentScriptLayer.target_cmdNum][0]; if (enemyXY[1] >= 440 and enemyXY[1] < 510) { zoom = 155; } if (enemyXY[1] >= 510 and enemyXY[1] < 580) { zoom = 185; } if (enemyXY[1] >= 580) { zoom = 215; } currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = enemyXY[0] + enemyWH[0] + 55; currentMovie._y = enemyXY[1]; currentMovie.swapDepths(enemyLayer + 1); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete enemyXY; delete enemyWH; delete currentMovie; delete enemyLayer; } frame 550 { cancelBtn_Listener = new Object(); cancelBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); extraDmg = false; } }; extraDmgBtn_Listener = new Object(); extraDmgBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { extraDmg = true; playerXY = _root.battle_enemyData[1][_root.party_Order[0]]; } }; extraDmg = false; dmgBtn = false; Key.addListener(extraDmgBtn_Listener); Key.addListener(cancelBtn_Listener); } frame 560 { Key.removeListener(cancelBtn_Listener); } frame 573 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [100]]); _global.fx55.start(); } frame 578 { ++_global.currentScriptLayer.battleStatistics[0][6][0]; if (extraDmg == true) { ++_global.currentScriptLayer.battleStatistics[0][6][1]; play(); } if (extraDmg == false) { gotoAndPlay('endBonusAtkM'); } } frame 586 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [75]]); _global.fx55.start(); } frame 612 { playerXY = _root.battle_partyData[1][_global.currentScriptLayer.absNum]; playerWH = _root.battle_partyData[2][_global.currentScriptLayer.absNum]; zoom = _root.battle_partyData[3][_global.currentScriptLayer.absNum][1]; layer = _root.battle_partyData[3][_global.currentScriptLayer.absNum][0]; _global.currentScriptLayer.chrHighlight._x = playerXY[0]; _global.currentScriptLayer.chrHighlight._y = playerXY[1]; currentMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + _global.currentScriptLayer.absNum); currentMovie._x = playerXY[0]; currentMovie._y = playerXY[1]; currentMovie.swapDepths(layer); currentMovie._xscale = zoom; currentMovie._yscale = zoom; delete playerXY; delete playerWH; delete currentMovie; delete zoom; delete layer; Key.removeListener(cancelBtn_Listener); Key.removeListener(extraDmgBtn_Listener); } frame 616 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 620 { _global.currentScriptLayer.stop(); } frame 630 { cancelBtn_Listener = new Object(); cancelBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(extraDmgBtn_Listener); Key.removeListener(cancelBtn_Listener); extraDmg = false; } }; extraDmgBtn_Listener = new Object(); extraDmgBtn_Listener.onKeyDown = function () { if (Key.getCode() == '32') { extraDmg = true; playerXY = _root.battle_enemyData[1][_root.party_Order[0]]; } }; extraDmg = false; dmgBtn = false; Key.addListener(extraDmgBtn_Listener); Key.addListener(cancelBtn_Listener); _global.fx50.start(); } frame 643 { Key.removeListener(cancelBtn_Listener); } frame 653 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [100]]); _global.fx20.start(); } frame 664 { ++_global.currentScriptLayer.battleStatistics[0][6][0]; if (extraDmg == true) { play(); ++_global.currentScriptLayer.battleStatistics[0][6][1]; } if (extraDmg == false) { gotoAndPlay('endBonusAtk'); } } frame 666 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [50]]); _global.fx20.start(); } frame 679 { _global.currentScriptLayer.damageFloater([_global.currentScriptLayer.target_cmdNum, [50]]); _global.fx20.start(); } frame 690 { } frame 733 { Key.removeListener(cancelBtn_Listener); Key.removeListener(extraDmgBtn_Listener); gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 753 { _global.fx59.start(); } frame 765 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 776 { gotoAndStop('standing'); _global.currentScriptLayer.play(); } frame 782 { play(); } frame 798 { gotoAndStop(gotoState); } frame 803 { play(); } frame 817 { gotoAndStop(gotoState); } frame 822 { play(); } frame 893 { if (_root.chrTData_0[0] > 0) { gotoAndPlay('standing'); } play(); } frame 900 { if (Math.round(Math.random() * 4) <= 0) { this.play; } else { this.gotoAndStop('defeatLoop'); } } frame 926 { gotoAndStop('defeatLoop'); } } movieClip 1447 battleMovie_0 { frame 10 { if (_root.chrTData_0[3][2] > 0) { this.play(); } else { gotoAndPlay('circuit'); } } frame 81 { if (_root.chrTData_0[3][3] > 0) { this.play(); } else { gotoAndPlay('shock'); } } frame 152 { if (_root.chrTData_0[3][4] > 0) { this.play(); } else { gotoAndPlay('frozen'); } } frame 223 { if (_root.chrTData_0[3][5] > 0) { this.play(); } else { gotoAndPlay('slow'); } } frame 274 { if (_root.chrTData_0[3][6] > 0) { this.play(); } else { gotoAndPlay('regain'); } } frame 346 { if (_root.chrTData_0[5][1] > 0) { this.play(); } else { gotoAndPlay('normal'); } } } movieClip 1448 battleMovie_2 { frame 1 { function onEnterFrame() { if (_root.chrTData_2[3][5] > 0) { frozen._alpha = 80; frozen._visible = true; } else { frozen._alpha = 0; frozen._visible = false; } } } frame 10 { if (_root.chrTData_2[3][2] > 0) { this.play(); } else { gotoAndPlay('circuit'); } } frame 81 { if (_root.chrTData_2[3][3] > 0) { this.play(); } else { gotoAndPlay('shock'); } } frame 152 { if (_root.chrTData_2[3][4] > 0) { this.play(); } else { gotoAndPlay('frozen'); } } frame 223 { if (_root.chrTData_2[3][5] > 0) { this.play(); } else { gotoAndPlay('slow'); } } frame 274 { if (_root.chrTData_2[3][6] > 0) { this.play(); } else { gotoAndPlay('regain'); } } frame 346 { if (_root.chrTData_2[5][1] > 0) { this.play(); } else { gotoAndPlay('normal'); } } } movieClip 1449 battleMovie_1 { frame 1 { function onEnterFrame() { if (_root.chrTData_1[3][5] > 0) { frozen._alpha = 80; frozen._visible = true; } else { frozen._alpha = 0; frozen._visible = false; } } } frame 10 { if (_root.chrTData_1[3][2] > 0) { this.play(); } else { gotoAndPlay('circuit'); } } frame 81 { if (_root.chrTData_1[3][3] > 0) { this.play(); } else { gotoAndPlay('shock'); } } frame 152 { if (_root.chrTData_1[3][4] > 0) { this.play(); } else { gotoAndPlay('frozen'); } } frame 223 { if (_root.chrTData_1[3][5] > 0) { this.play(); } else { gotoAndPlay('slow'); } } frame 274 { if (_root.chrTData_1[3][6] > 0) { this.play(); } else { gotoAndPlay('regain'); } } frame 347 { if (_root.chrTData_1[5][1] > 0) { this.play(); } else { gotoAndPlay('normal'); } } } movieClip 1450 { frame 1 { _global.oldScriptLayer = _global.currentScriptLayer; _global.currentScriptLayer = this; _global.currentBattleLayer = this; } frame 1 { partyAliveControlList = []; attachMovie('playerData', 'playerData', 8999, {'_x': 580, '_y': 50}); attachMovie('healthBarCode', 'healthBarCode', 9000, {'_x': 710, '_y': 230}); attachMovie('trackerMain', 'trackerMain', 8998, {'_x': 20, '_y': 20}); trackerMain._visible = false; attachMovie('battleBG', 'battleBG', 100, {'_x': -20, '_y': -20}); attachMovie('helpBar', 'helpBar', 9240, {'_x': 25, '_y': 550}); _global.currentScriptLayer.helpBar._visible = false; delete bgPic; if (_root.gameVariables[1][0][0] == true) { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = Fx000000; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; } var whiteShadow = new flash.filters.DropShadowFilter(10, 45, 16777215, 5, 0, 4, 3, 1); whiteShadow.strength = 3; whiteShadow.distance = 1; whiteShadow.blurX = 10; whiteShadow.blurY = 10; varX = _root.party_Order.length - 1; while (varX >= 0) { pictureData = (eval('_root.chrIData_' + _root.party_Order[varX]))[2]; cData = eval('_root.chrCData_' + _root.party_Order[varX]); combatData = eval('_root.combatData_' + _root.party_Order[varX]); combatData[2] = 40 + Math.random() * cData[6]; gridLoc = _root.battle_partyData[0][varX]; x_loc = _root.grid_Plots[gridLoc][0][0]; y_loc = _root.grid_Plots[gridLoc][0][1]; zoom = _root.grid_Plots[gridLoc][1][0]; layer = _root.grid_Plots[gridLoc][1][1] + 10; _global.currentScriptLayer.predictor = [0, 0, 0]; attachMovie(pictureData, 'chr_BattleMovie_' + varX, layer - varX * 15, {'_x': x_loc, '_y': y_loc}); currentMovie = eval('chr_BattleMovie_' + varX); currentMovie._xscale = zoom; currentMovie._yscale = zoom; currentMovie.filters = [cellShade]; _root.battle_partyData[1][varX] = [currentMovie._x, currentMovie._y]; _root.battle_partyData[2][varX] = [currentMovie._width, currentMovie._height]; _root.battle_partyData[3][varX] = [layer - varX * 15, zoom]; --varX; } attachMovie('battleMovie_S', 'chr_BattleMovie_S', 9992, {'_x': x_loc, '_y': y_loc}); delete pictureData; delete currentMovie; delete cData; delete combatData; actionSelectorOn = false; _global.battleOrder = []; playerCounter = 0; enemyCounter = 0; supportLimit = 400; echoBuffer = []; if (_root.support_Party[0][0] !== 'None') { supportTimer = Math.round(Math.random() * supportLimit); } else { supportTimer = 0; } chrOrder = []; orderSwitch0 = true; orderSwitch1 = true; orderSwitch2 = true; orderSwitch3 = true; delaySwitch = [true, true, true]; delayAction = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]; oldWho = 99; comboCount = 0; comboTotalDamage = 0; afflictionCounter = 0; playerBuffCounter = 0; e_afflictionCounter = 0; e_buffScheduleCounter = 0; attachMovie('musicLooper', 'musicLooper', 29999, {'_x': 0, '_y': 0}); attachMovie('demoSound', 'demoSound', 29998, {'_x': 20, '_y': 540}); gotoAndPlay('loadEnemy'); } frame 7 { enemyHPBarArray = [[100, 100]]; attachMovie('enemyDisplay', 'enemyDisplay', 9050, {'_x': 0, '_y': 0}); enemyDisplay._visible = false; num = 0; selectedEnemies = []; varX = 0; while (varX <= _root.enemyFormationData[_global.battleNumber][0].length - 1) { selectedEnemies[varX] = _root.enemyFormationData[_global.battleNumber][0][varX]; ++varX; } delete varX; enemyAliveControlList = []; switchSides = false; e_delayAction = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; varX = _global.currentScriptLayer.selectedEnemies.length - 1; while (varX >= 0) { enemyIData = eval('_root.enemyIData_' + selectedEnemies[varX]); enemyBData = eval('_root.enemyBaseData_' + selectedEnemies[varX]); enemyCombatData = eval('_root.enemyCombatData_' + varX); enemyTData = eval('_root.enemyTData_' + varX); startingAgi = Math.ceil(Math.random() * 60); level = _global.enemyLevel + Math.ceil(Math.random() * 3) + _global.beatGame * 2; if (varX == 0) { _root.enemyTData_0 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['E_Affliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Buffs', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_0 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_0 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_0 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } if (varX == 1) { _root.enemyTData_1 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['E_Affliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Enhance', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_1 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_1 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_1 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } if (varX == 2) { _root.enemyTData_2 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['E_Affliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Enhance', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_2 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_2 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_2 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } if (varX == 3) { _root.enemyTData_3 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['E_Affliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Enhance', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_3 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_3 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_3 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } if (varX == 4) { _root.enemyTData_4 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['EAffliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Enhance', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_4 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_4 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_4 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } if (varX == 5) { _root.enemyTData_5 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['E_Affliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Enhance', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_5 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_5 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_5 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } if (varX == 6) { _root.enemyTData_6 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['EAffliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Enhance', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_6 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_6 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_6 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } if (varX == 7) { _root.enemyTData_7 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['E_Affliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Enhance', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_7 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_7 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_7 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } if (varX == 8) { _root.enemyTData_8 = [[level], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2], ['E_Affliction', 0, 0, 0, 0, 0, 0], ['E_Shields', 0, 0, 0, 0, 0, 0, 0], ['E_Enhance', 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_8 = [['Empty'], [Math.round(enemyBData[1][0] * level), Math.round(enemyBData[1][1] * level), Math.round(enemyBData[1][2] * level), Math.round(enemyBData[1][3] * level), Math.round(enemyBData[1][4] * level), Math.round(enemyBData[1][5] * level), Math.round(enemyBData[1][6] * level), Math.round(enemyBData[1][7] * level), Math.round(enemyBData[1][8] * level)], enemyBData[2]]; _root.enemyCombatData_8 = [0, false, startingAgi]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / level * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / level * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / level * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / level * 100; damageNegation += damageNegation * (level * 0.02); magicNegation = bData[1][5] / level * 100; magicNegation += magicNegation * (level * 0.02); agility = bData[1][6] / level * 5 + 0.5; agility += agility * (level * 0.02); _root.enemyAttackStats_8 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; } gridLoc = _root.battle_enemyData[0][varX]; x_loc = _root.grid_Plots[gridLoc][0][0]; y_loc = _root.grid_Plots[gridLoc][0][1]; zoom = _root.grid_Plots[gridLoc][1][0]; layer = _root.grid_Plots[gridLoc][1][1]; enemyName = enemyIData[0]; enemyMovieClip = enemyIData[2]; enemyLevel = enemyIData[3]; attachMovie(enemyMovieClip, 'enemyTarget_' + varX, layer - varX * 15, {'_x': x_loc, '_y': y_loc}); currentMovie = eval('enemyTarget_' + varX); currentMovie._xscale = zoom; currentMovie._yscale = zoom; currentMovie.filters = [cellShade]; _root.battle_enemyData[1][varX] = [currentMovie._x, currentMovie._y]; _root.battle_enemyData[2][varX] = [currentMovie._width, currentMovie._height]; _root.battle_enemyData[3][varX] = [layer - varX * 15, zoom]; --varX; } delete enemyName; delete enemyMovieClip; delete enemyLevel; delete x_loc; delete y_loc; delete zoom; delete layer; delete gridloc; delete currentMovie; delete enemyIData; delete enemyBData; delete enemyCombatData; delete enemyTData; delete startingAgi; delete attackPower; delete rangePower; delete etherPower; delete damageNegation; delete magicNegation; delete agility; gotoAndPlay('introSplash'); } frame 15 { battleStatistics = [[[0, 0], [0, 0], [0, 0], [0, 0], [true, 0], [0, 0, 0, 0], [0, 0]], [[0, 0], [0, 0], [0, 0]]]; _global.currentScriptLayer.battleStatistics[0][3][0] = _global.currentScriptLayer.selectedEnemies.length; varX = 0; while (varX <= 10) { if (_root.battle_ObjectivesMain[varX] == true) { timerEvent = _root.battle_ObjectiveList[varX][1]; } ++varX; } attachMovie('objectivesMC', 'objectivesMC', 19998, {'_x': 250, '_y': 10}); } frame 15 { } frame 25 { varX = 0; while (varX <= 10) { if (_root.battle_ObjectivesMain[varX] == true) { if (varX == 1 or varX == 2) { attachMovie('timerDownMovie', 'timerClip', 25000, {'_x': 80, '_y': 5}); } if (varX == 3 or varX == 4) { attachMovie('timerUpMovie', 'timerClip', 25000, {'_x': 80, '_y': 5}); } } ++varX; } } frame 25 { function cameraControls(type) { if (type == 'zoomInPlayer') { _global.battleBGLayer.gotoAndPlay('zoomInPlayer'); _global.currentScriptLayer._xscale = _root.gameResolution[0] * 2; _global.currentScriptLayer._yscale = _root.gameResolution[0] * 2; varX = 0; while (varX <= _root.party_Order.length - 1) { currentMovie = eval('chr_BattleMovie_' + varX); currentMovie._visible = false; ++varX; } (eval('chr_BattleMovie_' + absNum))._visible = true; zoomPos = _root.battle_partyData[0][absNum]; if (zoomPos == 0 or zoomPos == 1) { _global.currentScriptLayer._x -= 800 - 800 * ((100 - _root.gameResolution[0]) * 0.01); _global.currentScriptLayer._y -= 400 - 400 * ((100 - _root.gameResolution[0]) * 0.01); } if (zoomPos == 2 or zoomPos == 3) { _global.currentScriptLayer._x -= 750 - 750 * ((100 - _root.gameResolution[0]) * 0.01); _global.currentScriptLayer._y -= 550 - 550 * ((100 - _root.gameResolution[0]) * 0.01); } if (zoomPos == 4 or zoomPos == 5) { _global.currentScriptLayer._x -= 750 - 750 * ((100 - _root.gameResolution[0]) * 0.01); _global.currentScriptLayer._y -= 600 - 600 * ((100 - _root.gameResolution[0]) * 0.01); } } if (type == 'quickNormal') { _global.battleBGLayer.gotoAndPlay('normal'); _global.currentScriptLayer._xscale = _root.gameResolution[0]; _global.currentScriptLayer._yscale = _root.gameResolution[0]; _global.currentScriptLayer._x = _root.gameResolution[1]; _global.currentScriptLayer._y = _root.gameResolution[2]; _global.battleBGLayer._x = -20; _global.battleBGLayer._y = -20; varX = 0; while (varX <= _root.party_Order.length - 1) { currentMovie = eval('chr_BattleMovie_' + varX); currentMovie._visible = true; ++varX; } } } removeMovieClip(battleSplashIntro); gotoAndPlay('loadFunctions'); } frame 37 { function damageFloater(targetData, damageAmount) { showDmg = true; if (side == 'P' and PartyOrEnemy == 'Enemy') { enemy_Who = targetData[0]; enemy_Name = (eval('_root.enemyIData_' + selectedEnemies[enemy_Who]))[0] + ' ' + _root.alphabetArray[enemy_Who]; enemyXY = _root.battle_enemyData[1][enemy_Who]; enemyWH = _root.battle_enemyData[2][enemy_Who]; enemyAttackStats = eval('_root.enemyAttackStats_' + enemy_Who); enemyTData = eval('_root.enemyTData_' + enemy_Who); tData = eval('_root.chrTData_' + _root.party_Order[absNum]); cData = eval('_root.chrCData_' + _root.party_Order[absNum]); combatData = eval('_root.combatData_' + _root.party_Order[absNum]); if (target_cmdName == 'Attack') { ++_global.currentScriptLayer.battleStatistics[0][5][0]; damage = cData[9]; enemyDef = cData[9] * enemyAttackStats[1][0]; if (enemyTData[3][7] > 0) { enemyDef = 0; } random_Dmg = Math.round(Math.random() * cData[7]); damage += random_Dmg; dataPack0 = ['', 'Enemy', 'Single', 'T', 0, 0, 0, 0, [['', '', '']], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0]]]; totalDamage = damage - enemyDef; if (tData[3][8] > 0) { totalDamage /= 2; } (eval('enemyTarget_' + enemy_Who)).gotoAndPlay('damageM'); bonusDmg(); } if (target_cmdName == 'Shoot') { ++_global.currentScriptLayer.battleStatistics[0][5][1]; damage = cData[10]; enemyDef = cData[10] * enemyAttackStats[1][0]; if (enemyTData[3][7] > 0) { enemyDef = 0; } random_Dmg = Math.round(Math.random() * cData[7]); damage += random_Dmg; dataPack0 = ['', 'Enemy', 'Single', 'T', 0, 0, 0, 0, [['', '', '']], [[0, 0, 0, 0, 0, 0, 100], ['Afflictions', 0, 0, 0, 0, 0]]]; totalDamage = damage - enemyDef; if (tData[3][9] > 0) { totalDamage /= 2; } (eval('enemyTarget_' + enemy_Who)).gotoAndPlay('damageS'); bonusDmg(); } if (target_cmdName == 'Item') { ++_global.currentScriptLayer.battleStatistics[0][5][3]; damage = cData[10]; if (tData[3][9] > 0) { damage = 0; } enemyDef = cData[10] * enemyAttackStats[1][0]; if (enemyTData[3][7] > 0) { enemyDef = 0; } random_Dmg = 0; damage += random_Dmg; dataPack0 = ['', 'Enemy', 'Single', 'T', 0, 0, 0, 0, [['', '', '']], [[0, 0, 0, 0, 0, 0, 100], ['Afflictions', 0, 0, 0, 0, 0]]]; totalDamage = damage - enemyDef; (eval('enemyTarget_' + enemy_Who)).gotoAndPlay('damageS'); bonusDmg(); } if (target_cmdName == 'Tech' or target_cmdName == 'Command') { ++_global.currentScriptLayer.battleStatistics[0][5][2]; damage = cData[11] + dataPack0[5]; if (tData[0] <= 0) { damage += damage; } enemyDef = cData[11] * enemyAttackStats[1][1]; random_Dmg = Math.round(Math.random() * cData[7]); damage += random_Dmg; totalDamage = damage - enemyDef; if (tData[3][3] > 0) { totalDamage = Math.round(totalDamage / 2); } if (dataPack0[5] <= 0) { totalDamage = 0; showDmg = false; } bonusDmg(); } if (target_cmdName == 'Support') { tData = _root.chrTData_10; cData = _root.chrCData_10; combatData = _root.combatData_10; ++_global.currentScriptLayer.battleStatistics[0][5][2]; damage = cData[11] + dataPack0[5]; if (tData[0] <= 0) { damage += damage; } enemyDef = cData[11] * enemyAttackStats[1][1]; random_Dmg = Math.round(Math.random() * cData[7]); damage += random_Dmg; totalDamage = damage - enemyDef; if (tData[3][3] > 0) { totalDamage = Math.round(totalDamage / 2); } if (dataPack0[5] <= 0) { totalDamage = 0; showDmg = false; } bonusDmg(); } damagePercentage = targetData[1][0]; comboDamage = comboCount * 0.01 * totalDamage; finalDamage = Math.round(totalDamage * (damagePercentage / 100) + comboDamage); if (tData[3][5] > 0) { finalDamage = random_Dmg; } if ((eval('_root.enemyTData_' + enemy_Who))[3][5] > 0) { finalDamage = Math.round(finalDamage * 2); } combatData[3] += Math.round(finalDamage / 100); if (combatData[3] > 500) { combatData[3] = 500; } floatText(enemyXY[0], enemyXY[1], finalDamage); if (oldWho != enemy_Who) { comboCount = 0; comboTotalDamage = 0; oldWho = enemy_Who; removeMovieClip('comboCounter'); } comboTotalDamage += finalDamage; ++comboCount; if (comboCount >= 2) { attachMovie('comboCounter', 'comboCounter', 9205, {'_x': 45, '_y': 155}); } (eval('_root.enemyTData_' + enemy_Who))[1][0] -= finalDamage; enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.battleStatistics[0][0][0] += finalDamage; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(targetData[0], scanLevel); if ((eval('_root.enemyTData_' + enemy_Who))[1][0] <= 0) { (eval('enemyTarget_' + enemy_Who)).gotoAndPlay('defeated'); (eval('_root.enemyTData_' + enemy_Who))[3] = ['Afflictions', 0, 0, 0, 0, 0, 0]; (eval('_root.enemyTData_' + enemy_Who))[4] = ['E_Shields', 0, 0, 0, 0, 0, 0, 0]; (eval('_root.enemyTData_' + enemy_Who))[5] = ['E_Buffs', 0, 0, 0, 0, 0, 0, 0]; ++_global.currentScriptLayer.battleStatistics[0][3][1]; echoBuffer[echoBuffer.length] = enemy_Who; } enemyAliveControlList = []; counter = 0; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveControlList[counter] = varX; ++counter; } ++varX; } if (enemyAliveControlList.length <= 0) { gotoAndPlay('victory'); } } if (side == 'P' and PartyOrEnemy == 'Party') { combatData = eval('_root.combatData_' + _root.party_Order[absNum]); party_Who = targetData[0]; tData = eval('_root.chrTData_' + _root.party_Order[party_Who]); playerXY = _root.battle_partyData[1][party_Who]; playerWH = _root.battle_partyData[2][party_Who]; if (dataPack0[3] == 'C') { cData = eval('_root.chrCData_' + _root.party_Order[absNum]); if (dataPack0[0] == 'Regenerate') { healAmount = Math.round(cData[0] * 0.15); healPercentage = targetData[1][0]; finalHeal = Math.round(healAmount * (healPercentage / 100)); tData[0] += finalHeal; if (tData[3][2] > 0 or tData[3][3] > 0) { ++_global.currentScriptLayer.battleStatistics[1][1][0]; } tData[3][2] = 0; tData[3][3] = 0; _global.currentScriptLayer.battleStatistics[0][1][0] += finalHeal; } if (dataPack0[0] == 'Recharge') { healAmount = Math.round(cData[1] * 0.15); healPercentage = targetData[1][0]; finalHeal = Math.round(healAmount * (healPercentage / 100)); tData[1] += finalHeal; } } if (dataPack0[3] == 'A') { if (dataPack0[9][2][0] == 'P_Shields') { finalHeal = 10; varX = 1; while (varX <= 8) { tData[4][varX] = 0; ++varX; } varX = 0; while (varX <= 7) { if (dataPack0[9][2][varX] > 0) { tData[4][varX] = dataPack0[9][2][varX]; } ++varX; } afflictionFloat(playerXY[0], playerXY[1], dataPack0[0]); } } if (dataPack0[3] == 'H') { cData = eval('_root.chrCData_' + _root.party_Order[absNum]); if (target_cmdName == 'Support') { cData = _root.chrCData_10; } if (dataPack0[8][1][0] == 'hp') { healAmount = dataPack0[5] + cData[11]; random_Heal = Math.round(Math.random() * cData[7]); healPercentage = targetData[1][0]; totalHeal = Math.round(healAmount + random_Heal); if (tData[3][3] > 0) { totalHeal = Math.round(totalHeal / 2); } healPercentage = targetData[1][0]; finalHeal = Math.round(totalHeal * (healPercentage / 100)); if (tData[3][5] > 0) { finalHeal = Math.round(finalHeal / 2); } _global.currentScriptLayer.battleStatistics[0][1][0] += finalHeal; varX = 0; while (varX <= dataPack0[9][3].length - 1) { if (dataPack0[9][3][varX] > 0) { tData[5][varX] = dataPack0[9][3][varX]; } ++varX; } afflictionFloat(playerXY[0], playerXY[1], dataPack0[0]); varX = 0; while (varX <= dataPack0[9][1].length - 1) { if (dataPack0[9][1][varX] > 0) { tData[3][varX] = dataPack0[9][1][varX]; } ++varX; } afflictionFloat(playerXY[0], playerXY[1], dataPack0[0]); tData[0] += finalHeal; } if (dataPack0[8][1][0] == 'rv') { ++_global.currentScriptLayer.battleStatistics[1][1][1]; healAmount = dataPack0[5]; random_Heal = 0; healPercentage = targetData[1][0]; totalHeal = Math.round(healAmount + random_Heal); if (tData[3][3] > 0) { totalHeal = Math.round(totalHeal / 2); } healPercentage = targetData[1][0]; finalHeal = Math.round(totalHeal * (healPercentage / 100)); if (tData[3][5] > 0) { finalHeal = Math.round(finalHeal / 2); } _global.currentScriptLayer.battleStatistics[0][1][0] += finalHeal; varX = 0; while (varX <= dataPack0[9][3].length - 1) { if (dataPack0[9][3][varX] > 0) { tData[5][varX] = dataPack0[9][3][varX]; } ++varX; } afflictionFloat(playerXY[0], playerXY[1], dataPack0[0]); tData[0] += finalHeal; } if (dataPack0[8][1][0] == 'rpr') { ++_global.currentScriptLayer.battleStatistics[1][1][0]; healAmount = dataPack0[5]; random_Heal = 0; healPercentage = targetData[1][0]; totalHeal = Math.round(healAmount + random_Heal); if (tData[3][3] > 0) { totalHeal = Math.round(totalHeal / 2); } healPercentage = targetData[1][0]; finalHeal = Math.round(totalHeal * (healPercentage / 100)); if (tData[3][5] > 0) { finalHeal = Math.round(finalHeal / 2); } varX = 0; while (varX <= dataPack0[9][1].length - 1) { if (dataPack0[9][1][varX] > 0) { tData[3][varX] -= dataPack0[9][1][varX]; if (tData[3][varX] <= 0) { tData[3][varX] = 0; } } ++varX; } afflictionFloat(playerXY[0], playerXY[1], dataPack0[0]); _global.currentScriptLayer.battleStatistics[0][1][0] += finalHeal; tData[0] += finalHeal; } if (dataPack0[8][1][0] == 'sp') { healAmount = dataPack0[5] + cData[11]; random_Heal = Math.round(Math.random() * cData[3]); healPercentage = targetData[1][0]; totalHeal = Math.round((healAmount + random_Heal) * (healPercentage / 100)); if (tData[3][3] > 0) { totalHeal = Math.round(totalHeal / 2); } healPercentage = targetData[1][0]; finalHeal = Math.round(totalHeal * (healPercentage / 100)); varX = 0; while (varX <= dataPack0[9][3].length - 1) { if (dataPack0[9][3][varX] > 0) { tData[5][varX] = dataPack0[9][3][varX]; } ++varX; } afflictionFloat(playerXY[0], playerXY[1], dataPack0[0]); tData[1] += finalHeal; } } combatData[3] += Math.round(finalHeal / 150); if (combatData[3] > 500) { combatData[3] = 500; } _global.healthBarLogic.findPlace(party_Who); comboCount = 0; comboTotalDamage = 0; oldWho = enemy_Who; removeMovieClip(comboCounter); if (dataPack0[8][1][0] == 'sp' or dataPack0[8][1][0] == 'spA') { floatHeal(playerXY[0], playerXY[1] - playerWH[1], finalHeal, 'M'); } if (dataPack0[8][1][0] == 'hp' or dataPack0[8][1][0] == 'hpA') { floatHeal(playerXY[0], playerXY[1] - playerWH[1], finalHeal, 'H'); } _root.checkTData(); } if (side == 'E' and PartyOrEnemy == 'Party') { party_Who = targetData[0]; cData = eval('_root.chrCData_' + _root.party_Order[party_Who]); iData = eval('_root.chrIData_' + _root.party_Order[party_Who]); tData = eval('_root.chrTData_' + _root.party_Order[party_Who]); enemyAttackStats = eval('_root.enemyAttackStats_' + enemy_number); enemyBData = eval('_root.enemyBData_' + enemy_number); enemyTData = eval('_root.enemyTData_' + enemy_number); comboCount = 0; comboTotalDamage = 0; oldWho = enemy_Who; removeMovieClip(comboCounter); if (damageType == 'M') { damage = enemyAttackStats[0][0]; if (enemyTData[3][8] > 0) { damage = 0; } enemyDef = cData[13][1] * damage; if (tData[3][7] > 0) { enemyDef = 0; } random_Dmg = Math.round(Math.random() * enemyBData[1][7]); damage += random_Dmg; dataPack0 = ['', 'Enemy', 'Single', 'T', 0, 0, 0, 0, [['', '', '']], [tech_elementalData, tech_afflictionData]]; totalDamage = Math.round((damage - enemyDef) * damagePercent); bonusDmg(); } if (damageType == 'R') { damage = enemyAttackStats[0][0]; if (enemyTData[3][9] > 0) { damage = 0; } enemyDef = cData[13][1] * damage; if (tData[3][7] > 0) { enemyDef = 0; } random_Dmg = Math.round(Math.random() * enemyBData[1][7]); damage += random_Dmg; dataPack0 = ['', 'Enemy', 'Single', 'T', 0, 0, 0, 0, [['', '', '']], [tech_elementalData, tech_afflictionData]]; totalDamage = Math.round((damage - enemyDef) * damagePercent); bonusDmg(); } if (damageType == 'E') { damage = fx[5]; enemyDef = cData[13][2] * damage; random_Dmg = Math.round(Math.random() * enemyBData[1][7]); damage += random_Dmg; dataPack0 = fx; totalDamage = Math.round((damage - enemyDef) * damagePercent); if (enemyTData[3][3] > 0) { totalDamage = Math.round(totalDamage / 2); } if (dataPack0[5] <= 0) { totalDamage = 0; showDmg = false; } bonusDmg(); } _global.healthBarLogic.findPlace(party_Who); (eval('_root.battleChrLayer_' + _root.party_Order[party_Who])).gotoAndPlay('damage0'); finalDamage = Math.round(totalDamage); if (tData[3][5] > 0) { finalDamage = Math.round(finalDamage * 2); } if (enemyTData[3][5] > 0) { finalDamage = Math.round(finalDamage / 2); } blockedAmount = 0; if (tData[4][8] > 0) { blockedAmount = Math.round(finalDamage * 0.1); finalDamage -= blockedAmount; } delete blockedAmount; playerXY = _root.battle_partyData[1][party_Who]; playerWH = _root.battle_partyData[2][party_Who]; floatText(playerXY[0], playerXY[1], finalDamage); tData = eval('_root.chrTData_' + _root.party_Order[party_Who]); tData[0] -= finalDamage; if (tData[0] <= 0) { afflictionFloat(playerXY[0], playerXY[1], 'Defeated'); } _root.checkTData(); partyAliveControlList = []; counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { partyAliveControlList[counter] = varX; ++counter; } if (tData[0] <= 0) { tData[3] = ['P_Afflictions', 0, 0, 0, 0, 0]; tData[4] = ['P_Shields', 0, 0, 0, 0, 0, 0, 0, 0]; tData[5] = ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]; } ++varX; } if (partyAliveControlList.length <= 0) { gotoAndPlay('defeat'); } } if (side == 'E' and PartyOrEnemy == 'Enemy') { enemyXY = _root.battle_enemyData[1][enemySelect]; enemyWH = _root.battle_enemyData[2][enemySelect]; enemyBData = eval('_root.enemyBData_' + enemySelect); enemyTData = eval('_root.enemyTData_' + enemySelect); if (dataPack0[3] == 'A') { if (dataPack0[9][2][0] == 'P_Shields') { varX = 1; while (varX <= 8) { enemyTData[4][varX] = 0; ++varX; } varX = 0; while (varX <= 7) { if (dataPack0[9][2][varX] > 0) { enemyTData[4][varX] = dataPack0[9][2][varX]; } ++varX; } enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(enemySelect, scanLevel); afflictionFloat(enemyXY[0], enemyXY[1], dataPack0[0]); } } if (dataPack0[3] == 'H') { enemyBData = eval('_root.enemyBData_' + enemySelect); enemyAttackStats = eval('_root.enemyAttackStats_' + enemy_number); if (dataPack0[8][1][0] == 'hp') { healAmount = dataPack0[5] + enemyAttackStats[0][2]; random_Heal = Math.round(Math.random() * enemyBData[1][8]); healPercentage = damagePercent; finalHeal = Math.round((healAmount + random_Heal) * healPercentage); if (tData[3][3] > 0) { finalHeal = Math.round(totalHeal / 2); } if (enemyTData[3][5] > 0) { finalHeal = Math.round(totalHeal / 2); } varX = 0; while (varX <= dataPack0[9][3].length - 1) { if (dataPack0[9][3][varX] > 0) { enemyTData[5][varX] = dataPack0[9][3][varX]; } ++varX; } afflictionFloat(enemyXY[0], enemyXY[1], dataPack0[0]); enemyTData[1][0] += finalHeal; if (enemyTData[1][0] >= enemyBData[1][0]) { enemyTData[1][0] = enemyBData[1][0]; } enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(enemySelect, scanLevel); } if (dataPack0[8][1][0] == 'sp') { healAmount = dataPack0[5] + enemyAttackStats[0][2]; random_Heal = Math.round(Math.random() * enemyBData[1][7]); healPercentage = damagePercent; finalHeal = Math.round((healAmount + random_Heal) * healPercentage); if (tData[3][3] > 0) { finalHeal = Math.round(totalHeal / 2); } if (enemyTData[3][5] > 0) { finalHeal = Math.round(totalHeal / 2); } varX = 0; while (varX <= dataPack0[9][3].length - 1) { if (dataPack0[9][3][varX] > 0) { tData[5][varX] = dataPack0[9][3][varX]; } ++varX; } afflictionFloat(enemyXY[0], enemyXY[1], dataPack0[0]); enemyTData[1][1] += finalHeal; if (enemyTData[1][1] >= enemyBData[1][1]) { enemyTData[1][1] = enemyBData[1][1]; } enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(enemySelect, scanLevel); } } if (dataPack0[8][1][0] == 'sp' or dataPack0[8][1][0] == 'spA') { floatHeal(enemyXY[0], enemyXY[1] - enemyWH[1], finalHeal, 'M'); } if (dataPack0[8][1][0] == 'hp' or dataPack0[8][1][0] == 'hpA') { floatHeal(enemyXY[0], enemyXY[1] - enemyWH[1], finalHeal, 'H'); } } } function rndNumber() { randomNumber = Math.ceil(Math.random() * 100); } function bonusDmg() { elementShieldArray = []; afflictionText = ''; if (side == 'P' and PartyOrEnemy == 'Enemy') { _root.tempList = (eval('_root.enemyTData_' + enemy_Who))[2]; enemyXY = _root.battle_enemyData[1][enemy_Who]; enemyWH = _root.battle_enemyData[2][enemy_Who]; enemyTData = eval('_root.enemyTData_' + enemy_Who); resistance = enemyTData[1][8]; fireShield = enemyTData[4][1]; iceShield = enemyTData[4][2]; beamShield = enemyTData[4][3]; electShield = enemyTData[4][4]; bioShield = enemyTData[4][5]; meleeShield = enemyTData[4][6]; busterShield = enemyTData[4][7]; elementShieldArray = [fireShield, iceShield, beamShield, electShield, bioShield, meleeShield, busterShield]; delete enemyTData; delete fireShield; delete iceShield; delete beamShield; delete electShield; delete bioShield; delete meleeSheild; delete busterShield; varX = 1; while (varX <= dataPack0[9][1].length - 1) { if (dataPack0[9][1][varX] > 0) { rndNumber(); if (varX == 1) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Scanned\r'; } if (varX == 2 and randomNumber >= resistance) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Poisened\r'; } if (varX == 3 and randomNumber >= resistance) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Short Circuit\r'; } if (varX == 4 and randomNumber >= resistance) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Shock\r'; } if (varX == 5 and randomNumber >= resistance) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Blinded\r'; } if (varX == 6 and randomNumber >= resistance) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Slow\r'; } if (varX == 7 and randomNumber >= resistance) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Broken Armor\r'; } if (varX == 8 and randomNumber >= resistance) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Broken Weapon\r'; } if (varX == 9 and randomNumber >= resistance) { (eval('_root.enemyTData_' + enemy_Who))[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Broken Buster\r'; } afflictionFloat(enemyXY[0], enemyXY[1], afflictionText); } ++varX; } } if (side == 'E' and PartyOrEnemy == 'Party') { cData = eval('_root.chrCData_' + _root.party_Order[party_Who]); tData = eval('_root.chrTData_' + _root.party_Order[party_Who]); _root.tempList = cData[14]; playerXY = _root.battle_partyData[1][party_Who]; playerWH = _root.battle_partyData[2][party_Who]; fireShield = tData[4][1]; iceShield = tData[4][2]; beamShield = tData[4][3]; electShield = tData[4][4]; bioShield = tData[4][5]; meleeShield = tData[4][6]; busterShield = tData[4][7]; elementShieldArray = [fireShield, iceShield, beamShield, electShield, bioShield, meleeShield, busterShield]; delete enemyTData; delete fireShield; delete iceShield; delete beamShield; delete electShield; delete bioShield; delete meleeSheild; delete busterShield; varX = 1; while (varX <= dataPack0[9][1].length - 1) { if (dataPack0[9][1][varX] > 0) { rndNumber(); if (varX == 1 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Scanned\r'; } if (varX == 2 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Poisened\r'; } if (varX == 3 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Short Circuit\r'; } if (varX == 4 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Shock\r'; } if (varX == 5 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Blinded\r'; } if (varX == 6 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Slow\r'; } if (varX == 7 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Broken Armor\r'; } if (varX == 8 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Broken Weapon\r'; } if (varX == 9 and randomNumber >= cData[8]) { tData[3][varX] = dataPack0[9][1][varX]; afflictionText += 'Broken Buster\r'; } afflictionFloat(playerXY[0], playerXY[1], afflictionText); } ++varX; } } damageExtra = 0; varA = 0; while (varA <= _root.tempList.length - 1) { if (_root.tempList[varA] + elementShieldArray[varA] < 0) { resist_dmg = _root.tempList[varA] + elementShieldArray[varA]; if (varA == 0) { damageExtra += totalDamage * (dataPack0[9][0][0] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 1) { damageExtra += totalDamage * (dataPack0[9][0][1] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 2) { damageExtra += totalDamage * (dataPack0[9][0][2] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 3) { damageExtra += totalDamage * (dataPack0[9][0][3] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 4) { damageExtra += totalDamage * (dataPack0[9][0][4] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 5) { damageExtra += totalDamage * (dataPack0[9][0][5] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 6) { damageExtra += totalDamage * (dataPack0[9][0][6] * 0.01) * Math.abs(resist_dmg * 0.01); } } ++varA; } damageResist = 0; varA = 0; while (varA <= _root.tempList.length - 1) { if (_root.tempList[varA] + elementShieldArray[varA] > 0) { resist_dmg = _root.tempList[varA] + elementShieldArray[varA]; if (varA == 0) { damageResist += totalDamage * (dataPack0[9][0][0] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 1) { damageResist += totalDamage * (dataPack0[9][0][1] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 2) { damageResist += totalDamage * (dataPack0[9][0][2] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 3) { damageResist += totalDamage * (dataPack0[9][0][3] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 4) { damageResist += totalDamage * (dataPack0[9][0][4] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 5) { damageResist += totalDamage * (dataPack0[9][0][5] * 0.01) * Math.abs(resist_dmg * 0.01); } if (varA == 6) { damageResist += totalDamage * (dataPack0[9][0][6] * 0.01) * Math.abs(resist_dmg * 0.01); } } ++varA; } totalDamage += Math.round(damageExtra - damageResist); if (totalDamage < 0) { totalDamage = 0; } delete resist_dmg; delete damageResist; delete damageExtra; } function floatText(locX, locY, floatText) { if (showDmg == true) { _root.valueTotal = floatText; ++currentFloater; if (currentFloater > damageFloaterArray.length - 1) { currentFloater = 0; } attachMovie('valueSplash' + damageFloaterArray[currentFloater], 'valueSplash' + currentFloater, 9010 + currentFloater, {'_x': locX - Math.random(5) * 30, '_y': locY - Math.random(5) * 30}); } } function floatHeal(locX, locY, floatText, type) { _root.valueHeal = floatText; if (showDmg == true) { ++currentFloater; if (currentFloater > damageFloaterArray.length - 1) { currentFloater = 0; } attachMovie('valueSplash' + type + damageFloaterArray[currentFloater], 'valueSplash' + currentFloater, 9030 + currentFloater, {'_x': locX - Math.random(5) * 30, '_y': locY}); } } function afflictionFloat(locX, locY, floatText) { _root.floatText = floatText; ++currentFloater; if (currentFloater > damageFloaterArray.length - 1) { currentFloater = 0; } attachMovie('valueSplash2' + damageFloaterArray[currentFloater], 'valueSplash' + currentFloater, 9020 + currentFloater, {'_x': locX - 80, '_y': locY - 150}); } function wavyFloatText(locX, locY, floatText) { _root.wavyText = floatText; ++currentFloater; if (currentFloater > damageFloaterArray.length - 1) { currentFloater = 0; } attachMovie('valueSplash3' + damageFloaterArray[currentFloater], 'valueSplash' + currentFloater, 9025 + currentFloater, {'_x': locX, '_y': locY}); } function splashAnimation() { attachMovie('splashHolder', 'splashHolder', 9008, {'_x': 0, '_y': 0}); } damageFloaterArray = ['A', 'B', 'C']; currentFloater = 0; gotoAndPlay('playerLoop'); } frame 50 { varX = 0; while (varX <= _root.party_Order.length) { if (delayAction[_root.party_Order[varX]][0] > 0) { delayAction[_root.party_Order[varX]][0] -= delayAction[_root.party_Order[varX]][1] / 4; combatData = eval('_root.combatData_' + _root.party_Order[varX]); combatData[2] = delayAction[_root.party_Order[varX]][0]; if (delayAction[_root.party_Order[varX]][0] <= 0) { _global.battleOrder[_global.battleOrder.length] = delayAction[_root.party_Order[varX]][2]; delaySwitch[_root.party_Order[varX]] = true; delayAction[_root.party_Order[varX]][0] = 0; } } ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); iData = eval('_root.chrIData_' + _root.party_Order[varX]); combatData = eval('_root.combatData_' + _root.party_Order[varX]); if (delaySwitch[_root.party_Order[varX]] == true) { if (tData[0] > 0 and tData[3][4] <= 0) { speed = cData[13][0] / 4; if (tData[3][6] > 0) { speed = cData[13][0] / 4 / 2; } combatData[2] += speed * 2; combatData[4] = 'inc'; combatData[5] = 0; } } delete speed; _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); if (combatData[2] >= 100) { if (varX == 0 and orderSwitch0 == true) { chrOrder[chrOrder.length] = varX; orderSwitch0 = false; combatData[2] = 99; } if (varX == 1 and orderSwitch1 == true) { chrOrder[chrOrder.length] = varX; orderSwitch1 = false; combatData[2] = 99; } if (varX == 2 and orderSwitch2 == true) { chrOrder[chrOrder.length] = varX; orderSwitch2 = false; combatData[2] = 99; } if (actionSelectorOn == false and chrOrder.length > 0) { this.stop(); attachMovie('actionSelector', 'actionSelector', 8000, {'_x': 770, '_y': 380}); attachMovie('chrHighlight', 'chrHighlight', 9001, {'_x': 675, '_y': 205}); chrHighlight._rotation = -45; duplicateMovieClip(chrHighlight, 'chrHighlight2', 9003); chrHighlight2._x = 760; chrHighlight2._y = 205; chrHighlight2._rotation = 45; chrHighlight2._xscale = -100; attachMovie('battle_blackBG', 'battle_blackBG', 1999, {'_x': 0, '_y': 0}); _global.healthBarLogic.findPlace(chrOrder[0]); chrHighlight.filters = [dropShadow]; _global.comboCounterLayer.stop(); tData[4][8] = 0; varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'invert'; ++varA; } chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + chrOrder[0]); chrMovie.swapDepths(2001); chrMovie.blendMode = 'normal'; chrMovie.filters = [whiteShadow]; actionWho = chrOrder[0]; (eval('_global.healthGauge' + chrOrder[0] + '.restBar' + chrOrder[0])).gotoAndPlay('ready'); actionSelectorOn = true; } combatData[2] = 99; break; } ++varX; } delete chrXY; delete chrWH; delete chrLayer; delete varA; delete cData; delete tData; delete iData; delete combatData; } frame 51 { gotoAndPlay('playerActions'); } frame 60 { function clearAll() { removeMovieClip(actionSelector); removeMovieClip(chrHighlight); removeMovieClip(battle_blackBG); (eval('_global.healthGauge' + chrOrder[0] + '.restBar' + chrOrder[0])).gotoAndStop('normal'); if (absNum == 0 and orderSwitch0 == false) { orderSwitch0 = true; } if (absNum == 1 and orderSwitch1 == false) { orderSwitch1 = true; } if (absNum == 2 and orderSwitch2 == false) { orderSwitch2 = true; } chrOrder.shift(); _global.battleOrder.shift(); actionSelectorOn = false; varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.filters = [cellShade]; ++varA; } varA = 0; while (varA <= _root.party_Order.length - 1) { chrMovie = eval('_global.currentScriptLayer.chr_BattleMovie_' + varA); chrMovie.blendMode = 'normal'; chrLayer = _root.battle_partyData[3][varA][0]; chrMovie.swapDepths(chrLayer); ++varA; } delete varA; delete chrMovie; delete chrLayer; delete aData; delete wData; delete sData; delete cData; delete bcData; delete iData; } varX = 0; while (varX <= _root.party_Order.length) { if (delayAction[_root.party_Order[varX]][0] > 0) { delayAction[_root.party_Order[varX]][0] -= delayAction[_root.party_Order[varX]][1] / 4; combatData = eval('_root.combatData_' + _root.party_Order[varX]); combatData[2] = delayAction[_root.party_Order[varX]][0]; if (delayAction[_root.party_Order[varX]][0] <= 0) { _global.battleOrder[_global.battleOrder.length] = delayAction[_root.party_Order[varX]][2]; delaySwitch[_root.party_Order[varX]] = true; delayAction[_root.party_Order[varX]][0] = 0; } } ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); iData = eval('_root.chrIData_' + _root.party_Order[varX]); combatData = eval('_root.combatData_' + _root.party_Order[varX]); if (delaySwitch[_root.party_Order[varX]] == true) { if (tData[0] > 0 and tData[3][4] <= 0) { speed = cData[13][0] / 4; if (tData[3][6] > 0) { speed = cData[13][0] / 4 / 2; } combatData[2] += speed; } } delete speed; ++varX; } _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); if (_root.support_Party[0][0] !== 'None') { ++supportTimer; if (supportTimer >= supportLimit) { randomSelect = 0; if (_root.support_Party[1][0][randomSelect][0][1] == 'Party') { targetWho = Math.round(Math.random() * _root.party_Order.length); } if (_root.support_Party[1][0][randomSelect][0][1] == 'Enemy') { targetWho = 0; } _global.battleOrder[_global.battleOrder.length] = ['P', _root.support_Party[0][0], ['Support', _root.support_Party[1][0][randomSelect][0][1], _root.support_Party[1][0][randomSelect][0][2], targetWho], _root.support_Party[1][0][randomSelect][0]]; supportTimer = 0; } } if (_global.battleOrder.length > 0) { side = _global.battleOrder[0][0]; absNum = _global.battleOrder[0][1]; target_cmdName = _global.battleOrder[0][2][0]; target_cmdTarget = _global.battleOrder[0][2][1]; target_cmdSelect = _global.battleOrder[0][2][2]; target_cmdNum = _global.battleOrder[0][2][3]; dataPack0 = _global.battleOrder[0][3]; tech_type = dataPack0[3]; tech_animationData = dataPack0[8]; tech_elementalData = dataPack0[9]; PartyOrEnemy = dataPack0[1]; if (side == 'TimerOut') { removeMovieClip(_global.currentScriptLayer.timerClip); if (timerEvent[0] == 'victory') { gotoAndPlay('victory'); } if (timerEvent[0] == 'defeat') { gotoAndPlay('defeat'); } } if (side == 'P') { aData = eval('_root.chrAData_' + _root.party_Order[absNum]); wData = eval('_root.chrWData_' + _root.party_Order[absNum]); sData = eval('_root.chrSData_' + _root.party_Order[absNum]); cData = eval('_root.chrCData_' + _root.party_Order[absNum]); tData = eval('_root.chrTData_' + _root.party_Order[absNum]); bcData = eval('_root.chrBCData_' + _root.party_Order[absNum]); iData = eval('_root.chrIData_' + _root.party_Order[absNum]); combatData = eval('_root.combatData_' + _root.party_Order[absNum]); clearInterval(_root.battleChrLayer_0.startPause); clearInterval(_root.battleChrLayer_1.startPause); clearInterval(_root.battleChrLayer_2.startPause); Key.removeListener(_global.selectorIconLayer.selector_Listener); Key.removeListener(_global.selectorIconLayer.primary_Listener); Key.removeListener(_global.selectorIconLayer.enemySelector_Listener); Key.removeListener(_global.selectorIconLayer.playerSelector_Listener); if (target_cmdTarget == 'Enemy') { enemyAliveControlList = []; counter = 0; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveControlList[counter] = varX; ++counter; } ++varX; } if ((eval('_root.enemyTData_' + target_cmdNum))[1][0] <= 0) { target_cmdNum = enemyAliveControlList[0]; } delete counter; } if (target_cmdTarget == 'Party') { partyAliveControlList = []; counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { partyAliveControlList[counter] = varX; ++counter; } ++varX; } if ((eval('_root.chrTData_' + _root.party_Order[target_cmdNum]))[0] <= 0) { if (target_cmdSelect == 'Revive') { } else { target_cmdNum = partyAliveControlList[0]; } } delete counter; } if (target_cmdName == 'TechDelay') { _global.battleOrder[0][2][0] = 'Tech'; delaySwitch[_root.party_Order[absNum]] = false; combatData[4] = 'dec'; delayAction[_root.party_Order[absNum]][0] = 95; delayAction[_root.party_Order[absNum]][1] = dataPack0[6]; delayAction[_root.party_Order[absNum]][2] = _global.battleOrder[0]; combatData[5] = dataPack0[6]; combatData = eval('_root.combatData_' + _root.party_Order[absNum]); combatData[2] -= 1; (eval('_root.battleChrLayer_' + _root.party_Order[absNum])).gotoAndPlay(tech_animationData[0][0]); clearAll(); } if (target_cmdName == 'ItemDelay') { _global.battleOrder[0][2][0] = 'Item'; delaySwitch[_root.party_Order[absNum]] = false; combatData[4] = 'dec'; delayAction[_root.party_Order[absNum]][0] = 95; delayAction[_root.party_Order[absNum]][1] = dataPack0[6]; delayAction[_root.party_Order[absNum]][2] = _global.battleOrder[0]; combatData[5] = dataPack0[6]; combatData = eval('_root.combatData_' + _root.party_Order[absNum]); combatData[2] -= 1; (eval('_root.battleChrLayer_' + _root.party_Order[absNum])).gotoAndPlay(tech_animationData[0][0]); clearAll(); } if (target_cmdName == 'BasicDelay') { _global.battleOrder[0][2][0] = dataPack0[0]; delaySwitch[_root.party_Order[absNum]] = false; combatData[4] = 'dec'; delayAction[_root.party_Order[absNum]][0] = 95; delayAction[_root.party_Order[absNum]][1] = dataPack0[6]; delayAction[_root.party_Order[absNum]][2] = _global.battleOrder[0]; combatData[5] = dataPack0[6]; combatData = eval('_root.combatData_' + _root.party_Order[absNum]); combatData[2] -= 1; clearAll(); } if (target_cmdName == 'CmdDelay') { _global.battleOrder[0][2][0] = 'Command'; delaySwitch[_root.party_Order[absNum]] = false; combatData[4] = 'dec'; delayAction[_root.party_Order[absNum]][0] = 95; delayAction[_root.party_Order[absNum]][1] = dataPack0[6]; delayAction[_root.party_Order[absNum]][2] = _global.battleOrder[0]; combatData[5] = dataPack0[6]; combatData = eval('_root.combatData_' + _root.party_Order[absNum]); combatData[2] -= 1; (eval('_root.battleChrLayer_' + _root.party_Order[absNum])).gotoAndPlay(tech_animationData[0][0]); clearAll(); } if (target_cmdName == 'Attack') { (eval('_root.battleChrLayer_' + _root.party_Order[absNum])).gotoAndPlay('attackSingle'); clearAll(); } if (target_cmdName == 'Shoot') { (eval('_root.battleChrLayer_' + _root.party_Order[absNum])).gotoAndPlay('shootSingle'); clearAll(); } if (target_cmdName == 'Pass') { ++_global.currentScriptLayer.battleStatistics[1][2][0]; tData[4][8] = 1; playerXY = _root.battle_partyData[1][absNum]; playerWH = _root.battle_partyData[2][absNum]; afflictionFloat(playerXY[0], playerXY[1] + playerWH[1], 'Blocking'); play(); combatData = eval('_root.combatData_' + _root.party_Order[absNum]); combatData[2] = 20; clearAll(); } if (target_cmdName == 'Tech') { tData = eval('_root.chrTData_' + _root.party_Order[absNum]); if (tData[0] <= 0) { _global.currentScriptLayer.splashText = 'Desperation ' + dataPack0[0]; attachMovie('splashIn3', 'splashIn', 9999, {'_x': 400, '_y': 200}); } else { _global.currentScriptLayer.splashText = dataPack0[0]; attachMovie('splashIn', 'splashIn', 9999, {'_x': 400, '_y': 200}); } delete tData; (eval('_root.battleChrLayer_' + _root.party_Order[absNum])).gotoAndStop(tech_animationData[0][1]); stop(); clearAll(); } if (target_cmdName == 'Support') { _global.currentScriptLayer.splashText = 'Support: ' + dataPack0[0]; attachMovie('battlePopUpP', 'splashIn', 9999, {'_x': 250, '_y': 200}); _root.battleChrLayer_S.gotoAndPlay('action'); stop(); clearAll(); } if (target_cmdName == 'Item') { ++_global.currentScriptLayer.battleStatistics[1][0][0]; _global.currentScriptLayer.splashText = dataPack0[0]; attachMovie('battlePopUpP', 'splashIn', 9999, {'_x': 250, '_y': 200}); (eval('_root.battleChrLayer_' + _root.party_Order[absNum])).gotoAndStop(tech_animationData[0][1]); stop(); clearAll(); } if (target_cmdName == 'Command') { _global.currentScriptLayer.splashText = dataPack0[0]; attachMovie('splashIn', 'splashIn', 9999, {'_x': 400, '_y': 200}); (eval('_root.battleChrLayer_' + _root.party_Order[absNum])).gotoAndStop(tech_animationData[0][1]); stop(); clearAll(); } } } } frame 61 { gotoAndPlay('enemyLoop'); } frame 71 { function determineAggro() { _root.tempList = []; varX = 0; while (varX <= _root.party_Order.length - 1) { gridLoc = _root.battle_partyData[0][varX]; _root.tempList[varX] = _root.grid_Plots[gridLoc][1][2]; ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { combatData = eval('_root.combatData_' + _root.party_Order[varX]); combatAggro = combatData[3]; _root.tempList[varX] += combatAggro; ++varX; } delete combatAggro; delete combatData; partyAliveControlList = []; counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { partyAliveControlList[counter] = varX; ++counter; } ++varX; } aggroPool = 0; varX = 0; while (varX <= partyAliveControlList.length - 1) { aggroPool += _root.tempList[partyAliveControlList[varX]]; ++varX; } randomNumber = Math.ceil(Math.random() * aggroPool); counter = 0; varZ = 0; while (varZ <= partyAliveControlList.length - 1) { varA = 0; while (varA <= _root.tempList[partyAliveControlList[varZ]]) { if (randomNumber == counter) { aggroTarget = partyAliveControlList[varZ]; } ++counter; ++varA; } --counter; ++varZ; } delete aggroPool; delete randomNumber; delete counter; delete varZ; delete varA; delete varX; _root.tempList = []; } if (echoBuffer.length > 0) { (eval('enemyTarget_' + echoBuffer[0])).gotoAndPlay('defeated'); echoBuffer.shift(); } varX = 0; while (varX <= _root.party_Order.length) { if (delayAction[_root.party_Order[varX]][0] > 0) { delayAction[_root.party_Order[varX]][0] -= delayAction[_root.party_Order[varX]][1] / 4; combatData = eval('_root.combatData_' + _root.party_Order[varX]); combatData[2] = delayAction[_root.party_Order[varX]][0]; } ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); iData = eval('_root.chrIData_' + _root.party_Order[varX]); combatData = eval('_root.combatData_' + _root.party_Order[varX]); if (delaySwitch[_root.party_Order[varX]] == true) { if (tData[0] > 0 and tData[3][4] <= 0) { speed = cData[13][0] / 4; if (tData[3][6] > 0) { speed = cData[13][0] / 4 / 2; } combatData[2] += speed; } } delete speed; ++varX; } _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); enemyAliveControlList = []; counter = 0; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveControlList[counter] = varX; ++counter; } ++varX; } delete counter; varX = 0; while (varX <= enemyAliveControlList.length - 1) { enemyCombatData = eval('_root.enemyCombatData_' + enemyAliveControlList[varX]); enemyBData = eval('_root.enemyBData_' + enemyAliveControlList[varX]); enemyTData = eval('_root.enemyTData_' + enemyAliveControlList[varX]); enemyTHP = (eval('_root.enemyTData_' + enemyAliveControlList[varX]))[1][0]; enemyHP = (eval('_root.enemyBData_' + enemyAliveControlList[varX]))[1][0]; _root.tempList = []; if (enemyCombatData[2] >= 100 and enemyTData[1][0] > 0) { moveSet = eval('_root.enemySkills_' + selectedEnemies[enemyAliveControlList[varX]]); ext = 0; if (enemyTHP < Math.round(enemyHP * 0.6)) { ext = 1; } if (enemyTHP < Math.round(enemyHP * 0.2)) { ext = 2; } skillPool = 0; varY = 0; while (varY <= moveSet.length - 1) { skillPool += moveSet[varY][0][ext]; ++varY; } randomNumber = Math.floor(Math.random() * skillPool); if (randomNumber <= 0) { randomNumber = 0; } if (randomNumber >= skillPool) { randomNumber = skillPool; } delete varY; delete skillPool; delete enemyHP; counter = 0; varZ = 0; while (varZ <= moveSet.length - 1) { varA = 0; while (varA <= moveSet[varZ][0][ext]) { if (randomNumber == counter) { skillSelect = varZ; } ++counter; ++varA; } --counter; ++varZ; } delete counter; delete varA; delete varZ; delete ext; if (moveSet[skillSelect][2][7] > enemyTData[1][1]) { skillSelect = 0; } _global.battleOrder[battleOrder.length] = [['E'], [enemyAliveControlList[varX]], ['e_Delay'], moveSet[skillSelect]]; enemyCombatData[2] = 0; break; } ++varX; } delete moveSet; delete enemyCombatData; _root.tempList = []; varX = 0; while (varX <= enemyAliveControlList.length - 1) { enemyTData = eval('_root.enemyTData_' + enemyAliveControlList[varX]); if (enemyTData[3][4] <= 0) { enemyCombatData = eval('_root.enemyCombatData_' + enemyAliveControlList[varX]); agility = (eval('_root.enemyAttackStats_' + enemyAliveControlList[varX]))[1][2]; if (enemyTData[3][6] > 0) { agility /= 2; } enemyCombatData[2] += agility * 1.5; } ++varX; } delete enemyCombatData; delete agility; varX = 0; while (varX <= enemyAliveControlList.length - 1) { if (e_delayAction[enemyAliveControlList[varX]][0] > 0) { e_delayAction[enemyAliveControlList[varX]][0] -= e_delayAction[enemyAliveControlList[varX]][1]; enemyCombatData = eval('_root.enemyCombatData_' + enemyAliveControlList[enemyAliveControlList[varX]]); enemyCombatData[2] = e_delayAction[enemyAliveControlList[varX]][0]; if (e_delayAction[enemyAliveControlList[varX]][0] <= 0) { _global.battleOrder[_global.battleOrder.length] = e_delayAction[enemyAliveControlList[varX]][2]; e_delayAction[enemyAliveControlList[varX]][0] = 0; } } ++varX; } if (_global.battleOrder.length > 0) { side = battleOrder[0][0][0]; enemy_number = battleOrder[0][1][0]; action = battleOrder[0][2][0]; enemyTData = eval('_root.enemyTData_' + battleOrder[0][1][0]); if (side == 'E') { clearInterval(_root.battleChrLayer_0.startPause); clearInterval(_root.battleChrLayer_1.startPause); clearInterval(_root.battleChrLayer_2.startPause); Key.removeListener(_global.selectorIconLayer.selector_Listener); Key.removeListener(_global.selectorIconLayer.primary_Listener); Key.removeListener(_global.selectorIconLayer.enemySelector_Listener); Key.removeListener(_global.selectorIconLayer.playerSelector_Listener); if (action == 'e_Delay') { determineAggro(); skillName = _global.battleOrder[0][3][1][0][0]; delaySpeed = _global.battleOrder[0][3][1][0][1]; skillType = _global.battleOrder[0][3][1][0][4]; fx = _global.battleOrder[0][3][2]; talkOn = _global.battleOrder[0][3][_global.battleOrder[0][3].length - 1][0]; enemySays = _global.battleOrder[0][3][_global.battleOrder[0][3].length - 1][1]; if (talkOn == 'trgt') { enemyIData = eval('_root.enemyIData_' + enemy_number); iData = eval('_root.chrIData_' + _root.party_Order[aggroTarget]); _global.currentScriptLayer.splashText = enemyIData[0] + ' ' + _root.alphabetArray[enemy_number] + ' ' + enemySays + ' ' + iData[0] + '.'; attachMovie('battlePopUp', 'splashIn', 9999, {'_x': 250, '_y': 200}); (eval('enemyTarget_' + enemy_number)).gotoAndPlay('talk'); } if (talkOn == 'talk') { enemyIData = eval('_root.enemyIData_' + enemy_number); _global.currentScriptLayer.splashText = enemySays; attachMovie('battlePopUp', 'splashIn', 9999, {'_x': 250, '_y': 200}); (eval('enemyTarget_' + enemy_number)).gotoAndPlay('talk'); } _global.battleOrder[0][2][0] = skillType; e_delayAction[enemy_number][0] = 99; e_delayAction[enemy_number][1] = delaySpeed; e_delayAction[enemy_number][2] = _global.battleOrder[0]; e_delayAction[enemy_number][3] = aggroTarget; enemyCombatData = eval('_root.enemyCombatData_' + enemyAliveControlList[enemy_number]); enemyCombatData[2] -= 1; _global.battleOrder.shift(); } if (action == 'melee' or action == 'ranged' or action == 'special') { tData = eval('_root.chrTData_' + e_delayAction[enemy_number][3]); if (tData[0] <= 0) { determineAggro(); e_delayAction[enemy_number][3] = aggroTarget; } skillName = _global.battleOrder[0][3][1][0][0]; damageType = _global.battleOrder[0][3][1][0][2]; damagePercent = _global.battleOrder[0][3][1][0][3] * 0.01; skillType = _global.battleOrder[0][3][1][0][4]; fx = _global.battleOrder[0][3][2]; tech_elementalData = fx[9][0]; tech_afflictionData = fx[9][1]; spellCost = fx[7]; enemyTData[1][1] -= spellCost; talkOn = _global.battleOrder[0][3][_global.battleOrder[0][3].length - 1][2]; enemySays = _global.battleOrder[0][3][_global.battleOrder[0][3].length - 1][3]; if (talkOn == 'trgt') { enemyIData = eval('_root.enemyIData_' + enemy_number); iData = eval('_root.chrIData_' + aggroTarget); _global.currentScriptLayer.splashText = enemyIData[0] + ' ' + _root.alphabetArray[enemy_number] + ' ' + enemySays + ' ' + iData[0] + '.'; attachMovie('battlePopUpE', 'splashIn', 9999, {'_x': 250, '_y': 200}); } if (talkOn == 'talk') { enemyIData = eval('_root.enemyIData_' + enemy_number); _global.currentScriptLayer.splashText = enemySays; attachMovie('battlePopUpE', 'splashIn', 9999, {'_x': 250, '_y': 200}); } if (talkOn == 'splsh') { _global.currentScriptLayer.splashText = skillName; attachMovie('splashInE', 'splashIn', 9999, {'_x': 400, '_y': 200}); } if (talkOn == 'none') { _global.currentScriptLayer.splashText = skillName; attachMovie('splashInEmpty', 'splashIn', 9999, {'_x': 400, '_y': 200}); } _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay._visible = true; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(enemy_number, scanLevel); _global.currentScriptLayer.dataPack0 = fx; PartyOrEnemy = 'Party'; target_cmdNum = e_delayAction[enemy_number][3]; target_cmdSelect = dataPack0[2]; tech_type = dataPack0[3]; tech_animationData = dataPack0[8]; currentMovie = eval('_global.currentScriptLayer.enemyTarget_' + enemy_number); _global.currentScriptLayer.currentMovie.gotoAndStop(skillType); _global.battleOrder.shift(); } if (action == 'ether') { tData = eval('_root.chrTData_' + e_delayAction[enemy_number][3]); if (tData[0] <= 0) { determineAggro(); e_delayAction[enemy_number][3] = aggroTarget; } skillName = _global.battleOrder[0][3][1][0][0]; damageType = _global.battleOrder[0][3][1][0][2]; damagePercent = _global.battleOrder[0][3][1][0][3] * 0.01; fx = _global.battleOrder[0][3][2]; spellCost = fx[7]; enemyTData[1][1] -= spellCost; skillType = _global.battleOrder[0][3][1][0][4]; talkOn = _global.battleOrder[0][3][_global.battleOrder[0][3].length - 1][2]; enemySays = _global.battleOrder[0][3][_global.battleOrder[0][3].length - 1][3]; if (talkOn == 'trgt') { enemyIData = eval('_root.enemyIData_' + enemy_number); iData = eval('_root.chrIData_' + aggroTarget); _global.currentScriptLayer.splashText = enemyIData[0] + ' ' + _root.alphabetArray[enemy_number] + ' ' + enemySays + ' ' + iData[0] + '.'; attachMovie('battlePopUpE', 'splashIn', 9999, {'_x': 250, '_y': 200}); } if (talkOn == 'talk') { enemyIData = eval('_root.enemyIData_' + enemy_number); _global.currentScriptLayer.splashText = enemySays; attachMovie('battlePopUpE', 'splashIn', 9999, {'_x': 250, '_y': 200}); } if (talkOn == 'splsh') { _global.currentScriptLayer.splashText = skillName; attachMovie('splashInE', 'splashIn', 9999, {'_x': 400, '_y': 200}); } if (talkOn == 'none') { _global.currentScriptLayer.splashText = skillName; attachMovie('splashInEmpty', 'splashIn', 9999, {'_x': 400, '_y': 200}); } _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay._visible = true; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(enemy_number, scanLevel); _global.currentScriptLayer.dataPack0 = fx; PartyOrEnemy = 'Enemy'; target_cmdNum = e_delayAction[enemy_number][3]; target_cmdSelect = dataPack0[2]; tech_type = dataPack0[3]; tech_animationData = dataPack0[8]; if (damageType == 'S') { enemySelect = enemy_number; } if (damageType == 'PR') { enemySelect = Math.round(Math.random() * (selectedEnemies.length - 1)); } if (damageType == 'PH') { _root.tempList = []; counter = 0; varX = 0; while (varX <= enemyAliveControlList.length - 1) { enemyTHP = (eval('_root.enemyTData_' + enemyAliveControlList[varX]))[1][0]; if (enemyTHP < Math.round(enemyHP * 0.5)) { _root.tempList[counter] = [varX]; ++counter; } ++varX; } if (_root.tempList.length - 1 <= 0) { enemySelect = Math.round(Math.random() * (selectedEnemies.length - 1)); } else { enemySelect = Math.round(Math.random() * (_root.tempList.length - 1)); } } currentMovie = eval('_global.currentScriptLayer.enemyTarget_' + enemy_number); _global.currentScriptLayer.currentMovie.gotoAndStop(skillType); _global.battleOrder.shift(); } } } } frame 72 { gotoAndPlay('endOrderLoop'); } frame 86 { varX = 0; while (varX <= _root.party_Order.length) { if (delayAction[_root.party_Order[varX]][0] > 0) { delayAction[_root.party_Order[varX]][0] -= delayAction[_root.party_Order[varX]][1] / 4; combatData = eval('_root.combatData_' + _root.party_Order[varX]); combatData[2] = delayAction[_root.party_Order[varX]][0]; if (delayAction[_root.party_Order[varX]][0] <= 0) { _global.battleOrder[_global.battleOrder.length] = delayAction[_root.party_Order[varX]][2]; delaySwitch[_root.party_Order[varX]] = true; delayAction[_root.party_Order[varX]][0] = 0; } } ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); iData = eval('_root.chrIData_' + _root.party_Order[varX]); combatData = eval('_root.combatData_' + _root.party_Order[varX]); if (delaySwitch[_root.party_Order[varX]] == true) { if (tData[0] > 0 and tData[3][4] <= 0) { speed = cData[13][0] / 4; if (tData[3][6] > 0) { speed = cData[13][0] / 4 / 2; } combatData[2] += speed; } } delete speed; ++varX; } _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); afflictionSchedule = [0, 20, 40]; buffSchedule = [10, 30, 50]; afflictionText = ''; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); cData = eval('_root.chrCData_' + _root.party_Order[varX]); if (tData[3][2] > 0 and afflictionCounter == afflictionSchedule[varX]) { afflictionText += 'Poisen\r'; chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; showDmg = true; damage = Math.ceil(tData[0] * 0.1); finalDamage = Math.round(damage); wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, afflictionText); floatText(chrXY[0], chrXY[1], finalDamage); tData[0] -= finalDamage; _root.checkTData(); --tData[3][2]; if (tData[3][2] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] <= 0) { tData[3] = ['P_Afflictions', 0, 0, 0, 0, 0]; tData[4] = ['P_Shields', 0, 0, 0, 0, 0, 0, 0, 0]; tData[5] = ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]; } } if (tData[3][3] > 0 and afflictionCounter == afflictionSchedule[varX]) { afflictionText += 'Short Circuit\r'; chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; showDmg = true; damage = Math.ceil(tData[1] * 0.1); finalDamage = Math.round(damage); wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, afflictionText); tData[1] -= finalDamage; _root.checkTData(); --tData[3][3]; if (tData[3][3] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } } if (tData[3][4] > 0 and afflictionCounter == afflictionSchedule[varX]) { chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; --tData[3][4]; if (tData[3][4] <= 0) { wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, 'Recovered'); } --tData[3][4]; if (tData[3][4] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } } if (tData[3][5] > 0 and afflictionCounter == afflictionSchedule[varX]) { afflictionText += 'Blinded\r'; chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, afflictionText); --tData[3][5]; if (tData[3][5] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } } if (tData[3][6] > 0 and afflictionCounter == afflictionSchedule[varX]) { chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; --tData[3][6]; if (tData[3][6] <= 0) { wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, 'Recovered'); } --tData[3][6]; if (tData[3][6] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } } if (tData[3][7] > 0 and afflictionCounter == afflictionSchedule[varX]) { chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; --tData[3][7]; if (tData[3][7] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } } if (tData[3][8] > 0 and afflictionCounter == afflictionSchedule[varX]) { chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; --tData[3][8]; if (tData[3][8] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } } if (tData[3][9] > 0 and afflictionCounter == afflictionSchedule[varX]) { chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; --tData[3][9]; if (tData[3][9] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } } varA = 1; while (varA <= tData[4].length - 1) { tData[4][varA] -= 0.005; if (tData[4][varA] <= 25 and tData[4][varA] > 20) { tData[4][varA] = 0; chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, 'Shield Gone'); } if (tData[4][varA] <= 0) { tData[4][varA] = 0; } ++varA; } if (tData[5][1] > 0 and playerBuffCounter == buffSchedule[varX]) { afflictionText += 'Recover\r'; chrXY = _root.battle_partyData[1][varX]; chrWH = _root.battle_partyData[2][varX]; showDmg = true; heal = Math.round(cData[0] * 0.1); floatHeal(chrXY[0], chrXY[1] - chrWH[1], heal, 'H'); tData[0] += heal; _root.checkTData(); _global.currentScriptLayer.battleStatistics[0][1][0] += heal; --tData[5][1]; if (tData[5][1] <= 0) { _global.playerDataDisplayLayer.gotoAndPlay('dataLoop'); } } ++varX; } e_afflictionSchedule = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105]; e_buffSchedule = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110]; afflictionText = ''; varX = 0; while (varX <= _global.currentScriptLayer.selectedEnemies.length - 1) { tData = eval('_root.enemyTData_' + varX); bData = eval('_root.enemyBData_' + varX); if (tData[3][2] > 0 and e_afflictionCounter == e_afflictionSchedule[varX]) { afflictionText += 'Poisen\r'; chrXY = _root.battle_enemyData[1][varX]; chrWH = _root.battle_enemyData[2][varX]; showDmg = true; damage = Math.ceil(tData[1][0] * 0.1); finalDamage = Math.round(damage); wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, afflictionText); floatText(chrXY[0], chrXY[1], finalDamage); tData[1][0] -= finalDamage; --tData[3][2]; if (tData[3][2] <= 0) { wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, 'Recovered from Poisen'); } (eval('enemyTarget_' + varX)).gotoAndPlay('talk'); enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(varX, scanLevel); if (tData[1][0] <= 0) { (eval('enemyTarget_' + varX)).gotoAndPlay('defeated'); tData[3] = ['Afflictions', 0, 0, 0, 0, 0, 0]; } } if (tData[3][3] > 0 and e_afflictionCounter == e_afflictionSchedule[varX]) { afflictionText += 'Short Circuit\r'; chrXY = _root.battle_enemyData[1][varX]; chrWH = _root.battle_enemyData[2][varX]; showDmg = true; damage = Math.ceil(tData[1][1] * 0.1); finalDamage = Math.round(damage); wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, afflictionText); (eval('enemyTarget_' + varX)).gotoAndPlay('talk'); tData[1][1] -= finalDamage; if (tData[1][1] <= 0) { tData[1][1] = 0; } --tData[3][3]; enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(varX, scanLevel); } if (tData[3][4] > 0 and e_afflictionCounter == e_afflictionSchedule[varX]) { afflictionText += 'Shock\r'; chrXY = _root.battle_enemyData[1][varX]; chrWH = _root.battle_enemyData[2][varX]; wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, afflictionText); (eval('enemyTarget_' + varX)).gotoAndPlay('talk'); --tData[3][4]; enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(varX, scanLevel); } if (tData[3][5] > 0 and e_afflictionCounter == e_afflictionSchedule[varX]) { afflictionText += 'Blinded\r'; chrXY = _root.battle_enemyData[1][varX]; chrWH = _root.battle_enemyData[2][varX]; wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, afflictionText); (eval('enemyTarget_' + varX)).gotoAndPlay('talk'); --tData[3][5]; enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(varX, scanLevel); } if (tData[3][6] > 0 and e_afflictionCounter == e_afflictionSchedule[varX]) { afflictionText += 'Slow\r'; chrXY = _root.battle_enemyData[1][varX]; chrWH = _root.battle_enemyData[2][varX]; wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, afflictionText); (eval('enemyTarget_' + varX)).gotoAndPlay('talk'); --tData[3][6]; enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(varX, scanLevel); } if (tData[3][7] > 0 and afflictionCounter == afflictionSchedule[varX]) { --tData[3][7]; } if (tData[3][8] > 0 and afflictionCounter == afflictionSchedule[varX]) { --tData[3][8]; } if (tData[3][9] > 0 and afflictionCounter == afflictionSchedule[varX]) { --tData[3][9]; } varA = 1; while (varA <= tData[4].length - 1) { tData[4][varA] -= 0.005; if (tData[4][varA] <= 25 and tData[4][varA] > 20) { tData[4][varA] = 0; chrXY = _root.battle_enemyData[1][varX]; chrWH = _root.battle_enemyData[2][varX]; wavyFloatText(chrXY[0] - 25, chrXY[1] - 30, 'Shield Gone'); enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(varX, scanLevel); } if (tData[4][varA] <= 0) { tData[4][varA] = 0; } ++varA; } if (tData[5][1] > 0 and e_buffScheduleCounter == e_buffSchedule[varX]) { afflictionText += 'Recover\r'; chrXY = _root.battle_enemyData[1][varX]; chrWH = _root.battle_enemyData[2][varX]; showDmg = true; heal = Math.round(bData[1][0] * 0.1); floatHeal(chrXY[0], chrXY[1] - chrWH[1], heal, 'H'); tData[1][0] += heal; if (tData[1][0] > bData[1][0]) { tData[1][0] = bData[1][0]; } --tData[5][1]; enemyDisplay._visible = true; scanLevel = 0; _global.currentScriptLayer.enemyDisplay._x = 15; _global.currentScriptLayer.enemyDisplay._y = 545; _global.currentScriptLayer.enemyDisplay.gotoAndPlay('startCount'); _global.enemyDataDisplayBarLayer.gotoAndStop('normal'); _global.enemyStatusBarLayer.updateEnemyHPBar(varX, scanLevel); } ++varX; } ++afflictionCounter; ++playerBuffCounter; if (afflictionCounter > 60) { afflictionCounter = 0; } if (playerBuffCounter > 60) { playerBuffCounter = 0; } ++e_afflictionCounter; ++e_buffScheduleCounter; if (e_afflictionCounter > 110) { e_afflictionCounter = 0; } if (e_buffScheduleCounter > 110) { e_buffScheduleCounter = 0; } delete target_cmdNum; delete target_cmdSelect; delete tech_type; delete tech_animationData; delete tech_elementalData; delete dataPack0; delete randomPlayer; delete side; delete enemy_number; delete action; delete enemy_Who; delete enemy_Name; delete enemyXY; delete enemyWH; delete enemyAttackStats; delete enemyBData; delete tData; delete cData; delete combatData; delete target_cmdName; delete damage; delete enemyDef; delete random_Dmg; delete totalDamage; delete finalDamage; delete dataPack0; delete damagePercentage; delete comboDamage; delete totalDamage; delete extraDamage; delete elementalDamage; delete finalDamage; delete playerXY; delete playerWH; delete party_Who; delete finalHeal; delete healAmount; delete damageType; delete partyAliveControlList; delete chrXY; delete chrWH; delete chrLayer; delete actionWho; delete side; delete absNum; delete target_cmdName; delete target_cmdTarget; delete target_cmdSelect; delete target_cmdNum; delete tech_type; delete tech_animationData; delete tech_elementalData; delete tech_afflictionData; delete PartyOrEnemy; delete aData; delete wData; delete sData; delete bcData; delete iData; delete combatData; delete cData; delete skillName; delete delaySpeed; delete skillType; delete fx; delete talkOn; delete enemySays; delete action; delete aggroTarget; delete enemyIData; delete skillName; delete delaySpeed; delete skillType; delete fx; delete action; delete aggroTarget; delete enemyIData; delete iData; delete skillName; delete delaySpeed; delete skillType; delete fx; delete damageType; delete damagePercent; delete talkOn; delete enemySays; Key.removeListener(_global.selectorIconLayer.selector_Listener); Key.removeListener(_global.selectorIconLayer.primary_Listener); Key.removeListener(_global.selectorIconLayer.enemySelector_Listener); Key.removeListener(_global.selectorIconLayer.playerSelector_Listener); Key.removeListener(_global.objectiveListLayer.quickSkip); gotoAndPlay('playerLoop'); } frame 97 { totalXP = 0; totalSP = 0; varX = _global.currentScriptLayer.selectedEnemies.length - 1; while (varX >= 0) { enemyIData = eval('_root.enemyIData_' + selectedEnemies[varX]); totalXP += enemyIData[4][0]; totalSP += enemyIData[4][1]; --varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); bcData = eval('_root.chrBCData_' + _root.party_Order[varX]); varA = 0; while (varA <= bcData.length - 1) { varB = 0; while (varB <= bcData[0].length - 1) { bcData[varA][varB][1] += totalSP; ++varB; } ++varA; } ++varX; } _root.updateSData(); _root.updateAData(); _root.updateBCData(); removeMovieClip(_global.currentScriptLayer.timerClip); } frame 325 { attachMovie('victorySplashMovie', 'victorySplashMovie', 19999, {'_x': 0, '_y': 0}); stop(); } frame 329 { stop(); } frame 330 { _global.currentStage.mainMap._visible = true; removeMovieClip(_root.battleMCHolder); _global.currentScriptLayer = _global.currentStage; _global.mainMapLayer.battleTransferData[1] = ['victory', '']; _global.mainMapLayer.playerMain._x -= 5; stop(); } frame 338 { totalXP = 0; totalSP = 0; varX = _global.currentScriptLayer.selectedEnemies.length - 1; while (varX >= 0) { enemyIData = eval('_root.enemyIData_' + selectedEnemies[varX]); totalXP += 0; totalSP += 0; --varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); bcData = eval('_root.chrBCData_' + _root.party_Order[varX]); varA = 0; while (varA <= bcData.length - 1) { varB = 0; while (varB <= bcData[0].length - 1) { bcData[varA][varB][1] += totalSP; ++varB; } ++varA; } ++varX; } _root.updateSData(); _root.updateAData(); _root.updateBCData(); removeMovieClip(_global.currentScriptLayer.timerClip); } frame 496 { attachMovie('victorySplashMovie', 'victorySplashMovie', 19999, {'_x': 0, '_y': 0}); stop(); } frame 500 { stop(); } frame 501 { _global.currentStage.mainMap._visible = true; removeMovieClip(_root.battleMCHolder); _global.currentScriptLayer = _global.currentStage; _global.mainMapLayer.battleTransferData[1] = ['defeat', '']; _global.mainMapLayer.playerMain._x -= 10; stop(); } } movieClip 1451 battleMCHolder { frame 1 { _global.battleNumber = _root.challengeList[_global.challengeNum][0]; _global.partyNumber = _root.challengeList[_global.challengeNum][1]; _global.currentBackground = _root.challengeList[_global.challengeNum][2]; _global.currentSong = _root.challengeList[_global.challengeNum][3]; _global.enemyLevel = _root.challengeList[_global.challengeNum][4][1]; _root.party_Order = []; varX = 0; while (varX <= _root.partyFormationData[_global.partyNumber].length - 1) { _root.party_Order[varX] = _root.partyFormationData[_global.partyNumber][varX]; ++varX; } delete varX; _root.totalPartyNum = _root.party_Order.length - 1; varX = 0; while (varX <= _root.party_Order.length - 1) { (eval('_root.chrIData_' + varX))[3] = _global.xpPoints; ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] <= 0) { tData[0] = 10; } ++varX; } _root.battle_ObjectivesMain = []; varX = 0; while (varX <= 10) { _root.battle_ObjectivesMain[varX] = false; ++varX; } varX = 0; while (varX <= _root.challengeList[_global.challengeNum][5][0].length - 1) { _root.battle_ObjectivesMain[_root.challengeList[_global.challengeNum][5][0][varX]] = true; ++varX; } _root.battle_ObjectivesMain[0] = true; _root.battle_ObjectivesSec = []; varX = 0; while (varX <= 10) { _root.battle_ObjectivesSec[varX] = false; ++varX; } varX = 0; while (varX <= _root.challengeList[_global.challengeNum][5][1].length - 1) { if (_root.challengeList[_global.challengeNum][5][1][varX] == 't1' or _root.challengeList[_global.challengeNum][5][1][varX] == 't2' or _root.challengeList[_global.challengeNum][5][1][varX] == 't3') { if (_root.challengeList[_global.challengeNum][5][1][varX] == 't1') { randomNumber = Math.round(Math.random() * 4); _root.battle_ObjectivesSec[randomNumber] = true; } if (_root.challengeList[_global.challengeNum][5][1][varX] == 't2') { randomNumber = Math.round(Math.random() * 5) + 5; _root.battle_ObjectivesSec[randomNumber] = true; } } else { _root.battle_ObjectivesSec[_root.challengeList[_global.challengeNum][5][1][varX]] = true; } ++varX; } delete randomNumber; _root.battleData = ['bg1', slot1, slot2]; _root.activeBattle = true; _root.alphabetArray = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K']; _root.battle_partyData = [[0, 3, 4], [[0, 0], [0, 0], [0, 0]], [[0, 0], [0, 0], [0, 0]], [0, 0, 0]]; if (_root.party_Order.length - 1 == 0) { _root.battle_partyData = [[2, 0, 4], [[0, 0], [0, 0], [0, 0]], [[0, 0], [0, 0], [0, 0]], [0, 0, 0]]; } _root.grid_Plots = []; _root.grid_Plots[0] = [[570, 460], [155, 700, 20]]; _root.grid_Plots[1] = [[600, 460], [155, 700, 5]]; _root.grid_Plots[2] = [[500, 510], [185, 900, 20]]; _root.grid_Plots[3] = [[640, 510], [185, 900, 5]]; _root.grid_Plots[4] = [[510, 580], [215, 1100, 20]]; _root.grid_Plots[5] = [[610, 580], [215, 1100, 5]]; _root.battle_enemyData = [[0, 0, 0, 0, 0, 0, 0, 0, 0], [[0, 0], [0, 0], [0, 0]], [[0, 0], [0, 0], [0, 0]], [0, 0, 0]]; varX = 0; while (varX <= _root.battle_enemyData[0].length - 1) { _root.battle_enemyData[0][varX] = _root.enemyFormationData[_global.battleNumber][1][varX]; ++varX; } delete varX; _root.grid_Plots[10] = [[20, 460], [155, 700, 20]]; _root.grid_Plots[11] = [[150, 460], [155, 700, 30]]; _root.grid_Plots[12] = [[280, 460], [155, 700, 30]]; _root.grid_Plots[13] = [[40, 510], [185, 900, 20]]; _root.grid_Plots[14] = [[170, 510], [185, 900, 30]]; _root.grid_Plots[15] = [[330, 510], [185, 900, 30]]; _root.grid_Plots[16] = [[10, 580], [215, 1100, 20]]; _root.grid_Plots[17] = [[140, 580], [215, 1100, 30]]; _root.grid_Plots[18] = [[270, 580], [215, 1100, 30]]; } frame 20 { battleMain_MC._xscale = _root.gameResolution[0]; battleMain_MC._yscale = _root.gameResolution[0]; battleMain_MC._x = _root.gameResolution[1]; battleMain_MC._y = _root.gameResolution[2]; movieMask._xscale = _root.gameResolution[0]; movieMask._yscale = _root.gameResolution[0]; movieMask._x = _root.gameResolution[1]; movieMask._y = _root.gameResolution[2]; } frame 32 { stop(); } } movieClip 1454 { } // unknown tag 88 length 91 movieClip 1457 { frame 1 { _global.speechBoxTextLayer = this; totalLetterCount = _global.speechBoxCurrentText.length; maxScreen = Math.ceil(totalLetterCount / 160); _global.speechBoxTextLayer.currentText.text = _global.speechBoxCurrentText; _global.speechBoxTextLayer.currentText._height = maxScreen * 75; } } movieClip 1459 { frame 1 { _global.currentDialogLayer.dialogData[_global.currentDialogLayer.lineCount][0][0]; currentFace = 'chr' + _global.currentDialogLayer.dialogData[_global.currentDialogLayer.lineCount][0][0] + '_' + _global.currentDialogLayer.dialogData[_global.currentDialogLayer.lineCount][0][1]; attachMovie(currentFace, 'convoPic', 0, {'_x': 0, '_y': 0}); stop(); } } movieClip 1462 speechBox { frame 1 { totalLetterCount = _global.speechBoxCurrentText.length; currentScreen = 1; maxScreen = Math.ceil(totalLetterCount / 140); } frame 10 { play(); } frame 22 { if (currentScreen < maxScreen) { textScrollListener = new Object(); textScrollListener.onKeyDown = function () { if (Key.getCode() == '32') { gotoAndStop('speechLoop'); Key.removeListener(textScrollListener); textHolderText._y -= 73.2; totalTextHeight -= 73.2; ++currentScreen; } }; Key.addListener(textScrollListener); } else { gotoAndStop('speechNext'); } attachMovie('waitFlash', 'waitFlash', 10, {'_x': 290, '_y': 80}); stop(); } frame 23 { play(); } frame 33 { attachMovie('waitFlash', 'waitFlash', 10, {'_x': 290, '_y': 80}); waitBtn = new Object(); waitBtn.onKeyDown = function () { if (Key.getCode() == '32') { gotoAndStop('close'); Key.removeListener(waitBtn); } }; Key.addListener(waitBtn); stop(); } frame 34 { play(); removeMovieClip(waitFlash); } frame 58 { _global.currentDialogLayer.play(); stop(); } } movieClip 1466 { } movieClip 1467 waitFlash { } movieClip 1468 { } movieClip 1472 chr0_0 { } movieClip 1474 chr0_1 { } movieClip 1477 chr2_0 { } movieClip 1479 dialog1 { frame 1 { _global.currentDialogLayer = this; lineCount = 0; dialogData = [[[98, 0, 0], ['Hello, and welcome to my demo. You\'ll find many things are still incomplete in here, but the battle system works great.']], [[98, 0, 0], ['I urge you to take some time and experiment and see what works. ']], [[98, 0, 0], ['Don\'t forget that there are three types of tech\'s (use the left and right [ARROW KEYS] to access them.']], [[0, 0, 0], ['But please don\'t get me killed.']], [[98, 0, 0], ['Remember: [SPACE BAR] is used for jumping and actions. [BACKSPACE BAR] is used to cancel or open up the menu screen.']], [[98, 0, 0], ['This is my first published project and I hope you enjoy it. Let me know what you think! -Allen']], [[98, 0, 0], ['P.S - I fixed several glitches already but I\'m sure there are some left. Tell me if you find any.']], [[98, 0, 0], ['P.S.S - Don\'t forget that if time your attacks just right, hitting the [SPACE BAR] will provide an extra hit. This requires practice, but is invaluable for taking down enemies quickly.']]]; _global.mainMapLayer.disableAllControls(); gotoAndPlay('drawBox'); } frame 7 { _global.speechBoxCurrentText = dialogData[lineCount][1][0]; attachMovie('speechBox', 'speechBox', 0, {'_x': 0, '_y': 0}); } frame 14 { stop(); } frame 29 { ++lineCount; if (lineCount > dialogData.length - 1) { _global.mainMapLayer.enableAllControls(); removeMovieClip(_global.currentStage.event_Dialog); } else { gotoAndPlay('drawBox'); } } } movieClip 1480 slide_Menu { frame 1 { counter = 0; } frame 4 { attachMovie('box_Final', 'slideBox_' + counter, 100 + counter, {'_x': 0, '_y': +(counter * 50)}); (eval('slideBox_' + counter)).gotoAndPlay('slideIn'); (eval('slideBox_' + counter)).textClip.slideText.text = _root.slideMenu_Data[2 + counter][0]; } frame 7 { if (counter < _root.slideMenu_Data[1]) { ++counter; gotoAndPlay('l1'); } else { gotoAndPlay('controls'); } } frame 10 { function animateBox() { if (p_row < 0) { p_row = _root.slideMenu_Data[1]; } else { if (p_row > _root.slideMenu_Data[1]) { p_row = 0; } } (eval('slideBox_' + p_row)).gotoAndPlay('slideInFull'); _global.soundBeep1.start(); } p_row = _root.slideMemory; animateBox(); slideListener = new Object(); slideListener.onKeyDown = function () { if (Key.getCode() == '40' or Key.getAscii() == '50') { (eval('slideBox_' + p_row)).gotoAndPlay('slideOutFull'); _global.fx4.start(); ++p_row; animateBox(); } if (Key.getCode() == '38' or Key.getAscii() == '56') { (eval('slideBox_' + p_row)).gotoAndPlay('slideOutFull'); _global.fx4.start(); --p_row; animateBox(); } if (Key.getCode() == '32') { _global.fx6.start(); _root.slideMemory = p_row; newD = 2 + p_row; newD_Name = _root.slideMenu_Data[newD][1]; _root.slideMenu_Return = [p_row, _root.slideMenu_Data[newD][1]]; gotoAndPlay('close'); Key.removeListener(slideListener); } }; Key.removeListener(slideListener); Key.addListener(slideListener); stop(); } frame 14 { counter = 0; } frame 17 { (eval('slideBox_' + counter)).gotoAndPlay('slideFadeOut'); (eval('slideBox_' + counter)).textClip.slideText.text = _root.slideMenu_Data[2 + counter][0]; } frame 20 { if (counter < _root.slideMenu_Data[1]) { ++counter; gotoAndPlay('c1'); } else { play; } } frame 29 { _root.slideMenu_Data[0].play(); } frame 30 { stop(); } } movieClip 1482 { } movieClip 1485 { } movieClip 1487 box_Movie { } // unknown tag 88 length 143 movieClip 1490 { } movieClip 1492 box_Final { frame 5 { stop(); } frame 11 { stop(); } frame 17 { stop(); } frame 24 { stop(); } frame 31 { stop(); } frame 39 { stop(); } } movieClip 1493 cutscenePlayer { frame 1 { attachMovie(_root.movePlayerData[0][0], currentMovie, 0, {'_x': 0, '_y': 0}); } frame 5 { stop(); } } movieClip 1496 chr99_0 { } movieClip 1500 chr2_3 { } movieClip 1504 chr98_0 { } movieClip 1507 chr50_0 { } movieClip 1517 chr90_0 { } movieClip 1519 chr90_1 { } movieClip 1520 chr90_2 { } // unknown tag 88 length 84 movieClip 1524 { frame 1 { splashText.text = _global.splashText; splashText2.text = _global.splashText2; } } movieClip 1525 { } movieClip 1526 { frame 220 { } frame 265 { stop(); trace('here first'); _global.currentIntroLayer.play(); } } movieClip 1527 { frame 1 { _global.currentIntroLayer = this; } frame 7 { stop(); } frame 12 { _global.currentScriptLayer.play(); stop(); } } movieClip 1528 { } movieClip 1534 { } movieClip 1535 { } movieClip 1538 { frame 40 { stop(); } } movieClip 1539 { } movieClip 1540 { } movieClip 1541 { } movieClip 1542 { } movieClip 1543 { } movieClip 1544 { frame 1 { i = 15; } } movieClip 1545 { } movieClip 1546 { } movieClip 1547 { } movieClip 1548 { } movieClip 1549 { } movieClip 1550 { } movieClip 1552 { } movieClip 1553 { } movieClip 1557 { } movieClip 1560 { frame 1 { stop(); } frame 30 { gotoAndPlay('loop'); } } movieClip 1561 { frame 1 { function fightFunction(fightID) { disableAllControls(); _global.currentStage.mainMap._visible = false; _global.challengeNum = fightID; _global.battleNumber = _root.challengeList[_global.challengeNum][0]; _global.partyNumber = _root.challengeList[_global.challengeNum][1]; _global.currentBackground = _root.challengeList[_global.challengeNum][2]; _global.currentSong = _root.challengeList[_global.challengeNum][3]; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } function disableAllControls() { if (runSpd > 0 or runSpd < 0) { playerMain.playerMC.gotoAndPlay('runStop'); } movementBuffer = []; runSpd = 0; x_speed = 0; constantCheck = false; interuptSwitch = true; jumpThenRun = false; Key.removeListener(jumpControls); Key.removeListener(inAirControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(cancelRight); Key.removeListener(cancelLeft); Key.removeListener(openMenu); } function enableAllControls() { Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); Key.addListener(jumpControls); Key.addListener(openMenu); interuptSwitch = false; } _global.mainMapLayer = this; scrollScreen = false; xEdge = false; fallingOn = false; inTheAir = true; constantCheck = true; moveSwitch = false; animationSwitch = false; fightNow = false; jumpOk = true; jumpOn = false; x_speed = 0; stageZoom = 100; zoomFactor = 100 / stageZoom; stageWidth = stageLayout._x; stageHeight = stageLayout._y; _global.currentScriptLayer.mainMap._xscale = stageZoom; _global.currentScriptLayer.mainMap._yscale = stageZoom; mapDefault_x = _global.currentScriptLayer.mainMap._x; mapDefault_y = _global.currentScriptLayer.mainMap._y; if (playerMain._xscale > 0) { playerDir = 'right'; } if (playerMain._xscale < 0) { playerDir = 'left'; } interuptSwitch = false; if (_root.gameVariables[1][0][0] == true) { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = 4; cellShade.blurY = 4; } objectData = []; _global.mainMapLayer.itemFocus = false; _global.mainMapLayer.currentItemID = ''; itemTouch = false; jmpSpd = 0.5; runSpd = 0.2; } frame 3 { playerClips = [['playerMain', true, 10, [false, 15], [true, 2]]]; playerClips.reverse(); _global.assignPlayerID = true; _global.IDPlayer = 0; _global.maxIDP = playerClips.length - 1; if (_root.area0Switches[0] == false) { _root.objectClips_0 = [['ob_0', true, 10, [true, 0], [true, 15], ['Treasure', 'item', 0], [true, true]], ['ob_1', true, 10, [true, 0], [true, 2], ['Treasure', 'item', 1], [true, false]], ['ob_2', true, 0, [true, 0], [true, 2], ['Event', 'event0_Right', false], [true, true]], ['ob_3', true, 0, [true, 0], [true, 2], ['Event', 'event0_Fall', false], [true, true]], ['ob_4', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 0], [true, true], [false, 'dialog1B']], ['ob_5', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 1], [true, true], [false, 'dialog1B']], ['ob_6', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 2], [true, true], [false, 'dialog1B']], ['ob_7', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 3], [true, true], [false, 'dialog1B']], ['ob_8', true, 10, [true, 0], [true, 2], ['Search', 'dialog1', 2], [true, true]]]; _root.area0Switches[0] = true; } } frame 5 { MovieClip.prototype.gravityCheck = function (o, w, h, d) { for (i in this.perim) { p = {'x': this.perim[i]._x, 'y': this.perim[i]._y}; this.perim.localToGlobal(p); if (o.hitTest(p.x, p.y, true)) { this.dy = 0; this.dx = 0; this._y -= 1; if (this.idType == 'object') { _root.objectClips_0[this.idTag][1] = false; } if (this.idType == 'player') { playerClips[this.idTag][1] = false; inTheAir = false; playerClips[0][2] = 12; if (jumpOn == true) { if (movementBuffer[0] == 'jumpUp') { if (jumpThenRun == true) { playerMain.playerMC.gotoAndPlay('running'); constantCheck = true; moveSwitch = true; } else { playerMain.playerMC.gotoAndPlay('jumpLand'); runSpd = 0; x_speed = 0; constantCheck = false; moveSwitch = false; } Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(inAirControls); if (interuptSwitch == false) { Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } else { playerMain.playerMC.gotoAndPlay('jumpLand'); constantCheck = false; } movementBuffer.shift(); } jumpOn = false; } } if (fallingOn == true) { if (jumpThenRun == true) { playerMain.playerMC.gotoAndPlay('running'); constantCheck = true; moveSwitch = true; } else { playerMain.playerMC.gotoAndPlay('jumpLand'); runSpd = 0; x_speed = 0; constantCheck = false; moveSwitch = false; } Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(inAirControls); if (interuptSwitch == false) { Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); constantCheck = true; fallingOn = false; } else { playerMain.playerMC.gotoAndPlay('jumpLand'); constantCheck = false; } } } } }; MovieClip.prototype.wallCheck = function (o, w, h, d) { for (i in this.perim) { p = {'x': this.perim[i]._x, 'y': this.perim[i]._y}; this.perim.localToGlobal(p); if (o.hitTest(p.x, p.y, true)) { if (this.idType == 'object') { _root.objectClips_0[this.idTag][1] = false; } if (this.idType == 'player') { playerClips[this.idTag][1] = false; if (playerDir == 'right') { this._x -= 20; if (fallingOn == false and jumpOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } Key.removeListener(moveLeft); Key.removeListener(cancelRight); Key.removeListener(inAirControls); Key.addListener(moveLeft); runSpd = 0; x_speed = 0; animationSwitch = false; moveSwitch = false; } if (playerDir == 'left') { this._x += 20; if (fallingOn == false and jumpOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } Key.removeListener(moveRight); Key.removeListener(cancelLeft); Key.removeListener(inAirControls); Key.addListener(moveRight); runSpd = 0; x_speed = 0; animationSwitch = false; moveSwitch = false; } } } ys += p.y; xs += p.x; ++c; } }; var c = 0; var xs = 0; var ys = 0; var diff = 0; var hitFloorX = 0; var hitWallY = 0; MovieClip.prototype.ceilingCheck = function (o, w, h, d) { for (i in this.headPerim) { p = {'x': this.headPerim[i]._x, 'y': this.headPerim[i]._y}; this.headPerim.localToGlobal(p); if (o.hitTest(p.x, p.y, true)) { if (this.idType == 'object') { _root.objectClips_0[this.idTag][1] = false; } if (this.idType == 'player') { playerClips[this.idTag][1] = false; this._y += 15; this.dy = 200; } } ys += p.y; xs += p.x; ++c; } }; MovieClip.prototype.objectCheck = function (o, oNum) { for (i in this.perim) { if (_global.mainMapLayer.playerMain.hitTest(o)) { if (this.idType == 'player') { action = _root.objectClips_0[(eval(o)).idTag][5][0]; if (action == 'Fight' and _root.objectClips_0[(eval(o)).idTag][6][0] == true and fightNow == false) { _global.mainMapLayer.fightNow = true; _global.mainMapLayer.battleTransferData = []; _global.mainMapLayer.battleTransferData = [[(eval(o)).idTag, o]]; _global.challengeNum = _root.objectClips_0[(eval(o)).idTag][5][2]; fightFunction(_global.challengeNum); } if (action == 'Treasure' and _root.objectClips_0[(eval(o)).idTag][6][0] == true) { itemTouch = true; if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.itemFocus = false; } if (jumpOn == false and fallingOn == false and _global.mainMapLayer.itemFocus == false) { _global.currentStage.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, _root.objectClips_0[(eval(o)).idTag][5][1], _root.objectClips_0[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mainMapLayer.itemFocus = true; } } if (action == 'Search' and _root.objectClips_0[(eval(o)).idTag][6][0] == true) { itemTouch = true; if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.itemFocus = false; } if (jumpOn == false and fallingOn == false and _global.mainMapLayer.itemFocus == false) { _global.currentStage.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, _root.objectClips_0[(eval(o)).idTag][5][1], _root.objectClips_0[(eval(o)).idTag][5][2], o]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mainMapLayer.itemFocus = true; } } if (action == 'Event' and _root.objectClips_0[(eval(o)).idTag][6][0] == true and interuptSwitch == false) { this.stop(); disableAllControls(); _global.currentStage.attachMovie(_root.objectClips_0[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (playerDir == 'right') { this._x -= 25; } if (playerDir == 'left') { this._x += 25; } if (_root.objectClips_0[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } if (action == 'Cutscene' and _root.objectClips_0[(eval(o)).idTag][6][0] == true) { this.stop(); disableAllControls(); _root.objectClips_0[(eval(o)).idTag][6][0] = false; _global.mainMapLayer.battleTransferData = [[(eval(o)).idTag, o]]; _root.movePlayerData = [[_root.objectClips_0[(eval(o)).idTag][5][1], '']]; _global.currentStage.attachMovie('cutscenePlayer', 'cutscenePlayer', 2000, {'_x': 0, '_y': 0}); } } } ys += p.y; xs += p.x; ++c; } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { if (objectData[0] == 'Treasure') { Key.removeListener(searchKey); removeMovieClip(_global.currentStage.newEvent); loadMovie('', objectData[3]); this.stop(); disableAllControls(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; } _global.currentStage.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = 'AQUIRED'; _global.annoucementStringLarge = (eval('_root.item_' + objectData[2]))[0]; _root.objectClips_0[objectData[4]][6][1] = false; objectData = []; } if (objectData[0] == 'Search') { Key.removeListener(searchKey); removeMovieClip(_global.currentStage.newEvent); this.stop(); _global.currentStage.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; if (fightNow == false) { varX = 0; while (varX <= playerClips.length - 1) { (eval(playerClips[varX][0])).groundMC = ground; (eval(playerClips[varX][0])).wallMC = walls; (eval(playerClips[varX][0])).ceilingMC = ceiling; ++varX; } i = 0; while (i <= playerClips.length - 1) { thisClip = this[playerClips[i][0]]; thisClip.filters = [cellShade]; thisClip.onEnterFrame = function () { if (_global.assignPlayerID == true) { this.idTag = _global.IDPlayer; this.idType = 'player'; this.dy = 0; ++_global.IDPlayer; } if (_global.IDPlayer > _global.maxIDP) { _global.assignPlayerID = false; } if (_global.mainMapLayer.fightNow == false) { varZ = 0; while (varZ <= _root.objectClips_0.length - 1) { if (_root.objectClips_0[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(_root.objectClips_0[varZ][0])).startWidth - (eval(_root.objectClips_0[varZ][0]))._width); distanceFrom = (eval(_root.objectClips_0[varZ][0]))._x - widthDifference - (_global.mainMapLayer.playerMain._x + (_global.mainMapLayer.playerMain._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(_root.objectClips_0[varZ][0]))._width + (_global.mainMapLayer.playerMain._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { this.objectCheck(eval(_root.objectClips_0[varZ][0]), varZ); } } ++varZ; } } if (playerClips[this.idTag][1] == true) { this.gravityCheck(this.groundMC); this.wallCheck(this.wallMC); this.ceilingCheck(this.ceilingMC); this.ox = this.x; this.oy = this.y; this.x = this._x; this.y = this._y; if (this.pr) { this.dx = (this.x - this.ox) * 7; this.dy = (this.y - this.oy) * 7; } else { this.dy += playerClips[this.idTag][2]; if (this.dy >= 80 and jumpOn == false and fallingOn == false) { playerMain.playerMC.gotoAndPlay('falling'); fallingOn = true; this.oldY = this.dy; this.dy /= 4; this.newY = this.dy; } this.oldY = this.dy; this.x += this.dx / 10; this.y += this.dy / 10; this._x = this.x; this._y = this.y; this.newY = this.dy; } this._rotation += this.r; this.r *= 0.95; } }; ++i; } } counter = 0; varX = 0; while (varX <= _root.objectClips_0.length - 1) { (eval(_root.objectClips_0[varX][0])).groundMC = ground; ++varX; } i = 0; while (i <= _root.objectClips_0.length - 1) { thisClip = this[_root.objectClips_0[i][0]]; thisClip.dy = 0; thisClip.idType = 'object'; thisClip.idTag = counter; thisClip.filters = [cellShade]; thisClip.startWidth = this[_root.objectClips_0[i][0]]._width; _root.objectClips_0[counter][1] = true; if (_root.objectClips_0[i][6][1] == false) { loadMovie('', thisClip); } thisClip.onEnterFrame = function () { if (_root.objectClips_0[this.idTag][1] == true) { this.gravityCheck(this.groundMC, gcStageWidth, gcStageHeight, gcDamping); this.ox = this.x; this.oy = this.y; this.x = this._x; this.y = this._y; this.dy += _root.objectClips_0[this.idTag][2]; this.x += this.dx / 10; this.y += this.dy / 10; this._x = this.x; this._y = this.y; this._rotation += this.r; this.r *= 0.95; } if (_root.objectClips_0[this.idTag][3][0] == true) { _root.objectClips_0[this.idTag][3][0] = false; this.r = _root.objectClips_0[this.idTag][3][1]; } }; ++counter; ++i; } delete counter; } frame 7 { function onEnterFrame() { if (fightNow == false) { if (constantCheck == true) { inTheAir = true; } if (inTheAir == true) { playerClips[0][1] = true; } if (moveSwitch == true) { if (constantCheck == true) { inTheAir = true; } if (animationSwitch == false and jumpOn == false) { animationSwitch = true; } oldX = playerMain._x; playerMain._x += runSpd; newX = playerMain._x; if (oldX >= newX) { playerDir = 'left'; } if (oldX < newX) { playerDir = 'right'; } if (x_speed == runSpd) { momentumDir = moveDir; } if (x_speed >= 7) { jumpThenRun = true; } if (x_speed <= -7) { jumpThenRun = true; } if (x_speed > 0) { if (runSpd < x_speed) { runSpd += 1.1; } if (runSpd >= x_speed) { runSpd = x_speed; } } if (x_speed < 0) { if (runSpd > x_speed) { runSpd -= 1.1; } if (runSpd <= x_speed) { runSpd = x_speed; } } } else { oldX = playerMain._x; playerMain._x += x_speed; newX = playerMain._x; if (oldX >= newX) { playerDir = 'left'; } if (oldX < newX) { playerDir = 'right'; } x_speed *= 0.45; jumpThenRun = false; } if (playerDir == 'right') { distanceToEdge = stageWidth - playerMain._x; if (playerMain._x > 400 * zoomFactor) { scrollOn = true; } else { scrollOn = false; } } if (playerDir == 'left') { distanceToEdge = playerMain._x; if (_global.currentScriptLayer.mainMap._x * zoomFactor + playerMain._x <= 400 * zoomFactor) { scrollOn = true; } else { scrollOn = false; } } if (scrollOn == true) { if (playerDir == 'right') { if (-_global.currentScriptLayer.mainMap._x * zoomFactor + (800 * zoomFactor + runSpd) <= stageWidth) { _global.currentScriptLayer.mainMap._x -= runSpd / zoomFactor; _global.currentScriptLayer.background1._x -= runSpd / zoomFactor / 3; _global.currentScriptLayer.background0._x -= runSpd / zoomFactor / 8; } } if (playerDir == 'left') { if (_global.currentScriptLayer.mainMap._x * zoomFactor <= mapDefault_x + runSpd) { _global.currentScriptLayer.mainMap._x -= runSpd / zoomFactor; _global.currentScriptLayer.background1._x -= runSpd / zoomFactor / 3; _global.currentScriptLayer.background0._x -= runSpd / zoomFactor / 8; } } } if (playerMain._x <= 45) { playerMain._x = 50; if (fallingOn == false and jumpOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } Key.removeListener(moveRight); Key.removeListener(cancelLeft); Key.addListener(moveRight); runSpd = 0; animationSwitch = false; moveSwitch = false; } if (itemTouch == false) { _global.mainMapLayer.itemFocus = false; _global.mainMapLayer.currentItemID = ''; removeMovieClip(_global.currentStage.newEvent); Key.removeListener(searchKey); } itemTouch = false; } } openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8') { disableAllControls(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 0, {'_x': 0, '_y': 0}); Key.removeListener(openMenu); } }; Key.addListener(openMenu); moveRight = new Object(); moveRight.onKeyDown = function () { if (Key.getCode() == '39' and movementBuffer.length <= 0) { playerMain.playerMC.gotoAndPlay('runStart'); Key.removeListener(moveRight); Key.removeListener(cancelLeft); Key.addListener(cancelRight); movementBuffer[movementBuffer.length] = 'Right'; constantCheck = true; } }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (Key.getCode() == '37' and movementBuffer.length <= 0) { playerMain.playerMC.gotoAndPlay('runStart'); Key.removeListener(moveLeft); Key.removeListener(cancelRight); Key.addListener(cancelLeft); movementBuffer[movementBuffer.length] = 'Left'; constantCheck = true; } }; cancelRight = new Object(); cancelRight.onKeyUp = function () { if (Key.getCode() == '39') { Key.removeListener(moveRight); Key.addListener(moveRight); Key.addListener(moveLeft); runSpd = 0; if (jumpOn == false and fallingOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } animationSwitch = false; moveSwitch = false; } }; cancelLeft = new Object(); cancelLeft.onKeyUp = function () { if (Key.getCode() == '37') { Key.removeListener(moveLeft); Key.addListener(moveRight); Key.addListener(moveLeft); runSpd = 0; if (jumpOn == false and fallingOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } animationSwitch = false; moveSwitch = false; } }; inAirControls = new Object(); inAirControls.onKeyDown = function () { if (Key.getCode() == '39') { moveDir = 'right'; moveSwitch = true; x_speed = 3; } if (Key.getCode() == '37') { moveDir = 'left'; moveSwitch = true; x_speed = -3; } }; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and jumpOk == true) { Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(inAirControls); Key.addListener(inAirControls); playerMain.playerMC.gotoAndPlay('jumpUpward'); constantCheck = false; movementBuffer[0] = 'jumpUp'; } }; gotoAndPlay('loop'); } frame 9 { if (movementBuffer.length > 0) { if (movementBuffer[0] == 'jumpUp') { playerMain._y -= 20; inTheAir = true; jumpOn = true; } if (movementBuffer[0] == 'Right') { x_speed = 7; moveSwitch = true; playerMain._xscale = 100; movementBuffer.shift(); } if (movementBuffer[0] == 'Left') { x_speed = -7; moveSwitch = true; playerMain._xscale = -100; movementBuffer.shift(); } } if (_global.mainMapLayer.battleTransferData[1][0] == 'victory') { if (_root.objectClips_0[_global.mainMapLayer.battleTransferData[0][0]][7][0] == false) { _root.objectClips_0[_global.mainMapLayer.battleTransferData[0][0]][6][1] = false; _global.mainMapLayer.disableAllControls(); _global.mainMapLayer.enableAllControls(); loadMovie('', _global.mainMapLayer.battleTransferData[0][1]); fightNow = false; } else { _global.currentStage.attachMovie(_root.objectClips_0[_global.mainMapLayer.battleTransferData[0][0]][7][0], 'event_Dialog', 100, {'_x': 150, '_y': 185}); loadMovie('', _global.mainMapLayer.battleTransferData[0][1]); fightNow = false; } _global.mainMapLayer.battleTransferData = []; } if (_global.mainMapLayer.battleTransferData[1][0] == 'defeat') { _global.mainMapLayer.battleTransferData = []; } play(); } frame 10 { gotoAndStop('loop'); } } movieClip 1562 { } movieClip 1566 { } movieClip 1567 map_findTreasure { frame 13 { stop(); } } movieClip 1570 { } movieClip 1571 map_searchMessage { frame 13 { stop(); } } movieClip 1576 { frame 1 { titleBox.text = _global.annoucementStringSmall; textBox.text = _global.annoucementStringLarge; delete _global.annoucementStringSmall; delete _global.annoucementStringLarge; stop(); } } movieClip 1577 map_announcement { frame 84 { removeMovieClip(_global.currentStage.tempClip); _global.mainMapLayer.enableAllControls(); stop(); } } movieClip 1578 map_objective { frame 216 { removeMovieClip(_global.currentStage.tempClip); stop(); } } movieClip 1581 { } movieClip 1584 stage0_MainMC { frame 1 { _global.currentScriptLayer = this; _global.currentStage = this; _global.mainMapLayer.disableAllControls(); _root.battleInformationData(0); } frame 2 { if (_root.mapTransferData[1][0] == 0) { _global.mainMapLayer.playerMain._x = 282.3; _global.mainMapLayer.playerMain._y = 575.5; mainMap._x = -70; mainMap._y = -163.4; } if (_root.mapTransferData[1][0] == 1) { _global.mainMapLayer.playerMain._x = 2270; _global.mainMapLayer.playerMain._y = 575.5; _global.mainMapLayer.playerMain._xscale = 100; _global.currentStage.background0._x = 1564; mainMap._x = -1880.2; mainMap._y = -163.4; } if (_root.mapTransferData[1][0] == 2) { _global.mainMapLayer.playerMain._x = 3648.7; _global.mainMapLayer.playerMain._y = 575.5; _global.mainMapLayer.playerMain._xscale = -100; mainMap._x = -2918.6; mainMap._y = -163.4; background0._x = 1437.5; } gotoAndPlay(_root.mapTransferData[1][1]); } frame 5 { _global.splashText = 'Megaman X:'; _global.splashText2 = 'Before the End'; } frame 12 { _global.mainMapLayer.disableAllControls(); _global.mainMapLayer.enableAllControls(); stop(); } frame 13 { delete _global.splashText; delete _global.splashText2; delete _global.currentIntroLayer; } frame 25 { } frame 33 { stop(); } frame 70 { _global.loadNewAreaLevel.gotoAndPlay('loadNewArea'); stop(); } frame 95 { _global.mainMapLayer.disableAllControls(); _global.mainMapLayer.enableAllControls(); gotoAndPlay('gamePlay'); } } movieClip 1589 { } movieClip 1591 { } movieClip 1593 { } movieClip 1595 { } movieClip 1596 { } movieClip 1597 { } movieClip 1598 { } movieClip 1599 { frame 1 { function fightFunction(fightID) { disableAllControls(); _global.currentStage.mainMap._visible = false; _global.challengeNum = fightID; _global.battleNumber = _root.challengeList[_global.challengeNum][0]; _global.partyNumber = _root.challengeList[_global.challengeNum][1]; _global.currentBackground = _root.challengeList[_global.challengeNum][2]; _global.currentSong = _root.challengeList[_global.challengeNum][3]; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } function disableAllControls() { if (runSpd > 0 or runSpd < 0) { playerMain.playerMC.gotoAndPlay('runStop'); } movementBuffer = []; runSpd = 0; x_speed = 0; constantCheck = false; interuptSwitch = true; jumpThenRun = false; Key.removeListener(jumpControls); Key.removeListener(inAirControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(cancelRight); Key.removeListener(cancelLeft); Key.removeListener(openMenu); } function enableAllControls() { Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); Key.addListener(jumpControls); Key.addListener(openMenu); interuptSwitch = false; } _global.mainMapLayer = this; scrollScreen = false; xEdge = false; fallingOn = false; inTheAir = true; constantCheck = true; moveSwitch = false; animationSwitch = false; fightNow = false; jumpOk = true; jumpOn = false; x_speed = 0; stageZoom = 120; zoomFactor = 100 / stageZoom; stageWidth = stageLayout._x; stageHeight = stageLayout._y; _global.currentScriptLayer.mainMap._xscale = stageZoom; _global.currentScriptLayer.mainMap._yscale = stageZoom; mapDefault_x = _global.currentScriptLayer.mainMap._x; mapDefault_y = _global.currentScriptLayer.mainMap._y; if (playerMain._xscale > 0) { playerDir = 'right'; } if (playerMain._xscale < 0) { playerDir = 'left'; } interuptSwitch = false; if (_root.gameVariables[1][0][0] == true) { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = 4; cellShade.blurY = 4; } objectData = []; _global.mainMapLayer.itemFocus = false; _global.mainMapLayer.currentItemID = ''; itemTouch = false; jmpSpd = 0.5; runSpd = 0.2; } frame 3 { playerClips = [['playerMain', true, 10, [false, 15], [true, 2]]]; playerClips.reverse(); _global.assignPlayerID = true; _global.IDPlayer = 0; _global.maxIDP = playerClips.length - 1; if (_root.area0Switches[1] == false) { _root.objectClips_1 = [['ob_0', true, 10, [true, 0], [true, 15], ['Treasure', 'item', 0], [true, true]], ['ob_1', true, 0, [true, 0], [true, 2], ['Event', 'event1_back', false], [true, true]], ['ob_2', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 3], [true, true], [false, 'dialog1B']], ['ob_3', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 4], [true, true], [false, 'dialog1B']], ['ob_4', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 5], [true, true], [false, 'dialog1B']], ['ob_5', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 6], [true, true], [false, 'dialog1B']], ['ob_6', true, 0, [true, 0], [true, 2], ['Fight', 'dialog1B', 7], [true, true], [false, 'dialog1B']], ['ob_7', true, 0, [true, 0], [true, 2], ['Event', 'dialog2', true], [true, true]]]; _root.area0Switches[1] = true; } } frame 5 { MovieClip.prototype.gravityCheck = function (o, w, h, d) { for (i in this.perim) { p = {'x': this.perim[i]._x, 'y': this.perim[i]._y}; this.perim.localToGlobal(p); if (o.hitTest(p.x, p.y, true)) { this.dy = 0; this.dx = 0; this._y -= 1; if (this.idType == 'object') { _root.objectClips_1[this.idTag][1] = false; } if (this.idType == 'player') { playerClips[this.idTag][1] = false; inTheAir = false; playerClips[0][2] = 12; if (jumpOn == true) { if (movementBuffer[0] == 'jumpUp') { if (jumpThenRun == true) { playerMain.playerMC.gotoAndPlay('running'); constantCheck = true; moveSwitch = true; } else { playerMain.playerMC.gotoAndPlay('jumpLand'); runSpd = 0; x_speed = 0; constantCheck = false; moveSwitch = false; } Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(inAirControls); if (interuptSwitch == false) { Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } else { playerMain.playerMC.gotoAndPlay('jumpLand'); constantCheck = false; } movementBuffer.shift(); } jumpOn = false; } } if (fallingOn == true) { if (jumpThenRun == true) { playerMain.playerMC.gotoAndPlay('running'); constantCheck = true; moveSwitch = true; } else { playerMain.playerMC.gotoAndPlay('jumpLand'); runSpd = 0; x_speed = 0; constantCheck = false; moveSwitch = false; } Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(inAirControls); if (interuptSwitch == false) { Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); constantCheck = true; fallingOn = false; } else { playerMain.playerMC.gotoAndPlay('jumpLand'); constantCheck = false; } } } } }; MovieClip.prototype.wallCheck = function (o, w, h, d) { for (i in this.perim) { p = {'x': this.perim[i]._x, 'y': this.perim[i]._y}; this.perim.localToGlobal(p); if (o.hitTest(p.x, p.y, true)) { if (this.idType == 'object') { _root.objectClips_1[this.idTag][1] = false; } if (this.idType == 'player') { playerClips[this.idTag][1] = false; if (playerDir == 'right') { this._x -= 20; if (fallingOn == false and jumpOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } Key.removeListener(moveLeft); Key.removeListener(cancelRight); Key.removeListener(inAirControls); Key.addListener(moveLeft); runSpd = 0; x_speed = 0; animationSwitch = false; moveSwitch = false; } if (playerDir == 'left') { this._x += 20; if (fallingOn == false and jumpOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } Key.removeListener(moveRight); Key.removeListener(cancelLeft); Key.removeListener(inAirControls); Key.addListener(moveRight); runSpd = 0; x_speed = 0; animationSwitch = false; moveSwitch = false; } } } ys += p.y; xs += p.x; ++c; } }; var c = 0; var xs = 0; var ys = 0; var diff = 0; var hitFloorX = 0; var hitWallY = 0; MovieClip.prototype.ceilingCheck = function (o, w, h, d) { for (i in this.headPerim) { p = {'x': this.headPerim[i]._x, 'y': this.headPerim[i]._y}; this.headPerim.localToGlobal(p); if (o.hitTest(p.x, p.y, true)) { if (this.idType == 'object') { _root.objectClips_1[this.idTag][1] = false; } if (this.idType == 'player') { playerClips[this.idTag][1] = false; this._y += 15; this.dy = 200; } } ys += p.y; xs += p.x; ++c; } }; MovieClip.prototype.objectCheck = function (o, oNum) { for (i in this.perim) { if (_global.mainMapLayer.playerMain.hitTest(o)) { if (this.idType == 'player') { action = _root.objectClips_1[(eval(o)).idTag][5][0]; if (action == 'Fight' and _root.objectClips_1[(eval(o)).idTag][6][0] == true and fightNow == false) { _global.mainMapLayer.fightNow = true; _global.mainMapLayer.battleTransferData = []; _global.mainMapLayer.battleTransferData = [[(eval(o)).idTag, o]]; _global.challengeNum = _root.objectClips_1[(eval(o)).idTag][5][2]; fightFunction(_global.challengeNum); } if (action == 'Treasure' and _root.objectClips_1[(eval(o)).idTag][6][0] == true) { itemTouch = true; if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.itemFocus = false; } if (jumpOn == false and fallingOn == false and _global.mainMapLayer.itemFocus == false) { _global.currentStage.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, _root.objectClips_1[(eval(o)).idTag][5][1], _root.objectClips_1[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mainMapLayer.itemFocus = true; } } if (action == 'Search' and _root.objectClips_1[(eval(o)).idTag][6][0] == true) { itemTouch = true; if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.itemFocus = false; } if (jumpOn == false and fallingOn == false and _global.mainMapLayer.itemFocus == false) { _global.currentStage.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, _root.objectClips_1[(eval(o)).idTag][5][1], _root.objectClips_1[(eval(o)).idTag][5][2], o]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mainMapLayer.itemFocus = true; } } if (action == 'Event' and _root.objectClips_1[(eval(o)).idTag][6][0] == true and interuptSwitch == false) { this.stop(); disableAllControls(); _global.currentStage.attachMovie(_root.objectClips_1[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (playerDir == 'right') { this._x -= 25; } if (playerDir == 'left') { this._x += 25; } if (_root.objectClips_1[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } if (action == 'Cutscene' and _root.objectClips_1[(eval(o)).idTag][6][0] == true) { this.stop(); disableAllControls(); _root.objectClips_1[(eval(o)).idTag][6][0] = false; _global.mainMapLayer.battleTransferData = [[(eval(o)).idTag, o]]; _root.movePlayerData = [[_root.objectClips_1[(eval(o)).idTag][5][1], '']]; _global.currentStage.attachMovie('cutscenePlayer', 'cutscenePlayer', 2000, {'_x': 0, '_y': 0}); } } } ys += p.y; xs += p.x; ++c; } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { if (objectData[0] == 'Treasure') { Key.removeListener(searchKey); removeMovieClip(_global.currentStage.newEvent); loadMovie('', objectData[3]); this.stop(); disableAllControls(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; } _global.currentStage.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = 'AQUIRED'; _global.annoucementStringLarge = (eval('_root.item_' + objectData[2]))[0]; _root.objectClips_1[objectData[4]][6][1] = false; objectData = []; } if (objectData[0] == 'Search') { Key.removeListener(searchKey); removeMovieClip(_global.currentStage.newEvent); this.stop(); _global.currentStage.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; if (fightNow == false) { varX = 0; while (varX <= playerClips.length - 1) { (eval(playerClips[varX][0])).groundMC = ground; (eval(playerClips[varX][0])).wallMC = walls; (eval(playerClips[varX][0])).ceilingMC = ceiling; ++varX; } i = 0; while (i <= playerClips.length - 1) { thisClip = this[playerClips[i][0]]; thisClip.filters = [cellShade]; thisClip.onEnterFrame = function () { if (_global.assignPlayerID == true) { this.idTag = _global.IDPlayer; this.idType = 'player'; this.dy = 0; ++_global.IDPlayer; } if (_global.IDPlayer > _global.maxIDP) { _global.assignPlayerID = false; } if (_global.mainMapLayer.fightNow == false) { varZ = 0; while (varZ <= _root.objectClips_1.length - 1) { if (_root.objectClips_1[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(_root.objectClips_1[varZ][0])).startWidth - (eval(_root.objectClips_1[varZ][0]))._width); distanceFrom = (eval(_root.objectClips_1[varZ][0]))._x - widthDifference - (_global.mainMapLayer.playerMain._x + (_global.mainMapLayer.playerMain._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(_root.objectClips_1[varZ][0]))._width + (_global.mainMapLayer.playerMain._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { this.objectCheck(eval(_root.objectClips_1[varZ][0]), varZ); } } ++varZ; } } if (playerClips[this.idTag][1] == true) { this.gravityCheck(this.groundMC); this.wallCheck(this.wallMC); this.ceilingCheck(this.ceilingMC); this.ox = this.x; this.oy = this.y; this.x = this._x; this.y = this._y; if (this.pr) { this.dx = (this.x - this.ox) * 7; this.dy = (this.y - this.oy) * 7; } else { this.dy += playerClips[this.idTag][2]; if (this.dy >= 80 and jumpOn == false and fallingOn == false) { playerMain.playerMC.gotoAndPlay('falling'); fallingOn = true; this.oldY = this.dy; this.dy /= 4; this.newY = this.dy; } this.oldY = this.dy; this.x += this.dx / 10; this.y += this.dy / 10; this._x = this.x; this._y = this.y; this.newY = this.dy; } this._rotation += this.r; this.r *= 0.95; } }; ++i; } } counter = 0; varX = 0; while (varX <= _root.objectClips_1.length - 1) { (eval(_root.objectClips_1[varX][0])).groundMC = ground; ++varX; } i = 0; while (i <= _root.objectClips_1.length - 1) { thisClip = this[_root.objectClips_1[i][0]]; thisClip.dy = 0; thisClip.idType = 'object'; thisClip.idTag = counter; thisClip.filters = [cellShade]; thisClip.startWidth = this[_root.objectClips_1[i][0]]._width; _root.objectClips_1[counter][1] = true; if (_root.objectClips_1[i][6][1] == false) { loadMovie('', thisClip); } thisClip.onEnterFrame = function () { if (_root.objectClips_1[this.idTag][1] == true) { this.gravityCheck(this.groundMC, gcStageWidth, gcStageHeight, gcDamping); this.ox = this.x; this.oy = this.y; this.x = this._x; this.y = this._y; this.dy += _root.objectClips_1[this.idTag][2]; this.x += this.dx / 10; this.y += this.dy / 10; this._x = this.x; this._y = this.y; this._rotation += this.r; this.r *= 0.95; } if (_root.objectClips_1[this.idTag][3][0] == true) { _root.objectClips_1[this.idTag][3][0] = false; this.r = _root.objectClips_1[this.idTag][3][1]; } }; ++counter; ++i; } delete counter; } frame 7 { function onEnterFrame() { if (fightNow == false) { if (inTheAir == true) { playerClips[0][1] = true; } if (moveSwitch == true) { if (constantCheck == true) { inTheAir = true; } if (animationSwitch == false and jumpOn == false) { animationSwitch = true; } oldX = playerMain._x; playerMain._x += runSpd; newX = playerMain._x; if (oldX >= newX) { playerDir = 'left'; } if (oldX < newX) { playerDir = 'right'; } if (x_speed == runSpd) { momentumDir = moveDir; } if (x_speed >= 7) { jumpThenRun = true; } if (x_speed <= -7) { jumpThenRun = true; } if (x_speed > 0) { if (runSpd < x_speed) { runSpd += 1.1; } if (runSpd >= x_speed) { runSpd = x_speed; } } if (x_speed < 0) { if (runSpd > x_speed) { runSpd -= 1.1; } if (runSpd <= x_speed) { runSpd = x_speed; } } } else { oldX = playerMain._x; playerMain._x += x_speed; newX = playerMain._x; if (oldX >= newX) { playerDir = 'left'; } if (oldX < newX) { playerDir = 'right'; } x_speed *= 0.45; jumpThenRun = false; } if (playerDir == 'right') { distanceToEdge = stageWidth - playerMain._x; if (playerMain._x > 400 * zoomFactor) { scrollOn = true; } else { scrollOn = false; } } if (playerDir == 'left') { distanceToEdge = playerMain._x; if (_global.currentScriptLayer.mainMap._x * zoomFactor + playerMain._x <= 400 * zoomFactor) { scrollOn = true; } else { scrollOn = false; } } if (scrollOn == true) { if (playerDir == 'right') { if (-_global.currentScriptLayer.mainMap._x * zoomFactor + (800 * zoomFactor + runSpd) <= stageWidth) { _global.currentScriptLayer.mainMap._x -= runSpd / zoomFactor; _global.currentScriptLayer.background1._x -= runSpd / zoomFactor / 3; _global.currentScriptLayer.background0._x -= runSpd / zoomFactor / 8; } } if (playerDir == 'left') { if (_global.currentScriptLayer.mainMap._x * zoomFactor <= mapDefault_x + runSpd) { _global.currentScriptLayer.mainMap._x -= runSpd / zoomFactor; _global.currentScriptLayer.background1._x -= runSpd / zoomFactor / 3; _global.currentScriptLayer.background0._x -= runSpd / zoomFactor / 8; } } } if (playerMain._x <= 45) { playerMain._x = 50; if (fallingOn == false and jumpOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } Key.removeListener(moveRight); Key.removeListener(cancelLeft); Key.addListener(moveRight); runSpd = 0; animationSwitch = false; moveSwitch = false; } if (itemTouch == false) { _global.mainMapLayer.itemFocus = false; _global.mainMapLayer.currentItemID = ''; removeMovieClip(_global.currentStage.newEvent); Key.removeListener(searchKey); } itemTouch = false; } } openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8') { disableAllControls(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 0, {'_x': 0, '_y': 0}); Key.removeListener(openMenu); } }; Key.addListener(openMenu); moveRight = new Object(); moveRight.onKeyDown = function () { if (Key.getCode() == '39' and movementBuffer.length <= 0) { playerMain.playerMC.gotoAndPlay('runStart'); Key.removeListener(moveRight); Key.removeListener(cancelLeft); Key.addListener(cancelRight); movementBuffer[movementBuffer.length] = 'Right'; constantCheck = true; } }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (Key.getCode() == '37' and movementBuffer.length <= 0) { playerMain.playerMC.gotoAndPlay('runStart'); Key.removeListener(moveLeft); Key.removeListener(cancelRight); Key.addListener(cancelLeft); movementBuffer[movementBuffer.length] = 'Left'; constantCheck = true; } }; cancelRight = new Object(); cancelRight.onKeyUp = function () { if (Key.getCode() == '39') { Key.removeListener(moveRight); Key.addListener(moveRight); Key.addListener(moveLeft); runSpd = 0; if (jumpOn == false and fallingOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } animationSwitch = false; moveSwitch = false; } }; cancelLeft = new Object(); cancelLeft.onKeyUp = function () { if (Key.getCode() == '37') { Key.removeListener(moveLeft); Key.addListener(moveRight); Key.addListener(moveLeft); runSpd = 0; if (jumpOn == false and fallingOn == false) { playerMain.playerMC.gotoAndPlay('runStop'); } animationSwitch = false; moveSwitch = false; } }; inAirControls = new Object(); inAirControls.onKeyDown = function () { if (Key.getCode() == '39') { moveDir = 'right'; moveSwitch = true; x_speed = 3; } if (Key.getCode() == '37') { moveDir = 'left'; moveSwitch = true; x_speed = -3; } }; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and jumpOk == true) { Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); Key.removeListener(inAirControls); Key.addListener(inAirControls); playerMain.playerMC.gotoAndPlay('jumpUpward'); constantCheck = false; movementBuffer[0] = 'jumpUp'; } }; gotoAndPlay('loop'); } frame 9 { if (movementBuffer.length > 0) { if (movementBuffer[0] == 'jumpUp') { playerMain._y -= 20; inTheAir = true; jumpOn = true; } if (movementBuffer[0] == 'Right') { x_speed = 7; moveSwitch = true; playerMain._xscale = 100; movementBuffer.shift(); } if (movementBuffer[0] == 'Left') { x_speed = -7; moveSwitch = true; playerMain._xscale = -100; movementBuffer.shift(); } } if (_global.mainMapLayer.battleTransferData[1][0] == 'victory') { if (_root.objectClips_1[_global.mainMapLayer.battleTransferData[0][0]][7][0] == false) { _root.objectClips_1[_global.mainMapLayer.battleTransferData[0][0]][6][1] = false; _global.mainMapLayer.disableAllControls(); _global.mainMapLayer.enableAllControls(); loadMovie('', _global.mainMapLayer.battleTransferData[0][1]); fightNow = false; } else { _global.currentStage.attachMovie(_root.objectClips_1[_global.mainMapLayer.battleTransferData[0][0]][7][0], 'event_Dialog', 100, {'_x': 150, '_y': 185}); loadMovie('', _global.mainMapLayer.battleTransferData[0][1]); fightNow = false; } _global.mainMapLayer.battleTransferData = []; } if (_global.mainMapLayer.battleTransferData[1][0] == 'defeat') { _global.mainMapLayer.battleTransferData = []; } play(); } frame 10 { gotoAndStop('loop'); } } movieClip 1602 stage1_MainMC { frame 1 { _global.currentScriptLayer = this; _global.currentStage = this; _global.mainMapLayer.disableAllControls(); _root.battleInformationData(0); } frame 2 { if (_root.mapTransferData[1][0] == 0) { _global.mainMapLayer.playerMain._x = 200.8; _global.mainMapLayer.playerMain._y = 446.3; mainMap._x = -70; mainMap._y = -163.4; } gotoAndPlay(_root.mapTransferData[1][1]); } frame 13 { stop(); } frame 42 { _global.loadNewAreaLevel.gotoAndPlay('loadNewArea'); stop(); } frame 68 { _global.mainMapLayer.disableAllControls(); _global.mainMapLayer.enableAllControls(); gotoAndPlay('gamePlay'); } } movieClip 1603 event1_back { frame 6 { _root.mapTransferData = [['stage0_MainMC'], [2, 'fadeIn'], []]; _global.currentStage.gotoAndPlay('fadeOut'); } frame 7 { stop(); } } movieClip 1604 event1_Next { frame 6 { _root.mapTransferData = [['stage1_MainMC'], [0, 'fadeIn'], []]; _global.currentStage.gotoAndPlay('fadeOut'); } frame 7 { stop(); } } movieClip 1605 dialog2 { frame 1 { _global.currentDialogLayer = this; lineCount = 0; dialogData = [[[98, 0, 0], ['Congrats on making it all the way through the demo! ']], [[98, 0, 0], ['I hope you enjoyed it.']], [[0, 0, 0], ['Nice job indeed.']], [[98, 0, 0], ['If you proceed all the way to the left, all the rooms will reset.']], [[98, 0, 0], ['You can try it again if you\'d like. And again, thank you very much for playing. Keep an eye out for the complete version soon!']]]; _global.mainMapLayer.disableAllControls(); gotoAndPlay('drawBox'); } frame 7 { _global.speechBoxCurrentText = dialogData[lineCount][1][0]; attachMovie('speechBox', 'speechBox', 0, {'_x': 0, '_y': 0}); } frame 14 { stop(); } frame 29 { ++lineCount; if (lineCount > dialogData.length - 1) { _global.annoucementStringSmall = 'OBJECTIVE MET'; _global.annoucementStringLarge = 'Difficulty increased.'; _global.currentStage.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.mainMapLayer.enableAllControls(); removeMovieClip(_global.currentStage.event_Dialog); _root.area0Switches[1] = false; _root.area0Switches[0] = false; ++_global.beatGame; } else { gotoAndPlay('drawBox'); } } } movieClip 1606 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 1607 chrAniS { frame 1 { _root.battleChrLayer_S = this; stop(); } frame 11 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 11 { } frame 74 { _global.currentScriptLayer.splashAnimation(); stop(); } frame 80 { _global.battleBGLayer.gotoAndPlay('normal'); } frame 85 { gotoAndStop('inaction'); _global.currentScriptLayer.play(); } } movieClip 1608 battleMovie_S { } movieClip 1611 healthBarPic0 { } movieClip 1614 healthBarPic1 { } movieClip 1617 healthBarPic2 { } movieClip 1619 healthBarPic10 { } movieClip 1693 { frame 1 { this.stop(); } frame 83 { stopAllSounds(); } } movieClip 1695 mainCursor { } movieClip 1698 menuIcon { } movieClip 1700 { frame 1 { stop(); } } movieClip 1704 { } movieClip 1705 { } movieClip 1709 { } movieClip 1710 { } movieClip 1711 { frame 1 { function onEnterFrame() { helpText.text = _global.displayHelpText; } } } movieClip 1714 { frame 1 { _global.wheelActualLayer = this; onBlock = 1; stop(); } frame 5 { onBlock = 2; } frame 15 { stop(); } frame 16 { onBlock = 3; } frame 25 { stop(); } frame 26 { onBlock = 4; } frame 35 { stop(); } frame 36 { onBlock = 5; } frame 45 { stop(); } frame 46 { onBlock = 6; } frame 55 { stop(); } frame 56 { onBlock = 7; } frame 65 { stop(); } frame 66 { onBlock = 8; } frame 75 { stop(); } frame 76 { onBlock = 1; } frame 85 { stop(); } frame 94 { onBlock = 8; } frame 103 { stop(); } frame 104 { onBlock = 7; } frame 113 { stop(); } frame 114 { onBlock = 6; } frame 123 { stop(); } frame 124 { onBlock = 5; } frame 133 { stop(); } frame 134 { onBlock = 4; } frame 143 { stop(); } frame 144 { onBlock = 3; } frame 153 { stop(); } frame 154 { onBlock = 2; } frame 163 { stop(); } frame 164 { onBlock = 1; } frame 174 { stop(); } } movieClip 1716 { frame 1 { function onEnterFrame() { if (_global.wheelActualLayer.onBlock == 1) { wheelText.text = 'Items'; } if (_global.wheelActualLayer.onBlock == 2) { wheelText.text = 'Skills'; } if (_global.wheelActualLayer.onBlock == 3) { wheelText.text = 'Equipment'; } if (_global.wheelActualLayer.onBlock == 4) { wheelText.text = 'Battlechips'; } if (_global.wheelActualLayer.onBlock == 5) { wheelText.text = 'Formation'; } if (_global.wheelActualLayer.onBlock == 6) { wheelText.text = 'Archives'; } if (_global.wheelActualLayer.onBlock == 7) { wheelText.text = 'Options'; } if (_global.wheelActualLayer.onBlock == 8) { wheelText.text = 'Save/Load'; } } } } movieClip 1717 { frame 1 { _global.wheelMenuLayer = this; wheelBuffer = []; firstMove = true; menuWheel_Listener = new Object(); menuWheel_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '40' or Key.getAscii() == '50') { if (firstMove == true) { wheelDir = 'L'; oldWheelDir = wheelDir; firstMove = false; wheelNum = 1; } _global.fx6.start(); ++wheelNum; wheelDir = 'R'; if (oldwheelDir != wheelDir) { --wheelNum; } oldwheelDir = wheelDir; if (wheelNum > 8) { wheelNum = 1; } wheelBuffer[wheelBuffer.length] = wheelDir + wheelNum; } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '38' or Key.getAscii() == '56') { if (firstMove == true) { wheelDir = 'R'; oldWheelDir = wheelDir; firstMove = false; wheelNum = 8; } _global.fx6.start(); --wheelNum; wheelDir = 'L'; if (oldwheelDir != wheelDir) { ++wheelNum; } oldwheelDir = wheelDir; if (wheelNum < 1) { wheelNum = 8; } wheelBuffer[wheelBuffer.length] = wheelDir + wheelNum; } if (Key.getCode() == '32') { if (_global.wheelActualLayer.onBlock == 1) { _global.fx1.start(); gotoAndPlay('close'); Key.removeListener(menuWheel_Listener); } } if (Key.getCode() == '8') { _global.fx3.start(); _global.menuMainLayer.gotoAndPlay('close'); Key.removeListener(menuWheel_Listener); Key.addListener(_global.mainMapLayer.openMenu); _global.mainMapLayer.enableAllControls(); } }; Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 3 { if (wheelBuffer.length > 0) { menuWheel.gotoAndPlay(wheelBuffer[0]); wheelBuffer.shift(); } if (_global.wheelActualLayer.onBlock == 1) { _global.displayHelpText = 'Check or use items from your inventory.'; } if (_global.wheelActualLayer.onBlock == 2) { _global.displayHelpText = '[UNAVAILBLE] View or utilize your existing skills.'; } if (_global.wheelActualLayer.onBlock == 3) { _global.displayHelpText = '[UNAVAILBLE] Change out your weapons and armor.'; } if (_global.wheelActualLayer.onBlock == 4) { _global.displayHelpText = '[UNAVAILBLE] Change out your battle chips.'; } if (_global.wheelActualLayer.onBlock == 5) { _global.displayHelpText = '[UNAVAILBLE] Change party formations and battle tactics.'; } if (_global.wheelActualLayer.onBlock == 6) { _global.displayHelpText = '[UNAVAILBLE] Review important entries.'; } if (_global.wheelActualLayer.onBlock == 7) { _global.displayHelpText = '[UNAVAILBLE] Alter game mechanics and video settings.'; } if (_global.wheelActualLayer.onBlock == 8) { _global.displayHelpText = '[UNAVAILBLE] Save/Load your game.'; } } frame 10 { gotoAndPlay('loop'); } frame 19 { if (_global.wheelActualLayer.onBlock == 1) { _global.menuMainLayer.gotoAndPlay('items'); } if (_global.wheelActualLayer.onBlock == 2) { _global.menuMainLayer.gotoAndPlay('skills'); } if (_global.wheelActualLayer.onBlock == 3) { _global.menuMainLayer.gotoAndPlay('equip'); } if (_global.wheelActualLayer.onBlock == 4) { _global.menuMainLayer.gotoAndPlay('battle'); } if (_global.wheelActualLayer.onBlock == 5) { _global.menuMainLayer.gotoAndPlay('form'); } if (_global.wheelActualLayer.onBlock == 6) { _global.menuMainLayer.gotoAndPlay('archive'); } if (_global.wheelActualLayer.onBlock == 7) { _global.menuMainLayer.gotoAndPlay('options'); } if (_global.wheelActualLayer.onBlock == 8) { _global.menuMainLayer.gotoAndPlay('blank'); } stop(); } } movieClip 1719 { } movieClip 1721 { } movieClip 1723 { } movieClip 1735 { } movieClip 1736 { frame 1 { function updateStatus() { varX = 0; while (varX <= _root.party_Order.length - 1) { iData = eval('_root.chrIData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); cData = eval('_root.chrCData_' + _root.party_Order[varX]); levelData = eval('_root.chrLevel_' + _root.party_Order[varX]); (eval('box' + varX))._visible = true; (eval('box' + varX)).name_0.text = iData[0]; (eval('box' + varX)).level_0.text = levelData[0]; (eval('box' + varX)).hp_0.text = cData[0]; (eval('box' + varX)).sp_0.text = cData[1]; (eval('box' + varX)).thp_0.text = tData[0]; (eval('box' + varX)).tsp_0.text = tData[1]; (eval('box' + varX)).hpBar._xscale = (tData[0] / cData[0]) * 100; (eval('box' + varX)).spBar._xscale = (tData[1] / cData[1]) * 100; (eval('box' + varX)).attachMovie(iData[4], 'portraitPic', 0, {'_x': -90, '_y': -28.5}); ++varX; } } _global.characterStatusLayer = this; box0._visible = false; box1._visible = false; box2._visible = false; _global.characterStatusLayer.updateStatus(); } frame 5 { stop(); } } movieClip 1738 { } movieClip 1739 { } movieClip 1744 { frame 1 { _global.itemListLayer = this; } frame 10 { function updateItemList() { counter = 0; itemList.text = ''; amountList.text = ''; _root.tempList = []; varX = 0; while (varX <= _root.itemListData.length - 1) { if (_root.itemListData[varX] > 0) { itemIs = eval('_root.item_' + varX); itemName = itemIs[0]; _root.tempList[counter] = [(eval('_root.item_' + varX))[(eval('_root.item_' + varX)).length - 1], itemIs[8][1], itemIs, varX]; itemList.text += itemName + '\r'; amountList.text += _root.itemListData[varX] + '\r'; ++counter; } ++varX; } if (counter == 0) { itemList.text = 'None'; amountList.text = '---'; counter = 1; } boxList._yscale = counter * 95 + 210 - counter * 15; } updateItemList(); iconNum = 0; --counter; attachMovie('menuIcon', 'menuIcon', 100, {'_x': -150, '_y': 60}); _global.displayHelpText = _root.tempList[iconNum][0]; itemSelect_Listener = new Object(); itemSelect_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); --iconNum; if (iconNum < 0) { iconNum = counter; } _global.displayHelpText = _root.tempList[iconNum][0]; menuIcon._y = 60 + iconNum * 16.5; } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); ++iconNum; if (iconNum > counter) { iconNum = 0; } _global.displayHelpText = _root.tempList[iconNum][0]; menuIcon._y = 60 + iconNum * 16.5; } if (Key.getCode() == '32') { _global.fx1.start(); if (_root.tempList[iconNum][1][0] == 'hp' or _root.tempList[iconNum][1][0] == 'sp' or _root.tempList[iconNum][1][0] == 'rv' or _root.tempList[iconNum][1][0] == 'rpr') { Key.removeListener(itemSelect_Listener); Key.addListener(chrSelect_Listener); chrNum = 0; attachMovie('menuIcon', 'menuIcon2', 110, {'_x': 140, '_y': 60}); menuIcon2._xscale = 150; menuIcon2._yscale = 150; } } if (Key.getCode() == '8') { _global.fx4.start(); gotoAndPlay('close'); } }; chrSelect_Listener = new Object(); chrSelect_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); --chrNum; if (chrNum < 0) { chrNum = _root.party_Order.length - 1; } menuIcon2._y = 60 + chrNum * 135; } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); ++chrNum; if (chrNum > _root.party_Order.length - 1) { chrNum = 0; } menuIcon2._y = 60 + chrNum * 135; } if (Key.getCode() == '8') { _global.fx4.start(); removeMovieClip(menuIcon2); Key.removeListener(chrSelect_Listener); Key.addListener(itemSelect_Listener); } if (Key.getCode() == '32') { tData = eval('_root.chrTData_' + _root.party_Order[chrNum]); if (_root.tempList[iconNum][1][0] == 'hp') { if (tData[0] > 0) { _global.fx500.start(); tData[0] += _root.tempList[iconNum][2][5]; _root.checkTData(); _global.characterStatusLayer.updateStatus(); --_root.itemListData[_root.tempList[iconNum][3]]; if (_root.itemListData[_root.tempList[iconNum][3]] <= 0) { updateItemList(); _global.displayHelpText = _root.tempList[iconNum][0]; } updateItemList(); } else { _global.fx9.start(); } } if (_root.tempList[iconNum][1][0] == 'sp') { _global.fx503.start(); tData[1] += _root.tempList[iconNum][2][5]; _root.checkTData(); _global.characterStatusLayer.updateStatus(); --_root.itemListData[_root.tempList[iconNum][3]]; if (_root.itemListData[_root.tempList[iconNum][3]] <= 0) { updateItemList(); _global.displayHelpText = _root.tempList[iconNum][0]; } updateItemList(); } if (_root.tempList[iconNum][1][0] == 'rv') { if (tData[0] <= 0) { _global.fx511.start(); tData[0] += _root.tempList[iconNum][2][5]; _root.checkTData(); _global.characterStatusLayer.updateStatus(); --_root.itemListData[_root.tempList[iconNum][3]]; if (_root.itemListData[_root.tempList[iconNum][3]] <= 0) { updateItemList(); _global.displayHelpText = _root.tempList[iconNum][0]; } updateItemList(); } else { _global.fx9.start(); } } if (_root.tempList[iconNum][1][0] == 'rpr') { _global.fx502.start(); varX = 0; while (varX <= _root.tempList[iconNum][2][9][1].length - 1) { if (_root.tempList[iconNum][2][9][1][varX] > 0) { tData[3][varX] -= _root.tempList[iconNum][2][9][1][varX]; if (tData[3][varX] <= 0) { tData[3][varX] = 0; } } ++varX; } _global.characterStatusLayer.updateStatus(); --_root.itemListData[_root.tempList[iconNum][3]]; if (_root.itemListData[_root.tempList[iconNum][3]] <= 0) { updateItemList(); _global.displayHelpText = _root.tempList[iconNum][0]; } updateItemList(); } } }; Key.addListener(itemSelect_Listener); } frame 21 { stop(); } frame 22 { _global.fx4.start(); Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 32 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 1745 { frame 1 { _global.menuMainLayer = this; } frame 11 { stop(); } frame 20 { stop(); } frame 28 { removeMovieClip(_root.mainMenuHolder); stop(); } } movieClip 1746 { frame 1 { stop(); } } movieClip 1749 menuMainHolder { frame 1 { this._xscale = _root.gameResolution[0]; this._yscale = _root.gameResolution[0]; this._x = _root.gameResolution[1]; this._y = _root.gameResolution[2]; } frame 13 { stop(); } } movieClip 1750 { frame 1 { stop(); } } frame 18 { gotoAndPlay('function'); } frame 18 { _global.fx1 = new Sound(); _global.fx1.attachSound('fx1'); _global.fx2 = new Sound(); _global.fx2.attachSound('fx2'); _global.fx3 = new Sound(); _global.fx3.attachSound('fx3'); _global.fx4 = new Sound(); _global.fx4.attachSound('fx4'); _global.fx5 = new Sound(); _global.fx5.attachSound('fx5'); _global.fx6 = new Sound(); _global.fx6.attachSound('fx6'); _global.fx7 = new Sound(); _global.fx7.attachSound('fx7'); _global.fx8 = new Sound(); _global.fx8.attachSound('fx8'); _global.fx9 = new Sound(); _global.fx9.attachSound('fx9'); _global.fx10 = new Sound(); _global.fx10.attachSound('fx10'); _global.fx11 = new Sound(); _global.fx11.attachSound('fx11'); _global.fx12 = new Sound(); _global.fx12.attachSound('fx12'); _global.fx13 = new Sound(); _global.fx13.attachSound('fx13'); _global.fx20 = new Sound(); _global.fx20.attachSound('fx20'); _global.fx40 = new Sound(); _global.fx40.attachSound('fx40'); _global.fx41 = new Sound(); _global.fx41.attachSound('fx41'); _global.fx42 = new Sound(); _global.fx42.attachSound('fx42'); _global.fx43 = new Sound(); _global.fx43.attachSound('fx43'); _global.fx44 = new Sound(); _global.fx44.attachSound('fx44'); _global.fx30 = new Sound(); _global.fx30.attachSound('fx30'); _global.fx31 = new Sound(); _global.fx31.attachSound('fx31'); _global.fx32 = new Sound(); _global.fx32.attachSound('fx32'); _global.fx33 = new Sound(); _global.fx33.attachSound('fx33'); _global.fx50 = new Sound(); _global.fx50.attachSound('fx50'); _global.fx51 = new Sound(); _global.fx51.attachSound('fx51'); _global.fx52 = new Sound(); _global.fx52.attachSound('fx52'); _global.fx55 = new Sound(); _global.fx55.attachSound('fx55'); _global.fx56 = new Sound(); _global.fx56.attachSound('fx56'); _global.fx59 = new Sound(); _global.fx59.attachSound('fx59'); _global.fx60 = new Sound(); _global.fx60.attachSound('fx60'); _global.fx61 = new Sound(); _global.fx61.attachSound('fx61'); _global.fx100 = new Sound(); _global.fx100.attachSound('fx100'); _global.fx101 = new Sound(); _global.fx101.attachSound('fx101'); _global.fx102 = new Sound(); _global.fx102.attachSound('fx102'); _global.fx103 = new Sound(); _global.fx103.attachSound('fx103'); _global.fx104 = new Sound(); _global.fx104.attachSound('fx104'); _global.fx105 = new Sound(); _global.fx105.attachSound('fx105'); _global.fx106 = new Sound(); _global.fx106.attachSound('fx106'); _global.fx107 = new Sound(); _global.fx107.attachSound('fx107'); _global.fx108 = new Sound(); _global.fx108.attachSound('fx108'); _global.fx111 = new Sound(); _global.fx111.attachSound('fx111'); _global.fx112 = new Sound(); _global.fx112.attachSound('fx112'); _global.fx113 = new Sound(); _global.fx113.attachSound('fx113'); _global.fx201 = new Sound(); _global.fx201.attachSound('fx201'); _global.fx202 = new Sound(); _global.fx202.attachSound('fx202'); _global.fx203 = new Sound(); _global.fx203.attachSound('fx203'); _global.fx301 = new Sound(); _global.fx301.attachSound('fx301'); _global.fx302 = new Sound(); _global.fx302.attachSound('fx302'); _global.fx303 = new Sound(); _global.fx303.attachSound('fx303'); _global.fx304 = new Sound(); _global.fx304.attachSound('fx304'); _global.fx305 = new Sound(); _global.fx305.attachSound('fx305'); _global.fx401 = new Sound(); _global.fx401.attachSound('fx401'); _global.fx402 = new Sound(); _global.fx402.attachSound('fx402'); _global.fx403 = new Sound(); _global.fx403.attachSound('fx403'); _global.fx404 = new Sound(); _global.fx404.attachSound('fx404'); _global.fx405 = new Sound(); _global.fx405.attachSound('fx405'); _global.fx406 = new Sound(); _global.fx406.attachSound('fx406'); _global.fx407 = new Sound(); _global.fx407.attachSound('fx407'); _global.fx408 = new Sound(); _global.fx408.attachSound('fx408'); _global.fx409 = new Sound(); _global.fx409.attachSound('fx409'); _global.fx410 = new Sound(); _global.fx410.attachSound('fx410'); _global.fx411 = new Sound(); _global.fx411.attachSound('fx411'); _global.fx500 = new Sound(); _global.fx500.attachSound('fx500'); _global.fx501 = new Sound(); _global.fx501.attachSound('fx501'); _global.fx502 = new Sound(); _global.fx502.attachSound('fx502'); _global.fx503 = new Sound(); _global.fx503.attachSound('fx503'); _global.fx504 = new Sound(); _global.fx504.attachSound('fx504'); _global.fx505 = new Sound(); _global.fx505.attachSound('fx505'); _global.fx506 = new Sound(); _global.fx506.attachSound('fx506'); _global.fx510 = new Sound(); _global.fx510.attachSound('fx510'); _global.fx511 = new Sound(); _global.fx511.attachSound('fx511'); _global.fx601 = new Sound(); _global.fx601.attachSound('fx601'); _global.fx800 = new Sound(); _global.fx800.attachSound('fx800'); _global.fx801 = new Sound(); _global.fx801.attachSound('fx801'); _global.fx802 = new Sound(); _global.fx802.attachSound('fx802'); _global.fx820 = new Sound(); _global.fx820.attachSound('fx820'); _global.fx1000 = new Sound(); _global.fx1000.attachSound('fx1000'); _global.fx1001 = new Sound(); _global.fx1001.attachSound('fx1001'); _global.fx1002 = new Sound(); _global.fx1002.attachSound('fx1002'); _global.fx1003 = new Sound(); _global.fx1003.attachSound('fx1003'); _global.song0 = new Sound(); _global.song0.attachSound('song0'); _global.song1 = new Sound(); _global.song1.attachSound('song1'); _global.song2 = new Sound(); _global.song2.attachSound('song2'); _global.songA = new Sound(); _global.songA.attachSound('songA'); _global.songB = new Sound(); _global.songB.attachSound('songB'); _global.voice0 = new Sound(); _global.voice0.attachSound('voice0'); } movieClip 1752 { } movieClip 1753 { frame 275 { _global.movieClipIntro.play(); stop(); } } movieClip 1755 { } movieClip 1758 { frame 509 { _global.movieClipIntro.play(); stop(); } } movieClip 1759 { frame 1 { _global.introductionMovie = this; } frame 6 { stop(); } frame 11 { stop(); } frame 17 { stop(); } frame 24 { stop(); } frame 30 { stop(); } frame 36 { stop(); } frame 43 { stop(); } frame 48 { stop(); } frame 53 { stop(); } frame 58 { stop(); } frame 64 { stop(); } frame 70 { stop(); } frame 161 { this.stop(); _global.movieClipIntro.play(); } } movieClip 1761 { } movieClip 1762 { } movieClip 1764 { } movieClip 1765 { frame 144 { _global.firstMenuLayer.play(); stop(); } } movieClip 1767 { } movieClip 1768 { frame 1 { _global.mainMenuTextLayer = this; } frame 14 { stop(); } frame 26 { stop(); } frame 26 { stop(); } } movieClip 1770 { } movieClip 1771 { frame 1 { _global.gameOptionsMenuLayer = this; } frame 14 { stop(); } frame 30 { stop(); } } movieClip 1776 { frame 1 { _global.firstMenuLayer = this; } frame 11 { stop(); } frame 12 { attachMovie('mainCursor', 'cursor', 0, {'_x': 230, '_y': 440}); } frame 16 { frame = 0; bufferList = ['']; main_Listener = new Object(); main_Listener.onKeyDown = function () { if (Key.getCode() == '40' or Key.getAscii() == '50') { ++frame; if (frame > 2) { frame = 0; } bufferList[bufferList.length] = frame; _global.fx6.start(); } if (Key.getCode() == '38' or Key.getAscii() == '56') { --frame; if (frame < 0) { frame = 2; } bufferList[bufferList.length] = frame; _global.fx6.start(); } if (Key.getCode() == '32') { Key.removeListener(main_Listener); bufferList[bufferList.length] = frame; if (bufferList[0] == 0) { cursor._visible = false; _global.fx2.start(); gotoAndPlay('startGame'); } if (bufferList[0] == 1) { _global.fx9.start(); Key.addListener(main_Listener); } if (bufferList[0] == 2) { cursor._y = 440; _global.fx2.start(); _global.mainMenuTextLayer.gotoAndPlay('fadeOut'); gotoAndPlay('options'); } } }; Key.addListener(main_Listener); gotoAndPlay('mainLoop'); } frame 26 { if (bufferList.length > 0) { if (bufferList[0] == 0) { cursor._y = 440; } if (bufferList[0] == 1) { cursor._y = 470; } if (bufferList[0] == 2) { cursor._y = 500; } bufferList.shift(); } } frame 28 { gotoAndPlay('mainLoop'); } frame 29 { frame = 0; bufferList = ['']; option_Listener = new Object(); option_Listener.onKeyDown = function () { if (Key.getCode() == '40' or Key.getAscii() == '50') { ++frame; if (frame > 3) { frame = 0; } bufferList[bufferList.length] = frame; _global.fx6.start(); } if (Key.getCode() == '38' or Key.getAscii() == '56') { --frame; if (frame < 0) { frame = 3; } bufferList[bufferList.length] = frame; _global.fx6.start(); } if (Key.getCode() == '32') { bufferList[bufferList.length] = frame; if (bufferList[0] == 0) { _global.fx2.start(); if (_root.gameVariables[0][0][2] == true) { _root.gameVariables[0][0][2] = false; _global.songB.stop(); stopAllSounds(); } else { _root.gameVariables[0][0][2] = true; _root.gameVariables[0][0][3] = true; stopAllSounds(); _global.songB.start(0, 5); _global.songB.setVolume(_root.gameVariables[0][0][1]); } } if (bufferList[0] == 1) { _global.fx2.start(); if (_root.gameVariables[0][0][3] == true) { _root.gameVariables[0][0][3] = false; _root.gameVariables[0][0][2] = false; _global.songB.stop(); _global.songB.setVolume(0); stopAllSounds(); } else { _root.gameVariables[0][0][3] = true; if (_root.gameVariables[0][0][2] == true) { stopAllSounds(); _global.songB.start(0, 5); } _global.songB.setVolume(_root.gameVariables[0][0][1]); } } if (bufferList[0] == 2) { _global.fx2.start(); if (_root.gameVariables[2][0][0] == true) { _root.gameVariables[2][0][0] = false; } else { _root.gameVariables[2][0][0] = true; } } if (bufferList[0] == 3) { _global.fx2.start(); if (_root.gameVariables[1][0][0] == true) { _root.gameVariables[1][0][0] = false; } else { _root.gameVariables[1][0][0] = true; } } } if (Key.getCode() == '8') { Key.removeListener(option_Listener); cursor._y = 440; _global.fx4.start(); _global.gameOptionsMenuLayer.gotoAndPlay('fadeOut'); gotoAndPlay('main'); } }; Key.addListener(option_Listener); gotoAndPlay('optionLoop'); } frame 38 { if (bufferList.length > 0) { if (bufferList[0] == 0) { cursor._y = 440; } if (bufferList[0] == 1) { cursor._y = 470; } if (bufferList[0] == 2) { cursor._y = 500; } if (bufferList[0] == 3) { cursor._y = 530; } bufferList.shift(); } if (_root.gameVariables[0][0][2] == true) { musicText.text = 'Enabled'; } else { musicText.text = 'Disabled'; } if (_root.gameVariables[0][0][3] == true) { soundText.text = 'Enabled'; } else { soundText.text = 'Muted'; } if (_root.gameVariables[2][0][0] == true) { ezbatText.text = 'Enabled'; } else { ezbatText.text = 'Disabled'; } if (_root.gameVariables[1][0][0] == true) { cellText.text = 'Enabled'; } else { cellText.text = 'Disabled'; } } frame 39 { gotoAndPlay('optionLoop'); } frame 47 { stop(); } frame 48 { _global.mainMenuTextLayer.gotoAndPlay('fadeOut'); } frame 82 { varX = _root.gameVariables[0][0][1]; while (varX >= 0) { _global.songB.setVolume(varX); if (varX <= 10) { _global.songB.setVolume(varX); stopAllSounds(); break; } varX -= 0.001; } } frame 126 { stop(); _root.play(); } } movieClip 1777 { frame 1 { _global.movieClipIntro = this; _global.movieClipIntro._xscale = _root.gameResolution[0]; _global.movieClipIntro._yscale = _root.gameResolution[0]; _global.movieClipIntro._x = _root.gameResolution[1]; _global.movieClipIntro._y = _root.gameResolution[2]; } frame 18 { stop(); } frame 24 { stop(); } frame 25 { gotoAndPlay('firstMenu'); } frame 36 { if (_root.gameVariables[0][0][3] == true) { _global.songA.start(); _global.songA.setVolume(_root.gameVariables[0][0][1]); } } frame 49 { stop(); } frame 50 { if (_root.gameVariables[0][0][3] == true) { _global.songB.start(0, 5); _global.songB.setVolume(_root.gameVariables[0][0][1]); } } frame 60 { stop(); } } frame 55 { stop(); } frame 56 { _root.listHead = [9, 9, 9, 9, 9]; _root.listBuster = [9, 9, 9, 9, 9]; _root.listMelee = [9, 9, 9, 9, 9]; _root.listArmor = [9, 9, 9, 9, 9]; _root.listLeg = [9, 9, 9, 9, 9]; _root.listTrinket = [9, 9, 9, 9, 9]; var equipData = [[0, 5]]; _root.WpnBuster0 = ['Buster Part A', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnBuster1 = ['Buster Part B', 0, 0, 0, 0, 50, 50, 0, 0, 15, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnBuster2 = ['Buster Part C', 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnBuster3 = ['Buster Part D', 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnBuster4 = ['Buster Part E', 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 50, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnBuster5 = ['Buster Part F', 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; var BusterDes1 = ['', '', 'No stat enchancing abilities.']; var BusterDes1 = ['', '', 'Increases defense against all attacks, especially when combined with other B-type parts.']; var BusterDes2 = ['', '', 'High emphasis on ether generating power. Combine with other C-type parts for maximum effectiveness.']; var BusterDes3 = ['', '', 'Redirects buster energy into kinetic energy, greatly increasing one\'s movement speed.']; var BusterDes4 = ['', '', 'E-type parts increase your melee, buster, and ether power - all at the same time.']; var BusterDes5 = ['', '', 'High emphasis on power, but little else.']; _root.WpnMelee0 = ['Z-Saber A', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnMelee1 = ['Z-Saber B', 0, 0, 0, 0, 50, 50, 0, 0, 15, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnMelee2 = ['Z-Saber C', 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnMelee3 = ['Z-Saber D', 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnMelee4 = ['Z-Saber E', 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 50, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnMelee5 = ['Z-Saber F', 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; var MeleeDes0 = ['', '', 'No stat enchancing abilities.']; var MeleeDes1 = ['', '', 'Increases defense against all attacks, especially when combined with other B-type parts.']; var MeleeDes2 = ['', '', 'High emphasis on ether generating power. Combine with other C-type parts for maximum effectiveness.']; var MeleeDes3 = ['', '', 'Redirects buster energy into kinetic energy, greatly increasing one\'s movement speed.']; var MeleeDes4 = ['', '', 'E-type parts increase your melee, buster, and ether power - all at the same time.']; var MeleeDes5 = ['', '', 'High emphasis on power, but little else.']; _root.WpnHead0 = ['Helmet Part A', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnHead1 = ['Helmet Part B', 0, 0, 0, 0, 50, 50, 0, 0, 15, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnHead2 = ['Helmet Part C', 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnHead3 = ['Helmet Part D', 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnHead4 = ['Helmet Part E', 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 50, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnHead5 = ['Helmet Part F', 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; var HeadDes0 = ['', '', 'No stat enchancing abilities.']; var HeadDes1 = ['', '', 'Increases defense against all attacks, especially when combined with other B-type parts.']; var HeadDes2 = ['', '', 'High emphasis on ether generating power. Combine with other C-type parts for maximum effectiveness.']; var HeadDes3 = ['', '', 'Redirects buster energy into kinetic energy, greatly increasing one\'s movement speed.']; var HeadDes4 = ['', '', 'E-type parts increase your melee, buster, and ether power - all at the same time.']; var HeadDes5 = ['', '', 'High emphasis on power, but little else.']; _root.WpnArmor0 = ['Plating A', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnArmor1 = ['Plating B', 0, 0, 0, 0, 50, 50, 0, 0, 15, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnArmor2 = ['Plating C', 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnArmor3 = ['Plating D', 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnArmor4 = ['Plating E', 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 50, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnArmor5 = ['Plating F', 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; var ArmorDes0 = ['', '', 'No stat enchancing abilities.']; var ArmorDes1 = ['', '', 'Increases defense against all attacks, especially when combined with other B-type parts.']; var ArmorDes2 = ['', '', 'High emphasis on ether generating power. Combine with other C-type parts for maximum effectiveness.']; var ArmorDes3 = ['', '', 'Redirects buster energy into kinetic energy, greatly increasing one\'s movement speed.']; var ArmorDes4 = ['', '', 'E-type parts increase your melee, buster, and ether power - all at the same time.']; var ArmorDes5 = ['', '', 'High emphasis on power, but little else.']; _root.WpnLeg0 = ['Leg A', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnLeg1 = ['Leg B', 0, 0, 0, 0, 50, 50, 0, 0, 15, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnLeg2 = ['Leg C', 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnLeg3 = ['Leg D', 0, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnLeg4 = ['Leg E', 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 50, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnLeg0 = ['Leg F', 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; var LegDes0 = ['', '', 'No stat enchancing abilities.']; var LegDes1 = ['', '', 'Increases defense against all attacks, especially when combined with other B-type parts.']; var LegDes2 = ['', '', 'High emphasis on ether generating power. Combine with other C-type parts for maximum effectiveness.']; var LegDes3 = ['', '', 'Redirects buster energy into kinetic energy, greatly increasing one\'s movement speed.']; var LegDes4 = ['', '', 'E-type parts increase your melee, buster, and ether power - all at the same time.']; var LegDes5 = ['', '', 'High emphasis on power, but little else.']; _root.WpnTrinket0 = ['Nameplate', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnTrinket1 = ['First Aid Kit', 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnTrinket2 = ['Gutman Charm', 15, 0, 0, 20, 2, 0, 3, 4, 0, 0, 12, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnTrinket3 = ['Protoman Flute', 35, 0, 0, 40, 4, 25, 15, 4, 50, 0, 18, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnTrinket4 = ['Scanner', 25, 0, 0, 10, 5, 0, 8, 5, 0, 0, 26, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnTrinket5 = ['Power Booster', 50, 0, 0, 12, 5, 0, 10, 6, 0, 0, 42, 0, 1, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; var TrinketDes0 = ['', '', 'No stat enchancing abilities.']; var TrinketDes1 = ['', '', 'First Aid Kit can teach you some basic repairs. Makes the Restorative Battle Chip available.']; var TrinketDes2 = ['', '', 'Reminds you of a once famous robot. Makes the the Gutman Battle Chip available.']; var TrinketDes3 = ['', '', 'Said to be Protoman\'s flute.']; var TrinketDes4 = ['', '', 'Scan the enemy automatically.']; var TrinketDes5 = ['', '', 'Increase the damage of your melee attacks.']; gotoAndPlay('techData'); } frame 56 { function slideMenu(layer, xPos, yPos, zoom, nEntry, o1, o2, o3, o4, o5, o6, o7, o8, o9) { _root.slideMenu_Data = [0, nEntry, o1, o2, o3, o4, o5, o6, o7, o8, o9]; delete slide_Menu; delete slideScreen; layer.attachMovie('slide_Menu', 'slide_Menu', 2050, {'_x': xPos, '_y': yPos}); } function mainSelector(blockType, nX, nY, pX, pY, gapX, gapY, xLoop, yLoop, absOn, backOn, noSpace, itemC) { _root.sel_Data = [blockType, nX, nY, pX, pY, gapX, gapY, xLoop, yLoop, absOn, backOn, noSpace, itemC]; attachMovie('main_Selector', 'main_Selector', 2050); } function blankSelector(nX, nY, startX, startY) { _root.sel_Data = [nX, nY, startX, startY]; attachMovie('blank_Selector', 'blank_Selector', 2050); } function staticSelector(blockType, px, py, loopWhen) { _root.sel_Data = [blockType, px, py, loopWhen]; attachMovie('staticSelector', 'main_Selector', 2050); } function textBox(type, color, tX, tY, tA, tB, tC, text_) { _global.textToDisplay = text_; _root.textBox_Color = color; attachMovie('textBox_' + type, 'tBox', 5000); tBox._x = tX; tBox._y = tY; tBox._alpha = 100; } function textBox_Pause(type, duration, layer, color, tX, tY, tA, tB, tC, text_) { _global.textToDisplay = text_; _root.textBox_Color = color; _root.text_Pause = duration; attachMovie('textBox_' + type, 'tile_' + layer, layer); (eval('tile_' + layer))._x = tX; (eval('tile_' + layer))._y = tY; (eval('tile_' + layer))._alpha = 100; } function popUpBox(type, tX, tY, tA, tB, text_, cluster1, cluster2) { _root.popUp_Msg = text_; _root.popUp_o1 = cluster1[0]; _root.popUp_o2 = cluster2[0]; _root.branch1 = cluster1[1]; _root.branch2 = cluster2[1]; attachMovie('popUp_' + type, 'popUp', 1500, {'_x': tX, '_y': tY}); popUp._xscale = tA; popUp._yscale = tB; stop(); } function timer(duration) { oldTimer = getTimer(); while (getTimer() <= oldTimer + duration) { } } _root.slideMemory = 0; } frame 65 { bc_None_0 = []; bc_None_1 = []; bc_None_2 = []; bc_Fireman_0 = []; bc_Fireman_1 = []; bc_Fireman_2 = []; bc_Iceman_0 = []; bc_Iceman_1 = []; bc_Iceman_2 = []; bc_Gutman_0 = []; bc_Gutman_1 = []; bc_Gutman_2 = []; bc_Restore_0 = []; bc_Restore_1 = []; bc_Restore_2 = []; bc_ChrSpecific_0 = []; bc_ChrSpecific_1 = []; bc_ChrSpecific_2 = []; varX = 0; while (varX < 10) { bc_Fireman_0[varX] = 0; bc_Fireman_1[varX] = 0; bc_Fireman_2[varX] = 0; bc_Gutman_0[varX] = 0; bc_Gutman_1[varX] = 0; bc_Gutman_2[varX] = 0; bc_Iceman_0[varX] = 0; bc_Iceman_1[varX] = 0; bc_Iceman_2[varX] = 0; bc_Restore_0[varX] = 0; bc_Restore_1[varX] = 0; bc_Restore_2[varX] = 0; bc_ChrSpecific_0 = 0; bc_ChrSpecific_1 = 0; bc_ChrSpecific_2 = 0; ++varX; } currentXP = 0; benefit_0 = ['None', [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_1 = ['+10% HP\'s', [0, 10], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_2 = ['+20% HP\'s', [0, 20], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_3 = ['+30% HP\'s', [0, 30], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_10 = ['+10% ETHER', [0, 0], [0, 10], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_11 = ['+20% ETHER', [0, 0], [0, 20], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_12 = ['+30% ETHER', [0, 0], [0, 30], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_21 = ['+10% STR', [0, 0], [0, 0], [0, 10], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_22 = ['+20% STR', [0, 0], [0, 0], [0, 20], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_23 = ['+30% STR', [0, 0], [0, 0], [0, 30], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_25 = ['+100 to STR', [0, 0], [0, 0], [100, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_50 = ['+10% DEF', [0, 0], [0, 0], [0, 0], [0, 0], [0, 10], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_51 = ['+20% DEF', [0, 0], [0, 0], [0, 0], [0, 0], [0, 20], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_52 = ['+30% DEF', [0, 0], [0, 0], [0, 0], [0, 0], [0, 30], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_90 = ['+10% DEF/HP ', [0, 10], [0, 0], [0, 0], [0, 0], [0, 10], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_91 = ['+10% STR/EP ', [0, 0], [0, 10], [0, 10], [0, 0], [0, 10], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; benefit_92 = ['+10% STR/ETHER', [0, 0], [0, 0], [0, 10], [0, 10], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; tech_Basic0 = ['None', 'Enemy', 'Single', 'T', 0, 150, 0, 40, [['chargingEnergy', 'dischargeEnergy', 'ani-fireball2'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['']]; tech_Basic1 = ['Charge', 'Enemy', 'Single', 'T', 0, 50, 0, 70, [['chargingEnergy', 'dischargeEnergy', 'ani-fireball2'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]; other_none = ['', 'Enemy', 'All', 'E', 0, 0, 0, 0, [['chargingEnergy', 'dischargeEnergy', 'ani-none'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]; support_Grenade = ['Grenade', 'Enemy', 'All', 'E', 130, 85, 8, 20, [['chargingEnergy', 'dischargeEnergy', 'ani-flashBang'], []], [[0, 0, 0, 50, 0, 0, 0], ['Afflictions', 0, 0, 1, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['A standard grenade.']]; fireMan_tech1 = ['Burst I', 'Enemy', 'All', 'E', 50, 120, 8, 20, [['chargingEnergy', 'dischargeEnergy', 'ani-fire1'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Attack the enemy with a quick burst of fire.']]; fireMan_tech2 = ['Burst II', 'Enemy', 'All', 'E', 150, 250, 5, 30, [['chargingEnergy', 'dischargeEnergy', 'ani-explosion1'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Attack the enemy with a large burst of fire.']]; fireMan_techA = ['Burst III', 'Enemy', 'All', 'E', 250, 450, 4, 40, [['chargingEnergy', 'dischargeEnergy', 'ani-explosion2'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Attack the enemy with a massive burst of fire.']]; fireMan_techB = ['Flashbang', 'Enemy', 'Single', 'E', 250, 150, 8, 20, [['chargingEnergy', 'dischargeEnergy', 'ani-flashBang'], []], [[0, 0, 0, 50, 0, 0, 0], ['Afflictions', 0, 0, 1, 2, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['A sudden burst of high frequency sounds and bright lights. Chance of stunning the enemy and inflicting minor electrical damage.']]; fireMan_techC = ['Flame Pillar', 'Enemy', 'Single', 'E', 250, 450, 3, 40, [['chargingEnergy', 'dischargeEnergy', 'ani-pillar2'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 2, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['A large pillar of flames bursts from the ground. Chance of blinding the enemy briefly.']]; fireMan_techD = ['Flame Thrower', 'Enemy', 'Single', 'E', 250, 650, 4, 50, [['chargingShot', 'dischargeShot', 'ani-flameThrower1'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Attack the enemy with a super heated stream of fire.']]; ice_freeze1 = ['Freezing Winds', 'Enemy', 'Single', 'E', 80, 250, 4, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-ice1'], []], [[0, 100, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Produce a quick blast of freezing winds.']]; ice_tornado1 = ['Tornado', 'Enemy', 'Single', 'E', 250, 450, 4, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-tornado'], []], [[0, 100, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['A large tornado sunders an enemies defense.']]; ice_grenade1 = ['Ice Grenade', 'Enemy', 'Single', 'E', 180, 280, 4, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-iceGrenade1'], []], [[0, 100, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Produce a quick blast of freezing winds.']]; ice_Missle1 = ['Ice Missle', 'Enemy', 'Single', 'E', 10, 350, 3, 35, [['chargingEnergy', 'dischargeEnergy', 'ani-iceMissle1'], []], [[0, 100, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 2, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Create a pair of frozen spikes that pierce the enemies defense.']]; ice_Pillar1 = ['Ice Pillar', 'Enemy', 'Single', 'E', 350, 350, 3, 35, [['chargingEnergy', 'dischargeEnergy', 'ani-icePillar1'], []], [[0, 100, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 2, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Encase the enemy in a wall ice that violently shatters.']]; elect_ball1 = ['Static Shock', 'Enemy', 'Single', 'E', 280, 150, 3, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-electric1'], []], [[0, 0, 0, 100, 0, 0, 0], ['Afflictions', 0, 0, 2, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Creates a large field of electrical energy that damages the enemy. Chance to short circuit the enemy. ']]; elect_beam1 = ['High Voltage', 'Enemy', 'Single', 'E', 350, 150, 3, 25, [['chargingShot', 'dischargeShot', 'ani-electricBeam1'], []], [[0, 0, 0, 100, 0, 0, 0], ['Afflictions', 0, 0, 2, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['A high voltage shot tears through an enemy. Chance to short circuit the enemy. ']]; beam_Beam1 = ['Piercing Beam', 'Enemy', 'Single', 'T', 200, 380, 15, 55, [['chargingShot', 'dischargeShot', 'ani-beam2'], []], [[0, 0, 100, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['This beam has an extremely quick charge time, but uses a lot of ether.']]; bio_Poisen1 = ['Biohazard', 'Enemy', 'All', 'T', 480, 450, 4, 45, [['chargingEnergy', 'dischargeEnergy', 'ani-poisen1'], []], [[0, 0, 0, 0, 100, 0, 0], ['Afflictions', 0, 2, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Create a hazardous cloud of poisen. Chance to poisen the enemy.']]; assist_Scan1 = ['Scan 1', 'Enemy', 'Single', 'A', 150, 0, 15, 15, [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 1, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Scan your enemy for weaknessess.']]; assist_fireShield = ['Fire Proof', 'Party', 'Single', 'A', 90, 0, 2.5, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 30, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Absorb 30% of fire damage. Shields slowly degrade over time, losing their effectiveness.']]; assist_iceShield = ['Ice Proof', 'Party', 'Single', 'A', 90, 0, 2.5, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 30, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Absorb 30% of ice damage. Shields slowly degrade over time, losing their effectiveness.']]; assist_beamShield = ['Beam Proof', 'Party', 'Single', 'A', 90, 0, 2.5, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 30, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Absorb 30% of beam damage. Shields slowly degrade over time, losing their effectiveness.']]; assist_electShield = ['Electric Proof', 'Party', 'Single', 'A', 90, 0, 2.5, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 30, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Absorb 30% of electrical damage. Shields slowly degrade over time, losing their effectiveness.']]; assist_bioShield = ['Bio Proof', 'Party', 'Single', 'A', 90, 0, 2.5, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 30, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Absorb 30% of bio damage. Shields slowly degrade over time, losing their effectiveness.']]; assist_meleeShield = ['Melee Proof', 'Party', 'Single', 'A', 90, 0, 2.5, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 30, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Absorb 30% of melee damage. Shields slowly degrade over time, losing their effectiveness.']]; assist_busterShield = ['Bullet Proof', 'Party', 'Single', 'A', 90, 0, 2.5, 25, [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 30], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Absorb 30% of buster damage. Shields slowly degrade over time, losing their effectiveness.']]; restChip_tech0 = ['First Aid', 'Party', 'Single', 'H', 20, 45, 8, 15, [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Heal an ally. Restores approximately 45 HP\'s.']]; restChip_tech1 = ['Repair I', 'Party', 'Single', 'H', 85, 150, 8, 15, [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Heal an ally. Restores approximately 150 HP\'s.']]; restChip_tech2 = ['Repair II', 'Party', 'Single', 'H', 285, 500, 8, 35, [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Heal an ally. Restores approximately 500 HP\'s.']]; restChip_tech3 = ['Revive I', 'Party', 'Revive', 'H', 450, 50, 3, 50, [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], ['rv']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 2, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Restore a fallen ally\'s health. Upon revival, the target is granted 50 HP\'s and the Regain buff.']]; restChip_techA = ['Mend I', 'Party', 'All', 'H', 500, 500, 3.5, 40, [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Heal all party members for approximately 250 HP\'s.']]; restChip_techB = ['Regain I', 'Party', 'Single', 'H', 500, 500, 5, 20, [['chargingEnergy', 'dischargeEnergy', 'ani-regain1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 6, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['All party members automatically restore 10% of the HP\'s periodically.']]; x_chrSpec1 = ['Concussion Charges', 'Enemy', 'Single', 'T', 300, 190, 2, 20, [['chargingShot', 'dischargeShot', 'ani-buster1'], []], [[0, 0, 0, 0, 0, 0, 100], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Launch three powerful charges of energy that rip through an enemy. ']]; x_chrSpec2 = ['Exploding Shells', 'Enemy', 'Single', 'T', 600, 650, 1.5, 40, [['chargingShot', 'dischargeShot', 'ani-fireBeam1'], []], [[100, 0, 0, 0, 0, 0, 100], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['These specialized cannon shells produce heavy fire/buster damage.']]; z_chrSpec1 = ['Triple Slash', 'Enemy', 'Single', 'T', 140, 250, 2, 45, [['chargingEnergy', 'special1', ''], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Charge in and slice the enemy to pieces!']]; s_chrSpec1 = ['Breaker Beam Alpha', 'Enemy', 'Single', 'T', 450, 580, 1, 55, [['chargingShot', 'dischargeShot', 'ani-beam3'], []], [[0, 0, 100, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['The Breaker Beam is an immensely powerful laser capable of destroying everything in it\'s path.']]; s_chrSpec2 = ['Infection', 'Enemy', 'Single', 'A', 250, 0, 1.5, 35, [['chargingEnergy', 'dischargeEnergy', 'ani-scan1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 5, 4, 3, 2, 2, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], [false, false, false, false, false], ['Infects the enemy with an assortment of ailments.']]; command_Techs = ['Techs', 'OpenTech', 'Self', [ANIMATIONSTART, ANIMATIONEND, FX]]; command_Items = ['Items', 'OpenItem', 'Self', [ANIMATIONSTART, ANIMATIONEND, FX]]; command_None = ['None', 'Party', 'Self', [ANIMATIONSTART, ANIMATIONEND, FX]]; command_Block = ['Block', 'Party', 'Self', ['Regenerate', 'Party', 'Self', '-', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Regen = ['Regenerate', 'Party', 'Self', ['Regenerate', 'Party', 'Self', 'C', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], ['hpA']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Enrage = ['Enrage', 'Party', 'Self', ['Regenerate', 'Party', 'Self', '-', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Scan = ['Scan', 'Enemy', 'Single', ['Scan 1', 'Enemy', 'Single', '-', '-', '-', 15, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 1, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Steal = ['Steal', 'Enemy', 'Single', ['Regenerate', 'Party', 'Self', '-', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Mix = ['Throw', 'Enemy', 'Single', ['Regenerate', 'Party', 'Self', '-', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Item = ['Mix', 'OpenMix', 'Self', ['Regenerate', 'Party', 'Self', '-', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Mug = ['Mug', 'Enemy', 'Single', ['Regenerate', 'Party', 'Self', '-', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Counter = ['Counter', 'Party', 'Self', ['Regenerate', 'Party', 'Self', '-', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Recharge = ['Recharge', 'Party', 'Self', ['Recharge', 'Party', 'Self', 'C', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-mana1'], ['spA']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; command_Flee = ['Flee', 'Party', 'Self', ['Regenerate', 'Party', 'Self', '-', '-', '-', 5, '-', [['chargingEnergy', 'dischargeEnergy', 'ani-heal1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]]]; bc_None_0 = [[[tech_Basic0, currentXP], [benefit_0, true], 'emptyPic', 0, command_None]]; bc_None_1 = [[[tech_Basic0, currentXP], [benefit_0, true], 'emptyPic', 0, command_None]]; bc_None_2 = [[[tech_Basic0, currentXP], [benefit_0, true], 'emptyPic', 0, command_None]]; bc_Fireman_0 = [[fireMan_tech1, currentXP], [fireMan_tech2, currentXP], [fireMan_techD, currentXP], [fireMan_techC, currentXP], [[benefit_11, false], 'firemanPic', 6, command_Block]]; bc_Fireman_1 = [[fireMan_tech1, currentXP], [fireMan_tech2, currentXP], [fireMan_techB, currentXP], [[benefit_11, false], 'firemanPic', 6, command_Block]]; bc_Fireman_2 = [[fireMan_tech1, currentXP], [fireMan_tech2, currentXP], [fireMan_techA, currentXP], [[benefit_11, false], 'firemanPic', 6, command_Block]]; bc_ChrSpecific_0 = [[x_chrSpec1, currentXP], [x_chrSpec2, currentXP], [[benefit_90, false], 'lightPic', 1, command_Recharge]]; bc_ChrSpecific_1 = [[z_chrSpec1, currentXP], [[benefit_91, false], 'wilyPic', 2, command_Enrage]]; bc_ChrSpecific_2 = [[s_chrSpec1, currentXP], [[benefit_92, false], 'cainPic', 3, command_Regen]]; bc_Gutman_0 = [[assist_beamShield, currentXP], [assist_busterShield, currentXP], [[benefit_25, false], 'gutmanPic', 4, command_Throw]]; bc_Gutman_1 = [[assist_fireShield, currentXP], [assist_electShield, currentXP], [assist_meleeShield, currentXP], [[benefit_21, false], 'gutmanPic', 4, command_Throw]]; bc_Gutman_2 = [[assist_iceShield, currentXP], [assist_bioShield, currentXP], [assist_fireShield, currentXP], [[benefit_21, false], 'gutmanPic', 4, command_Throw]]; bc_Restore_0 = [[restChip_tech1, currentXP], [restChip_tech2, currentXP], [restChip_tech3, currentXP], [[benefit_11, false], 'restorePic', 5, command_Regen]]; bc_Restore_1 = [[restChip_tech1, currentXP], [restChip_tech2, currentXP], [restChip_techB, currentXP], [[benefit_11, false], 'restorePic', 5, command_Regen]]; bc_Restore_2 = [[restChip_tech1, currentXP], [restChip_tech2, currentXP], [restChip_techB, currentXP], [assist_electShield, currentXP], [assist_bioShield, currentXP], [assist_meleeShield, currentXP], [assist_busterShield, currentXP], [[benefit_11, false], 'restorePic', 5, command_Regen]]; bc_Iceman_0 = [[ice_Missle1, currentXP], [elect_beam1, currentXP], [[benefit_51, false], 'icemanPic', 7, command_Steal]]; bc_Iceman_1 = [[ice_grenade1, currentXP], [elect_ball1, currentXP], [ice_Pillar1, currentXP], [[benefit_51, false], 'icemanPic', 7, command_Steal]]; bc_Iceman_2 = [[ice_freeze1, currentXP], [ice_tornado1, currentXP], [bio_Poisen1, currentXP], [[benefit_51, false], 'icemanPic', 7, command_Steal]]; gotoAndPlay('itemData'); } frame 65 { _root.battle_ObjectiveList = [['- Destroy all enemies. \r', ['none', 'none']], ['- Survive for 2 minutes. \r', ['victory', 'none']], ['- Survive for 5 minutes. \r', ['victory', 'none']], ['- Destroy the enemy in 2 minutes. \r', ['defeat', 'none']], ['- Destroy the enemy in 5 minutes. \r', ['defeat', 'none']]]; _root.battle_secObjectiveList = [['- Don\'t use any items. \r', 0], ['- Score a 5-hit combo. \r', 0], ['- Use an affliction clearing item or technique. \r', 0], ['- Don\'t block for the entire battle. \r', 0], ['- Don\'t use any techniques. \r', 0], ['- Use five items', 0], ['- Attack the enemy more than 20 times. \r', 0], ['- Defeat the enemy using ONLY melee attacks. \r', 0], ['- Defeat the enemy using ONLY buster attacks. \r', 0], ['- Defeat the enemy using ONLY techniques. \r', 0], ['- Defeat the enemy using ONLY items. \r', 0]]; } frame 74 { } frame 74 { item_0 = ['Low-grade Salve', 'Party', 'Single', 'H', 0, 100, 8, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Low-grade medical salve. Restores 100 HP\'s.']]; item_1 = ['Mid-grade Salve', 'Party', 'Single', 'H', 0, 500, 8, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Mid-grade medical salve. Restores 500 HP\'s.']]; item_2 = ['High-grade Salve', 'Party', 'Single', 'H', 0, 1500, 8, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['High-grade medical salve. Restores 1500 HP\'s.']]; item_3 = ['Miracle Salve', 'Party', 'Single', 'H', 0, 5000, 8, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Miracle-grade medical salve. Restores 5000 HP\'s.']]; item_4 = ['Energy Tank', 'Party', 'Single', 'H', 0, 9999, 8, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Restore all your health.']]; item_5 = ['Low-grade Ether', 'Party', 'Single', 'H', 0, 50, 5, 0, [['chargingEnergy', 'useItem', 'ani-mana1'], ['sp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Low-grade energy ether. Restores 50 SP\'s.']]; item_6 = ['Mid-grade Ether', 'Party', 'Single', 'H', 0, 200, 5, 0, [['chargingEnergy', 'useItem', 'ani-mana1'], ['sp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Mid-grade energy ether. Restores 200 SP\'s.']]; item_7 = ['High-grade Ether', 'Party', 'Single', 'H', 0, 1000, 5, 0, [['chargingEnergy', 'useItem', 'ani-mana1'], ['sp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['High-grade energy ether. Restores 1000 SP\'s.']]; item_10 = ['Emergency Reserves', 'Party', 'Revive', 'H', 0, 10, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['rv']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 2, 0, 0, 0, 0, 0, 0]], ['Revives a fallen party member.']]; item_11 = ['Anti-venom', 'Party', 'Single', 'H', 0, 1500, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['rpr']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 10, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Helps eliminates poisen.']]; item_12 = ['Wiring Set', 'Party', 'Single', 'H', 0, 1500, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['rpr']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 10, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Repairs short circuits.']]; item_13 = ['Neuro Stablizer', 'Party', 'Single', 'H', 0, 1500, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['rpr']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 10, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Remove any shocks or stuns.']]; item_14 = ['Eyedrops', 'Party', 'Single', 'H', 0, 1500, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['rpr']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 10, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Removes any targeting malfunctions.']]; item_15 = ['Kinetic Stabalizer', 'Party', 'Single', 'H', 0, 1500, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['rpr']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 10, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Removes any movement malfunctions.']]; item_16 = ['Repair Kit', 'Party', 'Single', 'H', 0, 1500, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['rpr']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 2, 2, 2], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Instantly repairs broken gear. Severely damaged gear may require more than one use.']]; item_17 = ['System Cleaner', 'Party', 'Single', 'H', 0, 1500, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['rpr']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 99, 99, 99, 99, 99, 99, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Removes all afflictions.']]; item_18 = ['Bad Mojo Vial', 'Party', 'Single', 'H', 0, 0, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 5, 5, 5], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['[???] A mysterious vial labeled simply as, "Bad Mojo". Effects are only felt in battle.']]; item_19 = ['Mixed Mojo Vial', 'Party', 'Single', 'H', 0, 0, 5, 0, [['chargingEnergy', 'useItem', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 5, 5, 5, 5, 5, 5, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 10, 10, 10, 10, 10, 10, 10]], ['[???] A mysterious vial labeled simply as, "Mixed Mojo". Effects are only felt in battle.']]; item_20 = ['Flash Grenade', 'Enemy', 'Single', 'E', 0, 600, 3, 30, [['chargingEnergy', 'useItem', 'ani-fire1'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 5, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]], ['Blind an enemy while inflicting major fire damage.']]; var tempList = []; var itemListData = [10, 8, 2, 1, 5, 4, 3, 0, 0, 0, 10, 2, 2, 2, 2, 2, 3, 3, 3, 5]; gotoAndPlay('chrData'); } frame 85 { function updateSData() { varX = 0; while (varX <= _root.party_Order.length - 1) { levelData = eval('_root.chrLevel_' + _root.party_Order[varX]); level = levelData[0]; bData = eval('_root.chrBData_' + _root.party_Order[varX]); sData = eval('_root.chrSData_' + _root.party_Order[varX]); sData[0] = Math.round(bData[0] * level); sData[1] = Math.round(bData[1] * level); sData[2] = Math.round(bData[2] * level); sData[3] = Math.round(bData[3] * level); sData[4] = Math.round(bData[4] * level); sData[5] = Math.round(bData[5] * level); sData[6] = Math.round(bData[6] * level); sData[7] = Math.round(bData[7] * level); sData[8] = Math.round(bData[8] * level); ++varX; } } function updateAData() { varX = 0; while (varX <= _root.party_Order.length - 1) { aData = eval('_root.chrAData_' + _root.party_Order[varX]); wData = eval('_root.chrWData_' + _root.party_Order[varX]); sData = eval('_root.chrSData_' + _root.party_Order[varX]); cData = eval('_root.chrCData_' + _root.party_Order[varX]); bcData = eval('_root.chrBCData_' + _root.party_Order[varX]); levelData = eval('_root.chrLevel_' + _root.party_Order[varX]); level = levelData[0]; headStats = eval('_root.WpnHead' + wData[0]); busterStats = eval('_root.WpnBuster' + wData[1]); meleeStats = eval('_root.WpnMelee' + wData[2]); armorStats = eval('_root.WpnArmor' + wData[3]); legStats = eval('_root.WpnLeg' + wData[4]); trinketStats = eval('_root.WpnTrinket' + wData[5]); aData[0] = headStats[1] + busterStats[1] + armorStats[1] + legStats[1] + trinketStats[1] + meleeStats[1]; aData[1] = headStats[2] + busterStats[2] + armorStats[2] + legStats[2] + trinketStats[2] + meleeStats[2]; aData[2] = headStats[3] + busterStats[3] + armorStats[3] + legStats[3] + trinketStats[3] + meleeStats[3]; aData[3] = headStats[4] + busterStats[4] + armorStats[4] + legStats[4] + trinketStats[4] + meleeStats[4]; aData[4] = headStats[5] + busterStats[5] + armorStats[5] + legStats[5] + trinketStats[5] + meleeStats[5]; aData[5] = headStats[6] + busterStats[6] + armorStats[6] + legStats[6] + trinketStats[6] + meleeStats[6]; aData[6] = headStats[7] + busterStats[7] + armorStats[7] + legStats[7] + trinketStats[7] + meleeStats[7]; aData[7] = headStats[8] + busterStats[8] + armorStats[8] + legStats[8] + trinketStats[8] + meleeStats[8]; aData[8] = headStats[9] + busterStats[9] + armorStats[9] + legStats[9] + trinketStats[9] + meleeStats[9]; aData[9] = headStats[10] + busterStats[10] + armorStats[10] + legStats[10] + trinketStats[10] + meleeStats[10]; aData[10] = headStats[11] + busterStats[11] + armorStats[11] + legStats[11] + trinketStats[11] + meleeStats[11]; aData[11] = headStats[12] + busterStats[12] + armorStats[12] + legStats[12] + trinketStats[12] + meleeStats[12]; aData[12] = headStats[13] + busterStats[13] + armorStats[13] + legStats[13] + trinketStats[13] + meleeStats[13]; aData[13] = headStats[14] + busterStats[14] + armorStats[14] + legStats[14] + trinketStats[14] + meleeStats[14]; fireResist = headStats[15][0][0] + busterStats[15][0][0] + armorStats[15][0][0] + legStats[15][0][0] + trinketStats[15][0][0] + meleeStats[15][0][0]; iceResist = headStats[15][0][1] + busterStats[15][0][1] + armorStats[15][0][1] + legStats[15][0][1] + trinketStats[15][0][1] + meleeStats[15][0][1]; beamResist = headStats[15][0][2] + busterStats[15][0][2] + armorStats[15][0][2] + legStats[15][0][2] + trinketStats[15][0][2] + meleeStats[15][0][2]; elecResist = headStats[15][0][3] + busterStats[15][0][3] + armorStats[15][0][3] + legStats[15][0][3] + trinketStats[15][0][3] + meleeStats[15][0][3]; bioResist = headStats[15][0][4] + busterStats[15][0][4] + armorStats[15][0][4] + legStats[15][0][4] + trinketStats[15][0][4] + meleeStats[15][0][4]; meleeResist = headStats[15][0][5] + busterStats[15][0][5] + armorStats[15][0][5] + legStats[15][0][5] + trinketStats[15][0][5] + meleeStats[15][0][5]; rangeResist = headStats[15][0][6] + busterStats[15][0][6] + armorStats[15][0][6] + legStats[15][0][6] + trinketStats[15][0][6] + meleeStats[15][0][6]; cData[0] = aData[0] + sData[0]; cData[1] = aData[1] + sData[1]; cData[2] = aData[2] + sData[2]; cData[3] = aData[3] + sData[3]; cData[4] = aData[4] + sData[4]; cData[5] = aData[5] + sData[5]; cData[6] = aData[6] + sData[6]; cData[7] = aData[7] + sData[7]; cData[8] = aData[8] + sData[8]; powerBonus = cData[2] / level * 100; attackPower = cData[2] * powerBonus + cData[2]; rangeBonus = cData[2] / level * 100; rangePower = cData[2] * powerBonus + cData[2]; etherBonus = cData[3] / level * 100; etherPower = cData[3] * etherBonus + cData[3]; cData[9] = aData[9] + attackPower; cData[10] = aData[10] + rangePower; cData[11] = aData[11] + etherPower; cData[12] = aData[12]; damageNegation = cData[4] / level * 100; magicNegation = cData[5] / level * 100; agility = cData[6] / level * 5 + 0.5; cData[13] = [agility, damageNegation, magicNegation]; cData[14] = [fireResist, iceResist, beamResist, elecResist, bioResist, meleeResist, rangeResist]; delete powerBonus; delete attackPower; delete attackPower; delete rangePower; delete etherBonus; delete etherPower; delete fireResist; delete iceResist; delete beamResist; delete elecResist; delete bioResist; delete meleeResist; delete rangeResist; delete damageNegation; delete magicNegation; ++varX; } } function updateTData() { varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); levelData = eval('_root.chrLevel_' + _root.party_Order[varX]); level = levelData[0]; tData[0] = cData[0]; tData[1] = cData[1]; tData[2] = level; tData[3] = ['P_Afflictions', 0, 0, 0, 0, 0]; tData[4] = ['P_Shields', 0, 0, 0, 0, 0, 0, 0, 0]; tData[5] = ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]; ++varX; } } function checkTData() { varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); levelData = eval('_root.chrLevel_' + _root.party_Order[varX]); level = levelData[0]; if (tData[0] > cData[0]) { tData[0] = cData[0]; } if (tData[1] > cData[1]) { tData[1] = cData[1]; } if (tData[0] <= 0) { tData[0] = 0; } if (tData[1] <= 0) { tData[1] = 0; } ++varX; } } function updateBCData() { learnedNewSkill = []; newSkillCounter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); bcData = eval('_root.chrBCData_' + _root.party_Order[varX]); cmdData = eval('_root._root.chrCMD_' + _root.party_Order[varX]); cmdList = eval('_root._root.chrCMDList_' + _root.party_Order[varX]); skillList = eval('_root.chrSkillList_' + _root.party_Order[varX]); readAll = bcData.length - 1; slot = 0; while (slot <= readAll) { masteryTotal = bcData[slot].length - 1; masteryCount = 0; lastSlot = bcData[slot].length - 1; varY = 0; while (varY < bcData[slot].length - 1) { if (bcData[slot][varY][1] >= bcData[slot][varY][0][4]) { bcData[slot][varY][1] = bcData[slot][varY][0][4]; ++masteryCount; } currentXP = bcData[slot][varY][1]; neededXP = bcData[slot][varY][0][4]; if (masteryCount >= masteryTotal) { bcData[slot][lastSlot][0][1] = true; } ++varY; } cmdData[slot] = bcData[slot][lastSlot][3]; ++slot; } varA = 0; while (varA <= 10) { cmdList[varA] = [' ']; ++varA; } blockCount = 0; regenCount = 1; rechargeCount = 1; scanCount = 1; enrageCount = 0; itemCount = 1; mixCount = 0; stealCount = 0; mugCount = 0; counterCount = 0; throwCount = 0; counter = 0; varA = 0; while (varA <= cmdData.length) { if (cmdData[varA][0] == 'Block') { ++blockCount; } if (cmdData[varA][0] == 'Regenerate') { ++regenCount; } if (cmdData[varA][0] == 'Scan') { ++jumpCount; } if (cmdData[varA][0] == 'Enrage') { ++enrageCount; } if (cmdData[varA][0] == 'Items') { ++itemCount; } if (cmdData[varA][0] == 'Mix') { ++mixCount; } if (cmdData[varA][0] == 'Steal') { ++stealCount; } if (cmdData[varA][0] == 'Mug') { ++mugCount; } if (cmdData[varA][0] == 'Recharge') { ++rechargeCount; } if (cmdData[varA][0] == 'Counter') { ++counterCount; } if (cmdData[varA][0] == 'Throw') { ++throwCount; } ++varA; } cmdList[0] = _root.command_Techs; ++counter; if (regenCount > 0) { cmdList[counter] = _root.command_Regen; ++counter; } if (rechargeCount > 0) { cmdList[counter] = _root.command_Recharge; ++counter; } if (scanCount > 0) { cmdList[counter] = _root.command_Scan; ++counter; } if (itemCount > 0) { cmdList[counter] = _root.command_Items; ++counter; } varA = 0; while (varA <= 10 - counter) { cmdList.pop(); ++varA; } varZ = 0; while (varZ <= bcData.length - 1) { lastSlot = bcData[varZ].length - 1; benefit = bcData[varZ][lastSlot][0][0]; if (bcData[varZ][lastSlot][0][1] == true) { cData[0] += benefit[1][0]; cData[1] += benefit[2][0]; cData[2] += benefit[3][0]; cData[3] += benefit[4][0]; cData[4] += benefit[5][0]; cData[5] += benefit[6][0]; cData[6] += benefit[7][0]; cData[7] += benefit[8][0]; cData[8] += benefit[9][0]; cData[9] += benefit[10][0]; cData[10] += benefit[11][0]; cData[11] += benefit[12][0]; cData[0] += Math.round(Math.round(cData[0] * benefit[1][1]) * 0.01); cData[1] += Math.round(Math.round(cData[1] * benefit[2][1]) * 0.01); cData[2] += Math.round(Math.round(cData[2] * benefit[3][1]) * 0.01); cData[3] += Math.round(Math.round(cData[3] * benefit[4][1]) * 0.01); cData[4] += Math.round(Math.round(cData[4] * benefit[5][1]) * 0.01); cData[5] += Math.round(Math.round(cData[5] * benefit[6][1]) * 0.01); cData[6] += Math.round(Math.round(cData[6] * benefit[7][1]) * 0.01); cData[7] += Math.round(Math.round(cData[7] * benefit[8][1]) * 0.01); cData[8] += Math.round(Math.round(cData[8] * benefit[9][1]) * 0.01); cData[9] += Math.round(Math.round(cData[9] * benefit[10][1]) * 0.01); cData[10] += Math.round(Math.round(cData[10] * benefit[11][1]) * 0.01); cData[11] += Math.round(Math.round(cData[11] * benefit[12][1]) * 0.01); } ++varZ; } skillTemp = [' ']; tempList = [' ']; varB = 0; while (varB <= skillTemp.length + 10) { skillTemp.pop(); ++varB; } varB = 0; while (varB <= skillList.length + 10) { skillList.pop(); ++varB; } varB = 0; while (varB <= tempList.length + 10) { tempList.pop(); ++varB; } counter = 0; readAll = bcData.length - 1; slot = 0; while (slot <= readAll) { lastSlot = bcData[slot].length - 1; varY = 0; while (varY < bcData[slot].length - 1) { currentXP = bcData[slot][varY][1]; neededXP = bcData[slot][varY][0][4]; if (currentXP >= neededXP) { skillTemp[counter] = bcData[slot][varY]; if (bcData[slot][varY][0][10][_root.party_Order[varX]] == false) { bcData[slot][varY][0][10][_root.party_Order[varX]] = true; learnedNewSkill[newSkillCounter] = [_root.party_Order[varX], bcData[slot][varY][0][0]]; ++newSkillCounter; } ++counter; } ++varY; } ++slot; } counter = 0; skillTemp.reverse(); varZ = 0; while (varZ <= skillTemp.length) { varA = varZ + 1; while (varA <= skillTemp.length) { if (skillTemp[varZ] == skillTemp[varA]) { tempList[counter] = [varA]; ++counter; } ++varA; } ++varZ; } varA = 0; while (varA <= tempList.length - 1) { skillTemp[tempList[varA]] = 'DUPLICATE'; ++varA; } counter = 0; varB = 0; while (varB <= skillTemp.length - 1) { if (skillTemp[varB] != 'DUPLICATE') { skillList[counter] = skillTemp[varB]; ++counter; } ++varB; } ++varX; } } function updateACData() { counter0 = 0; counter1 = 0; counter2 = 0; totalPartyNum = _root.party_Order.length - 1; _root.chrCAData_0 = []; _root.chrCAData_1 = []; _root.chrCAData_2 = []; varX = 0; while (varX <= totalPartyNum) { aData = eval('_root.chrAData_' + _root.party_Order[varX]); wData = eval('_root.chrWData_' + _root.party_Order[varX]); sData = eval('_root.chrSData_' + _root.party_Order[varX]); cData = eval('_root.chrCData_' + _root.party_Order[varX]); bcData = eval('_root.chrBCData_' + _root.party_Order[varX]); caData = eval('_root.chrCAData_' + _root.party_Order[varX]); cRefund = eval('_root.chipRefund_' + _root.party_Order[varX]); counter = eval('counter' + varX); if (_root.chipSwitch[0] == true) { chipName = eval('bc_None_' + varX); caData[counter] = ['Unequip', 'emptyPic', chipName, 0]; ++counter; } if (_root.chipSwitch[1] == true and _root.numOfChips[1] >= 0) { if (_root.party_Order[varX] == 0) { chipName = eval('bc_ChrSpecific_' + _root.party_Order[varX]); caData[counter] = ['Light Chip', 'lightPic', chipName, 1]; ++counter; } if (_root.party_Order[varX] == 1 and _root.numOfChips[2] >= 0) { chipName = eval('bc_ChrSpecific_' + _root.party_Order[varX]); caData[counter] = ['Wily Chip', 'wilyPic', chipName, 2]; ++counter; } if (_root.party_Order[varX] == 2 and _root.numOfChips[3] >= 0) { chipName = eval('bc_ChrSpecific_' + _root.party_Order[varX]); caData[counter] = ['Cain Chip', 'cainPic', chipName, 3]; ++counter; } } weaponSlot = wData[5]; trinketName = (eval('_root.WpnTrinket' + weaponSlot))[0]; if (_root.chipSwitch[2] == true) { if (trinketName == 'Gutman Charm' and _root.numOfChips[4] >= 0) { chipName = eval('bc_Gutman_' + _root.party_Order[varX]); caData[counter] = ['Gutman Chip', 'gutmanPic', chipName, 4]; ++counter; } } if (_root.chipSwitch[3] == true) { if (trinketName == 'First Aid Kit' and _root.numOfChips[5] >= 0) { chipName = eval('bc_Restore_' + _root.party_Order[varX]); caData[counter] = ['Restore Chip', 'restorePic', chipName, 5]; ++counter; } } if (_root.chipSwitch[4] == true) { if (_root.numOfChips[6] >= 0) { chipName = eval('bc_Fireman_' + _root.party_Order[varX]); caData[counter] = ['Fireman Chip', 'firemanPic', chipName, 6]; ++counter; } } if (_root.chipSwitch[5] == true) { if (_root.numOfChips[6] >= 0) { chipName = eval('bc_Iceman_' + _root.party_Order[varX]); caData[counter] = ['Iceman Chip', 'icemanPic', chipName, 7]; ++counter; } } ++varX; } } _root.chrIData_0 = ['X', 'healthBarPic0', 'battleMovie_0', '', 'profilePic_MegaMan']; _root.chrWData_0 = [0, 0, 0, 0, 0, 0]; _root.chrLevel_0 = [13, 1340]; _root.chrRep_0 = []; _root.chrRData_0 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrAData_0 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrBData_0 = [18, 7, 4.2, 3.8, 8, 4, 4.2, 5, 5]; _root.chrCData_0 = []; _root.chrSData_0 = []; _root.chrTData_0 = []; _root.chrBCData_0 = []; _root.chrCAData_0 = []; _root.chrCMD_0 = []; _root.chrCMDList_0 = []; _root.chrSkillList_0 = []; _root.combatData_0 = [100, false, 0, 0, 'inc', 0]; _root.supportMoves_0 = [[_root.restChip_tech0], [_root.support_Gernade]]; _root.chrIData_1 = ['ZERO', 'healthBarPic1', 'battleMovie_1', '', 'profilePic_Zero']; _root.chrWData_1 = [0, 0, 0, 0, 0, 0]; _root.chrLevel_1 = [16, 1590]; _root.chrRep_1 = []; _root.chrRData_1 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrAData_1 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrBData_1 = [15, 4, 5.2, 5.5, 12, 3, 5.8, 5, 0]; _root.chrCData_1 = []; _root.chrSData_1 = []; _root.chrTData_1 = []; _root.chrBCData_1 = []; _root.chrCAData_1 = []; _root.chrCMD_1 = []; _root.chrCMDList_1 = []; _root.chrSkillList_1 = []; _root.combatData_1 = [80, false, 0, 0, 'inc', 0]; _root.supportMoves_1 = [[_root.restChip_tech0], [_root.support_Gernade]]; _root.chrIData_2 = ['SIGMA', 'healthBarPic2', 'battleMovie_2', '', 'profilePic_Sigma']; _root.chrWData_2 = [0, 0, 0, 0, 0, 0]; _root.chrLevel_2 = [14, 1310]; _root.chrRep_2 = []; _root.chrRData_2 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrAData_2 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrBData_2 = [18, 5, 6, 3.1, 5, 2, 3.5, 4, 0]; _root.chrCData_2 = []; _root.chrSData_2 = []; _root.chrTData_2 = []; _root.chrBCData_2 = []; _root.chrCAData_2 = []; _root.chrCMD_2 = []; _root.chrCMDList_2 = []; _root.chrSkillList_2 = []; _root.combatData_2 = [10, false, 0, 0, 'inc', 0]; _root.supportMoves_2 = [[_root.restChip_tech0], [_root.support_Gernade]]; _root.chrIData_10 = ['Roy', 'healthBarPic10', 'battleMovie_0']; _root.chrWData_10 = [0, 0, 0, 0, 0, 0]; _root.chrLevel_10 = [2, 0]; _root.chrAData_10 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrBData_10 = [18, 7, 3.2, 3.8, 8, 4, 4.2, 5, 5]; _root.chrCData_10 = []; _root.chrSData_10 = []; _root.chrTData_10 = []; _root.chrBCData_10 = []; _root.chrCAData_10 = []; _root.chrCMD_10 = []; _root.chrCMDList_10 = []; _root.chrSkillList_10 = []; _root.supportMoves_10 = [[_root.restChip_tech0], [_root.support_Grenade]]; chipSwitch = [true, true, true, true, true, true]; numOfChips = ['X', 1, 2, 3, 4, 5, 6, 7, 8]; refChips = ['Empty', 'Light Chip', 'Wily Chip', 'Sigma Chip', 'Gutman Chip', 'Restore Chip', 'Fireman Chip', 'Iceman Chip']; delete aData; delete wData; delete sData; delete cData; delete bcData; delete cmdData; delete headStats; delete busterStats; delete armorStats; delete legStats; delete trinketStats; delete commandName; delete jumpCount; delete regenCount; delete blockCount; delete enrageCount; delete tempList; delete skillList; delete skillTemp; delete varA; delete varB; delete varC; delete varX; delete varY; delete varZ; delete _root.tempList; delete counter; delete readAll; delete slot; delete lastSlot; delete commandData; delete blockCount; delete regenCount; delete jumpCount; delete enrageCount; delete mixCount; delete stealCount; delete mugCount; delete rechargeCount; delete counterCount; delete throwCount; delete masteryCount; delete masteryTotal; delete benefit; gotoAndPlay('firstGame'); } frame 85 { _root.enemyIData_0 = ['Bomber Joe', ' ', 'battle_BomberJoe', _global.enemyLevel, [55, 10]]; _root.enemyBaseData_0 = [['blank'], [30, 7, 4.2, 3.8, 2.2, 2, 3.2, 5, 0], [0, 0, 0, 0, 0, 0, 0]]; _root.enemySkills_0 = [[[3, 2, 2], [['Punch', 3, 'M', 100, 'melee'], [' ']], ['', '', 'Single', 'T', '', 0, '', 0, [['', '', 'ani-explosion1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'none', '']], [[1, 4, 1], [['Fire Grenade', 2, 'R', 100, 'ranged'], [' ']], ['', '', 'Single', 'T', '', 0, '', 10, [['', '', 'ani-fireGrenade'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', 'is targeting', 'splsh', '']], [[1, 4, 1], [['Ice Grenade', 2, 'R', 100, 'ranged'], [' ']], ['', '', 'Single', 'T', '', 0, '', 10, [['', '', 'ani-iceGrenade1'], []], [[0, 100, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', 'is targeting', 'splsh', '']], [[3, 2, 1], [['Guard Boost', 4, 'S', 100, 'ether'], [' ']], ['', '', 'Single', 'A', '', 40, '', 30, [['', '', 'ani-shield'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 90, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['talk', 'Bomber Joe is casting.', 'splsh', '']], [[0, 0, 8], [['Recover', 8, 'S', 100, 'ether'], [' ']], ['', '', 'Single', 'H', '', 40, '', 20, [['', '', 'ani-heal1'], ['hp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 3, 0, 0, 0, 0, 0, 0]]], ['talk', 'Bomber Joe is injured.', 'none', '']]]; _root.enemyIData_1 = ['Canon Joe', ' ', 'battle_CanonJoe', _global.enemyLevel, [25, 15]]; _root.enemyBaseData_1 = [['blank'], [35, 10, 3.2, 1.8, 5, 8, 2.2, 5, 0], [50, 0, 0, 0, 0, 0, 20]]; _root.enemySkills_1 = [[[8, 3, 1], [['Shell', 3, 'R', 100, 'ranged'], [' ']], ['', '', 'Single', 'T', '', 80, '', 30, [['', '', 'ani-explosion1'], []], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'talk', 'Take this!']], [[4, 3, 1], [['Scatter Shot', 2, 'R', 100, 'ranged'], [' ']], ['', '', 'All', 'T', '', 0, '', 30, [['', '', 'ani-fire1'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['talk', 'Canon Joe is loading a shell.', 'splsh', '']], [[4, 3, 1], [['Freeze Shot', 2, 'R', 100, 'ranged'], [' ']], ['', '', 'Single', 'T', '', 0, '', 30, [['', '', 'ani-ice1'], []], [[0, 100, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['talk', 'Canon Joe is loading a shell.', 'splsh', '']], [[1, 3, 8], [['Flame Pillar', 1, 'E', 100, 'ranged'], [' ']], ['', '', 'Single', 'T', '', 80, '', 30, [['', '', 'ani-pillar1'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['talk', 'Canon Joe is loading a LARGE shell.', 'splsh', '']]]; _root.enemyIData_2 = ['Flamey', ' ', 'battle_Flamey', _global.enemyLevel, [25, 18]]; _root.enemyBaseData_2 = [['blank'], [15, 12, 2.2, 2.8, 2.2, 2, 2.2, 5, 0], [100, -100, 0, 0, 0, 0, 0]]; _root.enemySkills_2 = [[[0, 0, 0], [['Respark', 1, 'S', 100, 'ether'], [' ']], ['', '', 'Single', 'H', '', 80, '', 0, [['', '', 'ani-mana1'], ['sp']], [[0, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'splsh', '']], [[1, 1, 1], [['Kick', 8, 'M', 20, 'melee'], [' ']], ['', '', 'Single', 'T', '', 0, '', 30, [['', '', 'ani-fire1'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'none', '']], [[2, 2, 1], [['Fire Storm', 10, 'E', 80, 'ranged'], [' ']], ['', '', 'All', 'T', '', 55, '', 30, [['', '', 'ani-explosion1'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'splsh', '']], [[2, 3, 3], [['Engulf', 10, 'E', 100, 'ranged'], [' ']], ['', '', 'Single', 'T', '', 55, '', 30, [['', '', 'ani-pillar2'], []], [[100, 0, 0, 0, 0, 0, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'splsh', '']]]; _root.enemyIData_3 = ['Grunt Arm', ' ', 'battle_gruntArm', _global.enemyLevel, [55, 12]]; _root.enemyBaseData_3 = [['blank'], [30, 19, 3.2, 1.2, 7.8, 1, 3.2, 5, 0], [0, 0, -50, -50, 0, 20, 0]]; _root.enemySkills_3 = [[[2, 3, 2], [['Punch', 10, 'M', 100, 'melee'], [' ']], ['', '', 'Single', 'T', '', 0, '', 0, [['', '', 'ani-impact'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'none', '']], [[2, 2, 2], [['Crush', 6, 'M', 60, 'special'], [' ']], ['', '', 'Single', 'T', '', 0, '', 10, [['', '', 'ani-impact'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'splsh', '']]]; _root.enemyIData_9 = ['Swordman', ' ', 'battle_Swordman', _global.enemyLevel, [125, 20]]; _root.enemyBaseData_9 = [['blank'], [160, 19, 3.2, 1.8, 47.8, 1, 3.2, 5, 5], [-50, 0, 0, 0, 0, 40, 40]]; _root.enemySkills_9 = [[[20, 3, 2], [['Slash', 10, 'M', 100, 'melee'], [' ']], ['', '', 'Single', 'T', '', 0, '', 0, [['', '', 'ani-none'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'none', '']], [[2, 2, 2], [['Tri Slash', 6, 'M', 60, 'ranged'], [' ']], ['', '', 'Single', 'T', '', 0, '', 10, [['', '', 'ani-none'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'splsh', '']], [[4, 4, 4], [['Tornado Slash', 4, 'M', 100, 'special'], [' ']], ['', '', 'Single', 'T', '', 0, '', 10, [['', '', 'ani-noneShort'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 3, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['talk', 'Swordman is winding up...', 'splsh', '']]]; _root.enemyIData_10 = ['Frost Giant', ' ', 'battle_Boss1', 19, [325, 100]]; _root.enemyBaseData_10 = [['blank'], [235, 110, 4.2, 8.800000000000001, 12, 4, 6.2, 5, 8], [-100, 100, 20, 20, 20, 20, 20]]; _root.enemySkills_10 = [[[8, 3, 2], [['Attack', 3, 'M', 50, 'melee'], [' ']], ['', '', 'Single', 'T', '', 0, '', 30, [['', '', 'ani-explosion1'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', '', 'talk', 'Take this!']], [[1, 3, 2], [['Tackle', 8, 'M', 100, 'ranged'], [' ']], ['', '', 'All', 'T', '', 0, '', 30, [['', '', 'ani-explosion1'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['talk', 'Frost Giant is prepared to charge.', 'talk', 'RRRRRRRRRGH!!']], [[1, 2, 2], [['Pulverize', 1, 'M', 100, 'special'], [' ']], ['', '', 'Single', 'T', '', 0, '', 30, [['', '', 'ani-explosion1'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 0, 0, 0, 0, 0, 0, 0, 0], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['talk', 'Frost Giant is powering up!', 'splsh', '']], [[1, 2, 2], [['Break', 1, 'M', 50, 'melee'], [' ']], ['', '', 'Single', 'T', '', 0, '', 30, [['', '', 'ani-explosion1'], []], [[0, 0, 0, 0, 0, 100, 0], ['Afflictions', 0, 4, 0, 0, 0, 0, 4, 4, 4], ['P_Shields', 0, 0, 0, 0, 0, 0, 0], ['P_Buffs', 0, 0, 0, 0, 0, 0, 0]]], ['none', 'is being targeted.', 'splsh', '']]]; _root.enemyTData_0 = []; _root.enemyTData_1 = []; _root.enemyTData_2 = []; _root.enemyTData_3 = []; _root.enemyTData_4 = []; _root.enemyTData_5 = []; _root.enemyTData_6 = []; _root.enemyCombatData_0 = []; _root.enemyCombatData_1 = []; _root.enemyCombatData_2 = []; _root.enemyCombatData_3 = []; _root.enemyCombatData_4 = []; _root.enemyCombatData_5 = []; _root.enemyCombatData_6 = []; } frame 94 { _root.party_Order = [0, 1, 2, 10]; _root.totalPartyNum = _root.party_Order.length - 1; varX = 0; while (varX <= _root.party_Order.length - 1) { (eval('_root.chrIData_' + varX))[3] = _global.xpPoints; ++varX; } _root.updateSData(); _root.updateAData(); varX = 0; while (varX <= _root.party_Order.length - 1) { cData = eval('_root.chrCData_' + _root.party_Order[varX]); bcData = eval('_root.chrBCData_' + _root.party_Order[varX]); varZ = 0; while (varZ <= cData[12] - 1) { bcData[varZ] = eval('_root.bc_None_' + varX); ++varZ; } bcData[4] = eval('_root.bc_Gutman_' + _root.party_Order[varX]); bcData[3] = eval('_root.bc_Iceman_' + _root.party_Order[varX]); bcData[2] = eval('_root.bc_Fireman_' + _root.party_Order[varX]); bcData[1] = eval('_root.bc_Restore_' + _root.party_Order[varX]); bcData[0] = eval('_root.bc_ChrSpecific_' + _root.party_Order[varX]); ++varX; } _root.updateBCData(); _root.updateTData(); _root.updateACData(); _root.party_Order = [0, 1, 2]; _root.support_Party = [[10], [_root.supportMoves_10]]; } frame 94 { function battleInformationData(num) { if (num == 0) { _root.challengeList = [[0, 2, 2, 1, [18, 5], [[0], ['t1', 't1', 't2']]], [1, 2, 0, 0, [18, 7], [[0], ['t1', 't1', 't2']]], [2, 2, 1, 1, [18, 8], [[0], ['t1', 't1', 't2']]], [3, 2, 2, 0, [18, 9], [[0], ['t1', 't1', 't2']]], [4, 2, 3, 1, [18, 10], [[0], ['t1', 't1', 't2']]], [5, 2, 4, 2, [18, 11], [[0], ['t1', 't1', 't2']]], [6, 2, 2, 2, [18, 12], [[0], ['t1', 't1', 't2']]], [7, 2, 2, 2, [18, 12], [[0], ['t1', 't1', 't2']]]]; _root.enemyFormationData = [[[3, 2], [11, 17]], [[0, 1], [10, 14, 16]], [[2, 1, 2], [11, 13, 18]], [[3, 3, 3], [12, 14, 16]], [[2, 1, 1, 0], [10, 14, 16, 15]], [[0, 0, 1, 1, 3], [16, 10, 12, 18, 14]], [[9, 3, 3], [14, 10, 16]], [[10], [14]]]; _root.partyFormationData = [[0], [0, 1], [0, 1, 2], [0, 1], [1, 0], [0, 1, 2]]; } } _root.mapTransferData = [['stage0_MainMC'], [0, 'fadeIn'], []]; _root.area0Switches = [false, false, false, false, false, false, false, false, false]; _root.areaBSwitches = [false, false, false, false, false, false, false, false, false, false, false, false, false]; _root.map0_RoomData = [[], [false, false, false]]; _root.mapB_RoomData = [[0], [false]]; } movieClip 1778 { frame 1 { _global.loadNewAreaLevel = this; } frame 3 { attachMovie(_root.mapTransferData[0], 'currentStageIsThis', {'_x': 0, '_y': 0}); attachMovie('bgMask', 'bgMask', 101, {'_x': 0, '_y': 0}); currentStageIsThis.setMask(bgMask); currentStageIsThis._xscale = _root.gameResolution[0]; currentStageIsThis._yscale = _root.gameResolution[0]; currentStageIsThis._x = _root.gameResolution[1]; currentStageIsThis._y = _root.gameResolution[2]; bgMask._xscale = _root.gameResolution[0]; bgMask._yscale = _root.gameResolution[0]; bgMask._x = _root.gameResolution[1]; bgMask._y = _root.gameResolution[2]; } frame 16 { stop(); } } frame 113 { stop(); }




http://swfchan.com/12/56354/info.shtml
Created: 19/4 -2019 12:11:17 Last modified: 19/4 -2019 12:11:17 Server time: 16/05 -2024 05:13:47