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

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

Megaman X - RPG Chapter 0.swf

This is the info page for
Flash #57376

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


ActionScript [AS1/AS2]
Combined Code
movieClip 2 potion1 { } movieClip 4 potion0 { } movieClip 6 potion3 { } movieClip 8 potion2 { } movieClip 9 event0_Next { frame 1 { _root.mapTransferData = [['levelMain_1'], [0, 'startOnDrop'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 10 mockBattle { frame 13 { _global.mapDataLayer.endBattle('VICTORY'); stop(); } } movieClip 14 profilePic_Zero { } movieClip 17 profilePic_Sigma { } movieClip 20 profilePic_MegaMan { } movieClip 23 { } movieClip 24 readyClipFinal { frame 12 { _global.voice0.start(); } frame 61 { _parent.play(); this.stop(); } } movieClip 26 { } // unknown tag 88 length 79 // unknown tag 88 length 84 movieClip 33 { } movieClip 34 { frame 1 { trace('_global.victoryLayer.levelUpArray: ' + _global.victoryLayer.levelUpArray); if (_global.victoryLayer.levelUpArray.length <= 0) { stop(); } else { gotoAndPlay('loop'); } } frame 5 { iData = eval('_root.chrIData_' + _global.victoryLayer.levelUpArray[0]); levelText.inText.text = iData[0] + ' LEVELED UP!'; _global.fx7.start(); } frame 56 { _global.victoryLayer.levelUpArray.shift(); if (_global.victoryLayer.levelUpArray.length <= 0) { stop(); } else { gotoAndPlay('loop'); } } } movieClip 38 xpPoints { frame 11 { quickSkip = new Object(); quickSkip.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(quickSkip); gotoAndPlay('endClip'); Key.removeListener(quickSkip); if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } } }; Key.addListener(quickSkip); xpText.text = _parent.totalXP; spText.text = _parent.totalSP; } frame 33 { stop(); } frame 39 { Key.removeListener(quickSkip); _parent.play(); stop(); } } movieClip 42 techPoints { frame 11 { whoText.text = _root.learnedNewTech[_root.learnedNewTech.length - 1][0] + ' HAS LEARNED A NEW SKILL!'; newMoveText.text = _root.learnedNewTech[_root.learnedNewTech.length - 1][1]; _root.learnedNewTech.pop(); if (_root.gameVariables[0][0][3] == true) { _global.fx7.start(); } } frame 39 { if (_root.learnedNewTech.length <= 0) { _parent.play(); stop(); } if (_root.learnedNewTech.length >= 1) { gotoAndPlay('moveLoop'); } } } movieClip 44 { frame 45 { stop(); } } movieClip 45 missionClearClip { frame 18 { if (_root.gameVariables[0][0][3] == true) { _global.fx44.start(); } } frame 73 { _parent.play(); stop(); } frame 92 { _parent.play(); stop(); } } movieClip 47 levelSelect { frame 1 { _global.loadNewAreaLevel = this; } frame 5 { attachMovie(_root.mapTransferData[0], 'currentStageIsThis', {'_x': 0, '_y': 0}); attachMovie('stageMaskMC', 'stageMask', 101, {'_x': 0, '_y': 0}); currentStageIsThis.setMask(stageMask); ++_root.gamePlay_Stats[4][0]; currentStageIsThis._xscale = _root.gameResolution[0]; currentStageIsThis._yscale = _root.gameResolution[0]; currentStageIsThis._x = _root.gameResolution[1]; currentStageIsThis._y = _root.gameResolution[2]; stageMask._xscale = _root.gameResolution[0]; stageMask._yscale = _root.gameResolution[0]; stageMask._x = _root.gameResolution[1]; stageMask._y = _root.gameResolution[2]; } frame 15 { currentStageIsThis._xscale = _root.gameResolution[0]; currentStageIsThis._yscale = _root.gameResolution[0]; currentStageIsThis._x = _root.gameResolution[1]; currentStageIsThis._y = _root.gameResolution[2]; stageMask._xscale = _root.gameResolution[0]; stageMask._yscale = _root.gameResolution[0]; stageMask._x = _root.gameResolution[1]; stageMask._y = _root.gameResolution[2]; } frame 19 { stop(); } } movieClip 48 { } movieClip 49 { } movieClip 50 { } movieClip 51 { } movieClip 64 { } movieClip 79 0Intro { frame 1 { } frame 9 { _global.mapDataLayer.controlBuffer = ['standLoop']; } frame 15 { if (_global.mapDataLayer.controlBuffer[0] == 'standLoop') { gotoAndPlay('standLoop'); } else { gotoAndPlay(_global.mapDataLayer.controlBuffer[0]); } } frame 33 { _global.mapDataLayer.controlBuffer = ['running']; ++_root.gamePlay_Stats[4][1]; } frame 39 { if (_global.mapDataLayer.game_STATE == 'PLAY') { ++_global.mapDataLayer.walkTally; } } frame 48 { if (_global.mapDataLayer.game_STATE == 'PLAY') { ++_global.mapDataLayer.walkTally; } } frame 58 { if (_global.mapDataLayer.controlBuffer[0] == 'running') { gotoAndPlay('running'); } else { gotoAndPlay(_global.mapDataLayer.controlBuffer[0]); } } frame 59 { _global.mapDataLayer.controlBuffer = ['standing']; } frame 70 { gotoAndPlay(_global.mapDataLayer.controlBuffer[0]); } frame 76 { _global.mapDataLayer.controlBuffer = ['fallLoop']; } frame 92 { gotoAndPlay(_global.mapDataLayer.controlBuffer[0]); } frame 98 { gotoAndPlay(_global.mapDataLayer.controlBuffer[0]); } frame 99 { _global.mapDataLayer.runSpd = 0; } frame 120 { if (_global.mapDataLayer.controlBuffer[0] == 'jumpLand') { _global.mapDataLayer.controlBuffer = ['standing']; gotoAndPlay('standing'); } else { gotoAndPlay(_global.mapDataLayer.controlBuffer[0]); } } } movieClip 86 { frame 101 { gotoAndPlay('ready'); } } movieClip 95 { } movieClip 97 { } movieClip 101 { } movieClip 102 { } movieClip 105 { } movieClip 109 { } movieClip 112 { } movieClip 113 { } movieClip 114 { } movieClip 115 { } movieClip 116 { } movieClip 118 [NGL]_LOADER { frame 1 { function timerHandler() { if (!loadingComplete) { var v2 = _root.getBytesLoaded() / _root.getBytesTotal(); loadingMain.fileText.text = Math.round(_root.getBytesLoaded() / 1000) + '/' + Math.round(_root.getBytesTotal() / 1000); loadingMain.percentText.text = Math.round(100 * v2) + '%'; loadingMain.loadBar._xscale = 100 * v2; if (v2 >= 1) { loadingComplete = true; loadBar.gotoAndPlay('ready'); gotoAndPlay('loaded'); } else { loadingComplete = false; } } dt = getTimer() - time; time += dt; frameAccum += dt; updateAfterEvent(); } var FRAME_TIME = 33.33333333333334; 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(); stop(); } frame 23 { stop(); _root.gotoAndPlay('afterPreLoad'); } } frame 1 { function updateResolution() { if (_root.gameVariables[1][1][0] == 'low') { gameResolution = [70, 120, 100]; } 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 = [90, 40, 30]; } } gameVariables = [[[_root.enemyFormationData[_global.battleNumber][2], 100, true, true]], [[true, 2], ['med']], [[true, true]]]; updateResolution(); _root.dataPacket = SharedObject.getLocal('gameSettings'); if (_root.dataPacket.data.gameSettings == undefined) { _root.dataPacket.data.gameSettings = _root.gameVariables; } else { _root.updateResolution(); } } frame 1 { stop(); } movieClip 121 { frame 1 { this._xscale = _root.gameResolution[0]; this._yscale = _root.gameResolution[0]; this._x = _root.gameResolution[1]; this._y = _root.gameResolution[2]; } } // unknown tag 88 length 84 // unknown tag 88 length 79 movieClip 132 { } movieClip 134 { } movieClip 143 { frame 48 { stop(); _parent.play(); } } movieClip 150 { frame 1 { function onEnterFrame() { headerText.text = _parent.header_Text; save1Text.text = _parent.line_0; save2Text.text = _parent.line_1; save3Text.text = _parent.line_2; footerText.text = _parent.footer_Text; } } } movieClip 153 { } movieClip 154 checkDataMC { frame 1 { _root.saveDataPacket_0 = [[], [], [[0, 1, 2, 3, 4, ['NEW FILE 1', 'NO SAVE DATA']]]]; _root.saveDataPacket_1 = [[], [], [[0, 1, 2, 3, 4, ['NEW FILE 2', 'NO SAVE DATA']]]]; _root.saveDataPacket_2 = [[], [], [[0, 1, 2, 3, 4, ['NEW FILE 3', 'NO SAVE DATA']]]]; _root.tempSavePacket = []; header_Text = ' SEARCHING FOR SAVE DATA...'; line_0 = ' '; line_1 = ' '; line_2 = ' '; footer_Text = ' '; warning._visible = false; dataFound._visible = false; deleteAll = false; counter = 0; } frame 9 { spaceBar_Listener = new Object(); spaceBar_Listener.onKeyDown = function () { if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } gotoAndPlay('loadLoop'); Key.removeListener(spaceBar_Listener); } }; if (deleteAll == true) { varX = 0; while (varX <= 2) { _root.dataPacket = SharedObject.getLocal('savePacket' + varX); delete _root.dataPacket.data.saveData; ++varX; } _root.dataPacket = SharedObject.getLocal('gameSettings'); delete _root.dataPacket.data.gameSettings; } fileCount = 0; varX = 0; while (varX <= 2) { _root.dataPacket = SharedObject.getLocal('savePacket' + varX); if (_root.dataPacket.data.saveData == undefined) { ++fileCount; } ++varX; } if (fileCount >= 2) { warning._visible = true; Key.addListener(spaceBar_Listener); } else { dataFound._visible = true; Key.addListener(spaceBar_Listener); } _root.dataPacket = SharedObject.getLocal('gameSettings'); if (_root.dataPacket.data.gameSettings == undefined) { _root.dataPacket.data.gameSettings = _root.gameVariables; } else { _root.gameVariables = _root.dataPacket.data.gameSettings; _root.updateResolution(); } } frame 14 { stop(); } frame 15 { _root.dataPacket = SharedObject.getLocal('savePacket' + counter); if (_root.dataPacket.data.saveData == undefined) { _root.dataPacket.data.saveData = eval('_root.saveDataPacket_' + counter); header_Text = 'FORMATTING FILE ' + counter; if (counter == 0) { line_0 = _root.dataPacket.data.saveData[2][0][5][0]; footer_Text = '30%'; } if (counter == 1) { line_1 = _root.dataPacket.data.saveData[2][0][5][0]; footer_Text = '60%'; } if (counter == 2) { line_2 = _root.dataPacket.data.saveData[2][0][5][0]; footer_Text = '90%'; } } else { header_Text = 'FILE ' + counter + ' LOADED SUCCESSFULLY!'; if (counter == 0) { line_0 = 'SUCCESS!'; footer_Text = '30%'; } if (counter == 1) { line_1 = 'SUCCESS!'; footer_Text = '60%'; } if (counter == 2) { line_2 = 'SUCCESS!'; footer_Text = '90%'; } } } frame 20 { if (counter >= 2) { stop(); } else { ++counter; gotoAndPlay('loadLoop'); } } frame 72 { _parent.play(); Key.removeListener(spaceBar_Listener); stop(); } } movieClip 156 checkDataHolder { 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 48 { stop(); } frame 77 { _root.play(); stop(); } } movieClip 157 { frame 1 { stop(); } } movieClip 160 chr0_0 { } movieClip 162 chr0_1 { } movieClip 164 chr1_0 { } movieClip 165 chr1_1 { } movieClip 168 chr2_0 { } movieClip 172 chr2_3 { } movieClip 175 chr50_0 { } movieClip 185 chr90_0 { } movieClip 187 chr90_1 { } movieClip 190 chr90_2 { } movieClip 192 chr98_0 { } movieClip 193 chr99_0 { } movieClip 194 { frame 1 { stop(); } } movieClip 270 { frame 1 { this.stop(); } frame 83 { stopAllSounds(); } } movieClip 272 { frame 1 { function onEnterFrame() { if (_global.currentSong != undefined) { if ((eval('_global.song' + _global.currentSong)).position / 1000 >= _parent.songLoopData[_global.currentSong][1]) { (eval('_global.song' + _global.currentSong)).stop(); _parent.songPlaying.start(_parent.songLoopData[_global.currentSong][0]); } } } stop(); } } movieClip 273 musicPlayerMC { frame 1 { function changeMusic(transition, musicNum) { if (transition == 'FORCE') { songPlaying.stop(); _global.currentSong = musicNum; changeMusic = true; } if (transition == 'SAME') { if (musicNum != _global.currentSong) { songPlaying.stop(); _global.currentSong = musicNum; var changeMusic = true; } else { changeMusic = false; } } if (transition == 'STOP') { songPlaying.stop(); _global.currentSong = undefined; songPlaying = ''; } if (changeMusic == true) { songPlaying = eval('_global.song' + _global.currentSong); songPlaying.setVolume(_root.gameVariables[0][0][1]); if (_root.gameVariables[0][0][2] == true) { songPlaying.start(0); } else { songPlaying.stop(); } } } var changeMusic; songLoopData = [[13.42, 101, 0], [15.675, 90.33000000000001, 0], [7.62, 85.37000000000001, 0], [0.05, 48.65, 0], [9.5, 145.2, 0], [2, 158, 0]]; } } movieClip 274 { frame 1 { stop(); } } movieClip 287 { } movieClip 290 { frame 295 { stop(); _parent.play(); } } movieClip 292 { } movieClip 293 { frame 730 { _parent.play(); } } movieClip 294 { frame 3 { textMC.inClip.movieText.text = 'When Reploids were first invented, they were received as a blessing. Much more than mere robots, Reploids were inbued with emotions. They could act, think, and feel - all thanks to the legendary abilities of their creator, Dr. Light. They ushered in a new era for humankind changing the landscapes of industry, production, entertainment, military, and labor forever. '; _global.slideFunctionLayer.newSlide('slide_Story0'); _root.musicPlayerMC.changeMusic('FORCE', 5); } frame 7 { stop(); } frame 11 { textMC.inClip.movieText.text = 'Unbound by the fragility of flesh and bone, Reploids quickly replaced humans in benign and dangerous tasks, thereby liberating humankind to pursue a quality of life never before seen nor imagined. '; _global.slideFunctionLayer.newSlide('slide_Story1'); } frame 15 { stop(); } frame 19 { textMC.inClip.movieText.text = 'In exchange for their countless contributions to society, Reploids were granted nearly the same rights as humans. It didn’t take long before Reploids were completely accepted into society. Dr. Light’s dream of humans living alongside Reploids in total peace and harmony was nearly a reality.'; _global.slideFunctionLayer.newSlide('slide_Story2'); } frame 23 { stop(); } frame 26 { textMC.inClip.movieText.text = 'But not everybody saw it that way. Commander Sigma, a then respected Reploid General, grew weary of fighting human wars. In time he became disillusioned. After his initial encounter with Zero, Dr. Wily’s final creation, Sigma was infected with what would later become the Sigma Virus. '; _global.slideFunctionLayer.newSlide('slide_Story3'); } frame 30 { stop(); } frame 33 { textMC.inClip.movieText.text = 'The virus slowly eroded his moral core until he had nothing but absolute hatred left for humans. It was at this point that he declared war. His first strike: a devastating nuclear barrage against an unsuspecting population. Thus began the Maverick Wars.'; _global.slideFunctionLayer.newSlide('slide_Story4'); } frame 37 { stop(); } frame 40 { textMC.inClip.movieText.text = 'X and Zero were dispatched to destroy their former commander. After several encounters, each one ending in Sigma’s destruction, peace was thought to be restored. '; _global.slideFunctionLayer.newSlide('slide_Story5'); } frame 44 { stop(); } frame 48 { textMC.inClip.movieText.text = 'But Sigma’s legacy lived on. While Sigma body was destroyed each time, the Sigma Virus remained, and quickly spread across the globe creating new Mavericks and new threats. '; _global.slideFunctionLayer.newSlide('slide_Story6'); } frame 52 { stop(); } frame 55 { textMC.inClip.movieText.text = 'It was a war without end. And humans had given up on the idea of living peacefully with Reploids. '; _global.slideFunctionLayer.newSlide('slide_Story7'); } frame 59 { stop(); } frame 63 { textMC.inClip.movieText.text = 'Now content to leave the planet in hopes of inhabiting other worlds, humans constructed a large space elevator, Jakobs Ladder, as a means to achieve that goal. Lumine, and a new generation of Reploids, were in charge of constructing it. '; _global.slideFunctionLayer.newSlide('slide_Story8'); } frame 67 { stop(); } frame 70 { textMC.inClip.movieText.text = 'Designed to be immune to the Sigma Virus and cheaper to produce than standard Reploids, Copy Reploids were produced in mass and worked tirelessly to complete the space elevator. However, they too fell victim to the virus, and before long, Lumine was driven by the same genecidal rage as her predecessor.'; _global.slideFunctionLayer.newSlide('slide_Story9'); } frame 74 { stop(); } frame 77 { textMC.inClip.movieText.text = 'Lumine threatened to crash the tower into the planet, potentially killing millions, but the Maverick Hunters thwarted her plans. After the battle, the space station was left damaged beyond repair. Now with nowhere left to go, and only Reploids to blame, humans resolved to end the Maverick Wars once and for all. '; _global.slideFunctionLayer.newSlide('slide_Story10'); } frame 81 { stop(); } frame 84 { textMC.inClip.movieText.text = 'Within months, governments from around the world drafted laws that would strip the entire Reploid race of their right to exist as a sentient species. Instead, proposition to impose extreme limitations on Reploids took their place.'; } frame 88 { stop(); } frame 91 { textMC.inClip.movieText.text = 'Many Reploids and humans alike rallied against the newly constructed laws, but it was to no avail. After countless years of war, humans had very little patience for the life forms that they had once nutured into being. '; _global.slideFunctionLayer.newSlide('slide_Story12'); } frame 95 { stop(); } frame 100 { textMC.inClip.movieText.text = 'Far and wide, the laws passed with little resistance. A new era of slavery had begun, and Dr. Light’s vision of a world of Reploids and humans living side by side in peace and harmony, was nothing more than a fading dream.'; } frame 104 { stop(); } frame 107 { textMC.inClip.movieText.text = 'Reploids began going Maverick overnight – seemingly by will. This caught the governments of the world by surprise since “going Maverick” was previously thought to be a side effect of the Sigma Virus. '; _global.slideFunctionLayer.newSlide('slide_Story11'); } frame 111 { stop(); } frame 114 { textMC.inClip.movieText.text = 'A harsh counter measure was enacted to quell the rebellion and all other forms of resistance, and the Maverick Hunters were once again called upon to bring peace to the world.'; _global.slideFunctionLayer.newSlide('slide_Story13'); } frame 118 { stop(); } frame 121 { textMC.inClip.movieText.text = 'But peace comes at a steep price. Not only were Mavericks to be terminated on sight, but any Reploids even suspected of going Maverick were to be destroyed as well.'; } frame 125 { stop(); } frame 128 { textMC.inClip.movieText.text = 'Zero, conflicted with Sigma\'s prophecy that an end all war between humans and Reploids was inevitable, quits the Maverick Hunters. X, on the other hand, resolves to keep on fighting.'; _global.slideFunctionLayer.newSlide('slide_Story14'); } frame 132 { stop(); } frame 135 { textMC.inClip.movieText.text = 'But eventually, X wil have to make a choice...'; } frame 139 { stop(); } frame 142 { textMC.inClip.movieText.text = 'Die as a hero... or live as a Maverick...'; } frame 146 { stop(); } frame 185 { _parent.play(); } } movieClip 296 { } movieClip 300 { frame 62 { stop(); } } // unknown tag 88 length 91 movieClip 304 { } movieClip 305 { } movieClip 307 { } movieClip 309 { } movieClip 312 { } movieClip 329 { frame 1 { function refreshData() { if (_root.gameVariables[1][1][0] == 'low') { dot._y = 92; } if (_root.gameVariables[1][1][0] == 'med') { dot._y = 72; } if (_root.gameVariables[1][1][0] == 'high') { dot._y = 52; } if (_root.gameVariables[1][1][0] == 'max') { dot._y = 32; } if (_root.gameVariables[1][0][0] == true) { cellText.text = 'ENABLED'; } if (_root.gameVariables[1][0][0] == false) { cellText.text = 'DISABLED'; } if (_root.gameVariables[0][0][2] == false) { musicText.text = 'DISABLED'; } if (_root.gameVariables[0][0][2] == true) { musicText.text = 'ENABLED'; } if (_root.gameVariables[0][0][3] == false) { soundText.text = 'DISABLED'; } if (_root.gameVariables[0][0][3] == true) { soundText.text = 'ENABLED'; } if (_root.gameVariables[2][0][1] == false) { easyText.text = 'ENABLED'; } if (_root.gameVariables[2][0][1] == true) { easyText.text = 'DISABLED'; } _root.updateResolution(); } _global.optionsLayer = this; refreshData(); } } movieClip 333 { frame 36 { _parent.play(); stop(); } } movieClip 334 firstOptionMenu { frame 1 { iconNum = 0; audioNum = 0; attachMovie('firstIcon', 'menuIcon', 100, {'_x': -145, '_y': 110}); _global.displayHelpText = _root.tempList[iconNum][0]; _global.displayHelpText = 'Changing the resolution of the game might affect framerate. Press [SPACE BAR] to confirm or press [BACKSPACE] to cancel.'; resSelect_Listener = new Object(); resSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --iconNum; if (iconNum < 0) { iconNum = 0; } menuIcon._y = 110 + iconNum * 20; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++iconNum; if (iconNum > 3) { iconNum = 3; audioNum = 0; Key.removeListener(resSelect_Listener); Key.addListener(visualSelect_Listener); menuIcon._y = 260; _global.displayHelpText = 'Creates a black outline around characters. Disabling might improve performance and framerate.'; } else { menuIcon._y = 110 + iconNum * 20; } } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (iconNum == 0) { _root.gameVariables[1][1][0] = 'max'; } if (iconNum == 1) { _root.gameVariables[1][1][0] = 'high'; } if (iconNum == 2) { _root.gameVariables[1][1][0] = 'med'; } if (iconNum == 3) { _root.gameVariables[1][1][0] = 'low'; } _global.optionsLayer.refreshData(); _global.introHolder.refreshScreen(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); menuIcon._visible = false; _root.dataPacket = SharedObject.getLocal('gameSettings'); _root.dataPacket.data.gameSettings = _root.gameVariables; } }; visualSelect_Listener = new Object(); visualSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } Key.addListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); menuIcon._y = 110 + iconNum * 20; _global.displayHelpText = 'Changing the resolution of the game might affect framerate. Press [SPACE BAR] to confirm or press [BACKSPACE] to cancel.'; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } Key.removeListener(visualSelect_Listener); Key.addListener(audioSelect_Listener); audioNum = 0; menuIcon._y = 365 + audioNum * 20; _global.displayHelpText = 'Turn on/off music or disable sound entirely. Note: disabling sound mutes all audio.'; } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (_root.gameVariables[1][0][0] == true) { _root.gameVariables[1][0][0] = false; } else { _root.gameVariables[1][0][0] = true; } _global.optionsLayer.refreshData(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); } }; audioSelect_Listener = new Object(); audioSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --audioNum; if (audioNum < 0) { audioNum = 0; menuIcon._y = 260; Key.removeListener(audioSelect_Listener); Key.addListener(visualSelect_Listener); _global.displayHelpText = 'Creates a black outline around characters. Disabling might improve performance and framerate.'; } else { menuIcon._y = 365 + audioNum * 20; } } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++audioNum; if (audioNum >= 2) { audioNum = 1; Key.removeListener(audioSelect_Listener); Key.addListener(gamePlay_Listener); menuIcon._y = 480; _global.displayHelpText = 'When ACTIVE BATTLE is enabled, you have more control over battles.'; } else { menuIcon._y = 365 + audioNum * 20; } } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (audioNum == 0) { if (_root.gameVariables[0][0][2] == false) { _root.gameVariables[0][0][2] = true; _root.musicPlayerMC.changeMusic('SAME', 3); } else { _root.gameVariables[0][0][2] = false; _root.musicPlayerMC.changeMusic('STOP', ''); } } if (audioNum == 1) { if (_root.gameVariables[0][0][3] == false) { _root.gameVariables[0][0][3] = true; } else { _root.gameVariables[0][0][3] = false; } } _global.optionsLayer.refreshData(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); } }; gamePlay_Listener = new Object(); gamePlay_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } Key.addListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); audioNum = 1; menuIcon._y = 365 + audioNum * 20; _global.displayHelpText = 'Turn on/off music or disable sound entirely. Note: disabling sound mutes all audio.'; } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (_root.gameVariables[2][0][1] == false) { _root.gameVariables[2][0][1] = true; } else { _root.gameVariables[2][0][1] = false; } _global.optionsLayer.refreshData(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); } }; Key.addListener(resSelect_Listener); } frame 12 { stop(); } frame 13 { Key.removeListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); Key.removeListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); stop(); } frame 17 { Key.removeListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); Key.removeListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); _parent.gotoAndPlay('controls'); stop(); } } movieClip 340 { frame 36 { stop(); _parent.play(); } } movieClip 346 { frame 1 { stop(); } frame 31 { _global.saveLoadLayer.gotoAndPlay('softClose'); stop(); } } movieClip 347 { } movieClip 348 { frame 1 { stop(); _global.saveDataLayer = this; } frame 14 { varX = 0; while (varX <= 2) { _root.dataPacket = SharedObject.getLocal('savePacket' + varX); (eval('_global.saveDataLayer.saveHolder.box' + varX)).saveNameText.text = _root.dataPacket.data.saveData[2][0][5][0]; (eval('_global.saveDataLayer.saveHolder.box' + varX)).saveStatusText.text = 'TOTAL SAVES: ' + _root.dataPacket.data.saveData[2][0][5][1]; if (_root.dataPacket.data.saveData[8][0][0].length != undefined) { varDP = 0; while (varDP <= _root.dataPacket.data.saveData[8][0][0].length - 1) { profilePic = (eval('_root.chrIData_' + _root.dataPacket.data.saveData[8][0][0][varDP]))[4]; attachMovie(profilePic, 'profilePic' + varDP + varX, 700 - varDP + varX * 1000, {'_x': 255 + 45 * varDP, '_y': 345 + varX * 150}); (eval('profilePic' + varDP + varX))._xscale = 70; (eval('profilePic' + varDP + varX))._yscale = 70; ++varDP; } } ++varX; } } frame 23 { _global.saveLoadLayer.saveIcon._visible = true; Key.addListener(_global.saveLoadLayer.savePic_Listener); stop(); } } movieClip 350 { } movieClip 353 { frame 46 { _parent.play(); stop(); } } movieClip 354 { frame 1 { function loadSave(fileNum) { _root.dataPacket = SharedObject.getLocal('savePacket' + fileNum); if (_root.dataPacket.data.saveData[2][0][5][1] == 'NO SAVE DATA') { } else { saveIcon._visible = false; Key.removeListener(savePic_Listener); _root.loadFile = true; _root.stageDataPacket = [_root.dataPacket.data.saveData][0][0]; _root.levelDataPacket = [_root.dataPacket.data.saveData][0][1]; _root.locationPacket = [_root.dataPacket.data.saveData][0][2]; _root.weaponInvPacket = [_root.dataPacket.data.saveData][0][3]; _root.formationPacket = [_root.dataPacket.data.saveData][0][4]; _root.inventoryPacket = [_root.dataPacket.data.saveData][0][5]; _root.chrDataPacket = [_root.dataPacket.data.saveData][0][6]; _root.supportPacket = [_root.dataPacket.data.saveData][0][7]; _root.partyPacket = [_root.dataPacket.data.saveData][0][8]; _root.achievementPacket = [_root.dataPacket.data.saveData][0][9]; gotoAndPlay('softClose'); } } _global.saveLoadLayer = this; saveIcon._visible = false; iconNum = 0; saveIcon._y = 108; saveIcon._x = -80; savePic_Listener = new Object(); savePic_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { _global.fx6.start(); --iconNum; if (iconNum < 0) { iconNum = 2; } saveIcon._y = 108 + iconNum * 150; } if (Key.getCode() == '40' or Key.getAscii() == '50') { _global.fx6.start(); ++iconNum; if (iconNum > 2) { iconNum = 0; } saveIcon._y = 108 + iconNum * 150; } if (Key.getCode() == '32') { loadSave(iconNum); } if (Key.getCode() == '8') { _global.fx4.start(); _parent.gotoAndPlay('controls'); saveIcon._visible = false; } }; } frame 12 { stop(); } frame 13 { } frame 19 { stop(); } frame 20 { _global.fx4.start(); Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); Key.removeListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); Key.removeListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); } frame 26 { _parent.gotoAndPlay('close'); stop(); } } movieClip 355 { frame 62 { firstNum = 0; attachMovie('firstIcon', 'firstIcon', 1000, {'_x': 335, '_y': 440}); firstSelector = new Object(); firstSelector.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --firstNum; if (firstNum < 0) { firstNum = 3; } firstIcon._y = 440 + firstNum * 18; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++firstNum; if (firstNum > 3) { firstNum = 0; } firstIcon._y = 440 + firstNum * 18; } if (Key.getCode() == '32') { if (firstNum == 0) { gotoAndPlay('close'); if (_root.gameVariables[0][0][3] == true) { _global.fx2.start(); } } Key.removeListener(firstSelector); if (firstNum == 1) { _root.dataPacket = SharedObject.getLocal('autoSave'); if (_root.dataPacket.data.autoSave == undefined) { if (_root.gameVariables[0][0][3] == true) { _global.fx9.start(); } Key.removeListener(firstSelector); Key.addListener(firstSelector); } else { if (_root.gameVariables[0][0][3] == true) { _global.fx2.start(); } _root.dataPacket = SharedObject.getLocal('autoSave'); _root.loadFile = true; _root.stageDataPacket = [_root.dataPacket.data.autoSave][0][0]; _root.levelDataPacket = [_root.dataPacket.data.autoSave][0][1]; _root.locationPacket = [_root.dataPacket.data.autoSave][0][2]; _root.weaponInvPacket = [_root.dataPacket.data.autoSave][0][3]; _root.formationPacket = [_root.dataPacket.data.autoSave][0][4]; _root.inventoryPacket = [_root.dataPacket.data.autoSave][0][5]; _root.chrDataPacket = [_root.dataPacket.data.autoSave][0][6]; _root.supportPacket = [_root.dataPacket.data.autoSave][0][7]; _root.partyPacket = [_root.dataPacket.data.autoSave][0][8]; _root.achievementPacket = [_root.dataPacket.data.autoSave][0][9]; gotoAndPlay('close'); Key.removeListener(firstSelector); } } if (firstNum == 2) { if (_root.gameVariables[0][0][3] == true) { _global.fx2.start(); } Key.removeListener(firstSelector); firstIcon._visible = false; gotoAndPlay('loadGame'); } if (firstNum == 3) { if (_root.gameVariables[0][0][3] == true) { _global.fx2.start(); } Key.removeListener(firstSelector); firstIcon._visible = false; gotoAndPlay('changeOptions'); } } if (Key.getCode() == '8') { } }; Key.addListener(firstSelector); } frame 75 { stop(); } frame 86 { stop(); } frame 99 { stop(); } frame 128 { if (firstNum == 0) { _parent.gotoAndPlay('firstGame'); } if (firstNum == 1) { _parent.gotoAndPlay('continueGame'); } if (firstNum == 2) { _parent.gotoAndPlay('continueGame'); } stop(); } } movieClip 356 { frame 1 { textMC.inClip.movieText.text = 'We must recognize the chief characteristic of the modern era - a permanent state of what I call "violent peace." \r\r-Admiral James D. Watkins'; } frame 3 { varX = _root.gameVariables[0][0][1]; while (varX >= 0) { (eval('_global.song' + _global.currentSong)).setVolume(varX); if (varX <= 0) { break; } varX -= 0.001; } } frame 5 { stop(); } frame 20 { stop(); _parent.play(); } } movieClip 359 introMC { frame 1 { stop(); } frame 7 { skipSelector = new Object(); skipSelector.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(skipSelector); gotoAndPlay('titleScreen'); } }; Key.addListener(skipSelector); attachMovie('slideShowIntro', 'slideShowIntro', 0, {'_x': 100, '_y': 100}); } frame 11 { stop(); } frame 32 { varX = _root.gameVariables[0][0][1]; while (varX >= 0) { (eval('_global.song' + _global.currentSong)).setVolume(varX); if (varX <= 0) { break; } varX -= 0.001; } } frame 41 { removeMovieClip(slideShowIntro); _root.musicPlayerMC.changeMusic('FORCE', 3); } frame 48 { stop(); } frame 62 { _root; } frame 63 { stop(); } frame 92 { _root.gotoAndPlay('equipmentData'); stop(); } frame 103 { _root.gotoAndPlay('equipmentData'); stop(); } } movieClip 363 firstIcon { } movieClip 365 introHolder { frame 1 { function refreshScreen() { this._xscale = _root.gameResolution[0]; this._yscale = _root.gameResolution[0]; this._x = _root.gameResolution[1]; this._y = _root.gameResolution[2]; } _global.introHolder = this; refreshScreen(); } frame 12 { stop(); } } movieClip 368 slide_Story0 { } movieClip 371 slide_Story1 { } movieClip 374 slide_Story2 { } movieClip 377 slide_Story3 { } movieClip 380 slide_Story4 { } movieClip 383 slide_Story5 { } movieClip 386 slide_Story6 { } movieClip 389 slide_Story7 { } movieClip 392 slide_Story8 { } movieClip 395 slide_Story9 { } movieClip 398 slide_Story10 { } movieClip 401 slide_Story11 { } movieClip 404 slide_Story12 { } movieClip 407 slide_Story13 { } movieClip 410 slide_Story14 { } movieClip 411 slide_newGame0 { frame 219 { stop(); _parent.play(); } } movieClip 412 { frame 1 { stop(); } } movieClip 415 { frame 1 { trace('newSlide'); stop(); } } movieClip 416 { } movieClip 421 { } movieClip 422 slideShowIntro { frame 1 { function newSlide(newSlide) { slideMain.slidePart.attachMovie(newSlide, 'current_Slide', 0, {'_x': 0, '_y': 0}); gotoAndPlay('fadeIn'); } function fadeOut() { gotoAndPlay('fadeOut'); } _global.slideFunctionLayer = this; stop(); } frame 23 { stop(); } frame 29 { stop(); } } movieClip 423 { frame 1 { stop(); } } movieClip 424 { frame 1 { stop(); } } movieClip 425 dialog_A01 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Greetings Commander X. Welcome to the Maverick Hunter Simulations Trainer. I will be here to assist you while you complete the following mission simulations.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 3 { lineCount = 0; speechPack = [[[98, 0, 0], ['SLIDE'], ['Before we get started, do you have any questions?'], [['No. (Skip)'], ['Why am I here?'], ['Controls?'], ['Menu?']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 8 { if (_root.slideReturn == 0) { branch = 'A'; lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['I\'ll let you get to it then, Commander. Your first objective is to collect all the treasure nodes in this room.']], [[0, 0, 0], ['TEXT'], ['That\'s it?']], [[98, 0, 0], ['TEXT'], ['For now, yes. You can check on your current and future mission objectives by bringing up the MENU ( [BACKSPACE] on PC or [DELETE] on Macs) and selecting the OBJECTIVES tab. It will display primary and secondary objectives.']], [[0, 0, 0], ['TEXT'], ['Okay. Got it.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); if (_global.totalSaves == 0) { ++_root.gamePlay_Stats[7][1]; _root.scanForAchievements(); } } if (_root.slideReturn == 1) { branch = 'B'; lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['Is it really necessary for me to do this again? I\'ve run this simulation more times than I care to remember.']], [[98, 0, 0], ['TEXT'], ['Yes, sir, I know. This year alone you\'ve clocked in 37 hours.']], [[98, 0, 0], ['TEXT'], ['However, the new laws regarding military Reploids require that you preform various and extensive testing. As a Maverick Hunter Commander, you are required to pass this simulation on a weekly basis, as well as routine viral scans and mechnical evaluations. After the outbreak of the Sigma virus, and the subsequent conflicts resulting from which, governments around the world have adopted the philosophy that we can never be too safe. These simulations are an extention of that logic.']], [[0, 0, 0], ['TEXT'], ['Yeah yeah. So same as last week?']], [[98, 0, 0], ['TEXT'], ['Slight modification this week, Commander. For this run, I\'m requiring you to complete a series of objectives.']], [[0, 0, 0], ['TEXT'], ['Why the change?']], [[98, 0, 0], ['TEXT'], ['These drills are too easy for you, sir. I\'ve decided to change things up a bit.']], [[0, 0, 0], ['TEXT'], ['About time.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 2) { branch = 'B'; lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Controls are as follows:']], [[98, 0, 0], ['TEXT'], ['To move, simply press and hold the [DIRECTIONAL KEYS] in the direction you want to go.']], [[98, 0, 0], ['TEXT'], ['To jump, press the [SPACE BAR]. If properly geared, you can jump multiple times in the air. For this exercise, you\'ll be given the ability to jump three times before exhausting your mid-air boost capabilities.']], [[98, 0, 0], ['TEXT'], ['Also, the [SPACE BAR] will typically act as an all purpose button. When selecting items, enemy targets, or anything similiar in that regard, pressing the [SPACE BAR] will confirm your selection.']], [[98, 0, 0], ['TEXT'], ['The [BACKSPACE KEY] (or [DELETE KEY] on Macs) will inversely behave as a cancel button. Also, the [BACKSPACE KEY] will bring up the main MENU if you\'re not engaged in combat.']], [[98, 0, 0], ['TEXT'], ['Other keys are used in this game as well, but they are context senstive and will show up in either the help bar (in the MENU) or in brackets.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 3) { branch = 'B'; lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Using the MENU:']], [[98, 0, 0], ['TEXT'], ['To bring up the MENU, press the [BACKSPACE KEY] on PC\'s or [DELETE KEY] on Macs.']], [[98, 0, 0], ['TEXT'], ['From here, you\'ll be able to view your current health and status, as well as access various screens, namely ITEMS, SKILLS, EQUIPMENT, BATTLE CHIPS, FORMATION, OBJECTIVES, and SAVE. ']], [[98, 0, 0], ['TEXT'], ['To access these, simply highlight the tab you want to view and press [SPACE BAR]. When finished, hit [BACKSPACE] to return to the main menu, then [BACKSPACE] again to return to the game.']], [[98, 0, 0], ['TEXT'], ['Although the SAVE tab is always viewable, the game can only be saved on a SAVE SPOT (one is located right up ahead.) Details on saving the game can be found later on in this simulation.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 9 { if (branch == 'B') { gotoAndPlay('speechLoop'); } } frame 14 { _global.annoucementStringSmall = 'NEW OBJECTIVE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[0][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[0][0] = true; _root.map0_OBJECTIVES[0][1] = true; _root.refreshObjectives(_root.currentObj_Num); _global.mapStageLayer.nodeCounter._visible = true; _root.objectClips_0[3][5][0] = 'Search'; _global.mapDataLayer.refeshScreen(); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 426 dialog_A02 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Your current configuration allows you to jump up to three times. To do so, press the [SPACE BAR] repeatedly in mid-air. Do that to reach the top of this platform.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 7 { _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 427 dialog_A03 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); if (_root.areaStageData_0[0] < 3) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You need to collect all the treasure nodes, Commander. We can\'t continue until you do.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.areaStageData_0[0] >= 3) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Well done Commander. Please continue to the next trial.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); _global.annoucementStringSmall = 'OBJECTIVE COMPLETE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[0][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[0][0] = true; _root.map0_OBJECTIVES[0][1] = true; _root.map0_OBJECTIVES[0][2] = true; _root.refreshObjectives(_root.currentObj_Num); _root.objectClips_0[5][6] = [true, false]; _global.mapDataLayer.refeshScreen(); stop(); } } frame 8 { _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 430 { } movieClip 446 { } movieClip 448 { } movieClip 450 { } movieClip 452 { } movieClip 454 { } movieClip 455 { frame 1 { stop(); } } movieClip 462 { } movieClip 468 { frame 25 { gotoAndPlay('loop'); } } movieClip 469 { frame 1 { stop(); } frame 34 { stop(); } } movieClip 471 { } movieClip 472 { } movieClip 473 { frame 1 { function refeshScreen() { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; if (_root.gameVariables[1][0][0] == true) { playerChr.filters = [cellShade]; } switchSeries = 0; tempNum = 0; currentLevel = 'levelMain_0'; _root.enemyRange = [0, 1, 2, 3]; _root.selectBG = 'bg6'; if ((eval('_root.areaSwitch_' + switchSeries))[tempNum] == false) { (eval('_root.areaSwitch_' + switchSeries))[tempNum] = true; _root.objectClips_0 = [['ob_0', '', '', '', '', ['Treasure', 'item', 1], [true, true]], ['ob_1', '', '', '', '', ['Treasure', 'item', 0], [true, true]], ['ob_2', '', '', '', '', ['Treasure', 'item', 6], [true, true]], ['ob_3', '', '', '', '', ['Event', 'dialog_A01', false], [true, true]], ['ob_4', '', '', '', '', ['Search', 'dialog_A02', true], [true, true]], ['ob_5', '', '', '', '', ['Event', 'dialog_A03', false], [true, true]], ['ob_6', '', '', '', '', ['Event', 'event0_Next', false], [true, true]]]; _root.areaStageData_0[0] = 0; _root.map0_OBJECTIVES[0][0] = true; _root.map0_OBJECTIVES[0][1] = true; _root.refreshObjectives(_root.currentObj_Num); } currentObjectClips = eval('_root.objectClips_' + tempNum); counter = 0; i = 0; while (i <= currentObjectClips.length - 1) { thisClip = this[currentObjectClips[i][0]]; thisClip.idType = 'object'; thisClip.idTag = counter; if (_root.gameVariables[1][0][0] == true) { thisClip.filters = [cellShade]; } thisClip.startWidth = this[currentObjectClips[i][0]]._width; currentObjectClips[counter][1] = true; if (currentObjectClips[i][6][1] == false) { loadMovie('', thisClip); } thisClip.onEnterFrame = function () { if (_global.mapDataLayer.game_STATE == 'PLAY') { } }; ++counter; ++i; } delete counter; } function checkFightID(checkNum) {} function determineRandomBattle() { if (randomBCount == undefined) { randomCount = 'NONE'; } if (walkTally == undefined) { walkTally = 0; } if (randomBCount == 'NONE') { encounterCounter = 0; } if (randomBCount == 'RARE') { encounterCounter = 150 + Math.round(Math.random() * 100); } if (randomBCount == 'FEW') { encounterCounter = 100 + Math.round(Math.random() * 100); } if (randomBCount == 'MED') { encounterCounter = 50 + Math.round(Math.random() * 100); } if (randomBCount == 'MANY') { encounterCounter = 20 + Math.round(Math.random() * 100); } } function fightFunction(fightID) { game_STATE = 'PAUSE'; _root.setupFight(fightID); } function endBattle(endType) { _global.mapStageLayer.mainMap._visible = true; walkTally = 0; determineRandomBattle(); _root.musicPlayerMC.changeMusic('SAME', roomMusicTrack); (eval('_global.song' + _global.currentSong)).setVolume(_root.gameVariables[0][0][1]); if (skirmishType == 'RANDOM') { if (endType == 'DEFEATED') { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (endType == 'VICTORY') { _global.mapDataLayer.objectFocus = false; refeshScreen(); enableControls; unpauseGame(); } } if (skirmishType == 'SCRIPTED') { if (endType == 'VICTORY') { if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == false) { currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; enableControls; refeshScreen(); unpauseGame(); } if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][7][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } if (endType == 'DEFEATED') { if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == false) { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][8][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } } } function addGravity() { if (gravitySpd == undefined) { gravitySpd = 0; } if (game_STATE == 'PLAY') { gravitySpd += 0.01; if (gravitySpd > 20) { gravitySpd = 20; } } } function jumpAccel() { if (game_STATE == 'PLAY') { jumpDistance += jumpSpd; if (jumpSpd < 0) { player_BEHAVIOR = 'NORMAL'; ceilingTouch = false; delete jumpSpd; delete jumpDistance; } if (jumpSpd < 5) { jumpSpd -= 0.5; } else { jumpSpd -= 1; } } } function runAccel() { if (game_STATE == 'PLAY' and inRun == true) { if (runSpd == undefined) { runSpd = 0; } if (moveDir == 'RIGHT') { if (inAir == true) { runSpd += 0.2 + speedBoost; if (runSpd > 8) { runSpd = 8; } } if (inAir == false) { runSpd += 0.4 + speedBoost; if (runSpd > 8) { runSpd = 8; } } } if (moveDir == 'LEFT') { if (inAir == true) { runSpd -= 0.2 + speedBoost; if (runSpd < -8) { runSpd = -8; } } if (inAir == false) { runSpd -= 0.4 + speedBoost; if (runSpd < -8) { runSpd = -8; } } } } } function onEnterFrame() { if (game_STATE == 'PLAY') { if (playerChr._x > moveThreshold and playerChr._x < moveRightMax and wallTouch == false) { _global.mapStageLayer.mainMap._x -= runSpd * screenScale; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 4; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 8; if (_global.mapStageLayer.mainMap._x > 0) { _global.mapStageLayer.mainMap._x = 0; } } if (playerChr._y < vertThreshold and playerChr._y > vertTopMax) { if (player_BEHAVIOR == 'JUMPING' and ceilingTouch == false) { _global.mapStageLayer.mainMap._y += jumpDistance * screenScale; vertCount += jumpDistance * screenScale; } if (player_BEHAVIOR == 'NORMAL' and inAir == true and ceilingTouch == false and vertCount > 0) { _global.mapStageLayer.mainMap._y -= gravitySpd * screenScale; vertCount -= gravitySpd * screenScale; } if (_global.mapStageLayer.mainMap._y < 0) { _global.mapStageLayer.mainMap._y = 0; } if (_global.mapStageLayer.mainMap._y > 0 and _global.mapStageLayer.mainMap._y < 15) { _global.mapStageLayer.mainMap._y = 0; } } _global.mapStageLayer.nodeCounter.nodeCount.text = _root.areaStageData_0[0] + '/3'; } } function stopRun() { stopRun_Switch = true; moveDir = 'NONE'; if (_global.mapDataLayer.runSpd != 0) { inRun = false; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } runSpd = 0; } } function pauseGame() { game_STATE = 'PAUSE'; playerChr.playerMC.stop(); playerChr.playerMC.shadowMC.stop(); moveDir = 'NONE'; inRun = false; } function unpauseGame() { stopRun_Switch = false; _global.mapDataLayer.game_STATE = 'PLAY'; if (_global.mapDataLayer.runSpd != 0) { _global.mapDataLayer.playerChr.playerMC.play(); } _global.mapDataLayer.playerChr.playerMC.shadowMC.play(); _global.mapDataLayer.enableControls(); Key.addListener(_global.mapDataLayer.openMenu); } function enableControls() { Key.addListener(openMenu); Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } function disableControls() { Key.removeListener(openMenu); Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); } _global.roomName = 'TRAINING I'; _global.mapDataLayer = this; stopRun_Switch = false; var player_VSTATE; var player_BEHAVIOR; player_BEHAVIOR = 'NORMAL'; var doubleJump = true; jumpMax = 3; jumpOn = false; var jumpCounter = 0; inAir = false; inRun = false; inFight = false; ceilingTouch = false; wallTouch = false; var speedBoost = 0; var skirmishType; var game_STATE; game_STATE = 'PLAY'; playerChr.groundMC = ground; playerChr.wallMC = walls; playerChr.ceilingMC = ceiling; screenScale = _global.mapStageLayer.mainMap._xscale / 100; _root.battleInformationData(0); movementBuffer = []; _global.mapDataLayer.objectFocus = false; if (_root.mapTransferData[1][0] == 0) { _global.mapStageLayer.mainMap._x = 0; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = -100; _global.mapStageLayer.background_B._x = 0; _global.mapDataLayer.playerChr._x = 120; _global.mapDataLayer.playerChr._y = -20; _global.mapDataLayer.playerChr._xscale = 100; vertCount = 0; var randomBCount = 'NONE'; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); } if (_root.mapTransferData[1][0] == 'LOAD') { _global.mapStageLayer.mainMap._x = _root.locationPacket[0][0][0]; _global.mapStageLayer.mainMap._y = _root.locationPacket[0][0][1]; _global.mapDataLayer.playerChr._x = _root.locationPacket[0][1][0]; _global.mapDataLayer.playerChr._y = _root.locationPacket[0][1][1]; _global.mapDataLayer.playerChr._xscale = _root.locationPacket[0][1][2]; _global.mapStageLayer.background_A._x = _root.locationPacket[0][0][2]; _global.mapStageLayer.background_B._x = _root.locationPacket[0][0][3]; vertCount = _root.locationPacket[0][2][1]; var randomBCount = _root.locationPacket[0][2][2]; player_VSTATE = _root.locationPacket[0][4][0]; player_BEHAVIOR = _root.locationPacket[0][4][1]; inAir = _root.locationPacket[0][4][2]; inRun = _root.locationPacket[0][4][3]; gravitySpd = _root.locationPacket[0][4][4]; } _global.mapStageLayer.gotoAndPlay(_root.mapTransferData[1][1]); refeshScreen(); MovieClip.prototype.objectCheck = function (o, oNum) { if (game_STATE == 'PLAY') { for (i in this.playerMC.sidePerim) { if (_global.mapDataLayer.playerChr.hitTest(o) == true) { action = currentObjectClips[(eval(o)).idTag][5][0]; if (action == 'SaveSpot' and currentObjectClips[(eval(o)).idTag][6][0] == true and inAir == false) { (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); _root.saveOn = true; } if (action == 'Treasure' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapStageLayer.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mapDataLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Search' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.objectFocus = false; } _global.mapStageLayer.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Fight' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapDataLayer.pauseGame(); _global.mapDataLayer.instanceNum = (eval(o)).idTag; _global.mapDataLayer.objectFocus = true; disableControls(); stopRun_Switch = true; moveDir = 'NONE'; inRun = false; runSpd = 0; playerChr.playerMC.gotoAndPlay('standing'); controlBuffer = ['standing']; skirmishType = 'SCRIPTED'; checkFightID(currentObjectClips[(eval(o)).idTag][5][2]); fightFunction('SCRIPTED'); } if (action == 'Event' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { stopRun(); disableControls(); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; _global.mapStageLayer.attachMovie(currentObjectClips[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (this._xscale > 0) { this._x -= 30; } if (this._xscale < 0) { this._x += 30; } if (currentObjectClips[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } } } } }; determineRandomBattle(); MovieClip.prototype.gravityCheck = function () { for (i in this.playerMC.feetPerim) { perimPoint = {'x': this.playerMC.feetPerim[i]._x, 'y': this.playerMC.feetPerim[i]._y}; this.playerMC.feetPerim.localToGlobal(perimPoint); if (checkJump == undefined) { checkJump = true; } if (checkJump == true) { if (this.groundMC.hitTest(perimPoint.x, perimPoint.y, true)) { if (startOnDrop == undefined) { startOnDrop = false; } if (startOnDrop == true) { enableControls(); startOnDrop = false; } --this._y; jumpCounter = 0; if (inAir == true) { if (moveDir == 'RIGHT') { if (runSpd > 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { if (moveDir == 'LEFT') { if (runSpd < 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } inAir = false; jumpOn = false; fallSwitch = true; } } else { addGravity(); } } else { addGravity(); } } }; MovieClip.prototype.wallCheck = function () { for (i in this.playerMC.sidePerim) { sidePoint = {'x': this.playerMC.sidePerim[i]._x, 'y': this.playerMC.sidePerim[i]._y}; this.playerMC.sidePerim.localToGlobal(sidePoint); if (this.wallMC.hitTest(sidePoint.x, sidePoint.y, true)) { if (this._xscale > 0) { --this._x; } if (this._xscale < 0) { ++this._x; } inRun = false; runSpd = 0; } } }; MovieClip.prototype.ceilingCheck = function () { for (i in this.playerMC.headPerim) { headPoint = {'x': this.playerMC.headPerim[i]._x, 'y': this.playerMC.headPerim[i]._y}; this.playerMC.headPerim.localToGlobal(headPoint); if (this.ceilingMC.hitTest(headPoint.x, headPoint.y, true)) { ++this._y; ceilingTouch = true; } } }; playerChr.onEnterFrame = function () { if (game_STATE == 'PLAY') { nowY = this._y; if (player_BEHAVIOR == 'NORMAL') { if (runSpd == undefined) { runSpd = 0; } this._x += runSpd; this._y += gravitySpd; this.gravityCheck(); this.wallCheck(); runAccel(); } if (player_BEHAVIOR == 'JUMPING') { this._x += runSpd; this._y -= jumpDistance; this.wallCheck(); this.ceilingCheck(); runAccel(); jumpAccel(); } laterY = this._y; } if (game_STATE == 'PLAY') { varZ = 0; while (varZ <= currentObjectClips.length - 1) { if (currentObjectClips[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(currentObjectClips[varZ][0])).startWidth - (eval(currentObjectClips[varZ][0]))._width); distanceFrom = (eval(currentObjectClips[varZ][0]))._x - widthDifference - (_global.mapDataLayer.playerChr._x + (_global.mapDataLayer.playerChr._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(currentObjectClips[varZ][0]))._width + (_global.mapDataLayer.playerChr._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { _root.saveOn = false; this.objectCheck(eval(currentObjectClips[varZ][0]), varZ); } else { if (_global.mapDataLayer.objectFocus == true and varZ == _global.mapDataLayer.itemNumber) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; Key.removeListener(_global.mapDataLayer.searchKey); removeMovieClip(_global.mapStageLayer.newEvent); (eval(currentObjectClips[varZ][0])).gotoAndPlay('load'); } } } ++varZ; } } if (game_STATE == 'PLAY') { if (nowY < laterY) { player_VSTATE = 'DECENDING'; fallSpeed = Math.abs(nowY - laterY); if (fallSpeed > 1) { if (fallSwitch == undefined) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; fallSwitch = false; } if (fallSpeed >= 10 and fallSwitch == true and jumpOn == false) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; gravitySpd = 1; fallSwitch = false; ++jumpCounter; checkJump = true; inAir = true; speedBoost = 0; } if (fallSpeed > 5) { inAir = true; checkJump = true; speedBoost = 0; } } } if (Math.abs(nowY - laterY) < 1) { player_VSTATE = 'LEVELED'; } if (nowY > laterY) { player_VSTATE = 'ASCENDING'; fallSpeed = Math.abs(nowY - laterY); } } if (randomBCount != 'NONE') { if (inFall == true or inRun == true) { ++walkTally; } if (walkTally >= encounterCounter) { _root.selectBG = battleBGNum; skirmishType = 'RANDOM'; fightFunction(skirmishType); _global.mapDataLayer.pauseGame(); _global.mapDataLayer.objectFocus = true; walkTally = 0; } } }; screenScale = _global.mapStageLayer.mainMap._xscale / 100; moveThreshold = 400 / screenScale; moveRightMax = areaMap._width - moveThreshold + areaMap._x; vertThreshold = 400 / screenScale; vertTopMax = -areaMap._height * screenScale + 600 + vertThreshold; if (vertCount == undefined) { vertCount = 0; } controlBuffer = []; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and player_BEHAVIOR == 'NORMAL' and jumpCounter < jumpMax) { ++jumpCounter; if (jumpCounter > jumpMax) { jumpCounter = jumpMax; } playerChr.playerMC.gotoAndPlay('jumpUpward'); controlBuffer = ['jumpUpward']; player_BEHAVIOR = 'JUMPING'; jumpOn = true; inAir = true; checkJump = false; if (jumpCounter == 1) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 0.5; } if (jumpCounter >= 2) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 1; } } }; moveRight = new Object(); moveRight.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '39' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'RIGHT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = 100; } } moveRight.onKeyUp = function () { if (Key.getCode() == '39' and moveDir == 'RIGHT') { if (game_STATE == 'PLAY') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '37' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'LEFT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = -100; } } moveLeft.onKeyUp = function () { if (game_STATE == 'PLAY') { if (Key.getCode() == '37' and moveDir == 'LEFT') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8' and _global.mapDataLayer.objectFocus == false and _global.mapDataLayer.jumpOn == false and _global.mapDataLayer.inAir == false and stopRun_Switch == false) { if (game_STATE == 'PLAY') { pauseGame(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 500, {'_x': 0, '_y': 0}); } Key.removeListener(openMenu); disableControls(); } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { refeshScreen(); if (objectData[0] == 'Treasure' and _global.mapDataLayer.objectFocus == true) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; removeMovieClip(_global.mapStageLayer.newEvent); ++_root.gamePlay_Stats[4][2]; _root.scanForAchievements(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; } _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = 'AQUIRED'; _global.annoucementStringLarge = (eval('_root.item_' + objectData[2]))[0]; currentObjectClips[objectData[4]][6] = [false, false]; refeshScreen(); Key.removeListener(searchKey); objectData = []; ++_root.areaStageData_0[0]; } if (objectData[0] == 'Search' and _global.mapDataLayer.objectFocus == true and inAir == false) { Key.removeListener(searchKey); removeMovieClip(_global.mapStageLayer.newEvent); stopRun(); disableControls(); _global.mapStageLayer.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; stop(); } } movieClip 477 { } movieClip 480 monitorPart { } movieClip 481 { frame 1 { function onEnterFrame() { if (_global.mapDataLayer.objectFocus == true) { part1._visible = true; } else { part1._visible = false; } part2._visible = false; part3._visible = false; part4._visible = false; part5._visible = false; part6._visible = false; } } } movieClip 487 levelMain_0 { frame 1 { _global.mapStageLayer = this; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 200, '_y': 250}); textBoxMC._xscale = 120; textBoxMC._yscale = 120; attachMovie('slideShowStages', 'slideShowStages', 450, {'_x': 175, '_y': 100}); nodeCounter._visible = false; stop(); } frame 23 { _parent.gotoAndPlay('loadNewArea'); stop(); } frame 43 { _global.mapDataLayer.enableControls(); gotoAndPlay('gameLoop'); } frame 44 { _global.mapDataLayer.enableControls(); } frame 51 { stop(); } frame 52 { _global.mapDataLayer.startOnDrop = true; } frame 91 { gotoAndPlay('gameLoop'); } frame 111 { _global.mapStageLayer.mainMap._visible = false; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } frame 113 { stop(); } frame 142 { stop(); } } movieClip 488 { frame 1 { stop(); } } movieClip 490 { } movieClip 493 { } movieClip 495 { } movieClip 497 { } movieClip 500 { frame 1 { stop(); } } movieClip 502 { } movieClip 503 { frame 1 { stop(); } } movieClip 505 { frame 1 { stop(); } } movieClip 507 { } movieClip 508 { frame 1 { stop(); } } movieClip 509 { frame 1 { function refeshScreen() { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; if (_root.gameVariables[1][0][0] == true) { playerChr.filters = [cellShade]; } switchSeries = 0; tempNum = 1; currentLevel = 'levelMain_1'; _root.enemyRange = [0, 1, 2, 3]; _root.selectBG = 'bg6'; if ((eval('_root.areaSwitch_' + switchSeries))[tempNum] == false) { (eval('_root.areaSwitch_' + switchSeries))[tempNum] = true; _root.objectClips_1 = [['ob_0', '', '', '', '', ['Event', 'dialog_B01', false], [true, true]], ['ob_1', '', '', '', '', ['Treasure', 'item', 0], [true, true]], ['ob_2', '', '', '', '', ['Treasure', 'item', 11], [true, true]], ['ob_3', '', '', '', '', ['Fight', '', 1], [true, true], [true, 'event1_VictoryCheck'], [true, 'event1_Defeat']], ['ob_4', '', '', '', '', ['Fight', '', 0], [true, true], [true, 'event1_VictoryCheck'], [true, 'event1_Defeat']], ['ob_5', '', '', '', '', ['Fight', '', 2], [true, true], [true, 'event1_VictoryCheck'], [true, 'event1_Defeat']], ['ob_6', '', '', '', '', ['Fight', '', 3], [true, true], [true, 'event1_VictoryCheck'], [true, 'event1_Defeat']], ['ob_7', '', '', '', '', ['Fight', '', 4], [true, true], [true, 'event1_VictoryCheck'], [true, 'event1_Defeat']], ['ob_8', '', '', '', '', ['Event', 'dialog_B02', false], [true, true]]]; _root.areaStageData_0[1] = 0; } currentObjectClips = eval('_root.objectClips_' + tempNum); counter = 0; i = 0; while (i <= currentObjectClips.length - 1) { thisClip = this[currentObjectClips[i][0]]; thisClip.idType = 'object'; thisClip.idTag = counter; if (_root.gameVariables[1][0][0] == true) { thisClip.filters = [cellShade]; } thisClip.startWidth = this[currentObjectClips[i][0]]._width; currentObjectClips[counter][1] = true; if (currentObjectClips[i][6][1] == false) { loadMovie('', thisClip); } thisClip.onEnterFrame = function () { if (_global.mapDataLayer.game_STATE == 'PLAY') { } }; ++counter; ++i; } delete counter; } function checkFightID(checkNum) { if (checkNum == 0) { _root.arrangedBattleData = [[['NO CHANGE'], [[[2]], [3], [[10, 16]]]], [['bg6'], [['SAME'], [4]]]]; } if (checkNum == 1) { _root.arrangedBattleData = [[['NO CHANGE'], [[[3]], [3], [[11, 17]]]], [['bg6'], [['SAME'], [4]]]]; } if (checkNum == 2) { _root.arrangedBattleData = [[['NO CHANGE'], [[[0]], [3], [[13, 15]]]], [['bg6'], [['SAME'], [4]]]]; } if (checkNum == 3) { _root.arrangedBattleData = [[['NO CHANGE'], [[[1]], [3], [[10, 15]]]], [['bg6'], [['SAME'], [4]]]]; } if (checkNum == 4) { _root.arrangedBattleData = [[['NO CHANGE'], [[[0]], [3], [[10, 15, 16]]]], [['bg6'], [['SAME'], [4]]]]; } } function determineRandomBattle() { if (randomBCount == undefined) { randomCount = 'NONE'; } if (walkTally == undefined) { walkTally = 0; } if (randomBCount == 'NONE') { encounterCounter = 0; } if (randomBCount == 'RARE') { encounterCounter = 150 + Math.round(Math.random() * 100); } if (randomBCount == 'FEW') { encounterCounter = 100 + Math.round(Math.random() * 100); } if (randomBCount == 'MED') { encounterCounter = 50 + Math.round(Math.random() * 100); } if (randomBCount == 'MANY') { encounterCounter = 20 + Math.round(Math.random() * 100); } } function fightFunction(fightID) { game_STATE = 'PAUSE'; _root.setupFight(fightID); } function endBattle(endType) { _global.mapStageLayer.mainMap._visible = true; walkTally = 0; determineRandomBattle(); _root.musicPlayerMC.changeMusic('SAME', roomMusicTrack); (eval('_global.song' + _global.currentSong)).setVolume(_root.gameVariables[0][0][1]); if (skirmishType == 'RANDOM') { if (endType == 'DEFEATED') { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (endType == 'VICTORY') { _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } } if (skirmishType == 'SCRIPTED') { if (endType == 'VICTORY') { if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == false) { currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][7][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } if (endType == 'DEFEATED') { if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == false) { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][8][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } } } function addGravity() { if (gravitySpd == undefined) { gravitySpd = 0; } if (game_STATE == 'PLAY') { gravitySpd += 0.01; if (gravitySpd > 20) { gravitySpd = 20; } } } function jumpAccel() { if (game_STATE == 'PLAY') { jumpDistance += jumpSpd; if (jumpSpd < 0) { player_BEHAVIOR = 'NORMAL'; ceilingTouch = false; delete jumpSpd; delete jumpDistance; } if (jumpSpd < 5) { jumpSpd -= 0.5; } else { jumpSpd -= 1; } } } function runAccel() { if (game_STATE == 'PLAY' and inRun == true) { if (runSpd == undefined) { runSpd = 0; } if (moveDir == 'RIGHT') { if (inAir == true) { runSpd += 0.2 + speedBoost; if (runSpd > 8) { runSpd = 8; } } if (inAir == false) { runSpd += 0.4 + speedBoost; if (runSpd > 8) { runSpd = 8; } } } if (moveDir == 'LEFT') { if (inAir == true) { runSpd -= 0.2 + speedBoost; if (runSpd < -8) { runSpd = -8; } } if (inAir == false) { runSpd -= 0.4 + speedBoost; if (runSpd < -8) { runSpd = -8; } } } } } function onEnterFrame() { if (game_STATE == 'PLAY') { if (playerChr._x > moveThreshold and playerChr._x < moveRightMax and wallTouch == false) { _global.mapStageLayer.mainMap._x -= runSpd * screenScale; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 4; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 8; if (_global.mapStageLayer.mainMap._x > 0) { _global.mapStageLayer.mainMap._x = 0; } } if (playerChr._y < vertThreshold and playerChr._y > vertTopMax) { if (player_BEHAVIOR == 'JUMPING' and ceilingTouch == false) { _global.mapStageLayer.mainMap._y += jumpDistance * screenScale; vertCount += jumpDistance * screenScale; } if (player_BEHAVIOR == 'NORMAL' and inAir == true and ceilingTouch == false and vertCount > 0) { _global.mapStageLayer.mainMap._y -= gravitySpd * screenScale; vertCount -= gravitySpd * screenScale; } if (_global.mapStageLayer.mainMap._y < 0) { _global.mapStageLayer.mainMap._y = 0; } if (_global.mapStageLayer.mainMap._y > 0 and _global.mapStageLayer.mainMap._y < 15) { _global.mapStageLayer.mainMap._y = 0; } } _global.mapStageLayer.destroyCounter.destroyCount.text = _root.areaStageData_0[1] + '/5'; } } function stopRun() { stopRun_Switch = true; moveDir = 'NONE'; if (_global.mapDataLayer.runSpd != 0) { inRun = false; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } runSpd = 0; } } function pauseGame() { game_STATE = 'PAUSE'; playerChr.playerMC.stop(); playerChr.playerMC.shadowMC.stop(); moveDir = 'NONE'; inRun = false; } function unpauseGame() { stopRun_Switch = false; _global.mapDataLayer.game_STATE = 'PLAY'; if (_global.mapDataLayer.runSpd != 0) { _global.mapDataLayer.playerChr.playerMC.play(); } _global.mapDataLayer.playerChr.playerMC.shadowMC.play(); _global.mapDataLayer.enableControls(); Key.addListener(_global.mapDataLayer.openMenu); } function enableControls() { Key.addListener(openMenu); Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } function disableControls() { Key.removeListener(openMenu); Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); } _global.roomName = 'TRAINING II'; _global.mapDataLayer = this; stopRun_Switch = false; var player_VSTATE; var player_BEHAVIOR; player_BEHAVIOR = 'NORMAL'; var doubleJump = true; jumpMax = 3; jumpOn = false; var jumpCounter = 0; inAir = false; inRun = false; inFight = false; ceilingTouch = false; wallTouch = false; var speedBoost = 0; var skirmishType; var game_STATE; game_STATE = 'PLAY'; playerChr.groundMC = ground; playerChr.wallMC = walls; playerChr.ceilingMC = ceiling; screenScale = _global.mapStageLayer.mainMap._xscale / 100; _root.battleInformationData(0); movementBuffer = []; _global.mapDataLayer.objectFocus = false; _root.achievementArray[31][0][1] = true; _root.scanForAchievements(); if (_root.mapTransferData[1][0] == 0) { _global.mapStageLayer.mainMap._x = 0; _global.mapStageLayer.mainMap._y = 40; _global.mapStageLayer.background_A._x = -100; _global.mapStageLayer.background_A._y = -80; _global.mapStageLayer.background_B._x = 0; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 83; _global.mapDataLayer.playerChr._y = -20; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 1) { _global.mapStageLayer.mainMap._x = 500; _global.mapStageLayer.mainMap._y = 40; _global.mapStageLayer.background_A._x = 200; _global.mapStageLayer.background_A._y = -80; _global.mapStageLayer.background_B._x = 0; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 583; _global.mapDataLayer.playerChr._y = -20; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 'LOAD') { _global.mapStageLayer.mainMap._x = _root.locationPacket[0][0][0]; _global.mapStageLayer.mainMap._y = _root.locationPacket[0][0][1]; _global.mapDataLayer.playerChr._x = _root.locationPacket[0][1][0]; _global.mapDataLayer.playerChr._y = _root.locationPacket[0][1][1]; _global.mapDataLayer.playerChr._xscale = _root.locationPacket[0][1][2]; _global.mapStageLayer.background_A._x = _root.locationPacket[0][0][2]; _global.mapStageLayer.background_B._x = _root.locationPacket[0][0][3]; vertCount = _root.locationPacket[0][2][1]; var randomBCount = _root.locationPacket[0][2][2]; player_VSTATE = _root.locationPacket[0][4][0]; player_BEHAVIOR = _root.locationPacket[0][4][1]; inAir = _root.locationPacket[0][4][2]; inRun = _root.locationPacket[0][4][3]; gravitySpd = _root.locationPacket[0][4][4]; roomMusicTrack = 4; } _global.mapStageLayer.gotoAndPlay(_root.mapTransferData[1][1]); refeshScreen(); MovieClip.prototype.objectCheck = function (o, oNum) { if (game_STATE == 'PLAY') { for (i in this.playerMC.sidePerim) { if (_global.mapDataLayer.playerChr.hitTest(o) == true) { action = currentObjectClips[(eval(o)).idTag][5][0]; if (action == 'SaveSpot' and currentObjectClips[(eval(o)).idTag][6][0] == true and inAir == false) { (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); _root.saveOn = true; } if (action == 'Treasure' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapStageLayer.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mapDataLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Search' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.objectFocus = false; } _global.mapStageLayer.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Fight' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapDataLayer.pauseGame(); _global.mapDataLayer.instanceNum = (eval(o)).idTag; _global.mapDataLayer.objectFocus = true; disableControls(); stopRun_Switch = true; moveDir = 'NONE'; inRun = false; runSpd = 0; playerChr.playerMC.gotoAndPlay('standing'); controlBuffer = ['standing']; skirmishType = 'SCRIPTED'; checkFightID(currentObjectClips[(eval(o)).idTag][5][2]); fightFunction('SCRIPTED'); } if (action == 'Event' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { stopRun(); disableControls(); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; _global.mapStageLayer.attachMovie(currentObjectClips[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (this._xscale > 0) { this._x -= 20; } if (this._xscale < 0) { this._x += 20; } if (currentObjectClips[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } } } } }; determineRandomBattle(); MovieClip.prototype.gravityCheck = function () { for (i in this.playerMC.feetPerim) { perimPoint = {'x': this.playerMC.feetPerim[i]._x, 'y': this.playerMC.feetPerim[i]._y}; this.playerMC.feetPerim.localToGlobal(perimPoint); if (checkJump == undefined) { checkJump = true; } if (checkJump == true) { if (this.groundMC.hitTest(perimPoint.x, perimPoint.y, true)) { if (startOnDrop == undefined) { startOnDrop = false; } if (startOnDrop == true) { enableControls(); startOnDrop = false; } --this._y; jumpCounter = 0; if (inAir == true) { if (moveDir == 'RIGHT') { if (runSpd > 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { if (moveDir == 'LEFT') { if (runSpd < 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } inAir = false; jumpOn = false; fallSwitch = true; } } else { addGravity(); } } else { addGravity(); } } }; MovieClip.prototype.wallCheck = function () { for (i in this.playerMC.sidePerim) { sidePoint = {'x': this.playerMC.sidePerim[i]._x, 'y': this.playerMC.sidePerim[i]._y}; this.playerMC.sidePerim.localToGlobal(sidePoint); if (this.wallMC.hitTest(sidePoint.x, sidePoint.y, true)) { if (this._xscale > 0) { --this._x; } if (this._xscale < 0) { ++this._x; } inRun = false; runSpd = 0; } } }; MovieClip.prototype.ceilingCheck = function () { for (i in this.playerMC.headPerim) { headPoint = {'x': this.playerMC.headPerim[i]._x, 'y': this.playerMC.headPerim[i]._y}; this.playerMC.headPerim.localToGlobal(headPoint); if (this.ceilingMC.hitTest(headPoint.x, headPoint.y, true)) { ++this._y; ceilingTouch = true; } } }; playerChr.onEnterFrame = function () { if (game_STATE == 'PLAY') { nowY = this._y; if (player_BEHAVIOR == 'NORMAL') { if (runSpd == undefined) { runSpd = 0; } this._x += runSpd; this._y += gravitySpd; this.gravityCheck(); this.wallCheck(); runAccel(); } if (player_BEHAVIOR == 'JUMPING') { this._x += runSpd; this._y -= jumpDistance; this.wallCheck(); this.ceilingCheck(); runAccel(); jumpAccel(); } laterY = this._y; } if (game_STATE == 'PLAY') { varZ = 0; while (varZ <= currentObjectClips.length - 1) { if (currentObjectClips[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(currentObjectClips[varZ][0])).startWidth - (eval(currentObjectClips[varZ][0]))._width); distanceFrom = (eval(currentObjectClips[varZ][0]))._x - widthDifference - (_global.mapDataLayer.playerChr._x + (_global.mapDataLayer.playerChr._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(currentObjectClips[varZ][0]))._width + (_global.mapDataLayer.playerChr._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { _root.saveOn = false; this.objectCheck(eval(currentObjectClips[varZ][0]), varZ); } else { if (_global.mapDataLayer.objectFocus == true and varZ == _global.mapDataLayer.itemNumber) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; Key.removeListener(_global.mapDataLayer.searchKey); removeMovieClip(_global.mapStageLayer.newEvent); (eval(currentObjectClips[varZ][0])).gotoAndPlay('load'); } } } ++varZ; } } if (game_STATE == 'PLAY') { if (nowY < laterY) { player_VSTATE = 'DECENDING'; fallSpeed = Math.abs(nowY - laterY); if (fallSpeed > 1) { if (fallSwitch == undefined) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; fallSwitch = false; } if (fallSpeed >= 10 and fallSwitch == true and jumpOn == false) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; gravitySpd = 1; fallSwitch = false; ++jumpCounter; checkJump = true; inAir = true; speedBoost = 0; } if (fallSpeed > 5) { inAir = true; checkJump = true; speedBoost = 0; } } } if (Math.abs(nowY - laterY) < 1) { player_VSTATE = 'LEVELED'; } if (nowY > laterY) { player_VSTATE = 'ASCENDING'; fallSpeed = Math.abs(nowY - laterY); } } if (randomBCount != 'NONE') { if (inFall == true or inRun == true) { ++walkTally; } if (walkTally >= encounterCounter) { _root.selectBG = battleBGNum; skirmishType = 'RANDOM'; fightFunction(skirmishType); _global.mapDataLayer.pauseGame(); _global.mapDataLayer.objectFocus = true; walkTally = 0; } } }; screenScale = _global.mapStageLayer.mainMap._xscale / 100; moveThreshold = 400 / screenScale; moveRightMax = areaMap._width - moveThreshold + areaMap._x; vertThreshold = 400 / screenScale; vertTopMax = -areaMap._height * screenScale + 600 + vertThreshold; if (vertCount == undefined) { vertCount = 0; } controlBuffer = []; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and player_BEHAVIOR == 'NORMAL' and jumpCounter < jumpMax) { ++jumpCounter; if (jumpCounter > jumpMax) { jumpCounter = jumpMax; } playerChr.playerMC.gotoAndPlay('jumpUpward'); controlBuffer = ['jumpUpward']; player_BEHAVIOR = 'JUMPING'; jumpOn = true; inAir = true; checkJump = false; if (jumpCounter == 1) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 0.5; } if (jumpCounter >= 2) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 1; } } }; moveRight = new Object(); moveRight.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '39' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'RIGHT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = 100; } } moveRight.onKeyUp = function () { if (Key.getCode() == '39' and moveDir == 'RIGHT') { if (game_STATE == 'PLAY') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '37' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'LEFT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = -100; } } moveLeft.onKeyUp = function () { if (game_STATE == 'PLAY') { if (Key.getCode() == '37' and moveDir == 'LEFT') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8' and _global.mapDataLayer.objectFocus == false and _global.mapDataLayer.jumpOn == false and _global.mapDataLayer.inAir == false and stopRun_Switch == false) { if (game_STATE == 'PLAY') { pauseGame(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 500, {'_x': 0, '_y': 0}); } Key.removeListener(openMenu); disableControls(); } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { refeshScreen(); if (objectData[0] == 'Treasure' and _global.mapDataLayer.objectFocus == true) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; removeMovieClip(_global.mapStageLayer.newEvent); ++_root.gamePlay_Stats[4][2]; _root.scanForAchievements(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; } _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = 'AQUIRED'; _global.annoucementStringLarge = (eval('_root.item_' + objectData[2]))[0]; currentObjectClips[objectData[4]][6] = [false, false]; refeshScreen(); Key.removeListener(searchKey); objectData = []; } if (objectData[0] == 'Search' and _global.mapDataLayer.objectFocus == true and inAir == false) { Key.removeListener(searchKey); removeMovieClip(_global.mapStageLayer.newEvent); stopRun(); disableControls(); _global.mapStageLayer.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; stop(); } } movieClip 512 { } movieClip 517 levelMain_1 { frame 1 { _global.mapStageLayer = this; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 250, '_y': 210}); textBoxMC._xscale = 100; textBoxMC._yscale = 100; attachMovie('slideShowStages', 'slideShowStages', 450, {'_x': 175, '_y': 100}); _global.mapStageLayer.destroyCounter._visible = false; stop(); } frame 23 { _parent.gotoAndPlay('loadNewArea'); stop(); } frame 43 { _global.mapDataLayer.enableControls(); gotoAndPlay('gameLoop'); } frame 44 { _global.mapDataLayer.enableControls(); } frame 51 { stop(); } frame 52 { _global.mapDataLayer.startOnDrop = true; } frame 91 { gotoAndPlay('gameLoop'); } frame 111 { _global.mapStageLayer.mainMap._visible = false; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } frame 113 { stop(); } frame 142 { stop(); } } movieClip 518 dialog_B01 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['This area is dedicated to honing your combat skills. As a Maverick Hunter, one of your primary duties is hunting down and eliminating Reploid related threats. Unfortunately, while combat is not the preferred way to resolve these conflicts, it is sometimes unavoidable. You must always be prepared.']], [[98, 0, 0], ['TEXT'], ['For this area, you need to destroy all five Reploids in the area before you\'re allowed to proceed. Remember to keep an eye on your health. You can use items to restore your HP\'s.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 3 { lineCount = 0; speechPack = [[[98, 0, 0], ['SLIDE'], ['There are several aspects to combat that you might need to refamiliarize yourself with.'], [['Not necessary. (Skip)'], ['Timed Hits'], ['Limit Breaks'], ['Sync Meter'], ['Support Meter'], ['Items']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 8 { if (_root.slideReturn == 1) { lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['What are Timed Hits?']], [[98, 0, 0], ['TEXT', 'stage1_slide1'], ['Before striking an enemy or before an enemy strikes you, that character might briefly flash white. During that time a small window of opportunity will present itself. By pressing the [SPACE BAR] at that exact moment, you can do extra damage in the form of a stronger or extra attack. If an enemy is attacking you, you might recieve less damage or nullify their second hit. If done correctly, the words "TIMED HIT" will appear in the corner. Be warned that simply hammering away at the [SPACE BAR] will do nothing.']], [[0, 0, 0], ['TEXT', 'fadeOut'], ['Sounds tricky.']], [[98, 0, 0], ['TEXT'], ['It can be at first, but with a little practice it will be like second nature. However, the timing on each character is different, so be sure to practice. Mastering this skill will be the quickest route for victory.']], [[98, 0, 0], ['SLIDE'], ['Do you have any other questions'], [['Yes.'], ['I\'m done.']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 2) { lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['What are Limit Breaks?']], [[98, 0, 0], ['TEXT', 'stage1_slide5'], ['Limit Breaks are devestating techniques that become available only after sustaining large amounts of damage, by utilizing the Sync Meter, or using specific skills. While the limit break does not have to be used immediately, other techniques cannot be used while it is active.']], [[98, 0, 0], ['TEXT', 'fadeOut'], ['Some enemies have limit breaks as well. There are techniques availble that can stop an enemie\'s Limit Break.']], [[98, 0, 0], ['SLIDE'], ['Do you have any other questions'], [['Yes.'], ['I\'m done.']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 3) { lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['What is the Sync Meter?']], [[98, 0, 0], ['TEXT', 'stage1_slide6'], ['The Sync Meter is a constantly charging meter that, after reaching a certain threshold, allows you to preform additional techniques.']], [[98, 0, 0], ['TEXT'], ['These include [BLOCK], [ITEMS], [CALL FOR SUPPORT], and [INSTANT LIMIT].']], [[98, 0, 0], ['TEXT'], ['Certain techniques can accelerate the recharge rate of the sync meter while team cohesion affects the maximum charge capacity.']], [[0, 0, 0], ['TEXT', 'fadeOut'], ['Laymen\'s terms please.']], [[98, 0, 0], ['TEXT'], ['Basically, the better your team gets along with each other, the quicker and more efficient the Sync Meter will become. Being a leader not only means making difficult choices, but keeping your team together.']], [[98, 0, 0], ['SLIDE'], ['Do you have any other questions'], [['Yes.'], ['I\'m done.']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 4) { lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['What is the Support Meter?']], [[98, 0, 0], ['TEXT', 'stage1_slide2'], ['The Support Meter gradually recharges during the course of battle. Upon being filled, your support character (if anybody is assigned to that role) will preform a random technique, unique to that character. Sometimes it\'s a Sniper Shot; somtimes it\'s a Grenade.']], [[98, 0, 0], ['SLIDE', 'fadeOut'], ['Do you have any other questions'], [['Yes.'], ['I\'m done.']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 5) { lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['How do I use items during battle?']], [[98, 0, 0], ['TEXT', 'stage1_slide3'], ['Items are avaible for use once your Sync Meter has surpassed the second threshold. When it\'s available, press [UP] during your turn to select the secondary command bar. Along with using items, you\'ll also be able to Block, Call for Support (when a support character is available), and use the Instant Limit command.']], [[0, 0, 0], ['TEXT', 'fadeOut'], ['But I can\'t do any of that until my Sync Meter is ready. Understood.']], [[98, 0, 0], ['SLIDE'], ['Do you have any other questions'], [['Yes.'], ['I\'m done.']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 0) { lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['Sigh.']], [[0, 0, 0], ['TEXT'], ['Battle is what I do best.']]]; _root.slideReturn = 1; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); if (_global.totalSaves == 0) { ++_root.gamePlay_Stats[7][1]; _root.scanForAchievements(); } } } frame 9 { if (_root.slideReturn == 0) { gotoAndPlay('speechLoop'); } if (_root.slideReturn == 1) { play(); } } frame 14 { _global.annoucementStringSmall = 'NEW OBJECTIVE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[1][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[1][0] = true; _root.map0_OBJECTIVES[1][1] = true; _root.refreshObjectives(_root.currentObj_Num); _global.mapStageLayer.destroyCounter._visible = true; _root.objectClips_1[0][5][0] = 'Search'; _global.mapDataLayer.refeshScreen(); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 519 dialog_B02 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); if (_root.areaStageData_0[1] < 5) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You have not destroyed all the enemies.']], [[98, 0, 0], ['TEXT'], ['If you have problems reaching the higher platforms, remember that you can triple jump by pressing the [SPACE BAR] three times in mid-air.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.areaStageData_0[1] >= 5) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Let\'s move on to the next area.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 11 { if (_root.areaStageData_0[1] >= 5) { _root.mapTransferData = [['levelMain_2'], [0, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); } else { _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); } stop(); } } movieClip 520 event1_Defeat { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); _root.updateTData(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Are you okay, Commander? What happened?']], [[0, 0, 0], ['TEXT'], ['I... I don\'t know. Let me try that again.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 14 { _root.mapTransferData = [['levelMain_1'], [0, 'startOnDrop'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 521 event1_VictoryCheck { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); _global.mapDataLayer.currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; _global.mapDataLayer.currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.refeshScreen(); ++_root.areaStageData_0[1]; if (_root.areaStageData_0[1] >= 5) { _global.annoucementStringSmall = 'OBJECTIVE COMPLETE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[1][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[1][0] = true; _root.map0_OBJECTIVES[1][1] = true; _root.map0_OBJECTIVES[1][2] = true; _root.refreshObjectives(_root.currentObj_Num); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Good job sir.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 6 { _global.mapDataLayer.enableControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 524 stage1_slide1 { } movieClip 527 stage1_slide2 { } movieClip 530 stage1_slide3 { } movieClip 533 stage1_slide4 { } movieClip 536 stage1_slide5 { } movieClip 539 stage1_slide6 { } movieClip 540 { frame 1 { stop(); } } movieClip 541 dialog_C01 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['This next area will instruct you on how to change GEAR and BATTLE CHIPS.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 3 { lineCount = 0; speechPack = [[[0, 0, 0], ['SLIDE'], ['How do I...'], [['Nevermind. (Skip)'], ['Change gear?'], ['Battle Chips?']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 8 { if (_root.slideReturn == 0) { speechBranch = 'A'; lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['Nevermind. Remember.']], [[98, 0, 0], ['TEXT'], ['Make sure you equip the gear I\'ve placed in front of you.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); if (_global.totalSaves == 0) { ++_root.gamePlay_Stats[7][1]; _root.scanForAchievements(); } } if (_root.slideReturn == 1) { speechBranch = 'B'; lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['How do I change gear again?']], [[98, 0, 0], ['TEXT'], ['It\'s simple sir. First, begin by bringing up the menu by pressing [BACKSPACE on PC] or [DELETE on Macs].']], [[98, 0, 0], ['TEXT', 'stage2_slide1'], ['Then press the [ARROW KEYS] until you\'ve come upon the [EQUIPMENT] tab. Then press [SPACE BAR] to continue.']], [[98, 0, 0], ['TEXT', 'stage2_slide2'], ['You will then need to select a character using the [ARROW KEYS] then continue by pressing the [SPACE BAR]. Then, select the armarment you wish to change (MELEE, BUSTER, ARMOR, ETC) then press the [SPACE BAR].']], [[98, 0, 0], ['TEXT', 'stage2_slide3'], ['Next, you will need to select a type of armarment to change. In this case, you will be changing out your ARMOR for the gear found in front of you.']], [[98, 0, 0], ['TEXT', 'stage2_slide4'], ['Equipment can vary dramatically in each catagory (str, def, agi), but for now, we\'re concerned with just one factor: CHIP SLOTS. If you haven\'t changed out your gear, you\'ll have no CHIP SLOTS availble to use.']], [[98, 0, 0], ['TEXT'], ['Open CHIP SLOTS allow you to attach BATTLE CHIPS to enhance your abilities in battle. Without them, it\'s impossible to learn new techniques.']], [[0, 0, 0], ['TEXT', 'fadeOut'], ['We can discuss that later.']], [[98, 0, 0], ['TEXT'], ['Ah yes. Back to the task at hand. To finish changing gear, all you have to do is select it, press the [SPACE BAR], then select a new piece of equipment (if any is availble). It\'s that simple. Any changes to your gear will then be reflected in your status. Be forwarned that changing out any piece of equipment WILL RESET YOUR BATTLE CHIP configurations, so plan wisely.']], [[0, 0, 0], ['TEXT', 'stage2_slide5'], ['What do all these numbers mean?']], [[98, 0, 0], ['TEXT'], ['As I mentioned earlier, changing gear can change your stats. Numbers reflected in BLUE represent POSITIVE changes in your gear while YELLOW represents NEGATIVE. WHITE means NO CHANGE.']], [[0, 0, 0], ['TEXT', 'fadeOut'], ['I think I\'ve got it now. Thanks.']], [[98, 0, 0], ['TEXT'], ['Anything else, sir?']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 2) { speechBranch = 'C'; lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['How do I change BATTLE CHIPS?']], [[98, 0, 0], ['TEXT'], ['BATTLE CHIPS, like gear, is simply an exercise in picking and choosing. To begin with, bring up the MENU, tab over to BATTLE CHIPS, and select your character.']], [[98, 0, 0], ['TEXT', 'stage2_slide6'], ['Before you begin this process, it\'s advised that you first arrange your gear. Any changes to it will reset your BATTLE CHIP configurations. Furthermore, you\'ll need to have at least one open CHIP SLOT.']], [[98, 0, 0], ['TEXT'], ['CHIP SLOTS are only availble by changing out your gear. Some equipment might have one or two open slots; some might have none. The number of open slots avaible to you depends on the equipment that you have availble and what you choose to piece together. The max amount of CHIP SLOTS you can have is 10.']], [[98, 0, 0], ['TEXT', 'stage2_slide7'], ['Open CHIP SLOTS allow you to attach BATTLE CHIPS to enhance your abilities in battle. Without them, it\'s impossible to learn new techniques.']], [[0, 0, 0], ['TEXT', 'stage2_slide8'], ['Now I remember. Just by equipping BATTLE CHIPS, I\'ll also be able to use new commands in battle.']], [[98, 0, 0], ['TEXT', 'fadeOut'], ['Exactly. Whereas techniques must be learned, commands an be utilized immediately.']], [[0, 0, 0], ['TEXT'], ['I understand now.']], [[98, 0, 0], ['TEXT'], ['To remove a BATTLE CHIP from it\'s slot, simply select another BATTLE CHIP to replace it or highlight the one you want removed and press the [U] key. As a reminder, changing out ANY gear will RESET your BATTLE CHIPS configurations, thus, removing them all simultaneously.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 9 { if (speechBranch == 'B') { gotoAndPlay('speechLoop'); } if (speechBranch == 'C') { gotoAndPlay('speechLoop'); } } frame 14 { _global.annoucementStringSmall = 'NEW OBJECTIVE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[2][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[2][0] = true; _root.map0_OBJECTIVES[2][1] = true; _root.refreshObjectives(_root.currentObj_Num); _root.objectClips_2[3][5][0] = 'Search'; _global.mapDataLayer.refeshScreen(); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 542 eventC0_Next { frame 1 { _root.mapTransferData = [['levelMain_3'], [0, 'startOnDrop'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 552 { } movieClip 554 { } movieClip 556 { } movieClip 567 { } movieClip 568 savePointMC { frame 1 { stop(); } frame 22 { gotoAndStop('load'); } } movieClip 570 { } movieClip 571 { frame 1 { stop(); } } movieClip 572 { frame 1 { function refeshScreen() { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; if (_root.gameVariables[1][0][0] == true) { playerChr.filters = [cellShade]; } switchSeries = 0; tempNum = 2; currentLevel = 'levelMain_2'; _root.enemyRange = [0, 1, 2, 3]; _root.selectBG = 'bg6'; if ((eval('_root.areaSwitch_' + switchSeries))[tempNum] == false) { (eval('_root.areaSwitch_' + switchSeries))[tempNum] = true; _root.objectClips_2 = [['ob_0', '', '', '', '', ['Treasure', 'gear_Armor', 1], [true, true]], ['ob_1', '', '', '', '', ['Treasure', 'chip', 8], [true, true]], ['ob_2', '', '', '', '', ['Treasure', 'gear_Melee', 1], [true, true]], ['ob_3', '', '', '', '', ['Event', 'dialog_C01', false], [true, true]], ['ob_4', '', '', '', '', ['Event', 'dialog_C02', false], [true, true]], ['ob_5', '', '', '', '', ['Fight', '', 0], [true, true], [true, 'event2_newTech'], [true, 'eventC0_Defeat']], ['ob_6', '', '', '', '', ['Fight', '', 1], [true, true], [false, ''], [true, 'eventC0_Defeat']], ['ob_7', '', '', '', '', ['Fight', '', 2], [true, true], [false, ''], [true, 'eventC0_Defeat']], ['ob_8', '', '', '', '', ['SaveSpot', 'item', 0], [true, true]], ['ob_9', '', '', '', '', ['Event', 'dialog_C03', true], [true, true]], ['ob_10', '', '', '', '', ['Event', 'dialog_C04', false], [true, true]], ['ob_11', '', '', '', '', ['Event', 'eventC0_Fall', false], [true, true]], ['ob_12', '', '', '', '', ['Event', 'eventC0_Next', false], [true, true]]]; _root.areaStageData_0[2] = 0; } currentObjectClips = eval('_root.objectClips_' + tempNum); counter = 0; i = 0; while (i <= currentObjectClips.length - 1) { thisClip = this[currentObjectClips[i][0]]; thisClip.idType = 'object'; thisClip.idTag = counter; if (_root.gameVariables[1][0][0] == true) { thisClip.filters = [cellShade]; } thisClip.startWidth = this[currentObjectClips[i][0]]._width; currentObjectClips[counter][1] = true; if (currentObjectClips[i][6][1] == false) { thisClip._visible = false; } else { thisClip._visible = true; } thisClip.onEnterFrame = function () { if (_global.mapDataLayer.game_STATE == 'PLAY') { } }; ++counter; ++i; } delete counter; } function checkFightID(checkNum) { if (checkNum == 0) { _root.arrangedBattleData = [[['NO CHANGE'], [[[101]], [3], [[10]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 1) { _root.arrangedBattleData = [[['NO CHANGE'], [[[102]], [3], [[10, 14, 16]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 2) { _root.arrangedBattleData = [[['NO CHANGE'], [[[103]], [3], [[11, 17]]]], [['bg6'], [['SAME'], [1]]]]; } } function determineRandomBattle() { if (randomBCount == undefined) { randomCount = 'NONE'; } if (walkTally == undefined) { walkTally = 0; } if (randomBCount == 'NONE') { encounterCounter = 0; } if (randomBCount == 'RARE') { encounterCounter = 150 + Math.round(Math.random() * 100); } if (randomBCount == 'FEW') { encounterCounter = 100 + Math.round(Math.random() * 100); } if (randomBCount == 'MED') { encounterCounter = 50 + Math.round(Math.random() * 100); } if (randomBCount == 'MANY') { encounterCounter = 20 + Math.round(Math.random() * 100); } } function fightFunction(fightID) { game_STATE = 'PAUSE'; _root.setupFight(fightID); } function endBattle(endType) { _global.mapStageLayer.mainMap._visible = true; walkTally = 0; determineRandomBattle(); _root.musicPlayerMC.changeMusic('SAME', roomMusicTrack); (eval('_global.song' + _global.currentSong)).setVolume(_root.gameVariables[0][0][1]); if (skirmishType == 'RANDOM') { if (endType == 'DEFEATED') { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (endType == 'VICTORY') { _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } } if (skirmishType == 'SCRIPTED') { if (endType == 'VICTORY') { if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == false) { currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); ++_root.areaStageData_0[2]; } if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][7][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } if (endType == 'DEFEATED') { if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == false) { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][8][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } } } function addGravity() { if (gravitySpd == undefined) { gravitySpd = 0; } if (game_STATE == 'PLAY') { gravitySpd += 0.01; if (gravitySpd > 20) { gravitySpd = 20; } } } function jumpAccel() { if (game_STATE == 'PLAY') { jumpDistance += jumpSpd; if (jumpSpd < 0) { player_BEHAVIOR = 'NORMAL'; ceilingTouch = false; delete jumpSpd; delete jumpDistance; } if (jumpSpd < 5) { jumpSpd -= 0.5; } else { jumpSpd -= 1; } } } function runAccel() { if (game_STATE == 'PLAY' and inRun == true) { if (runSpd == undefined) { runSpd = 0; } if (moveDir == 'RIGHT') { if (inAir == true) { runSpd += 0.2 + speedBoost; if (runSpd > 8) { runSpd = 8; } } if (inAir == false) { runSpd += 0.4 + speedBoost; if (runSpd > 8) { runSpd = 8; } } } if (moveDir == 'LEFT') { if (inAir == true) { runSpd -= 0.2 + speedBoost; if (runSpd < -8) { runSpd = -8; } } if (inAir == false) { runSpd -= 0.4 + speedBoost; if (runSpd < -8) { runSpd = -8; } } } } } function onEnterFrame() { if (game_STATE == 'PLAY') { if (playerChr._x > moveThreshold and playerChr._x < moveRightMax and wallTouch == false) { _global.mapStageLayer.mainMap._x -= runSpd * screenScale; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 4; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 8; if (_global.mapStageLayer.mainMap._x > 0) { _global.mapStageLayer.mainMap._x = 0; } } if (playerChr._y < vertThreshold and playerChr._y > vertTopMax) { if (player_BEHAVIOR == 'JUMPING' and ceilingTouch == false) { _global.mapStageLayer.mainMap._y += jumpDistance * screenScale; vertCount += jumpDistance * screenScale; } if (player_BEHAVIOR == 'NORMAL' and inAir == true and ceilingTouch == false and vertCount > 0) { _global.mapStageLayer.mainMap._y -= gravitySpd * screenScale; vertCount -= gravitySpd * screenScale; } if (_global.mapStageLayer.mainMap._y < 0) { _global.mapStageLayer.mainMap._y = 0; } if (_global.mapStageLayer.mainMap._y > 0 and _global.mapStageLayer.mainMap._y < 15) { _global.mapStageLayer.mainMap._y = 0; } } } } function stopRun() { stopRun_Switch = true; moveDir = 'NONE'; if (_global.mapDataLayer.runSpd != 0) { inRun = false; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } runSpd = 0; } } function pauseGame() { game_STATE = 'PAUSE'; playerChr.playerMC.stop(); playerChr.playerMC.shadowMC.stop(); moveDir = 'NONE'; inRun = false; } function unpauseGame() { stopRun_Switch = false; _global.mapDataLayer.game_STATE = 'PLAY'; if (_global.mapDataLayer.runSpd != 0) { _global.mapDataLayer.playerChr.playerMC.play(); } _global.mapDataLayer.playerChr.playerMC.shadowMC.play(); _global.mapDataLayer.enableControls(); Key.addListener(_global.mapDataLayer.openMenu); } function enableControls() { Key.addListener(openMenu); Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } function disableControls() { Key.removeListener(openMenu); Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); } _global.roomName = 'TRAINING III'; _global.mapDataLayer = this; stopRun_Switch = false; var player_VSTATE; var player_BEHAVIOR; player_BEHAVIOR = 'NORMAL'; var doubleJump = true; jumpMax = 3; jumpOn = false; var jumpCounter = 0; inAir = false; inRun = false; inFight = false; ceilingTouch = false; wallTouch = false; var speedBoost = 0; var skirmishType; var game_STATE; game_STATE = 'PLAY'; playerChr.groundMC = ground; playerChr.wallMC = walls; playerChr.ceilingMC = ceiling; screenScale = _global.mapStageLayer.mainMap._xscale / 100; _root.battleInformationData(0); movementBuffer = []; _global.mapDataLayer.objectFocus = false; if (_root.mapTransferData[1][0] == 0) { _global.mapStageLayer.mainMap._x = 0; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = -100; _global.mapStageLayer.background_A._y = 0; _global.mapStageLayer.background_B._x = 0; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 59; _global.mapDataLayer.playerChr._y = 536.6000000000003; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 1) { _global.mapStageLayer.mainMap._x = -222.3; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = -180; _global.mapStageLayer.background_A._y = 0; _global.mapStageLayer.background_B._x = 0; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 628; _global.mapDataLayer.playerChr._y = -10; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 'LOAD') { _global.mapStageLayer.mainMap._x = _root.locationPacket[0][0][0]; _global.mapStageLayer.mainMap._y = _root.locationPacket[0][0][1]; _global.mapDataLayer.playerChr._x = _root.locationPacket[0][1][0]; _global.mapDataLayer.playerChr._y = _root.locationPacket[0][1][1]; _global.mapDataLayer.playerChr._xscale = _root.locationPacket[0][1][2]; _global.mapStageLayer.background_A._x = _root.locationPacket[0][0][2]; _global.mapStageLayer.background_B._x = _root.locationPacket[0][0][3]; vertCount = _root.locationPacket[0][2][1]; var randomBCount = _root.locationPacket[0][2][2]; player_VSTATE = _root.locationPacket[0][4][0]; player_BEHAVIOR = _root.locationPacket[0][4][1]; inAir = _root.locationPacket[0][4][2]; inRun = _root.locationPacket[0][4][3]; gravitySpd = _root.locationPacket[0][4][4]; roomMusicTrack = 4; } _global.mapStageLayer.gotoAndPlay(_root.mapTransferData[1][1]); refeshScreen(); MovieClip.prototype.objectCheck = function (o, oNum) { if (game_STATE == 'PLAY') { for (i in this.playerMC.sidePerim) { if (_global.mapDataLayer.playerChr.hitTest(o) == true) { action = currentObjectClips[(eval(o)).idTag][5][0]; if (action == 'SaveSpot' and currentObjectClips[(eval(o)).idTag][6][0] == true and inAir == false) { (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); _root.saveOn = true; if (checkOnce == undefined) { checkOnce = false; } if (checkOnce == false) { checkOnce = true; _root.autoSaveFeature(); _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = 'Autosave'; _global.annoucementStringLarge = 'Progress Saved'; } } if (action == 'Treasure' and currentObjectClips[(eval(o)).idTag][6][0] == true and currentObjectClips[(eval(o)).idTag][6][1] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapStageLayer.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mapDataLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Search' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.objectFocus = false; } _global.mapStageLayer.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Fight' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { _global.mapDataLayer.instanceNum = (eval(o)).idTag; _global.mapDataLayer.objectFocus = true; stopRun(); disableControls(); skirmishType = 'SCRIPTED'; checkFightID(currentObjectClips[(eval(o)).idTag][5][2]); fightFunction('SCRIPTED'); } if (action == 'Event' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { stopRun(); disableControls(); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; _global.mapStageLayer.attachMovie(currentObjectClips[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (this._xscale > 0) { this._x -= 20; } if (this._xscale < 0) { this._x += 20; } if (currentObjectClips[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } } } } }; determineRandomBattle(); MovieClip.prototype.gravityCheck = function () { for (i in this.playerMC.feetPerim) { perimPoint = {'x': this.playerMC.feetPerim[i]._x, 'y': this.playerMC.feetPerim[i]._y}; this.playerMC.feetPerim.localToGlobal(perimPoint); if (checkJump == undefined) { checkJump = true; } if (checkJump == true) { if (this.groundMC.hitTest(perimPoint.x, perimPoint.y, true)) { if (startOnDrop == undefined) { startOnDrop = false; } if (startOnDrop == true) { enableControls(); startOnDrop = false; } --this._y; jumpCounter = 0; if (inAir == true) { if (moveDir == 'RIGHT') { if (runSpd > 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { if (moveDir == 'LEFT') { if (runSpd < 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } inAir = false; jumpOn = false; fallSwitch = true; } } else { addGravity(); } } else { addGravity(); } } }; MovieClip.prototype.wallCheck = function () { for (i in this.playerMC.sidePerim) { sidePoint = {'x': this.playerMC.sidePerim[i]._x, 'y': this.playerMC.sidePerim[i]._y}; this.playerMC.sidePerim.localToGlobal(sidePoint); if (this.wallMC.hitTest(sidePoint.x, sidePoint.y, true)) { if (this._xscale > 0) { --this._x; } if (this._xscale < 0) { ++this._x; } inRun = false; runSpd = 0; } } }; MovieClip.prototype.ceilingCheck = function () { for (i in this.playerMC.headPerim) { headPoint = {'x': this.playerMC.headPerim[i]._x, 'y': this.playerMC.headPerim[i]._y}; this.playerMC.headPerim.localToGlobal(headPoint); if (this.ceilingMC.hitTest(headPoint.x, headPoint.y, true)) { ++this._y; ceilingTouch = true; } } }; playerChr.onEnterFrame = function () { if (game_STATE == 'PLAY') { nowY = this._y; if (player_BEHAVIOR == 'NORMAL') { if (runSpd == undefined) { runSpd = 0; } this._x += runSpd; this._y += gravitySpd; this.gravityCheck(); this.wallCheck(); runAccel(); } if (player_BEHAVIOR == 'JUMPING') { this._x += runSpd; this._y -= jumpDistance; this.wallCheck(); this.ceilingCheck(); runAccel(); jumpAccel(); } laterY = this._y; } if (game_STATE == 'PLAY') { varZ = 0; while (varZ <= currentObjectClips.length - 1) { if (currentObjectClips[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(currentObjectClips[varZ][0])).startWidth - (eval(currentObjectClips[varZ][0]))._width); distanceFrom = (eval(currentObjectClips[varZ][0]))._x - widthDifference - (_global.mapDataLayer.playerChr._x + (_global.mapDataLayer.playerChr._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(currentObjectClips[varZ][0]))._width + (_global.mapDataLayer.playerChr._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { _root.saveOn = false; this.objectCheck(eval(currentObjectClips[varZ][0]), varZ); } else { if (_global.mapDataLayer.objectFocus == true and varZ == _global.mapDataLayer.itemNumber) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; removeMovieClip(_global.mapStageLayer.newEvent); (eval(currentObjectClips[varZ][0])).gotoAndPlay('load'); } } } ++varZ; } } if (game_STATE == 'PLAY') { if (nowY < laterY) { player_VSTATE = 'DECENDING'; fallSpeed = Math.abs(nowY - laterY); if (fallSpeed > 1) { if (fallSwitch == undefined) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; fallSwitch = false; } if (fallSpeed >= 10 and fallSwitch == true and jumpOn == false) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; gravitySpd = 1; fallSwitch = false; ++jumpCounter; checkJump = true; inAir = true; speedBoost = 0; } if (fallSpeed > 5) { inAir = true; checkJump = true; speedBoost = 0; } } } if (Math.abs(nowY - laterY) < 1) { player_VSTATE = 'LEVELED'; } if (nowY > laterY) { player_VSTATE = 'ASCENDING'; fallSpeed = Math.abs(nowY - laterY); } } if (randomBCount != 'NONE') { if (inFall == true or inRun == true) { ++walkTally; } if (walkTally >= encounterCounter) { _root.selectBG = battleBGNum; skirmishType = 'RANDOM'; fightFunction(skirmishType); _global.mapDataLayer.pauseGame(); _global.mapDataLayer.objectFocus = true; walkTally = 0; } } }; screenScale = _global.mapStageLayer.mainMap._xscale / 100; moveThreshold = 400 / screenScale; moveRightMax = areaMap._width - moveThreshold + areaMap._x; vertThreshold = 400 / screenScale; vertTopMax = -areaMap._height * screenScale + 600 + vertThreshold; if (vertCount == undefined) { vertCount = 0; } controlBuffer = []; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and player_BEHAVIOR == 'NORMAL' and jumpCounter < jumpMax) { ++jumpCounter; if (jumpCounter > jumpMax) { jumpCounter = jumpMax; } playerChr.playerMC.gotoAndPlay('jumpUpward'); controlBuffer = ['jumpUpward']; player_BEHAVIOR = 'JUMPING'; jumpOn = true; inAir = true; checkJump = false; if (jumpCounter == 1) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 0.5; } if (jumpCounter >= 2) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 1; } } }; moveRight = new Object(); moveRight.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '39' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'RIGHT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = 100; } } moveRight.onKeyUp = function () { if (Key.getCode() == '39' and moveDir == 'RIGHT') { if (game_STATE == 'PLAY') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '37' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'LEFT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = -100; } } moveLeft.onKeyUp = function () { if (game_STATE == 'PLAY') { if (Key.getCode() == '37' and moveDir == 'LEFT') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8' and _global.mapDataLayer.objectFocus == false and _global.mapDataLayer.jumpOn == false and _global.mapDataLayer.inAir == false and stopRun_Switch == false) { if (game_STATE == 'PLAY') { pauseGame(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 500, {'_x': 0, '_y': 0}); } Key.removeListener(openMenu); disableControls(); } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { refeshScreen(); if (objectData[0] == 'Treasure' and _global.mapDataLayer.objectFocus == true) { _global.mapDataLayer.objectFocus = false; removeMovieClip(_global.mapStageLayer.newEvent); ++_root.gamePlay_Stats[4][2]; _root.scanForAchievements(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; smallText = 'NEW ITEM'; largeText = (eval('_root.item_' + objectData[2]))[0]; } if (objectData[1] == 'chip') { _root.chipSwitch[objectData[2]] = true; ++_root.numOfChips[objectData[2]]; _root.updateACData(); smallText = 'NEW BATTLE CHIP'; largeText = _root.refChips[objectData[2]]; } if (objectData[1] == 'gear_Head') { ++_root.listHead[objectData[2]]; smallText = 'NEW GEAR (HELMET)'; largeText = (eval('_root.WpnHead' + objectData[2]))[0]; } if (objectData[1] == 'gear_Buster') { ++_root.listBuster[objectData[2]]; smallText = 'NEW WEAPON (BUSTER)'; largeText = (eval('_root.WpnBuster' + objectData[2]))[0]; } if (objectData[1] == 'gear_Melee') { ++_root.listMelee[objectData[2]]; smallText = 'NEW WEAPON (MELEE)'; largeText = (eval('_root.WpnMelee' + objectData[2]))[0]; } if (objectData[1] == 'gear_Armor') { ++_root.listArmor[objectData[2]]; smallText = 'NEW GEAR (ARMOR)'; largeText = (eval('_root.WpnArmor' + objectData[2]))[0]; } if (objectData[1] == 'gear_Legs') { ++_root.listLeg[objectData[2]]; smallText = 'NEW GEAR (LEGS)'; largeText = (eval('_root.WpnLeg' + objectData[2]))[0]; } if (objectData[1] == 'gear_Trinket') { ++_root.listTrinket[objectData[2]]; smallText = 'NEW GEAR (TRINKET)'; largeText = (eval('_root.WpnTrinket' + objectData[2]))[0]; } _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; currentObjectClips[objectData[4]][6][1] = false; refeshScreen(); Key.removeListener(searchKey); objectData = []; } if (objectData[0] == 'Search' and _global.mapDataLayer.objectFocus == true and inAir == false) { Key.removeListener(searchKey); removeMovieClip(_global.mapStageLayer.newEvent); stopRun(); disableControls(); _global.mapStageLayer.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; stop(); } } movieClip 577 levelMain_2 { frame 1 { _global.mapStageLayer = this; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 200, '_y': 250}); textBoxMC._xscale = 120; textBoxMC._yscale = 120; attachMovie('slideShowStages', 'slideShowStages', 450, {'_x': 175, '_y': 100}); stop(); } frame 23 { _parent.gotoAndPlay('loadNewArea'); stop(); } frame 43 { _global.mapDataLayer.enableControls(); gotoAndPlay('gameLoop'); } frame 44 { _global.mapDataLayer.enableControls(); } frame 51 { stop(); } frame 52 { _global.mapDataLayer.startOnDrop = true; } frame 91 { gotoAndPlay('gameLoop'); } frame 111 { _global.mapStageLayer.mainMap._visible = false; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } frame 113 { stop(); } frame 142 { stop(); } } movieClip 578 dialog_C02 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); passCheck = false; cData = eval('_root.chrCData_' + _root.party_Order[0]); bcData = eval('_root.chrBCData_' + _root.party_Order[0]); lastSlot = bcData[0].length - 1; if (bcData[0][lastSlot][1] == 'basicPic' and cData[12] > 0) { passCheck = true; } if (passCheck == false) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Please equip your new gear before continuing.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (passCheck == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Now that you\'re properly geared, you\'ll be able to utilize different tactics for combat. In this next fight, you should SCAN your enemies first to determine their weakpoint, then follow up with an appropriate TECHNIQUE. Remember that when you attack an enemy\'s weakpoint, you\'ll do extra damage based on their vulnerability. Scanning is the key to winning battles quickly and efficiently.']]]; _global.annoucementStringSmall = 'OBJECTIVE COMPLETE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[2][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[2][0] = true; _root.map0_OBJECTIVES[2][1] = true; _root.map0_OBJECTIVES[2][2] = true; _global.mapDataLayer.objectFocus = false; _root.objectClips_2[4][6] = [false, false]; _global.mapDataLayer.refeshScreen(); _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 14 { if (passCheck == true) { _global.annoucementStringSmall = 'NEW OBJECTIVE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[3][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[3][0] = true; _root.map0_OBJECTIVES[3][1] = true; _root.refreshObjectives(_root.currentObj_Num); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); } else { _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); } stop(); } } movieClip 579 eventC0_Fall { frame 1 { _root.mapTransferData = [['levelMain_2'], [1, 'startOnDrop'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); ++_root.gamePlay_Stats[6][1]; _root.scanForAchievements(); stop(); } } movieClip 580 dialog_C03 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); if (_root.areaStageData_0[2] >= 2) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['We\'re almost done, Commander. Only one trial left to do.']]]; _global.annoucementStringSmall = 'OBJECTIVE COMPLETE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[3][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[3][0] = true; _root.map0_OBJECTIVES[3][1] = true; _root.map0_OBJECTIVES[3][2] = true; _root.refreshObjectives(_root.currentObj_Num); _global.mapDataLayer.objectFocus = false; _root.objectClips_2[9][6] = [false, false]; _global.mapDataLayer.refeshScreen(); _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } else { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You must destroy all the targets before we can continue.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 11 { _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 581 eventC0_Defeat { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); _root.updateTData(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Remember, Commander X, that you must target the enemies weakpoints for a quick victory. Scanning an enemy will give you that type of information.']], [[0, 0, 0], ['TEXT'], ['I know, I know. I just got careless. Let me try it again.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 14 { _root.mapTransferData = [['levelMain_2'], [1, 'startOnDrop'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 582 event2_newTech { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); _global.mapDataLayer.currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; _global.mapDataLayer.currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.refeshScreen(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['After battle, you\'ll earn SXP, or Skill Experience Points. After a set amount of SXP, you\'ll learn new techniques that can only be utlized while that BATTLE CHIP is equipped. You can stack the same BATTLE CHIPS to learn techniques exponentially quicker. ']], [[98, 0, 0], ['TEXT'], ['Also note that when you learn all the techniques associated with the a BATTLE CHIP, you\'ll be granted you a Mastery Bonus when you have that chip equipped. This is one way to specialize your teammates into playing specific roles, such as tanks or healers. Mastery information is in the BATTLE CHIP tab in the MENU.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 6 { _global.mapDataLayer.enableControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 583 dialog_C04 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Commander, as I\'m sure you already know, that apparatus in front of you is a SAVE SPOT.']], [[0, 0, 0], ['TEXT'], ['I can save my data here by accessing the MENU and selecting the SAVE tab. I\'ll also regain all my lost HP\'s and SP\'s.']], [[98, 0, 0], ['TEXT'], ['That is correct. In addition, your game will automatically be saved here. Keep in mind that autosaves are not the same as a save files.']], [[98, 0, 0], ['TEXT'], ['It is VERY IMPORTANT THAT YOU ENABLE your FLASH COOKIES or the save file might never be created.']], [[98, 0, 0], ['TEXT'], ['If you\'re unsure whether you have Flash Cookies enabled, right click the screen with your mouse and select "SETTINGS". Next, click on the Folder icon and make sure you have at least 1 MB availble for local storage.']], [[98, 0, 0], ['TEXT'], ['Also, please don\'t attempt to change information found in the save file. That file will be deleted upon loading and you will be unable to continue.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 11 { _root.objectClips_2[10][5][0] = 'Search'; _global.mapDataLayer.refeshScreen(); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 586 stage2_slide5 { } movieClip 589 stage2_slide4 { } movieClip 592 stage2_slide3 { } movieClip 595 stage2_slide2 { } movieClip 598 stage2_slide1 { } movieClip 601 stage2_slide8 { } movieClip 604 stage2_slide7 { } movieClip 607 stage2_slide6 { } movieClip 608 { frame 1 { stop(); } } movieClip 611 { } movieClip 613 { } movieClip 614 { } movieClip 623 { } movieClip 624 { frame 1 { stop(); } } movieClip 625 { frame 1 { function refeshScreen() { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; if (_root.gameVariables[1][0][0] == true) { playerChr.filters = [cellShade]; } switchSeries = 0; tempNum = 3; currentLevel = 'levelMain_3'; _root.enemyRange = [0, 1, 2, 3]; _root.selectBG = 'bg6'; if ((eval('_root.areaSwitch_' + switchSeries))[tempNum] == false) { (eval('_root.areaSwitch_' + switchSeries))[tempNum] = true; _root.objectClips_3 = [['ob_0', '', '', '', '', ['Treasure', 'chip', 1], [false, false]], ['ob_1', '', '', '', '', ['Treasure', 'gear_Buster', 1], [true, true]], ['ob_2', '', '', '', '', ['Event', 'dialog_D01', true], [true, true]], ['ob_3', '', '', '', '', ['Fight', '', 0], [true, true], [true, 'eventD3_victory'], [true, 'eventD3_defeat']], ['ob_4', '', '', '', '', ['Event', 'eventD0_Next', false], [true, true]]]; _root.areaStageData_0[3] = 'SOLO'; _root.map0_OBJECTIVES[4][0] = true; _root.map0_OBJECTIVES[4][1] = true; _root.refreshObjectives(_root.currentObj_Num); } currentObjectClips = eval('_root.objectClips_' + tempNum); counter = 0; i = 0; while (i <= currentObjectClips.length - 1) { thisClip = this[currentObjectClips[i][0]]; thisClip.idType = 'object'; thisClip.idTag = counter; if (_root.gameVariables[1][0][0] == true) { thisClip.filters = [cellShade]; } thisClip.startWidth = this[currentObjectClips[i][0]]._width; currentObjectClips[counter][1] = true; if (currentObjectClips[i][6][1] == false) { thisClip._visible = false; } else { thisClip._visible = true; } thisClip.onEnterFrame = function () { if (_global.mapDataLayer.game_STATE == 'PLAY') { } }; ++counter; ++i; } delete counter; } function checkFightID(checkNum) { if (checkNum == 0) { _root.arrangedBattleData = [[['NO CHANGE'], [[[92]], [5], [[10]]]], [['bg6'], [['SAME'], [2]]]]; } } function determineRandomBattle() { if (randomBCount == undefined) { randomCount = 'NONE'; } if (walkTally == undefined) { walkTally = 0; } if (randomBCount == 'NONE') { encounterCounter = 0; } if (randomBCount == 'RARE') { encounterCounter = 150 + Math.round(Math.random() * 100); } if (randomBCount == 'FEW') { encounterCounter = 100 + Math.round(Math.random() * 100); } if (randomBCount == 'MED') { encounterCounter = 50 + Math.round(Math.random() * 100); } if (randomBCount == 'MANY') { encounterCounter = 20 + Math.round(Math.random() * 100); } } function fightFunction(fightID) { game_STATE = 'PAUSE'; _root.setupFight(fightID); } function endBattle(endType) { _global.mapStageLayer.mainMap._visible = true; walkTally = 0; determineRandomBattle(); _root.musicPlayerMC.changeMusic('SAME', roomMusicTrack); (eval('_global.song' + _global.currentSong)).setVolume(_root.gameVariables[0][0][1]); if (skirmishType == 'RANDOM') { if (endType == 'DEFEATED') { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (endType == 'VICTORY') { _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } } if (skirmishType == 'SCRIPTED') { if (endType == 'VICTORY') { if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == false) { currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][7][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } if (endType == 'DEFEATED') { if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == false) { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][8][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } } } function addGravity() { if (gravitySpd == undefined) { gravitySpd = 0; } if (game_STATE == 'PLAY') { gravitySpd += 0.01; if (gravitySpd > 20) { gravitySpd = 20; } } } function jumpAccel() { if (game_STATE == 'PLAY') { jumpDistance += jumpSpd; if (jumpSpd < 0) { player_BEHAVIOR = 'NORMAL'; ceilingTouch = false; delete jumpSpd; delete jumpDistance; } if (jumpSpd < 5) { jumpSpd -= 0.5; } else { jumpSpd -= 1; } } } function runAccel() { if (game_STATE == 'PLAY' and inRun == true) { if (runSpd == undefined) { runSpd = 0; } if (moveDir == 'RIGHT') { if (inAir == true) { runSpd += 0.2 + speedBoost; if (runSpd > 8) { runSpd = 8; } } if (inAir == false) { runSpd += 0.4 + speedBoost; if (runSpd > 8) { runSpd = 8; } } } if (moveDir == 'LEFT') { if (inAir == true) { runSpd -= 0.2 + speedBoost; if (runSpd < -8) { runSpd = -8; } } if (inAir == false) { runSpd -= 0.4 + speedBoost; if (runSpd < -8) { runSpd = -8; } } } } } function onEnterFrame() { if (game_STATE == 'PLAY') { if (playerChr._x > moveThreshold and playerChr._x < moveRightMax and wallTouch == false) { _global.mapStageLayer.mainMap._x -= runSpd * screenScale; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 4; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 8; if (_global.mapStageLayer.mainMap._x > 0) { _global.mapStageLayer.mainMap._x = 0; } } if (playerChr._y < vertThreshold and playerChr._y > vertTopMax) { if (player_BEHAVIOR == 'JUMPING' and ceilingTouch == false) { _global.mapStageLayer.mainMap._y += jumpDistance * screenScale; vertCount += jumpDistance * screenScale; } if (player_BEHAVIOR == 'NORMAL' and inAir == true and ceilingTouch == false and vertCount > 0) { _global.mapStageLayer.mainMap._y -= gravitySpd * screenScale; vertCount -= gravitySpd * screenScale; } if (_global.mapStageLayer.mainMap._y < 0) { _global.mapStageLayer.mainMap._y = 0; } if (_global.mapStageLayer.mainMap._y > 0 and _global.mapStageLayer.mainMap._y < 15) { _global.mapStageLayer.mainMap._y = 0; } } } } function stopRun() { stopRun_Switch = true; moveDir = 'NONE'; if (_global.mapDataLayer.runSpd != 0) { inRun = false; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } runSpd = 0; } } function pauseGame() { game_STATE = 'PAUSE'; playerChr.playerMC.stop(); playerChr.playerMC.shadowMC.stop(); moveDir = 'NONE'; inRun = false; } function unpauseGame() { stopRun_Switch = false; _global.mapDataLayer.game_STATE = 'PLAY'; if (_global.mapDataLayer.runSpd != 0) { _global.mapDataLayer.playerChr.playerMC.play(); } _global.mapDataLayer.playerChr.playerMC.shadowMC.play(); _global.mapDataLayer.enableControls(); Key.addListener(_global.mapDataLayer.openMenu); } function enableControls() { Key.addListener(openMenu); Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } function disableControls() { Key.removeListener(openMenu); Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); } _global.roomName = 'TRAINING IV'; _global.mapDataLayer = this; stopRun_Switch = false; var player_VSTATE; var player_BEHAVIOR; player_BEHAVIOR = 'NORMAL'; var doubleJump = true; jumpMax = 3; jumpOn = false; var jumpCounter = 0; inAir = false; inRun = false; inFight = false; ceilingTouch = false; wallTouch = false; var speedBoost = 0; var skirmishType; var game_STATE; game_STATE = 'PLAY'; playerChr.groundMC = ground; playerChr.wallMC = walls; playerChr.ceilingMC = ceiling; screenScale = _global.mapStageLayer.mainMap._xscale / 100; _root.battleInformationData(0); movementBuffer = []; if (_global.mapDataLayer.objectFocus == undefined) { _global.mapDataLayer.objectFocus = false; } if (_root.mapTransferData[1][0] == 0) { _global.mapStageLayer.mainMap._x = 0; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = -100; _global.mapStageLayer.background_A._y = 0; _global.mapStageLayer.background_B._x = 0; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 59; _global.mapDataLayer.playerChr._y = 536.6000000000003; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 1) { _global.mapStageLayer.mainMap._x = -222.3; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = -180; _global.mapStageLayer.background_A._y = 0; _global.mapStageLayer.background_B._x = 0; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 628; _global.mapDataLayer.playerChr._y = -10; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 'LOAD') { _global.mapStageLayer.mainMap._x = _root.locationPacket[0][0][0]; _global.mapStageLayer.mainMap._y = _root.locationPacket[0][0][1]; _global.mapDataLayer.playerChr._x = _root.locationPacket[0][1][0]; _global.mapDataLayer.playerChr._y = _root.locationPacket[0][1][1]; _global.mapDataLayer.playerChr._xscale = _root.locationPacket[0][1][2]; _global.mapStageLayer.background_A._x = _root.locationPacket[0][0][2]; _global.mapStageLayer.background_B._x = _root.locationPacket[0][0][3]; vertCount = _root.locationPacket[0][2][1]; var randomBCount = _root.locationPacket[0][2][2]; player_VSTATE = _root.locationPacket[0][4][0]; player_BEHAVIOR = _root.locationPacket[0][4][1]; inAir = _root.locationPacket[0][4][2]; inRun = _root.locationPacket[0][4][3]; gravitySpd = _root.locationPacket[0][4][4]; roomMusicTrack = 4; } _global.mapStageLayer.gotoAndPlay(_root.mapTransferData[1][1]); refeshScreen(); MovieClip.prototype.objectCheck = function (o, oNum) { if (game_STATE == 'PLAY') { for (i in this.playerMC.sidePerim) { if (_global.mapDataLayer.playerChr.hitTest(o) == true) { action = currentObjectClips[(eval(o)).idTag][5][0]; if (action == 'SaveSpot' and currentObjectClips[(eval(o)).idTag][6][0] == true and inAir == false) { (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); _root.saveOn = true; } if (action == 'Treasure' and currentObjectClips[(eval(o)).idTag][6][0] == true and currentObjectClips[(eval(o)).idTag][6][1] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapStageLayer.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mapDataLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Search' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.objectFocus = false; } _global.mapStageLayer.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Fight' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { _global.mapDataLayer.instanceNum = (eval(o)).idTag; _global.mapDataLayer.objectFocus = true; stopRun(); disableControls(); skirmishType = 'SCRIPTED'; checkFightID(currentObjectClips[(eval(o)).idTag][5][2]); fightFunction('SCRIPTED'); } if (action == 'Event' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { stopRun(); disableControls(); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; _global.mapStageLayer.attachMovie(currentObjectClips[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (this._xscale > 0) { this._x -= 20; } if (this._xscale < 0) { this._x += 20; } if (currentObjectClips[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } } } } }; determineRandomBattle(); MovieClip.prototype.gravityCheck = function () { for (i in this.playerMC.feetPerim) { perimPoint = {'x': this.playerMC.feetPerim[i]._x, 'y': this.playerMC.feetPerim[i]._y}; this.playerMC.feetPerim.localToGlobal(perimPoint); if (checkJump == undefined) { checkJump = true; } if (checkJump == true) { if (this.groundMC.hitTest(perimPoint.x, perimPoint.y, true)) { if (startOnDrop == undefined) { startOnDrop = false; } if (startOnDrop == true) { enableControls(); startOnDrop = false; } --this._y; jumpCounter = 0; if (inAir == true) { if (moveDir == 'RIGHT') { if (runSpd > 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { if (moveDir == 'LEFT') { if (runSpd < 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } inAir = false; jumpOn = false; fallSwitch = true; } } else { addGravity(); } } else { addGravity(); } } }; MovieClip.prototype.wallCheck = function () { for (i in this.playerMC.sidePerim) { sidePoint = {'x': this.playerMC.sidePerim[i]._x, 'y': this.playerMC.sidePerim[i]._y}; this.playerMC.sidePerim.localToGlobal(sidePoint); if (this.wallMC.hitTest(sidePoint.x, sidePoint.y, true)) { if (this._xscale > 0) { --this._x; } if (this._xscale < 0) { ++this._x; } inRun = false; runSpd = 0; } } }; MovieClip.prototype.ceilingCheck = function () { for (i in this.playerMC.headPerim) { headPoint = {'x': this.playerMC.headPerim[i]._x, 'y': this.playerMC.headPerim[i]._y}; this.playerMC.headPerim.localToGlobal(headPoint); if (this.ceilingMC.hitTest(headPoint.x, headPoint.y, true)) { ++this._y; ceilingTouch = true; } } }; playerChr.onEnterFrame = function () { if (game_STATE == 'PLAY') { nowY = this._y; if (player_BEHAVIOR == 'NORMAL') { if (runSpd == undefined) { runSpd = 0; } this._x += runSpd; this._y += gravitySpd; this.gravityCheck(); this.wallCheck(); runAccel(); } if (player_BEHAVIOR == 'JUMPING') { this._x += runSpd; this._y -= jumpDistance; this.wallCheck(); this.ceilingCheck(); runAccel(); jumpAccel(); } laterY = this._y; } if (game_STATE == 'PLAY') { varZ = 0; while (varZ <= currentObjectClips.length - 1) { if (currentObjectClips[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(currentObjectClips[varZ][0])).startWidth - (eval(currentObjectClips[varZ][0]))._width); distanceFrom = (eval(currentObjectClips[varZ][0]))._x - widthDifference - (_global.mapDataLayer.playerChr._x + (_global.mapDataLayer.playerChr._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(currentObjectClips[varZ][0]))._width + (_global.mapDataLayer.playerChr._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { _root.saveOn = false; this.objectCheck(eval(currentObjectClips[varZ][0]), varZ); } else { if (_global.mapDataLayer.objectFocus == true and varZ == _global.mapDataLayer.itemNumber) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; removeMovieClip(_global.mapStageLayer.newEvent); (eval(currentObjectClips[varZ][0])).gotoAndPlay('load'); } } } ++varZ; } } if (game_STATE == 'PLAY') { if (nowY < laterY) { player_VSTATE = 'DECENDING'; fallSpeed = Math.abs(nowY - laterY); if (fallSpeed > 1) { if (fallSwitch == undefined) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; fallSwitch = false; } if (fallSpeed >= 10 and fallSwitch == true and jumpOn == false) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; gravitySpd = 1; fallSwitch = false; ++jumpCounter; checkJump = true; inAir = true; speedBoost = 0; } if (fallSpeed > 5) { inAir = true; checkJump = true; speedBoost = 0; } } } if (Math.abs(nowY - laterY) < 1) { player_VSTATE = 'LEVELED'; } if (nowY > laterY) { player_VSTATE = 'ASCENDING'; fallSpeed = Math.abs(nowY - laterY); } } if (randomBCount != 'NONE') { if (inFall == true or inRun == true) { ++walkTally; } if (walkTally >= encounterCounter) { _root.selectBG = battleBGNum; skirmishType = 'RANDOM'; fightFunction(skirmishType); _global.mapDataLayer.pauseGame(); _global.mapDataLayer.objectFocus = true; walkTally = 0; } } }; screenScale = _global.mapStageLayer.mainMap._xscale / 100; moveThreshold = 400 / screenScale; moveRightMax = areaMap._width - moveThreshold + areaMap._x; vertThreshold = 400 / screenScale; vertTopMax = -areaMap._height * screenScale + 600 + vertThreshold; if (vertCount == undefined) { vertCount = 0; } controlBuffer = []; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and player_BEHAVIOR == 'NORMAL' and jumpCounter < jumpMax) { ++jumpCounter; if (jumpCounter > jumpMax) { jumpCounter = jumpMax; } playerChr.playerMC.gotoAndPlay('jumpUpward'); controlBuffer = ['jumpUpward']; player_BEHAVIOR = 'JUMPING'; jumpOn = true; inAir = true; checkJump = false; if (jumpCounter == 1) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 0.5; } if (jumpCounter >= 2) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 1; } } }; moveRight = new Object(); moveRight.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '39' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'RIGHT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = 100; } } moveRight.onKeyUp = function () { if (Key.getCode() == '39' and moveDir == 'RIGHT') { if (game_STATE == 'PLAY') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '37' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'LEFT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = -100; } } moveLeft.onKeyUp = function () { if (game_STATE == 'PLAY') { if (Key.getCode() == '37' and moveDir == 'LEFT') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8' and _global.mapDataLayer.objectFocus == false and _global.mapDataLayer.jumpOn == false and _global.mapDataLayer.inAir == false and stopRun_Switch == false) { if (game_STATE == 'PLAY') { pauseGame(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 500, {'_x': 0, '_y': 0}); } Key.removeListener(openMenu); disableControls(); } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { refeshScreen(); if (objectData[0] == 'Treasure' and _global.mapDataLayer.objectFocus == true) { _global.mapDataLayer.objectFocus = false; removeMovieClip(_global.mapStageLayer.newEvent); ++_root.gamePlay_Stats[4][2]; _root.scanForAchievements(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; smallText = 'NEW ITEM'; largeText = (eval('_root.item_' + objectData[2]))[0]; } if (objectData[1] == 'chip') { _root.chipSwitch[objectData[2]] = true; ++_root.numOfChips[objectData[2]]; _root.updateACData(); smallText = 'NEW BATTLE CHIP'; largeText = _root.refChips[objectData[2]]; } if (objectData[1] == 'gear_Head') { ++_root.listHead[objectData[2]]; smallText = 'NEW GEAR (HELMET)'; largeText = (eval('_root.WpnHead' + objectData[2]))[0]; } if (objectData[1] == 'gear_Buster') { ++_root.listBuster[objectData[2]]; smallText = 'NEW WEAPON (BUSTER)'; largeText = (eval('_root.WpnBuster' + objectData[2]))[0]; } if (objectData[1] == 'gear_Melee') { ++_root.listMelee[objectData[2]]; smallText = 'NEW WEAPON (MELEE)'; largeText = (eval('_root.WpnMelee' + objectData[2]))[0]; } if (objectData[1] == 'gear_Armor') { ++_root.listArmor[objectData[2]]; smallText = 'NEW GEAR (ARMOR)'; largeText = (eval('_root.WpnArmor' + objectData[2]))[0]; } if (objectData[1] == 'gear_Legs') { ++_root.listLeg[objectData[2]]; smallText = 'NEW GEAR (LEGS)'; largeText = (eval('_root.WpnLeg' + objectData[2]))[0]; } if (objectData[1] == 'gear_Trinket') { ++_root.listTrinket[objectData[2]]; smallText = 'NEW GEAR (TRINKET)'; largeText = (eval('_root.WpnTrinket' + objectData[2]))[0]; } _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; currentObjectClips[objectData[4]][6][1] = false; refeshScreen(); Key.removeListener(searchKey); objectData = []; } if (objectData[0] == 'Search' and _global.mapDataLayer.objectFocus == true and inAir == false) { Key.removeListener(searchKey); removeMovieClip(_global.mapStageLayer.newEvent); stopRun(); disableControls(); _global.mapStageLayer.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; stop(); } } movieClip 630 levelMain_3 { frame 1 { _global.mapStageLayer = this; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 200, '_y': 250}); textBoxMC._xscale = 120; textBoxMC._yscale = 120; attachMovie('slideShowStages', 'slideShowStages', 450, {'_x': 175, '_y': 100}); stop(); } frame 23 { _parent.gotoAndPlay('loadNewArea'); stop(); } frame 43 { _global.mapDataLayer.enableControls(); gotoAndPlay('gameLoop'); } frame 44 { _global.mapDataLayer.enableControls(); } frame 51 { stop(); } frame 52 { _global.mapDataLayer.startOnDrop = true; } frame 91 { gotoAndPlay('gameLoop'); } frame 111 { _global.mapStageLayer.mainMap._visible = false; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } frame 113 { stop(); } frame 142 { stop(); } } movieClip 631 eventD0_Next { frame 1 { _root.mapTransferData = [['levelMain_4'], [0, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 632 dialog_D01 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Your last challenge is just up ahead.']], [[0, 0, 0], ['TEXT'], ['What is it this time?']], [[98, 0, 0], ['TEXT'], ['Oh, something I found in the archives. You should find it challenging. Maybe a bit... too challenging.']], [[98, 0, 0], ['TEXT'], ['So I\'ll give you a choice: would you like to battle this Reploid alone or with a partner?']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 3 { lineCount = 0; speechPack = [[[98, 0, 0], ['SLIDE'], ['If you go it alone and win, you\'ll recieve a reward.'], [['With a partner. (Easy)'], ['Alone (Hard).']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 8 { if (_root.slideReturn == 0) { _root.areaStageData_0[3] = 'PARTNER'; lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['Who\'d be my partner?']], [[98, 0, 0], ['TEXT'], ['A battle replica of Zero, sir.']], [[0, 0, 0], ['TEXT'], ['...']], [[98, 0, 0], ['TEXT'], ['His whereabouts are a mystery to us all, sir, but I\'m sure he\'s fine.']], [[0, 0, 0], ['TEXT'], ['Okay. Let\'s do this then. These drills are cutting into time that can be spent doing something productive.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.slideReturn == 1) { _root.areaStageData_0[3] = 'SOLO'; lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['I don\'t need help.']], [[98, 0, 0], ['TEXT'], ['I\'ll be monitoring your preformance then. Remember to target his weakpoints.']], [[98, 0, 0], ['TEXT'], ['Good luck sir.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 9 { if (_root.areaStageData_0[3] == 'PARTNER') { chrAvail_Main = [true, false, false, false, false, false, false, false, false, true]; _root.chrAvail_Sprt = [false]; _root.party_Order = [0, 9]; _root.refreshChrPool(); _root.updateACData(); _global.annoucementStringSmall = 'SECONDARY OBJECTIVE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[5][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[5][0] = true; _root.map0_OBJECTIVES[5][1] = true; _root.refreshObjectives(_root.currentObj_Num); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['I\'ve added Zero to your party. Although he is not the real Zero, you can still customize his gear and reorganize your formation if you feel inclined to do so.']], [[0, 0, 0], ['TEXT'], ['Alright. Thanks.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.areaStageData_0[3] == 'SOLO') { _global.annoucementStringSmall = 'NEW OBJECTIVE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[4][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[4][0] = true; _root.map0_OBJECTIVES[4][1] = true; _root.refreshObjectives(_root.currentObj_Num); } } frame 14 { _global.mapDataLayer.currentObjectClips[2][6][1] = false; _global.mapDataLayer.currentObjectClips[2][6][0] = false; _global.mapDataLayer.refeshScreen(); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 633 eventD3_victory { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); _global.annoucementStringSmall = 'OBJECTIVE COMPLETE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[4][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[4][0] = true; _root.map0_OBJECTIVES[4][1] = true; _root.map0_OBJECTIVES[4][2] = true; if (_root.areaStageData_0[3] == 'SOLO') { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Well done Commander X! That was even better than last week. Next time I\'ll see to it that you have a challenge more befitting your skill.']], [[98, 0, 0], ['TEXT'], ['Here is that reward I promised you. Use it well.']], [[98, 0, 0], ['TEXT'], ['We\'re done here sir. Just continue to the right to exit the simulation. Don\'t forget to pickup your reward.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); _global.mapDataLayer.currentObjectClips[0][6][1] = true; _global.mapDataLayer.currentObjectClips[0][6][0] = true; _global.mapDataLayer.currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; _global.mapDataLayer.currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.refeshScreen(); stop(); } if (_root.areaStageData_0[3] == 'PARTNER') { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Well done Commander. If this simulation was any indication, you\'ll be unstoppable working with a team.']], [[98, 0, 0], ['TEXT'], ['We\'re done here sir. Just continue to the right to exit the simulation.']], [[98, 0, 0], ['TEXT'], ['OH! Don\'t forget to unequip Reploid Zero of any gear you may have given him. If not, it just may be lost forever.']]]; _global.mapDataLayer.currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; _global.mapDataLayer.currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.refeshScreen(); _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 3 { _global.mapDataLayer.unpauseGame(); } frame 12 { if (_root.areaStageData_0[3] == 'PARTNER') { _global.annoucementStringSmall = 'SECONDARY OBJECTIVE COMPLETE'; _global.annoucementStringLarge = _root.map0_OBJECTIVES[5][3][1]; _global.mapStageLayer.attachMovie('map_objective', 'tempClip', 1001, {'_x': 250, '_y': 50}); _root.map0_OBJECTIVES[5][0] = true; _root.map0_OBJECTIVES[5][1] = true; _root.map0_OBJECTIVES[5][2] = true; } } frame 14 { _global.mainMapLayer.enableAllControls(); stop(); } } movieClip 634 eventD3_defeat { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); _root.updateTData(); if (_root.areaStageData_0[3] == 'SOLO') { lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['I must be getting rusty.']], [[98, 0, 0], ['TEXT'], ['Shall I tone down the difficulty?']], [[0, 0, 0], ['TEXT'], ['No, I can do it. I just... slipped up a little. Let me try it again.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } if (_root.areaStageData_0[3] == 'PARTNER') { lineCount = 0; speechPack = [[[0, 0, 0], ['TEXT'], ['This is tough.']], [[98, 0, 0], ['TEXT'], ['I\'m sure if you were teamed up with the real Commander Zero, this would be easy. I believe in you, sir. Please try it again.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 14 { _root.mapTransferData = [['levelMain_3'], [0, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 635 { frame 1 { stop(); } } movieClip 638 { } movieClip 640 { frame 41 { _parent.play(); stop(); } } movieClip 642 { } movieClip 643 { } movieClip 644 { } movieClip 645 { instance of movieClip 644 { } frame 34 { stop(); _parent.play(); } instance of movieClip 644 { } } movieClip 646 { frame 57 { stop(); _parent.play(); } } movieClip 648 { } movieClip 649 { frame 1 { } frame 30 { stop(); _parent.play(); } } movieClip 650 { frame 1 { _global.currentDialogLayer = this; lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You\'ve successfully completed another weekly simulation, Commander.']], [[0, 0, 0], ['TEXT'], ['Piece of cake.']], [[98, 0, 0], ['TEXT'], ['Before you go, I need to inform you of your preformance.']], [[0, 0, 0], ['TEXT'], ['Make it quick, I have a mission lined up.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 3 { if (_root.map0_OBJECTIVES[0][0] == true and _root.map0_OBJECTIVES[0][2] == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You accomplished your first objective with no difficulties.']], [[0, 0, 0], ['TEXT'], ['It wasn\'t exactly a demanding task.']], [[98, 0, 0], ['TEXT'], ['Take pride in your successes Commander.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); _global.newDollars += 200; smallText = 'MONEY'; largeText = '[$] 250 NEW DOLLARS'; _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 150}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; } } frame 4 { if (_root.map0_OBJECTIVES[1][0] == true and _root.map0_OBJECTIVES[1][2] == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You dispatched five enemies without any problems.']], [[0, 0, 0], ['TEXT'], ['Too easy. You\'re going to have to crank up the difficulty next time.']], [[98, 0, 0], ['TEXT'], ['Duely noted.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); _global.newDollars += 200; smallText = 'MONEY'; largeText = '[$] 250 NEW DOLLARS'; _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 150}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; } } frame 5 { if (_root.map0_OBJECTIVES[2][0] == true and _root.map0_OBJECTIVES[2][2] == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You accomplished your third objective without any problems. How is that new armor treating you?']], [[0, 0, 0], ['TEXT'], ['It fits fine. Since we\'re on the subject, how many BATTLE CHIPS I can have equipped at one time.']], [[98, 0, 0], ['TEXT'], ['Ten sir, but finding armor pieces with open chip slots can be difficult. Keep an eye open for them.']], [[98, 0, 0], ['TEXT'], ['Also, if you equip two or more of the same BATTLE CHIP, you\'ll gain twice (or 3x, 4x, etc) the amount of SXP. By equipping the same type of chip, you can effectively learn new techs very quickly.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); _global.newDollars += 200; smallText = 'MONEY'; largeText = '[$] 250 NEW DOLLARS'; _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 150}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; } } frame 6 { if (_root.map0_OBJECTIVES[3][0] == true and _root.map0_OBJECTIVES[3][2] == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You did well targeting your enemies weakpoints. When in doubt, SCAN your target and experiment with different tactics. Brute force can only take you so far.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); _global.newDollars += 250; smallText = 'MONEY'; largeText = '[$] 250 NEW DOLLARS'; _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 150}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; } } frame 7 { if (_root.map0_OBJECTIVES[4][0] == true and _root.map0_OBJECTIVES[4][2] == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['You destroyed the Master Robot with no difficulties. Well done.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); _global.newDollars += 250; smallText = 'MONEY'; largeText = '[$] 250 NEW DOLLARS'; _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 150}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; } } frame 8 { if (_root.map0_OBJECTIVES[5][0] == true and _root.map0_OBJECTIVES[5][2] == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Lastly, working as a team is important. As a leader, some of the decisions you will have to make will come into conflict with that of your teammates. Although you can\'t keep everybody happy, try and find the best resolve or your overall battle prowress will suffer.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 23 { if (_root.map0_OBJECTIVES[5][0] == true and _root.map0_OBJECTIVES[5][2] == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['This concludes your training. Your next mission will be posted soon. If you wish, you can proceed to the Boss Rush mode by clicking continue or loading your last saved game.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 24 { lineCount = 0; speechPack = [[[98, 0, 0], ['SLIDE'], ['Save your data?'], [['Yes'], ['No']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 25 { if (_root.slideReturn == 0) { attachMovie('saveLoadStageMC', 'saveLoadStageMC', 100, {'_x': -100, '_y': -200}); stop(); } } frame 26 { stop(); _parent.play(); } } movieClip 651 { frame 1 { varX = _root.gameVariables[0][0][1]; while (varX >= 0) { (eval('_global.song' + _global.currentSong)).setVolume(varX); if (varX <= _root.gameVariables[0][0][1] / 3) { break; } varX -= 0.001; } } frame 8 { stop(); } frame 20 { stop(); } frame 32 { stop(); } frame 42 { stop(); } frame 43 { _root.achievementArray[10][0][1] = true; _root.scanForAchievements(); } frame 51 { stop(); } frame 109 { _root.autoSaveFeature(); } frame 114 { _root.musicPlayerMC.changeMusic('STOP', ''); _root.gotoAndPlay('checkSave'); stop(); } } movieClip 654 levelMain_4 { frame 1 { _global.mapStageLayer = this; _global.roomName = 'CHAPTER 0 FINISH'; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 150, '_y': 280}); textBoxMC._xscale = 150; textBoxMC._yscale = 150; stop(); } frame 23 { stop(); } frame 43 { stop(); } } movieClip 655 { frame 1 { stop(); } } movieClip 658 { } movieClip 663 { } movieClip 665 { } movieClip 667 { } movieClip 669 { frame 1 { function refeshScreen() { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; if (_root.gameVariables[1][0][0] == true) { playerChr.filters = [cellShade]; } switchSeries = 1; tempNum = 0; currentLevel = 'levelMain_BR1'; _root.enemyRange = [0, 1, 2, 3]; _root.selectBG = 'bg6'; if ((eval('_root.areaSwitch_' + switchSeries))[tempNum] == false) { (eval('_root.areaSwitch_' + switchSeries))[tempNum] = true; _root.objectClips_0 = [['ob_0', '', '', '', '', ['Treasure', 'item', 12], [true, true]], ['ob_1', '', '', '', '', ['Treasure', 'item', 10], [true, true]], ['ob_2', '', '', '', '', ['Event', 'dialog_BR1', true], [true, true]], ['ob_3', '', '', '', '', ['Fight', '', 0], [true, true], [false, ''], [false, '']], ['ob_4', '', '', '', '', ['Fight', '', 1], [true, true], [false, ''], [false, '']], ['ob_5', '', '', '', '', ['Fight', '', 2], [true, true], [false, ''], [false, '']], ['ob_6', '', '', '', '', ['Fight', '', 3], [true, true], [false, ''], [false, '']], ['ob_7', '', '', '', '', ['Fight', '', 4], [true, true], [false, ''], [false, '']], ['ob_8', '', '', '', '', ['SaveSpot', 'item', 1], [true, true]], ['ob_9', '', '', '', '', ['Event', 'eventBR1_Next', false], [true, true]], ['ob_10', '', '', '', '', ['Event', 'eventBR1_Back', false], [true, true]], ['ob_11', '', '', '', '', ['Treasure', 'chip', 4], [true, true]]]; } currentObjectClips = eval('_root.objectClips_' + tempNum); counter = 0; i = 0; while (i <= currentObjectClips.length - 1) { thisClip = this[currentObjectClips[i][0]]; thisClip.idType = 'object'; thisClip.idTag = counter; if (_root.gameVariables[1][0][0] == true) { thisClip.filters = [cellShade]; } thisClip.startWidth = this[currentObjectClips[i][0]]._width; currentObjectClips[counter][1] = true; if (currentObjectClips[i][6][1] == false) { thisClip._visible = false; } else { thisClip._visible = true; } thisClip.onEnterFrame = function () { if (_global.mapDataLayer.game_STATE == 'PLAY') { } }; ++counter; ++i; } delete counter; } function checkFightID(checkNum) { if (checkNum == 0) { _root.arrangedBattleData = [[['NO CHANGE'], [[[1, 1, 0]], [5], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 1) { _root.arrangedBattleData = [[['NO CHANGE'], [[[2, 3, 2, 1]], [5], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 2) { _root.arrangedBattleData = [[['NO CHANGE'], [[[0, 1, 0]], [5], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 3) { _root.arrangedBattleData = [[['NO CHANGE'], [[[1, 0, 0, 1]], [5], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 4) { _root.arrangedBattleData = [[['NO CHANGE'], [[[93]], [7], [[11, 17]]]], [['bg6'], [['SAME'], [2]]]]; } } function determineRandomBattle() { if (randomBCount == undefined) { randomCount = 'NONE'; } if (walkTally == undefined) { walkTally = 0; } if (randomBCount == 'NONE') { encounterCounter = 0; } if (randomBCount == 'RARE') { encounterCounter = 150 + Math.round(Math.random() * 100); } if (randomBCount == 'FEW') { encounterCounter = 100 + Math.round(Math.random() * 100); } if (randomBCount == 'MED') { encounterCounter = 50 + Math.round(Math.random() * 100); } if (randomBCount == 'MANY') { encounterCounter = 20 + Math.round(Math.random() * 100); } } function fightFunction(fightID) { game_STATE = 'PAUSE'; _root.setupFight(fightID); } function endBattle(endType) { _global.mapStageLayer.mainMap._visible = true; walkTally = 0; determineRandomBattle(); _root.musicPlayerMC.changeMusic('SAME', roomMusicTrack); (eval('_global.song' + _global.currentSong)).setVolume(_root.gameVariables[0][0][1]); if (skirmishType == 'RANDOM') { if (endType == 'DEFEATED') { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (endType == 'VICTORY') { _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } } if (skirmishType == 'SCRIPTED') { if (endType == 'VICTORY') { if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == false) { currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][7][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } if (endType == 'DEFEATED') { if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == false) { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][8][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } } } function addGravity() { if (gravitySpd == undefined) { gravitySpd = 0; } if (game_STATE == 'PLAY') { gravitySpd += 0.01; if (gravitySpd > 20) { gravitySpd = 20; } } } function jumpAccel() { if (game_STATE == 'PLAY') { jumpDistance += jumpSpd; if (jumpSpd < 0) { player_BEHAVIOR = 'NORMAL'; ceilingTouch = false; delete jumpSpd; delete jumpDistance; } if (jumpSpd < 5) { jumpSpd -= 0.5; } else { jumpSpd -= 1; } } } function runAccel() { if (game_STATE == 'PLAY' and inRun == true) { if (runSpd == undefined) { runSpd = 0; } if (moveDir == 'RIGHT') { if (inAir == true) { runSpd += 0.2 + speedBoost; if (runSpd > 8) { runSpd = 8; } } if (inAir == false) { runSpd += 0.4 + speedBoost; if (runSpd > 8) { runSpd = 8; } } } if (moveDir == 'LEFT') { if (inAir == true) { runSpd -= 0.2 + speedBoost; if (runSpd < -8) { runSpd = -8; } } if (inAir == false) { runSpd -= 0.4 + speedBoost; if (runSpd < -8) { runSpd = -8; } } } } } function onEnterFrame() { if (game_STATE == 'PLAY') { if (playerChr._x > moveThreshold and playerChr._x < moveRightMax and wallTouch == false) { _global.mapStageLayer.mainMap._x -= runSpd * screenScale; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 4; _global.mapStageLayer.background_B._x -= runSpd * screenScale / 8; if (_global.mapStageLayer.mainMap._x > 0) { _global.mapStageLayer.mainMap._x = 0; } } if (playerChr._y < vertThreshold and playerChr._y > vertTopMax) { if (player_BEHAVIOR == 'JUMPING' and ceilingTouch == false) { _global.mapStageLayer.mainMap._y += jumpDistance * screenScale; vertCount += jumpDistance * screenScale; } if (player_BEHAVIOR == 'NORMAL' and inAir == true and ceilingTouch == false and vertCount > 0) { _global.mapStageLayer.mainMap._y -= gravitySpd * screenScale; vertCount -= gravitySpd * screenScale; } if (_global.mapStageLayer.mainMap._y < 0) { _global.mapStageLayer.mainMap._y = 0; } if (_global.mapStageLayer.mainMap._y > 0 and _global.mapStageLayer.mainMap._y < 15) { _global.mapStageLayer.mainMap._y = 0; } } } } function stopRun() { stopRun_Switch = true; moveDir = 'NONE'; if (_global.mapDataLayer.runSpd != 0) { inRun = false; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } runSpd = 0; } } function pauseGame() { game_STATE = 'PAUSE'; playerChr.playerMC.stop(); playerChr.playerMC.shadowMC.stop(); moveDir = 'NONE'; inRun = false; } function unpauseGame() { stopRun_Switch = false; _global.mapDataLayer.game_STATE = 'PLAY'; if (_global.mapDataLayer.runSpd != 0) { _global.mapDataLayer.playerChr.playerMC.play(); } _global.mapDataLayer.playerChr.playerMC.shadowMC.play(); _global.mapDataLayer.enableControls(); Key.addListener(_global.mapDataLayer.openMenu); } function enableControls() { Key.addListener(openMenu); Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } function disableControls() { Key.removeListener(openMenu); Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); } _global.roomName = 'BOSS RUSH I'; _global.mapDataLayer = this; stopRun_Switch = false; var player_VSTATE; var player_BEHAVIOR; player_BEHAVIOR = 'NORMAL'; var doubleJump = true; jumpMax = 3; jumpOn = false; var jumpCounter = 0; inAir = false; inRun = false; inFight = false; ceilingTouch = false; wallTouch = false; var speedBoost = 0; var skirmishType; var game_STATE; game_STATE = 'PLAY'; playerChr.groundMC = ground; playerChr.wallMC = walls; playerChr.ceilingMC = ceiling; screenScale = _global.mapStageLayer.mainMap._xscale / 100; _root.battleInformationData(0); movementBuffer = []; if (_global.mapDataLayer.objectFocus == undefined) { _global.mapDataLayer.objectFocus = false; } if (_root.mapTransferData[1][0] == 0) { _global.mapStageLayer.mainMap._x = 0; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_B._x = -10; _global.mapStageLayer.background_B._y = 0; _global.mapStageLayer.background_A._x = 1530; _global.mapStageLayer.background_A._y = 515; _global.mapDataLayer.playerChr._x = 59; _global.mapDataLayer.playerChr._y = 536.6000000000003; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 1) { _global.mapStageLayer.mainMap._x = -2063; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = 1014; _global.mapStageLayer.background_A._y = 515; _global.mapStageLayer.background_B._x = -267; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 2812; _global.mapDataLayer.playerChr._y = 533; _global.mapDataLayer.playerChr._xscale = -100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 'LOAD') { _global.mapStageLayer.mainMap._x = _root.locationPacket[0][0][0]; _global.mapStageLayer.mainMap._y = _root.locationPacket[0][0][1]; _global.mapDataLayer.playerChr._x = _root.locationPacket[0][1][0]; _global.mapDataLayer.playerChr._y = _root.locationPacket[0][1][1]; _global.mapDataLayer.playerChr._xscale = _root.locationPacket[0][1][2]; _global.mapStageLayer.background_A._x = _root.locationPacket[0][0][2]; _global.mapStageLayer.background_B._x = _root.locationPacket[0][0][3]; vertCount = _root.locationPacket[0][2][1]; var randomBCount = _root.locationPacket[0][2][2]; player_VSTATE = _root.locationPacket[0][4][0]; player_BEHAVIOR = _root.locationPacket[0][4][1]; inAir = _root.locationPacket[0][4][2]; inRun = _root.locationPacket[0][4][3]; gravitySpd = _root.locationPacket[0][4][4]; roomMusicTrack = 4; } _global.mapStageLayer.gotoAndPlay(_root.mapTransferData[1][1]); refeshScreen(); MovieClip.prototype.objectCheck = function (o, oNum) { if (game_STATE == 'PLAY') { for (i in this.playerMC.sidePerim) { if (_global.mapDataLayer.playerChr.hitTest(o) == true) { action = currentObjectClips[(eval(o)).idTag][5][0]; if (action == 'SaveSpot' and currentObjectClips[(eval(o)).idTag][6][0] == true and inAir == false) { (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); _root.saveOn = true; if (checkOnce == undefined) { checkOnce = false; } if (checkOnce == false) { checkOnce = true; _root.autoSaveFeature(); _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = 'Autosave'; _global.annoucementStringLarge = 'Progress Saved'; } } if (action == 'Treasure' and currentObjectClips[(eval(o)).idTag][6][0] == true and currentObjectClips[(eval(o)).idTag][6][1] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapStageLayer.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mapDataLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Search' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.objectFocus = false; } _global.mapStageLayer.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Fight' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { _global.mapDataLayer.instanceNum = (eval(o)).idTag; _global.mapDataLayer.objectFocus = true; stopRun(); disableControls(); skirmishType = 'SCRIPTED'; checkFightID(currentObjectClips[(eval(o)).idTag][5][2]); fightFunction('SCRIPTED'); } if (action == 'Event' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { stopRun(); disableControls(); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; _global.mapStageLayer.attachMovie(currentObjectClips[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (this._xscale > 0) { this._x -= 20; } if (this._xscale < 0) { this._x += 20; } if (currentObjectClips[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } } } } }; determineRandomBattle(); MovieClip.prototype.gravityCheck = function () { for (i in this.playerMC.feetPerim) { perimPoint = {'x': this.playerMC.feetPerim[i]._x, 'y': this.playerMC.feetPerim[i]._y}; this.playerMC.feetPerim.localToGlobal(perimPoint); if (checkJump == undefined) { checkJump = true; } if (checkJump == true) { if (this.groundMC.hitTest(perimPoint.x, perimPoint.y, true)) { if (startOnDrop == undefined) { startOnDrop = false; } if (startOnDrop == true) { enableControls(); startOnDrop = false; } --this._y; jumpCounter = 0; if (inAir == true) { if (moveDir == 'RIGHT') { if (runSpd > 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { if (moveDir == 'LEFT') { if (runSpd < 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } inAir = false; jumpOn = false; fallSwitch = true; } } else { addGravity(); } } else { addGravity(); } } }; MovieClip.prototype.wallCheck = function () { for (i in this.playerMC.sidePerim) { sidePoint = {'x': this.playerMC.sidePerim[i]._x, 'y': this.playerMC.sidePerim[i]._y}; this.playerMC.sidePerim.localToGlobal(sidePoint); if (this.wallMC.hitTest(sidePoint.x, sidePoint.y, true)) { if (this._xscale > 0) { --this._x; } if (this._xscale < 0) { ++this._x; } inRun = false; runSpd = 0; } } }; MovieClip.prototype.ceilingCheck = function () { for (i in this.playerMC.headPerim) { headPoint = {'x': this.playerMC.headPerim[i]._x, 'y': this.playerMC.headPerim[i]._y}; this.playerMC.headPerim.localToGlobal(headPoint); if (this.ceilingMC.hitTest(headPoint.x, headPoint.y, true)) { ++this._y; ceilingTouch = true; } } }; playerChr.onEnterFrame = function () { if (game_STATE == 'PLAY') { nowY = this._y; if (player_BEHAVIOR == 'NORMAL') { if (runSpd == undefined) { runSpd = 0; } this._x += runSpd; this._y += gravitySpd; this.gravityCheck(); this.wallCheck(); runAccel(); } if (player_BEHAVIOR == 'JUMPING') { this._x += runSpd; this._y -= jumpDistance; this.wallCheck(); this.ceilingCheck(); runAccel(); jumpAccel(); } laterY = this._y; } if (game_STATE == 'PLAY') { varZ = 0; while (varZ <= currentObjectClips.length - 1) { if (currentObjectClips[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(currentObjectClips[varZ][0])).startWidth - (eval(currentObjectClips[varZ][0]))._width); distanceFrom = (eval(currentObjectClips[varZ][0]))._x - widthDifference - (_global.mapDataLayer.playerChr._x + (_global.mapDataLayer.playerChr._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(currentObjectClips[varZ][0]))._width + (_global.mapDataLayer.playerChr._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { _root.saveOn = false; this.objectCheck(eval(currentObjectClips[varZ][0]), varZ); } else { if (_global.mapDataLayer.objectFocus == true and varZ == _global.mapDataLayer.itemNumber) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; removeMovieClip(_global.mapStageLayer.newEvent); (eval(currentObjectClips[varZ][0])).gotoAndPlay('load'); } } } ++varZ; } } if (game_STATE == 'PLAY') { if (nowY < laterY) { player_VSTATE = 'DECENDING'; fallSpeed = Math.abs(nowY - laterY); if (fallSpeed > 1) { if (fallSwitch == undefined) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; fallSwitch = false; } if (fallSpeed >= 10 and fallSwitch == true and jumpOn == false) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; gravitySpd = 1; fallSwitch = false; ++jumpCounter; checkJump = true; inAir = true; speedBoost = 0; } if (fallSpeed > 5) { inAir = true; checkJump = true; speedBoost = 0; } } } if (Math.abs(nowY - laterY) < 1) { player_VSTATE = 'LEVELED'; } if (nowY > laterY) { player_VSTATE = 'ASCENDING'; fallSpeed = Math.abs(nowY - laterY); } } if (randomBCount != 'NONE') { if (inFall == true or inRun == true) { ++walkTally; } if (walkTally >= encounterCounter) { _root.selectBG = battleBGNum; skirmishType = 'RANDOM'; fightFunction(skirmishType); _global.mapDataLayer.pauseGame(); _global.mapDataLayer.objectFocus = true; walkTally = 0; } } }; screenScale = _global.mapStageLayer.mainMap._xscale / 100; moveThreshold = 400 / screenScale; moveRightMax = areaMap._width - moveThreshold + areaMap._x; vertThreshold = 400 / screenScale; vertTopMax = -areaMap._height * screenScale + 600 + vertThreshold; if (vertCount == undefined) { vertCount = 0; } controlBuffer = []; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and player_BEHAVIOR == 'NORMAL' and jumpCounter < jumpMax) { ++jumpCounter; if (jumpCounter > jumpMax) { jumpCounter = jumpMax; } playerChr.playerMC.gotoAndPlay('jumpUpward'); controlBuffer = ['jumpUpward']; player_BEHAVIOR = 'JUMPING'; jumpOn = true; inAir = true; checkJump = false; if (jumpCounter == 1) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 0.5; } if (jumpCounter >= 2) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 1; } } }; moveRight = new Object(); moveRight.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '39' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'RIGHT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = 100; } } moveRight.onKeyUp = function () { if (Key.getCode() == '39' and moveDir == 'RIGHT') { if (game_STATE == 'PLAY') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '37' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'LEFT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = -100; } } moveLeft.onKeyUp = function () { if (game_STATE == 'PLAY') { if (Key.getCode() == '37' and moveDir == 'LEFT') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8' and _global.mapDataLayer.objectFocus == false and _global.mapDataLayer.jumpOn == false and _global.mapDataLayer.inAir == false and stopRun_Switch == false) { if (game_STATE == 'PLAY') { pauseGame(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 500, {'_x': 0, '_y': 0}); } Key.removeListener(openMenu); disableControls(); } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { refeshScreen(); if (objectData[0] == 'Treasure' and _global.mapDataLayer.objectFocus == true) { _global.mapDataLayer.objectFocus = false; removeMovieClip(_global.mapStageLayer.newEvent); ++_root.gamePlay_Stats[4][2]; _root.scanForAchievements(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; smallText = 'NEW ITEM'; largeText = (eval('_root.item_' + objectData[2]))[0]; } if (objectData[1] == 'chip') { _root.chipSwitch[objectData[2]] = true; ++_root.numOfChips[objectData[2]]; _root.updateACData(); smallText = 'NEW BATTLE CHIP'; largeText = _root.refChips[objectData[2]]; } if (objectData[1] == 'gear_Head') { ++_root.listHead[objectData[2]]; smallText = 'NEW GEAR (HELMET)'; largeText = (eval('_root.WpnHead' + objectData[2]))[0]; } if (objectData[1] == 'gear_Buster') { ++_root.listBuster[objectData[2]]; smallText = 'NEW WEAPON (BUSTER)'; largeText = (eval('_root.WpnBuster' + objectData[2]))[0]; } if (objectData[1] == 'gear_Melee') { ++_root.listMelee[objectData[2]]; smallText = 'NEW WEAPON (MELEE)'; largeText = (eval('_root.WpnMelee' + objectData[2]))[0]; } if (objectData[1] == 'gear_Armor') { ++_root.listArmor[objectData[2]]; smallText = 'NEW GEAR (ARMOR)'; largeText = (eval('_root.WpnArmor' + objectData[2]))[0]; } if (objectData[1] == 'gear_Legs') { ++_root.listLeg[objectData[2]]; smallText = 'NEW GEAR (LEGS)'; largeText = (eval('_root.WpnLeg' + objectData[2]))[0]; } if (objectData[1] == 'gear_Trinket') { ++_root.listTrinket[objectData[2]]; smallText = 'NEW GEAR (TRINKET)'; largeText = (eval('_root.WpnTrinket' + objectData[2]))[0]; } _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; currentObjectClips[objectData[4]][6][1] = false; refeshScreen(); Key.removeListener(searchKey); objectData = []; } if (objectData[0] == 'Search' and _global.mapDataLayer.objectFocus == true and inAir == false) { Key.removeListener(searchKey); removeMovieClip(_global.mapStageLayer.newEvent); stopRun(); disableControls(); _global.mapStageLayer.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; stop(); } } movieClip 674 levelMain_BR1 { frame 1 { _global.mapStageLayer = this; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 200, '_y': 250}); textBoxMC._xscale = 120; textBoxMC._yscale = 120; attachMovie('slideShowStages', 'slideShowStages', 450, {'_x': 175, '_y': 100}); stop(); } frame 23 { _parent.gotoAndPlay('loadNewArea'); stop(); } frame 43 { _global.mapDataLayer.enableControls(); gotoAndPlay('gameLoop'); } frame 44 { _global.mapDataLayer.enableControls(); } frame 51 { stop(); } frame 52 { _global.mapDataLayer.startOnDrop = true; } frame 91 { gotoAndPlay('gameLoop'); } frame 111 { _global.mapStageLayer.mainMap._visible = false; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } frame 113 { stop(); } frame 142 { stop(); } } movieClip 675 eventBR1_Next { frame 1 { _root.mapTransferData = [['levelMain_BR2'], [0, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 676 dialog_BR1 { frame 1 { _global.currentDialogLayer = this; _global.mainMapLayer.disableAllControls(); lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Welcome to Boss Rush Mode. Here you will be able to challenge enemies not typically found in the main storyline. Futhermore, all levels, items and gear aquired here carry over to the main storyline. Since the bosses here can be quite difficult, each victory will fetch you a nice new reward.']], [[98, 0, 0], ['TEXT'], ['For this section, Zero has been added to the roster.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 12 { _global.mapDataLayer.currentObjectClips[2][6][1] = false; _global.mapDataLayer.currentObjectClips[2][6][0] = false; _global.mapDataLayer.refeshScreen(); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 677 eventBR1_Back { frame 1 { _root.mapTransferData = [['levelMain_BR4'], [0, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 678 { frame 1 { stop(); } } movieClip 679 { } movieClip 681 { } movieClip 682 { frame 1 { function refeshScreen() { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; if (_root.gameVariables[1][0][0] == true) { playerChr.filters = [cellShade]; } switchSeries = 1; tempNum = 1; currentLevel = 'levelMain_BR2'; _root.enemyRange = [0, 1, 2, 3]; _root.selectBG = 'bg6'; if ((eval('_root.areaSwitch_' + switchSeries))[tempNum] == false) { (eval('_root.areaSwitch_' + switchSeries))[tempNum] = true; _root.objectClips_1 = [['ob_0', '', '', '', '', ['Treasure', 'item', 19], [true, true]], ['ob_1', '', '', '', '', ['Treasure', 'item', 21], [true, true]], ['ob_2', '', '', '', '', ['Event', 'dialog_BR2', true], [true, true]], ['ob_3', '', '', '', '', ['Fight', '', 0], [true, true], [false, ''], [false, '']], ['ob_4', '', '', '', '', ['Fight', '', 1], [true, true], [false, ''], [false, '']], ['ob_5', '', '', '', '', ['Fight', '', 2], [true, true], [false, ''], [false, '']], ['ob_6', '', '', '', '', ['Fight', '', 3], [true, true], [false, ''], [false, '']], ['ob_7', '', '', '', '', ['Fight', '', 4], [true, true], [false, ''], [false, '']], ['ob_8', '', '', '', '', ['SaveSpot', 'item', 1], [true, true]], ['ob_9', '', '', '', '', ['Event', 'eventBR2_Next', false], [true, true]], ['ob_10', '', '', '', '', ['Event', 'eventBR2_Back', false], [true, true]], ['ob_11', '', '', '', '', ['Treasure', 'gear_Head', 1], [true, true]]]; } currentObjectClips = eval('_root.objectClips_' + tempNum); counter = 0; i = 0; while (i <= currentObjectClips.length - 1) { thisClip = this[currentObjectClips[i][0]]; thisClip.idType = 'object'; thisClip.idTag = counter; if (_root.gameVariables[1][0][0] == true) { thisClip.filters = [cellShade]; } thisClip.startWidth = this[currentObjectClips[i][0]]._width; currentObjectClips[counter][1] = true; if (currentObjectClips[i][6][1] == false) { thisClip._visible = false; } else { thisClip._visible = true; } thisClip.onEnterFrame = function () { if (_global.mapDataLayer.game_STATE == 'PLAY') { } }; ++counter; ++i; } delete counter; } function checkFightID(checkNum) { if (checkNum == 0) { _root.arrangedBattleData = [[['NO CHANGE'], [[[1, 1, 0]], [7], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 1) { _root.arrangedBattleData = [[['NO CHANGE'], [[[2, 3, 2, 1]], [7], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 2) { _root.arrangedBattleData = [[['NO CHANGE'], [[[0, 1, 0]], [8], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 3) { _root.arrangedBattleData = [[['NO CHANGE'], [[[1, 0, 0, 1]], [8], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 4) { _root.arrangedBattleData = [[['NO CHANGE'], [[[94]], [9], [[11, 17]]]], [['bg6'], [['SAME'], [2]]]]; } } function determineRandomBattle() { if (randomBCount == undefined) { randomCount = 'NONE'; } if (walkTally == undefined) { walkTally = 0; } if (randomBCount == 'NONE') { encounterCounter = 0; } if (randomBCount == 'RARE') { encounterCounter = 150 + Math.round(Math.random() * 100); } if (randomBCount == 'FEW') { encounterCounter = 100 + Math.round(Math.random() * 100); } if (randomBCount == 'MED') { encounterCounter = 50 + Math.round(Math.random() * 100); } if (randomBCount == 'MANY') { encounterCounter = 20 + Math.round(Math.random() * 100); } } function fightFunction(fightID) { game_STATE = 'PAUSE'; _root.setupFight(fightID); } function endBattle(endType) { _global.mapStageLayer.mainMap._visible = true; walkTally = 0; determineRandomBattle(); _root.musicPlayerMC.changeMusic('SAME', roomMusicTrack); (eval('_global.song' + _global.currentSong)).setVolume(_root.gameVariables[0][0][1]); if (skirmishType == 'RANDOM') { if (endType == 'DEFEATED') { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (endType == 'VICTORY') { _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } } if (skirmishType == 'SCRIPTED') { if (endType == 'VICTORY') { if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == false) { currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][7][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } if (endType == 'DEFEATED') { if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == false) { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][8][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } } } function addGravity() { if (gravitySpd == undefined) { gravitySpd = 0; } if (game_STATE == 'PLAY') { gravitySpd += 0.01; if (gravitySpd > 20) { gravitySpd = 20; } } } function jumpAccel() { if (game_STATE == 'PLAY') { jumpDistance += jumpSpd; if (jumpSpd < 0) { player_BEHAVIOR = 'NORMAL'; ceilingTouch = false; delete jumpSpd; delete jumpDistance; } if (jumpSpd < 5) { jumpSpd -= 0.5; } else { jumpSpd -= 1; } } } function runAccel() { if (game_STATE == 'PLAY' and inRun == true) { if (runSpd == undefined) { runSpd = 0; } if (moveDir == 'RIGHT') { if (inAir == true) { runSpd += 0.2 + speedBoost; if (runSpd > 8) { runSpd = 8; } } if (inAir == false) { runSpd += 0.4 + speedBoost; if (runSpd > 8) { runSpd = 8; } } } if (moveDir == 'LEFT') { if (inAir == true) { runSpd -= 0.2 + speedBoost; if (runSpd < -8) { runSpd = -8; } } if (inAir == false) { runSpd -= 0.4 + speedBoost; if (runSpd < -8) { runSpd = -8; } } } } } function onEnterFrame() { if (game_STATE == 'PLAY') { if (playerChr._x > moveThreshold and playerChr._x < moveRightMax and wallTouch == false) { _global.mapStageLayer.mainMap._x -= runSpd * screenScale; _global.mapStageLayer.background_B._x -= runSpd * screenScale / 4; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 8; if (_global.mapStageLayer.mainMap._x > 0) { _global.mapStageLayer.mainMap._x = 0; } } if (playerChr._y < vertThreshold and playerChr._y > vertTopMax) { if (player_BEHAVIOR == 'JUMPING' and ceilingTouch == false) { _global.mapStageLayer.mainMap._y += jumpDistance * screenScale; vertCount += jumpDistance * screenScale; } if (player_BEHAVIOR == 'NORMAL' and inAir == true and ceilingTouch == false and vertCount > 0) { _global.mapStageLayer.mainMap._y -= gravitySpd * screenScale; vertCount -= gravitySpd * screenScale; } if (_global.mapStageLayer.mainMap._y < 0) { _global.mapStageLayer.mainMap._y = 0; } if (_global.mapStageLayer.mainMap._y > 0 and _global.mapStageLayer.mainMap._y < 15) { _global.mapStageLayer.mainMap._y = 0; } } } } function stopRun() { stopRun_Switch = true; moveDir = 'NONE'; if (_global.mapDataLayer.runSpd != 0) { inRun = false; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } runSpd = 0; } } function pauseGame() { game_STATE = 'PAUSE'; playerChr.playerMC.stop(); playerChr.playerMC.shadowMC.stop(); moveDir = 'NONE'; inRun = false; } function unpauseGame() { stopRun_Switch = false; _global.mapDataLayer.game_STATE = 'PLAY'; if (_global.mapDataLayer.runSpd != 0) { _global.mapDataLayer.playerChr.playerMC.play(); } _global.mapDataLayer.playerChr.playerMC.shadowMC.play(); _global.mapDataLayer.enableControls(); Key.addListener(_global.mapDataLayer.openMenu); } function enableControls() { Key.addListener(openMenu); Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } function disableControls() { Key.removeListener(openMenu); Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); } _global.roomName = 'BOSS RUSH II'; _global.mapDataLayer = this; stopRun_Switch = false; var player_VSTATE; var player_BEHAVIOR; player_BEHAVIOR = 'NORMAL'; var doubleJump = true; jumpMax = 3; jumpOn = false; var jumpCounter = 0; inAir = false; inRun = false; inFight = false; ceilingTouch = false; wallTouch = false; var speedBoost = 0; var skirmishType; var game_STATE; game_STATE = 'PLAY'; playerChr.groundMC = ground; playerChr.wallMC = walls; playerChr.ceilingMC = ceiling; screenScale = _global.mapStageLayer.mainMap._xscale / 100; _root.battleInformationData(0); movementBuffer = []; if (_global.mapDataLayer.objectFocus == undefined) { _global.mapDataLayer.objectFocus = false; } if (_root.mapTransferData[1][0] == 0) { _global.mapStageLayer.mainMap._x = 0; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = -10; _global.mapStageLayer.background_A._y = 0; _global.mapStageLayer.background_B._x = 1505.9; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 59; _global.mapDataLayer.playerChr._y = 536.6000000000003; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 1) { _global.mapStageLayer.mainMap._x = -2088.55; _global.mapStageLayer.mainMap._y = 92; _global.mapStageLayer.background_A._x = -271.5; _global.mapStageLayer.background_A._y = 0; _global.mapStageLayer.background_B._x = 982; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 2830; _global.mapDataLayer.playerChr._y = 255; _global.mapDataLayer.playerChr._xscale = -100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 500; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 'LOAD') { _global.mapStageLayer.mainMap._x = _root.locationPacket[0][0][0]; _global.mapStageLayer.mainMap._y = _root.locationPacket[0][0][1]; _global.mapDataLayer.playerChr._x = _root.locationPacket[0][1][0]; _global.mapDataLayer.playerChr._y = _root.locationPacket[0][1][1]; _global.mapDataLayer.playerChr._xscale = _root.locationPacket[0][1][2]; _global.mapStageLayer.background_A._x = _root.locationPacket[0][0][2]; _global.mapStageLayer.background_B._x = _root.locationPacket[0][0][3]; vertCount = _root.locationPacket[0][2][1]; var randomBCount = _root.locationPacket[0][2][2]; player_VSTATE = _root.locationPacket[0][4][0]; player_BEHAVIOR = _root.locationPacket[0][4][1]; inAir = _root.locationPacket[0][4][2]; inRun = _root.locationPacket[0][4][3]; gravitySpd = _root.locationPacket[0][4][4]; roomMusicTrack = 4; } _global.mapStageLayer.gotoAndPlay(_root.mapTransferData[1][1]); refeshScreen(); MovieClip.prototype.objectCheck = function (o, oNum) { if (game_STATE == 'PLAY') { for (i in this.playerMC.sidePerim) { if (_global.mapDataLayer.playerChr.hitTest(o) == true) { action = currentObjectClips[(eval(o)).idTag][5][0]; if (action == 'SaveSpot' and currentObjectClips[(eval(o)).idTag][6][0] == true and inAir == false) { (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); _root.saveOn = true; if (checkOnce == undefined) { checkOnce = false; } if (checkOnce == false) { checkOnce = true; _root.autoSaveFeature(); _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = 'Autosave'; _global.annoucementStringLarge = 'Progress Saved'; } } if (action == 'Treasure' and currentObjectClips[(eval(o)).idTag][6][0] == true and currentObjectClips[(eval(o)).idTag][6][1] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapStageLayer.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mapDataLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Search' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.objectFocus = false; } _global.mapStageLayer.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Fight' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { _global.mapDataLayer.instanceNum = (eval(o)).idTag; _global.mapDataLayer.objectFocus = true; stopRun(); disableControls(); skirmishType = 'SCRIPTED'; checkFightID(currentObjectClips[(eval(o)).idTag][5][2]); fightFunction('SCRIPTED'); } if (action == 'Event' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { stopRun(); disableControls(); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; _global.mapStageLayer.attachMovie(currentObjectClips[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (this._xscale > 0) { this._x -= 20; } if (this._xscale < 0) { this._x += 20; } if (currentObjectClips[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } } } } }; determineRandomBattle(); MovieClip.prototype.gravityCheck = function () { for (i in this.playerMC.feetPerim) { perimPoint = {'x': this.playerMC.feetPerim[i]._x, 'y': this.playerMC.feetPerim[i]._y}; this.playerMC.feetPerim.localToGlobal(perimPoint); if (checkJump == undefined) { checkJump = true; } if (checkJump == true) { if (this.groundMC.hitTest(perimPoint.x, perimPoint.y, true)) { if (startOnDrop == undefined) { startOnDrop = false; } if (startOnDrop == true) { enableControls(); startOnDrop = false; } --this._y; jumpCounter = 0; if (inAir == true) { if (moveDir == 'RIGHT') { if (runSpd > 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { if (moveDir == 'LEFT') { if (runSpd < 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } inAir = false; jumpOn = false; fallSwitch = true; } } else { addGravity(); } } else { addGravity(); } } }; MovieClip.prototype.wallCheck = function () { for (i in this.playerMC.sidePerim) { sidePoint = {'x': this.playerMC.sidePerim[i]._x, 'y': this.playerMC.sidePerim[i]._y}; this.playerMC.sidePerim.localToGlobal(sidePoint); if (this.wallMC.hitTest(sidePoint.x, sidePoint.y, true)) { if (this._xscale > 0) { --this._x; } if (this._xscale < 0) { ++this._x; } inRun = false; runSpd = 0; } } }; MovieClip.prototype.ceilingCheck = function () { for (i in this.playerMC.headPerim) { headPoint = {'x': this.playerMC.headPerim[i]._x, 'y': this.playerMC.headPerim[i]._y}; this.playerMC.headPerim.localToGlobal(headPoint); if (this.ceilingMC.hitTest(headPoint.x, headPoint.y, true)) { ++this._y; ceilingTouch = true; } } }; playerChr.onEnterFrame = function () { if (game_STATE == 'PLAY') { nowY = this._y; if (player_BEHAVIOR == 'NORMAL') { if (runSpd == undefined) { runSpd = 0; } this._x += runSpd; this._y += gravitySpd; this.gravityCheck(); this.wallCheck(); runAccel(); } if (player_BEHAVIOR == 'JUMPING') { this._x += runSpd; this._y -= jumpDistance; this.wallCheck(); this.ceilingCheck(); runAccel(); jumpAccel(); } laterY = this._y; } if (game_STATE == 'PLAY') { varZ = 0; while (varZ <= currentObjectClips.length - 1) { if (currentObjectClips[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(currentObjectClips[varZ][0])).startWidth - (eval(currentObjectClips[varZ][0]))._width); distanceFrom = (eval(currentObjectClips[varZ][0]))._x - widthDifference - (_global.mapDataLayer.playerChr._x + (_global.mapDataLayer.playerChr._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(currentObjectClips[varZ][0]))._width + (_global.mapDataLayer.playerChr._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { _root.saveOn = false; this.objectCheck(eval(currentObjectClips[varZ][0]), varZ); } else { if (_global.mapDataLayer.objectFocus == true and varZ == _global.mapDataLayer.itemNumber) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; removeMovieClip(_global.mapStageLayer.newEvent); (eval(currentObjectClips[varZ][0])).gotoAndPlay('load'); } } } ++varZ; } } if (game_STATE == 'PLAY') { if (nowY < laterY) { player_VSTATE = 'DECENDING'; fallSpeed = Math.abs(nowY - laterY); if (fallSpeed > 1) { if (fallSwitch == undefined) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; fallSwitch = false; } if (fallSpeed >= 10 and fallSwitch == true and jumpOn == false) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; gravitySpd = 1; fallSwitch = false; ++jumpCounter; checkJump = true; inAir = true; speedBoost = 0; } if (fallSpeed > 5) { inAir = true; checkJump = true; speedBoost = 0; } } } if (Math.abs(nowY - laterY) < 1) { player_VSTATE = 'LEVELED'; } if (nowY > laterY) { player_VSTATE = 'ASCENDING'; fallSpeed = Math.abs(nowY - laterY); } } if (randomBCount != 'NONE') { if (inFall == true or inRun == true) { ++walkTally; } if (walkTally >= encounterCounter) { _root.selectBG = battleBGNum; skirmishType = 'RANDOM'; fightFunction(skirmishType); _global.mapDataLayer.pauseGame(); _global.mapDataLayer.objectFocus = true; walkTally = 0; } } }; screenScale = _global.mapStageLayer.mainMap._xscale / 100; moveThreshold = 400 / screenScale; moveRightMax = areaMap._width - moveThreshold + areaMap._x; vertThreshold = 400 / screenScale; vertTopMax = -areaMap._height * screenScale + 600 + vertThreshold; if (vertCount == undefined) { vertCount = 0; } controlBuffer = []; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and player_BEHAVIOR == 'NORMAL' and jumpCounter < jumpMax) { ++jumpCounter; if (jumpCounter > jumpMax) { jumpCounter = jumpMax; } playerChr.playerMC.gotoAndPlay('jumpUpward'); controlBuffer = ['jumpUpward']; player_BEHAVIOR = 'JUMPING'; jumpOn = true; inAir = true; checkJump = false; if (jumpCounter == 1) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 0.5; } if (jumpCounter >= 2) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 1; } } }; moveRight = new Object(); moveRight.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '39' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'RIGHT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = 100; } } moveRight.onKeyUp = function () { if (Key.getCode() == '39' and moveDir == 'RIGHT') { if (game_STATE == 'PLAY') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '37' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'LEFT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = -100; } } moveLeft.onKeyUp = function () { if (game_STATE == 'PLAY') { if (Key.getCode() == '37' and moveDir == 'LEFT') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8' and _global.mapDataLayer.objectFocus == false and _global.mapDataLayer.jumpOn == false and _global.mapDataLayer.inAir == false and stopRun_Switch == false) { if (game_STATE == 'PLAY') { pauseGame(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 500, {'_x': 0, '_y': 0}); } Key.removeListener(openMenu); disableControls(); } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { refeshScreen(); if (objectData[0] == 'Treasure' and _global.mapDataLayer.objectFocus == true) { _global.mapDataLayer.objectFocus = false; removeMovieClip(_global.mapStageLayer.newEvent); ++_root.gamePlay_Stats[4][2]; _root.scanForAchievements(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; smallText = 'NEW ITEM'; largeText = (eval('_root.item_' + objectData[2]))[0]; } if (objectData[1] == 'chip') { _root.chipSwitch[objectData[2]] = true; ++_root.numOfChips[objectData[2]]; _root.updateACData(); smallText = 'NEW BATTLE CHIP'; largeText = _root.refChips[objectData[2]]; } if (objectData[1] == 'gear_Head') { ++_root.listHead[objectData[2]]; smallText = 'NEW GEAR (HELMET)'; largeText = (eval('_root.WpnHead' + objectData[2]))[0]; } if (objectData[1] == 'gear_Buster') { ++_root.listBuster[objectData[2]]; smallText = 'NEW WEAPON (BUSTER)'; largeText = (eval('_root.WpnBuster' + objectData[2]))[0]; } if (objectData[1] == 'gear_Melee') { ++_root.listMelee[objectData[2]]; smallText = 'NEW WEAPON (MELEE)'; largeText = (eval('_root.WpnMelee' + objectData[2]))[0]; } if (objectData[1] == 'gear_Armor') { ++_root.listArmor[objectData[2]]; smallText = 'NEW GEAR (ARMOR)'; largeText = (eval('_root.WpnArmor' + objectData[2]))[0]; } if (objectData[1] == 'gear_Legs') { ++_root.listLeg[objectData[2]]; smallText = 'NEW GEAR (LEGS)'; largeText = (eval('_root.WpnLeg' + objectData[2]))[0]; } if (objectData[1] == 'gear_Trinket') { ++_root.listTrinket[objectData[2]]; smallText = 'NEW GEAR (TRINKET)'; largeText = (eval('_root.WpnTrinket' + objectData[2]))[0]; } _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; currentObjectClips[objectData[4]][6][1] = false; refeshScreen(); Key.removeListener(searchKey); objectData = []; } if (objectData[0] == 'Search' and _global.mapDataLayer.objectFocus == true and inAir == false) { Key.removeListener(searchKey); removeMovieClip(_global.mapStageLayer.newEvent); stopRun(); disableControls(); _global.mapStageLayer.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; stop(); } } movieClip 687 levelMain_BR2 { frame 1 { _global.mapStageLayer = this; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 200, '_y': 250}); textBoxMC._xscale = 120; textBoxMC._yscale = 120; attachMovie('slideShowStages', 'slideShowStages', 450, {'_x': 175, '_y': 100}); stop(); } frame 23 { _parent.gotoAndPlay('loadNewArea'); stop(); } frame 43 { _global.mapDataLayer.enableControls(); gotoAndPlay('gameLoop'); } frame 44 { _global.mapDataLayer.enableControls(); } frame 51 { stop(); } frame 52 { _global.mapDataLayer.startOnDrop = true; } frame 91 { gotoAndPlay('gameLoop'); } frame 111 { _global.mapStageLayer.mainMap._visible = false; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } frame 113 { stop(); } frame 142 { stop(); } } movieClip 688 eventBR2_Next { frame 1 { _root.mapTransferData = [['levelMain_BR3'], [0, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 689 eventBR2_Back { frame 1 { _root.mapTransferData = [['levelMain_BR1'], [1, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 690 { frame 1 { stop(); } } movieClip 693 { } movieClip 695 { } movieClip 696 { } movieClip 698 { } movieClip 699 { frame 1 { stop(); } } movieClip 700 { frame 1 { function refeshScreen() { var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; if (_root.gameVariables[1][0][0] == true) { playerChr.filters = [cellShade]; } switchSeries = 1; tempNum = 2; currentLevel = 'levelMain_BR3'; _root.enemyRange = [0, 1, 2, 3]; _root.selectBG = 'bg6'; if ((eval('_root.areaSwitch_' + switchSeries))[tempNum] == false) { (eval('_root.areaSwitch_' + switchSeries))[tempNum] = true; _root.objectClips_2 = [['ob_0', '', '', '', '', ['Treasure', 'item', 4], [true, true]], ['ob_1', '', '', '', '', ['Treasure', 'item', 14], [true, true]], ['ob_2', '', '', '', '', ['Event', 'dialog_BR2', true], [true, true]], ['ob_3', '', '', '', '', ['Fight', '', 0], [true, true], [false, ''], [false, '']], ['ob_4', '', '', '', '', ['Fight', '', 1], [true, true], [false, ''], [false, '']], ['ob_5', '', '', '', '', ['Fight', '', 2], [true, true], [false, ''], [false, '']], ['ob_6', '', '', '', '', ['Fight', '', 3], [true, true], [false, ''], [false, '']], ['ob_7', '', '', '', '', ['Fight', '', 4], [true, true], [true, 'event_BR3Achievement'], [false, '']], ['ob_8', '', '', '', '', ['SaveSpot', 'item', 1], [true, true]], ['ob_9', '', '', '', '', ['Event', 'eventBR3_Next', false], [true, true]], ['ob_10', '', '', '', '', ['Event', 'eventBR3_Back', false], [true, true]], ['ob_11', '', '', '', '', ['Treasure', 'gear_Trinket', 3], [true, true]], ['ob_12', '', '', '', '', ['Fight', '', 5], [false, false], [true, 'event_BR3Achievement2'], [false, '']]]; } currentObjectClips = eval('_root.objectClips_' + tempNum); counter = 0; i = 0; while (i <= currentObjectClips.length - 1) { thisClip = this[currentObjectClips[i][0]]; thisClip.idType = 'object'; thisClip.idTag = counter; if (_root.gameVariables[1][0][0] == true) { thisClip.filters = [cellShade]; } thisClip.startWidth = this[currentObjectClips[i][0]]._width; currentObjectClips[counter][1] = true; if (currentObjectClips[i][6][1] == false) { thisClip._visible = false; } else { thisClip._visible = true; } thisClip.onEnterFrame = function () { if (_global.mapDataLayer.game_STATE == 'PLAY') { } }; ++counter; ++i; } delete counter; } function checkFightID(checkNum) { if (checkNum == 0) { _root.arrangedBattleData = [[['NO CHANGE'], [[[1, 1, 0]], [8], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 1) { _root.arrangedBattleData = [[['NO CHANGE'], [[[2, 3, 2, 1]], [8], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 2) { _root.arrangedBattleData = [[['NO CHANGE'], [[[0, 1, 0]], [4], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 3) { _root.arrangedBattleData = [[['NO CHANGE'], [[[1, 0, 0, 1]], [6], [[10, 13, 16, 12, 14, 17]]]], [['bg6'], [['SAME'], [1]]]]; } if (checkNum == 4) { _root.arrangedBattleData = [[['NO CHANGE'], [[[93, 92, 94]], [9], [[10, 14, 16]]]], [['bg6'], [['SAME'], [2]]]]; } if (checkNum == 5) { _root.arrangedBattleData = [[['NO CHANGE'], [[[91]], [12], [[15]]]], [['bg6'], [['SAME'], [0]]]]; } } function determineRandomBattle() { if (randomBCount == undefined) { randomCount = 'NONE'; } if (walkTally == undefined) { walkTally = 0; } if (randomBCount == 'NONE') { encounterCounter = 0; } if (randomBCount == 'RARE') { encounterCounter = 150 + Math.round(Math.random() * 100); } if (randomBCount == 'FEW') { encounterCounter = 100 + Math.round(Math.random() * 100); } if (randomBCount == 'MED') { encounterCounter = 50 + Math.round(Math.random() * 100); } if (randomBCount == 'MANY') { encounterCounter = 20 + Math.round(Math.random() * 100); } } function fightFunction(fightID) { game_STATE = 'PAUSE'; _root.setupFight(fightID); } function endBattle(endType) { _global.mapStageLayer.mainMap._visible = true; walkTally = 0; determineRandomBattle(); _root.musicPlayerMC.changeMusic('SAME', roomMusicTrack); (eval('_global.song' + _global.currentSong)).setVolume(_root.gameVariables[0][0][1]); if (skirmishType == 'RANDOM') { if (endType == 'DEFEATED') { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (endType == 'VICTORY') { _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } } if (skirmishType == 'SCRIPTED') { if (endType == 'VICTORY') { if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == false) { currentObjectClips[_global.mapDataLayer.instanceNum][6][1] = false; currentObjectClips[_global.mapDataLayer.instanceNum][6][0] = false; _global.mapDataLayer.objectFocus = false; enableControls(); refeshScreen(); unpauseGame(); } if (currentObjectClips[_global.mapDataLayer.instanceNum][7][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][7][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } if (endType == 'DEFEATED') { if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == false) { _global.loadNewAreaLevel.attachMovie('defeatHolder', 'defeatHolder', 200, {'_x': 0, '_y': 0}); } if (currentObjectClips[_global.mapDataLayer.instanceNum][8][0] == true) { disableControls(); _global.mapStageLayer.attachMovie(currentObjectClips[_global.mapDataLayer.instanceNum][8][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } } } function addGravity() { if (gravitySpd == undefined) { gravitySpd = 0; } if (game_STATE == 'PLAY') { gravitySpd += 0.01; if (gravitySpd > 20) { gravitySpd = 20; } } } function jumpAccel() { if (game_STATE == 'PLAY') { jumpDistance += jumpSpd; if (jumpSpd < 0) { player_BEHAVIOR = 'NORMAL'; ceilingTouch = false; delete jumpSpd; delete jumpDistance; } if (jumpSpd < 5) { jumpSpd -= 0.5; } else { jumpSpd -= 1; } } } function runAccel() { if (game_STATE == 'PLAY' and inRun == true) { if (runSpd == undefined) { runSpd = 0; } if (moveDir == 'RIGHT') { if (inAir == true) { runSpd += 0.2 + speedBoost; if (runSpd > 8) { runSpd = 8; } } if (inAir == false) { runSpd += 0.4 + speedBoost; if (runSpd > 8) { runSpd = 8; } } } if (moveDir == 'LEFT') { if (inAir == true) { runSpd -= 0.2 + speedBoost; if (runSpd < -8) { runSpd = -8; } } if (inAir == false) { runSpd -= 0.4 + speedBoost; if (runSpd < -8) { runSpd = -8; } } } } } function onEnterFrame() { if (game_STATE == 'PLAY') { if (playerChr._x > moveThreshold and playerChr._x < moveRightMax and wallTouch == false) { _global.mapStageLayer.mainMap._x -= runSpd * screenScale; _global.mapStageLayer.background_B._x -= runSpd * screenScale / 4; _global.mapStageLayer.background_A._x -= runSpd * screenScale / 8; if (_global.mapStageLayer.mainMap._x > 0) { _global.mapStageLayer.mainMap._x = 0; } } if (playerChr._y < vertThreshold and playerChr._y > vertTopMax) { if (player_BEHAVIOR == 'JUMPING' and ceilingTouch == false) { _global.mapStageLayer.mainMap._y += jumpDistance * screenScale; vertCount += jumpDistance * screenScale; } if (player_BEHAVIOR == 'NORMAL' and inAir == true and ceilingTouch == false and vertCount > 0) { _global.mapStageLayer.mainMap._y -= gravitySpd * screenScale; vertCount -= gravitySpd * screenScale; } if (_global.mapStageLayer.mainMap._y < 0) { _global.mapStageLayer.mainMap._y = 0; } if (_global.mapStageLayer.mainMap._y > 0 and _global.mapStageLayer.mainMap._y < 15) { _global.mapStageLayer.mainMap._y = 0; } } } } function stopRun() { stopRun_Switch = true; moveDir = 'NONE'; if (_global.mapDataLayer.runSpd != 0) { inRun = false; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } runSpd = 0; } } function pauseGame() { game_STATE = 'PAUSE'; playerChr.playerMC.stop(); playerChr.playerMC.shadowMC.stop(); moveDir = 'NONE'; inRun = false; } function unpauseGame() { stopRun_Switch = false; _global.mapDataLayer.game_STATE = 'PLAY'; if (_global.mapDataLayer.runSpd != 0) { _global.mapDataLayer.playerChr.playerMC.play(); } _global.mapDataLayer.playerChr.playerMC.shadowMC.play(); _global.mapDataLayer.enableControls(); Key.addListener(_global.mapDataLayer.openMenu); } function enableControls() { Key.addListener(openMenu); Key.addListener(jumpControls); Key.addListener(moveLeft); Key.addListener(moveRight); } function disableControls() { Key.removeListener(openMenu); Key.removeListener(jumpControls); Key.removeListener(moveLeft); Key.removeListener(moveRight); } _global.roomName = 'BOSS RUSH II'; _global.mapDataLayer = this; stopRun_Switch = false; var player_VSTATE; var player_BEHAVIOR; player_BEHAVIOR = 'NORMAL'; var doubleJump = true; jumpMax = 3; jumpOn = false; var jumpCounter = 0; inAir = false; inRun = false; inFight = false; ceilingTouch = false; wallTouch = false; var speedBoost = 0; var skirmishType; var game_STATE; game_STATE = 'PLAY'; playerChr.groundMC = ground; playerChr.wallMC = walls; playerChr.ceilingMC = ceiling; screenScale = _global.mapStageLayer.mainMap._xscale / 100; _root.battleInformationData(0); movementBuffer = []; if (_global.mapDataLayer.objectFocus == undefined) { _global.mapDataLayer.objectFocus = false; } if (_root.mapTransferData[1][0] == 0) { _global.mapStageLayer.mainMap._x = 0; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = -10; _global.mapStageLayer.background_A._y = 0; _global.mapStageLayer.background_B._x = 1505.9; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 59; _global.mapDataLayer.playerChr._y = 536.6000000000003; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 1) { _global.mapStageLayer.mainMap._x = -222.3; _global.mapStageLayer.mainMap._y = 0; _global.mapStageLayer.background_A._x = -180; _global.mapStageLayer.background_A._y = 0; _global.mapStageLayer.background_B._x = 0; _global.mapStageLayer.background_B._y = 0; _global.mapDataLayer.playerChr._x = 628; _global.mapDataLayer.playerChr._y = -10; _global.mapDataLayer.playerChr._xscale = 100; roomMusicTrack = 4; _root.musicPlayerMC.changeMusic('SAME', 4); vertCount = 0; var randomBCount = 'NONE'; } if (_root.mapTransferData[1][0] == 'LOAD') { _global.mapStageLayer.mainMap._x = _root.locationPacket[0][0][0]; _global.mapStageLayer.mainMap._y = _root.locationPacket[0][0][1]; _global.mapDataLayer.playerChr._x = _root.locationPacket[0][1][0]; _global.mapDataLayer.playerChr._y = _root.locationPacket[0][1][1]; _global.mapDataLayer.playerChr._xscale = _root.locationPacket[0][1][2]; _global.mapStageLayer.background_A._x = _root.locationPacket[0][0][2]; _global.mapStageLayer.background_B._x = _root.locationPacket[0][0][3]; vertCount = _root.locationPacket[0][2][1]; var randomBCount = _root.locationPacket[0][2][2]; player_VSTATE = _root.locationPacket[0][4][0]; player_BEHAVIOR = _root.locationPacket[0][4][1]; inAir = _root.locationPacket[0][4][2]; inRun = _root.locationPacket[0][4][3]; gravitySpd = _root.locationPacket[0][4][4]; roomMusicTrack = 4; } _global.mapStageLayer.gotoAndPlay(_root.mapTransferData[1][1]); refeshScreen(); MovieClip.prototype.objectCheck = function (o, oNum) { if (game_STATE == 'PLAY') { for (i in this.playerMC.sidePerim) { if (_global.mapDataLayer.playerChr.hitTest(o) == true) { action = currentObjectClips[(eval(o)).idTag][5][0]; if (action == 'SaveSpot' and currentObjectClips[(eval(o)).idTag][6][0] == true and inAir == false) { (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); _root.saveOn = true; if (checkOnce == undefined) { checkOnce = false; } if (checkOnce == false) { checkOnce = true; _root.autoSaveFeature(); _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = 'Autosave'; _global.annoucementStringLarge = 'Progress Saved'; } } if (action == 'Treasure' and currentObjectClips[(eval(o)).idTag][6][0] == true and currentObjectClips[(eval(o)).idTag][6][1] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { _global.mapStageLayer.attachMovie('map_findTreasure', 'newEvent', 1000, {'_x': 300, '_y': 550}); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mapDataLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Search' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false and inAir == false) { if (_global.mainMapLayer.currentItemID != (eval(o)).idTag) { _global.mainMapLayer.objectFocus = false; } _global.mapStageLayer.attachMovie('map_searchMessage', 'newEvent', 1000, {'_x': 300, '_y': 550}); (eval(currentObjectClips[varZ][0])).gotoAndPlay('animate'); objectData = [action, currentObjectClips[(eval(o)).idTag][5][1], currentObjectClips[(eval(o)).idTag][5][2], o, (eval(o)).idTag]; _global.mainMapLayer.currentItemID = (eval(o)).idTag; Key.addListener(searchKey); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; } if (action == 'Fight' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { _global.mapDataLayer.instanceNum = (eval(o)).idTag; _global.mapDataLayer.objectFocus = true; stopRun(); disableControls(); skirmishType = 'SCRIPTED'; checkFightID(currentObjectClips[(eval(o)).idTag][5][2]); fightFunction('SCRIPTED'); } if (action == 'Event' and currentObjectClips[(eval(o)).idTag][6][0] == true and _global.mapDataLayer.objectFocus == false) { stopRun(); disableControls(); _global.mapDataLayer.objectFocus = true; _global.mapDataLayer.itemNumber = oNum; _global.mapStageLayer.attachMovie(currentObjectClips[(eval(o)).idTag][5][1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); if (this._xscale > 0) { this._x -= 20; } if (this._xscale < 0) { this._x += 20; } if (currentObjectClips[(eval(o)).idTag][5][2] == true) { loadMovie('', o); } } } } } }; determineRandomBattle(); MovieClip.prototype.gravityCheck = function () { for (i in this.playerMC.feetPerim) { perimPoint = {'x': this.playerMC.feetPerim[i]._x, 'y': this.playerMC.feetPerim[i]._y}; this.playerMC.feetPerim.localToGlobal(perimPoint); if (checkJump == undefined) { checkJump = true; } if (checkJump == true) { if (this.groundMC.hitTest(perimPoint.x, perimPoint.y, true)) { if (startOnDrop == undefined) { startOnDrop = false; } if (startOnDrop == true) { enableControls(); startOnDrop = false; } --this._y; jumpCounter = 0; if (inAir == true) { if (moveDir == 'RIGHT') { if (runSpd > 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { if (moveDir == 'LEFT') { if (runSpd < 0) { playerChr.playerMC.gotoAndPlay('running'); controlBuffer = ['running']; } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } else { playerChr.playerMC.gotoAndPlay('jumpLand'); controlBuffer = ['jumpLand']; } } inAir = false; jumpOn = false; fallSwitch = true; } } else { addGravity(); } } else { addGravity(); } } }; MovieClip.prototype.wallCheck = function () { for (i in this.playerMC.sidePerim) { sidePoint = {'x': this.playerMC.sidePerim[i]._x, 'y': this.playerMC.sidePerim[i]._y}; this.playerMC.sidePerim.localToGlobal(sidePoint); if (this.wallMC.hitTest(sidePoint.x, sidePoint.y, true)) { if (this._xscale > 0) { --this._x; } if (this._xscale < 0) { ++this._x; } inRun = false; runSpd = 0; } } }; MovieClip.prototype.ceilingCheck = function () { for (i in this.playerMC.headPerim) { headPoint = {'x': this.playerMC.headPerim[i]._x, 'y': this.playerMC.headPerim[i]._y}; this.playerMC.headPerim.localToGlobal(headPoint); if (this.ceilingMC.hitTest(headPoint.x, headPoint.y, true)) { ++this._y; ceilingTouch = true; } } }; playerChr.onEnterFrame = function () { if (game_STATE == 'PLAY') { nowY = this._y; if (player_BEHAVIOR == 'NORMAL') { if (runSpd == undefined) { runSpd = 0; } this._x += runSpd; this._y += gravitySpd; this.gravityCheck(); this.wallCheck(); runAccel(); } if (player_BEHAVIOR == 'JUMPING') { this._x += runSpd; this._y -= jumpDistance; this.wallCheck(); this.ceilingCheck(); runAccel(); jumpAccel(); } laterY = this._y; } if (game_STATE == 'PLAY') { varZ = 0; while (varZ <= currentObjectClips.length - 1) { if (currentObjectClips[varZ][6][0] == true) { if (_root.gameVariables[1][0][0] == true) { lineThickness = _root.gameVariables[1][0][1]; } else { lineThickness = 0; } widthDifference = Math.abs((eval(currentObjectClips[varZ][0])).startWidth - (eval(currentObjectClips[varZ][0]))._width); distanceFrom = (eval(currentObjectClips[varZ][0]))._x - widthDifference - (_global.mapDataLayer.playerChr._x + (_global.mapDataLayer.playerChr._width / 2 + lineThickness)) + widthDifference; distanceAfter = distanceFrom + (eval(currentObjectClips[varZ][0]))._width + (_global.mapDataLayer.playerChr._width + lineThickness); if (distanceFrom < 0 and distanceAfter > 0) { _root.saveOn = false; this.objectCheck(eval(currentObjectClips[varZ][0]), varZ); } else { if (_global.mapDataLayer.objectFocus == true and varZ == _global.mapDataLayer.itemNumber) { _global.mapDataLayer.objectFocus = false; _global.mapDataLayer.checkOnce = false; removeMovieClip(_global.mapStageLayer.newEvent); (eval(currentObjectClips[varZ][0])).gotoAndPlay('load'); } } } ++varZ; } } if (game_STATE == 'PLAY') { if (nowY < laterY) { player_VSTATE = 'DECENDING'; fallSpeed = Math.abs(nowY - laterY); if (fallSpeed > 1) { if (fallSwitch == undefined) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; fallSwitch = false; } if (fallSpeed >= 10 and fallSwitch == true and jumpOn == false) { playerChr.playerMC.gotoAndPlay('falling'); controlBuffer = ['falling']; gravitySpd = 1; fallSwitch = false; ++jumpCounter; checkJump = true; inAir = true; speedBoost = 0; } if (fallSpeed > 5) { inAir = true; checkJump = true; speedBoost = 0; } } } if (Math.abs(nowY - laterY) < 1) { player_VSTATE = 'LEVELED'; } if (nowY > laterY) { player_VSTATE = 'ASCENDING'; fallSpeed = Math.abs(nowY - laterY); } } if (randomBCount != 'NONE') { if (inFall == true or inRun == true) { ++walkTally; } if (walkTally >= encounterCounter) { _root.selectBG = battleBGNum; skirmishType = 'RANDOM'; fightFunction(skirmishType); _global.mapDataLayer.pauseGame(); _global.mapDataLayer.objectFocus = true; walkTally = 0; } } }; screenScale = _global.mapStageLayer.mainMap._xscale / 100; moveThreshold = 400 / screenScale; moveRightMax = areaMap._width - moveThreshold + areaMap._x; vertThreshold = 400 / screenScale; vertTopMax = -areaMap._height * screenScale + 600 + vertThreshold; if (vertCount == undefined) { vertCount = 0; } controlBuffer = []; jumpControls = new Object(); jumpControls.onKeyDown = function () { if (Key.getCode() == '32' and player_BEHAVIOR == 'NORMAL' and jumpCounter < jumpMax) { ++jumpCounter; if (jumpCounter > jumpMax) { jumpCounter = jumpMax; } playerChr.playerMC.gotoAndPlay('jumpUpward'); controlBuffer = ['jumpUpward']; player_BEHAVIOR = 'JUMPING'; jumpOn = true; inAir = true; checkJump = false; if (jumpCounter == 1) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 0.5; } if (jumpCounter >= 2) { gravitySpd = -5; jumpSpd = 5 - jumpCounter; jumpDistance = 0; speedBoost = 1; } } }; moveRight = new Object(); moveRight.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '39' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'RIGHT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = 100; } } moveRight.onKeyUp = function () { if (Key.getCode() == '39' and moveDir == 'RIGHT') { if (game_STATE == 'PLAY') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; moveLeft = new Object(); moveLeft.onKeyDown = function () { if (game_STATE == 'PLAY') { if (moveDir == undefined) { moveDir = 'NONE'; } if (Key.getCode() == '37' and movementBuffer.length <= 0 and inRun == false and moveDir == 'NONE') { moveDir = 'LEFT'; if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStart'); controlBuffer = ['runStart']; } runSpd = 0; inRun = true; playerChr._xscale = -100; } } moveLeft.onKeyUp = function () { if (game_STATE == 'PLAY') { if (Key.getCode() == '37' and moveDir == 'LEFT') { if (inAir == false) { playerChr.playerMC.gotoAndPlay('runStop'); controlBuffer = ['runStop']; } inRun = false; moveDir = 'NONE'; runSpd = 0; } } }; }; openMenu = new Object(); openMenu.onKeyDown = function () { if (Key.getCode() == '8' and _global.mapDataLayer.objectFocus == false and _global.mapDataLayer.jumpOn == false and _global.mapDataLayer.inAir == false and stopRun_Switch == false) { if (game_STATE == 'PLAY') { pauseGame(); _root.attachMovie('menuMainHolder', 'mainMenuHolder', 500, {'_x': 0, '_y': 0}); } Key.removeListener(openMenu); disableControls(); } }; searchKey = new Object(); searchKey.onKeyDown = function () { if (Key.getCode() == '65') { refeshScreen(); if (objectData[0] == 'Treasure' and _global.mapDataLayer.objectFocus == true) { _global.mapDataLayer.objectFocus = false; removeMovieClip(_global.mapStageLayer.newEvent); ++_root.gamePlay_Stats[4][2]; _root.scanForAchievements(); if (objectData[1] == 'item') { ++_root.itemListData[objectData[2]]; smallText = 'NEW ITEM'; largeText = (eval('_root.item_' + objectData[2]))[0]; } if (objectData[1] == 'chip') { _root.chipSwitch[objectData[2]] = true; ++_root.numOfChips[objectData[2]]; _root.updateACData(); smallText = 'NEW BATTLE CHIP'; largeText = _root.refChips[objectData[2]]; } if (objectData[1] == 'gear_Head') { ++_root.listHead[objectData[2]]; smallText = 'NEW GEAR (HELMET)'; largeText = (eval('_root.WpnHead' + objectData[2]))[0]; } if (objectData[1] == 'gear_Buster') { ++_root.listBuster[objectData[2]]; smallText = 'NEW WEAPON (BUSTER)'; largeText = (eval('_root.WpnBuster' + objectData[2]))[0]; } if (objectData[1] == 'gear_Melee') { ++_root.listMelee[objectData[2]]; smallText = 'NEW WEAPON (MELEE)'; largeText = (eval('_root.WpnMelee' + objectData[2]))[0]; } if (objectData[1] == 'gear_Armor') { ++_root.listArmor[objectData[2]]; smallText = 'NEW GEAR (ARMOR)'; largeText = (eval('_root.WpnArmor' + objectData[2]))[0]; } if (objectData[1] == 'gear_Legs') { ++_root.listLeg[objectData[2]]; smallText = 'NEW GEAR (LEGS)'; largeText = (eval('_root.WpnLeg' + objectData[2]))[0]; } if (objectData[1] == 'gear_Trinket') { ++_root.listTrinket[objectData[2]]; smallText = 'NEW GEAR (TRINKET)'; largeText = (eval('_root.WpnTrinket' + objectData[2]))[0]; } _global.mapStageLayer.attachMovie('map_announcement', 'tempClip', 1001, {'_x': 250, '_y': 50}); _global.annoucementStringSmall = smallText; _global.annoucementStringLarge = largeText; currentObjectClips[objectData[4]][6][1] = false; refeshScreen(); Key.removeListener(searchKey); objectData = []; } if (objectData[0] == 'Search' and _global.mapDataLayer.objectFocus == true and inAir == false) { Key.removeListener(searchKey); removeMovieClip(_global.mapStageLayer.newEvent); stopRun(); disableControls(); _global.mapStageLayer.attachMovie(objectData[1], 'event_Dialog', 2000, {'_x': 150, '_y': 185}); } } }; stop(); } } movieClip 705 levelMain_BR3 { frame 1 { _global.mapStageLayer = this; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 200, '_y': 250}); textBoxMC._xscale = 120; textBoxMC._yscale = 120; attachMovie('slideShowStages', 'slideShowStages', 450, {'_x': 175, '_y': 100}); stop(); } frame 23 { _parent.gotoAndPlay('loadNewArea'); stop(); } frame 43 { _global.mapDataLayer.enableControls(); gotoAndPlay('gameLoop'); } frame 44 { _global.mapDataLayer.enableControls(); } frame 51 { stop(); } frame 52 { _global.mapDataLayer.startOnDrop = true; } frame 91 { gotoAndPlay('gameLoop'); } frame 111 { _global.mapStageLayer.mainMap._visible = false; _root.attachMovie('battleMCHolder', 'battleMCHolder', 100, {'_x': 0, '_y': 0}); } frame 113 { stop(); } frame 142 { stop(); } } movieClip 706 eventBR3_Back { frame 1 { _root.mapTransferData = [['levelMain_BR2'], [1, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 707 eventBR3_Next { frame 1 { _root.mapTransferData = [['levelMain_BR4'], [0, 'fadeIn'], []]; _global.mapStageLayer.gotoAndPlay('fadeOut'); stop(); } } movieClip 708 event_BR3Achievement { frame 1 { _root.achievementArray[11][0][1] = true; _root.scanForAchievements(); _global.mapDataLayer.objectFocus = false; _root.objectClips_2[7][6] = [false, false]; _global.mapDataLayer.refeshScreen(); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 709 event_BR3Achievement2 { frame 1 { _root.achievementArray[7][0][1] = true; _root.scanForAchievements(); trace('IN HERE'); _global.mapDataLayer.objectFocus = false; _root.objectClips_2[12][6] = [false, false]; _global.mapDataLayer.refeshScreen(); _global.mainMapLayer.enableAllControls(); _global.mapDataLayer.unpauseGame(); stop(); } } movieClip 710 { frame 1 { stop(); } } movieClip 711 { frame 1 { } frame 30 { stop(); _parent.play(); } } movieClip 712 { frame 1 { _global.currentDialogLayer = this; lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['Boss Rush completed. Well done.']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 23 { if (_root.map0_OBJECTIVES[5][0] == true and _root.map0_OBJECTIVES[5][2] == true) { lineCount = 0; speechPack = [[[98, 0, 0], ['TEXT'], ['This concludes the demo. Chapter 1 coming soon! Thanks for playing!']]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } } frame 24 { lineCount = 0; speechPack = [[[98, 0, 0], ['SLIDE'], ['Save your data?'], [['Yes'], ['No']]]]; _global.mapStageLayer.textBoxMC.textBox(speechPack); stop(); } frame 25 { if (_root.slideReturn == 0) { attachMovie('saveLoadStageMC', 'saveLoadStageMC', 100, {'_x': -100, '_y': -200}); stop(); } } frame 26 { stop(); _parent.play(); } } movieClip 713 { frame 1 { if (_root.achievementArray[7][0][1] == false) { _root.objectClips_0[3][6] = [true, true]; _root.objectClips_0[4][6] = [true, true]; _root.objectClips_0[5][6] = [true, true]; _root.objectClips_0[6][6] = [true, true]; _root.objectClips_1[3][6] = [true, true]; _root.objectClips_1[4][6] = [true, true]; _root.objectClips_1[5][6] = [true, true]; _root.objectClips_1[6][6] = [true, true]; _root.objectClips_2[3][6] = [true, true]; _root.objectClips_2[4][6] = [true, true]; _root.objectClips_2[5][6] = [true, true]; _root.objectClips_2[6][6] = [true, true]; if (_root.objectClips_2[7][6][1] == false) { _root.objectClips_2[12][6] = [true, true]; _root.objectClips_2[3][6] = [false, false]; _root.objectClips_2[4][6] = [false, false]; _root.objectClips_2[5][6] = [false, false]; _root.objectClips_2[6][6] = [false, false]; } } } frame 8 { stop(); } frame 20 { stop(); } frame 32 { stop(); } frame 42 { stop(); } frame 51 { stop(); } frame 110 { _root.autoSaveFeature(); } frame 114 { _root.gotoAndPlay('checkSave'); stop(); } } movieClip 716 levelMain_BR4 { frame 1 { _global.mapStageLayer = this; _global.roomName = 'CHAPTER 0 FINISH'; attachMovie('textBoxStage', 'textBoxMC', 400, {'_x': 150, '_y': 280}); textBoxMC._xscale = 150; textBoxMC._yscale = 150; stop(); } frame 23 { stop(); } frame 43 { stop(); } } movieClip 717 { frame 1 { stop(); } } movieClip 719 stageMaskMC { } movieClip 725 { frame 36 { stop(); _parent.play(); } } movieClip 729 { frame 1 { stop(); } frame 31 { _global.saveLoadLayer.gotoAndPlay('softClose'); stop(); } } movieClip 730 { } movieClip 731 { frame 1 { stop(); _global.saveDataLayer = this; } frame 14 { varX = 0; while (varX <= 2) { _root.dataPacket = SharedObject.getLocal('savePacket' + varX); (eval('_global.saveDataLayer.saveHolder.box' + varX)).saveNameText.text = _root.dataPacket.data.saveData[2][0][5][0]; (eval('_global.saveDataLayer.saveHolder.box' + varX)).saveStatusText.text = 'TOTAL SAVES: ' + _root.dataPacket.data.saveData[2][0][5][1]; if (_root.dataPacket.data.saveData[8][0][0].length != undefined) { varDP = 0; while (varDP <= _root.dataPacket.data.saveData[8][0][0].length - 1) { profilePic = (eval('_root.chrIData_' + _root.dataPacket.data.saveData[8][0][0][varDP]))[4]; trace('profilePic: ' + profilePic); attachMovie(profilePic, 'profilePic' + varDP + varX, 700 - varDP + varX * 1000, {'_x': 255 + 45 * varDP, '_y': 345 + varX * 150}); (eval('profilePic' + varDP + varX))._xscale = 70; (eval('profilePic' + varDP + varX))._yscale = 70; ++varDP; } } ++varX; } } frame 23 { _global.saveLoadLayer.saveIcon._visible = true; Key.addListener(_global.saveLoadLayer.savePic_Listener); stop(); } } movieClip 733 { } movieClip 736 { frame 36 { _parent.play(); stop(); } } movieClip 737 saveLoadStageMC { frame 1 { function subSave(fileNum) { _root.convertSaveData(); _root.dataPacket = SharedObject.getLocal('autoSave'); _root.dataPacket.data.autoSave = [[_root.stageDataPacket], [_root.levelDataPacket], [_root.locationPacket], [_root.weaponInventoryPacket], [_root.formationPacket], [_root.inventoryPacket], [_root.chrDataPacket], [_root.supportDataPacket], [_root.partyPacket], [_root.achievementPacket]]; _root.dataPacket.data.autoSave.flush(); _root.dataPacket = SharedObject.getLocal('savePacket' + fileNum); _root.dataPacket.data.saveData = [[_root.stageDataPacket], [_root.levelDataPacket], [_root.locationPacket], [_root.weaponInventoryPacket], [_root.formationPacket], [_root.inventoryPacket], [_root.chrDataPacket], [_root.supportDataPacket], [_root.partyPacket], [_root.achievementPacket]]; _root.dataPacket.data.saveData.flush(); _root.dataPacket = SharedObject.getLocal('savePacket' + fileNum); varDP = 0; while (varDP <= _root.dataPacket.data.saveData[8][0][0].length - 1) { profilePic = (eval('_root.chrIData_' + _root.dataPacket.data.saveData[8][0][0][varDP]))[4]; attachMovie(profilePic, 'profilePic' + varDP, 700 - varDP, {'_x': -70 + 45 * varDP, '_y': 155 + fileNum * 150}); (eval('profilePic' + varDP))._xscale = 70; (eval('profilePic' + varDP))._yscale = 70; ++varDP; } (eval('_global.saveDataLayer.saveHolder.box' + fileNum)).saveNameText.text = _root.dataPacket.data.saveData[2][0][5][0]; (eval('_global.saveDataLayer.saveHolder.box' + fileNum)).saveStatusText.text = 'TOTAL SAVES: ' + _root.dataPacket.data.saveData[2][0][5][1]; _root.dataPacket = SharedObject.getLocal('dumpSave'); _root.dataPacket.data.dumpSave = ['local numb']; _root.dataPacket.data.dumpSave.flush(); (eval('_global.saveDataLayer.saveHolder.box' + fileNum)).gotoAndPlay('saved'); } _global.saveLoadLayer = this; _global.displayHelpText = ''; saveIcon._visible = false; iconNum = 0; saveIcon._y = 108; saveIcon._x = -80; savePic_Listener = new Object(); savePic_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --iconNum; if (iconNum < 0) { iconNum = 2; } saveIcon._y = 108 + iconNum * 150; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++iconNum; if (iconNum > 2) { iconNum = 0; } saveIcon._y = 108 + iconNum * 150; } if (Key.getCode() == '32') { subSave(iconNum); saveIcon._visible = false; Key.removeListener(savePic_Listener); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); saveIcon._visible = false; } }; } frame 12 { stop(); } frame 13 { varDP = 0; while (varDP <= 3) { removeMovieClip('profilePic' + varDP); ++varDP; } } frame 19 { stop(); } frame 20 { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); Key.removeListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); Key.removeListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); } frame 26 { _parent.play(); stop(); } } movieClip 738 { frame 1 { stop(); } } movieClip 742 { } // unknown tag 88 length 84 movieClip 745 { } movieClip 746 map_findTreasure { frame 13 { stop(); } } movieClip 749 { } movieClip 750 map_searchMessage { frame 13 { stop(); } } // unknown tag 88 length 91 movieClip 756 { frame 1 { titleBox.text = _global.annoucementStringSmall; textBox.text = _global.annoucementStringLarge; delete _global.annoucementStringSmall; delete _global.annoucementStringLarge; stop(); } } movieClip 757 map_announcement { frame 84 { removeMovieClip(_global.currentStage.tempClip); _global.mainMapLayer.enableAllControls(); stop(); } } movieClip 762 { frame 1 { trace('_global.annoucementStringSmall: ' + _global.annoucementStringSmall); titleBox.text = _global.annoucementStringSmall; textBox.text = _global.annoucementStringLarge; delete _global.annoucementStringSmall; delete _global.annoucementStringLarge; stop(); } } movieClip 763 map_objective { frame 216 { removeMovieClip(_global.currentStage.tempClip); _global.mainMapLayer.enableAllControls(); stop(); } } movieClip 765 { frame 1 { stop(); } } movieClip 766 { } movieClip 769 { } movieClip 771 { } movieClip 772 slideShowStages { frame 1 { function newSlide(newSlide) { slideMain.slidePart.attachMovie(newSlide, 'current_Slide', 0, {'_x': 0, '_y': 0}); gotoAndPlay('fadeIn'); } function fadeOut() { gotoAndPlay('fadeOut'); } _global.slideFunctionLayer = this; stop(); } frame 23 { stop(); } frame 38 { stop(); } } movieClip 773 { frame 1 { stop(); } } movieClip 774 slideMenuMC { frame 1 { counter = 0; _root.slideMenu_Data = _parent.speechData[_parent.currentDialog][3]; } frame 7 { 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[counter]; } frame 10 { if (counter < _root.slideMenu_Data.length - 1) { ++counter; gotoAndPlay('l1'); } else { gotoAndPlay('controls'); } } frame 13 { function animateBox() { if (p_row < 0) { p_row = _root.slideMenu_Data.length - 1; } else { if (p_row > _root.slideMenu_Data.length - 1) { p_row = 0; } } (eval('slideBox_' + p_row)).gotoAndPlay('slideInFull'); _global.soundBeep1.start(); } p_row = 0; 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.slideReturn = p_row; gotoAndPlay('close'); Key.removeListener(slideListener); } }; Key.removeListener(slideListener); Key.addListener(slideListener); stop(); } frame 17 { counter = 0; } frame 20 { (eval('slideBox_' + counter)).gotoAndPlay('slideFadeOut'); (eval('slideBox_' + counter)).textClip.slideText.text = _root.slideMenu_Data[counter]; } frame 23 { if (counter < _root.slideMenu_Data.length - 1) { ++counter; gotoAndPlay('c1'); } else { play; } } frame 33 { _parent.gotoAndPlay('finished'); stop(); } } movieClip 776 { } movieClip 779 { } movieClip 781 box_Movie { } // unknown tag 88 length 143 movieClip 784 { } movieClip 786 box_Final { frame 5 { stop(); } frame 11 { stop(); } frame 17 { stop(); } frame 24 { stop(); } frame 31 { stop(); } frame 39 { stop(); } } movieClip 787 { frame 1 { stop(); } } movieClip 795 { frame 1 { function onEnterFrame() { playerText.text = _global.mapDataLayer.playerChr._x + ', ' + _global.mapDataLayer.playerChr._y; mainMapText.text = _global.mapStageLayer.mainMap._x + ', ' + _global.mapStageLayer.mainMap._y; bgAText.text = _global.mapStageLayer.background_A._x + ', ' + _global.mapStageLayer.background_A._y; bgBText.text = _global.mapStageLayer.background_B._x + ', ' + _global.mapStageLayer.background_B._y; bgCText.text = _global.mapStageLayer.background_C._x + ', ' + _global.mapStageLayer.background_C._y; } } } movieClip 797 { frame 101 { stop(); _parent.play(); } } movieClip 801 { } movieClip 802 { } movieClip 803 { } movieClip 804 { frame 35 { stop(); _parent.play(); } } movieClip 806 { } movieClip 807 { frame 30 { stop(); } } movieClip 808 { frame 1 { hitBtn = new Object(); hitBtn.onKeyDown = function () { if (Key.getCode() == '32') { Key.removeListener(hitBtn); gotoAndPlay('close'); } }; stop(); } frame 14 { stop(); } frame 15 { Key.addListener(hitBtn); } frame 20 { stop(); } frame 62 { _root.gotoAndPlay('checkSave'); stop(); } } movieClip 809 defeatHolder { frame 1 { this._xscale = _root.gameResolution[0]; this._yscale = _root.gameResolution[0]; this._x = _root.gameResolution[1]; this._y = _root.gameResolution[2]; stop(); } } movieClip 810 { frame 1 { stop(); } } movieClip 816 { } movieClip 817 { } movieClip 818 { instance nextBtn of movieClip 817 { } frame 30 { stop(); } } movieClip 823 { } movieClip 830 { } movieClip 831 picHolder { frame 1 { currentLine = 0; attachMovie(_global.convoPic, 'convoPic', 0, {'_x': 0, '_y': 0}); stop(); } } movieClip 834 { frame 1 { stop(); } frame 37 { _parent.gotoAndPlay('textLoop'); stop(); } frame 38 { _parent.textMC._visible = false; _parent.nextBtn._visible = false; } frame 50 { _parent.gotoAndPlay('finished'); gotoAndStop(1); } frame 51 { _parent.textMC._visible = false; _parent.nextBtn._visible = false; } frame 63 { gotoAndStop(1); } } movieClip 837 { } movieClip 839 textBoxStage { frame 1 { function textBox(speechPack) { speechData = speechPack; updateText(); textScrollListener = new Object(); textScrollListener.onKeyDown = function () { if (Key.getCode() == '32') { gotoAndStop('stopLoop'); } }; textNextListener = new Object(); textNextListener.onKeyDown = function () { if (Key.getCode() == '32') { gotoAndPlay('nextLoop'); Key.removeListener(textNextListener); } }; } function updateText() { currentCharacter = speechData[currentDialog][0][0]; currentExpression = speechData[currentDialog][0][1]; _global.convoPic = 'chr' + currentCharacter + '_' + currentExpression; if (speechData[currentDialog][1][1] != undefined) { _global.slideFunctionLayer.newSlide(speechData[currentDialog][1][1]); } if (speechData[currentDialog][1][1] == 'fadeOut') { _global.slideFunctionLayer.fadeOut(); } if (speechData[currentDialog][1][0] == 'TEXT') { textMC.newText.text = speechData[currentDialog][2][0]; currentScreen = 0; totalLetterCount = speechData[currentDialog][2][0].length; maxScreen = Math.ceil(totalLetterCount / 108) - 1; maxDialogs = speechData.length - 1; textBoxFrame.gotoAndPlay('start'); gotoAndPlay('start'); nextBtn._visible = false; } if (speechData[currentDialog][1][0] == 'SLIDE') { textMC.newText.text = speechData[currentDialog][2][0]; currentScreen = 0; totalLetterCount = speechData[currentDialog][2][0].length; maxScreen = Math.ceil(totalLetterCount / 108) - 1; maxDialogs = speechData.length - 1; textBoxFrame.gotoAndPlay('start'); gotoAndPlay('start'); nextBtn._visible = false; attachMovie('slideMenuMC', 'slideMenuMC', 100, {'_x': 25, '_y': 80}); } } currentDialog = 0; _global.textBoxMC_Map = this; nextBtn._visible = false; stop(); } frame 9 { stop(); } frame 10 { if (speechData[currentDialog][1][0] == 'TEXT') { Key.addListener(textScrollListener); } textMC._visible = true; textMC._y = 4 + currentScreen * -42; } frame 30 { if (speechData[currentDialog][1][0] == 'TEXT') { Key.removeListener(textScrollListener); Key.addListener(textNextListener); nextBtn._visible = true; nextBtn.gotoAndPlay('start'); } stop(); } frame 31 { if (currentScreen >= maxScreen) { ++currentDialog; if (currentDialog > maxDialogs) { textBoxFrame.gotoAndPlay('close'); } else { textBoxFrame.gotoAndPlay('nextClose'); updateText(); } stop(); } else { nextBtn._visible = false; ++currentScreen; gotoAndPlay('textLoop'); } } frame 49 { _global.currentDialogLayer.play(); gotoAndStop(1); } } movieClip 840 { frame 1 { stop(); } } movieClip 841 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 844 bg0 { } movieClip 847 bg1 { } movieClip 850 bg2 { } movieClip 853 bg3 { } movieClip 856 bg4 { } movieClip 859 bg5 { } movieClip 860 bgMC { frame 1 { attachMovie(_root.selectBG, 'backgroundBG', 0, {'_x': 0, '_y': 0}); } } movieClip 864 backgroundHolder { frame 1 { _global.backgroundLayer = this; backgroundBuffer = ['normal']; } frame 20 { gotoAndPlay(backgroundBuffer[0]); } frame 21 { backgroundBuffer = ['normal']; } frame 30 { gotoAndPlay(backgroundBuffer[0]); } frame 52 { if (backgroundBuffer[0] == 'impactLoop') { gotoAndPlay('impactLoop'); } else { gotoAndPlay(backgroundBuffer[0]); } } frame 53 { backgroundBuffer = ['normal']; } frame 62 { gotoAndPlay(backgroundBuffer[0]); } frame 63 { tempCount = 0; } frame 66 { backgroundBuffer = ['killLoop']; } frame 66 { 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 75 { 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 83 { if (backgroundBuffer[0] == 'killLoop') { gotoAndPlay('killLoop'); } else { gotoAndPlay(backgroundBuffer[0]); } } frame 84 { backgroundBuffer = ['zoomInPlayerLoop']; _global.mainBattleLayer.teamSyncMC._visible = false; _global.mainBattleLayer.scanMC._visible = false; _global.mainBattleLayer.comboCounter._visible = false; if (_root.gameVariables[2][0][1] == true) { _global.mainBattleLayer.mainConsoleMC._visible = false; } } frame 102 { if (backgroundBuffer[0] == 'zoomInPlayerLoop') { gotoAndPlay('zoomInPlayerLoop'); } else { gotoAndPlay(backgroundBuffer[0]); } } frame 103 { backgroundBuffer = ['zoomInEnemyLoop']; _global.mainBattleLayer.teamSyncMC._visible = false; _global.mainBattleLayer.scanMC._visible = false; _global.mainBattleLayer.comboCounter._visible = false; if (_root.gameVariables[2][0][1] == true) { _global.mainBattleLayer.mainConsoleMC._visible = false; } } frame 121 { if (backgroundBuffer[0] == 'zoomInEnemyLoop') { gotoAndPlay('zoomInEnemyLoop'); } else { gotoAndPlay(backgroundBuffer[0]); } } frame 122 { backgroundBuffer = ['letterBox']; } frame 133 { backgroundBuffer = ['letterBoxLoop']; } frame 139 { gotoAndPlay(backgroundBuffer[0]); } } movieClip 866 { frame 1 { _global.characterGridLayer = this; attachMovie('blackBG', 'blackBG', 5000, {'_x': 0, '_y': 0}); blackBG._visible = false; _root.grid_Plots = []; _root.grid_Plots[0] = [[560, 480], [150, 3000, 50]]; _root.grid_Plots[1] = [[620, 480], [150, 4000, 20]]; _root.grid_Plots[2] = [[720, 480], [150, 5000, 5]]; _root.grid_Plots[3] = [[550, 525], [175, 3000, 50]]; _root.grid_Plots[4] = [[610, 525], [175, 4000, 20]]; _root.grid_Plots[5] = [[710, 525], [175, 5000, 5]]; _root.grid_Plots[6] = [[560, 585], [200, 3000, 50]]; _root.grid_Plots[7] = [[620, 585], [200, 4000, 20]]; _root.grid_Plots[8] = [[720, 585], [200, 5000, 5]]; _root.grid_Plots[10] = [[150, 480], [150, 3000, 20]]; _root.grid_Plots[11] = [[280, 480], [150, 4000, 30]]; _root.grid_Plots[12] = [[410, 480], [150, 5000, 30]]; _root.grid_Plots[13] = [[170, 525], [175, 3000, 20]]; _root.grid_Plots[14] = [[320, 525], [175, 4000, 30]]; _root.grid_Plots[15] = [[460, 525], [175, 5000, 30]]; _root.grid_Plots[16] = [[140, 585], [200, 3000, 20]]; _root.grid_Plots[17] = [[270, 585], [200, 4000, 30]]; _root.grid_Plots[18] = [[400, 585], [200, 5000, 30]]; var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; _root.enemy_formData = [[layer, picWidth, picHeight]]; layerCount = 0; varX = 0; while (varX <= _root.selectedEnemies.length - 1) { attachMovie((eval('_root.enemyIData_' + _root.selectedEnemies[varX]))[2], 'enemyChr' + varX, _root.grid_Plots[_root.enemyPlacement[varX]][1][0] + layerCount * 10, {'_x': _root.grid_Plots[_root.enemyPlacement[varX]][0][0], '_y': _root.grid_Plots[_root.enemyPlacement[varX]][0][1]}); currentChr = eval('enemyChr' + varX); currentChr._x += currentChr._width; currentChr._xscale = _root.grid_Plots[_root.enemyPlacement[varX]][1][0]; currentChr._yscale = _root.grid_Plots[_root.enemyPlacement[varX]][1][0]; if (_root.gameVariables[1][0][0] == true) { currentChr.filters = [cellShade]; } _root.enemy_formData[varX] = [currentChr._width, -currentChr._height, _root.grid_Plots[_root.enemyPlacement[varX]][1][0] + layerCount * 10, currentChr._x, currentChr._y, currentChr._yscale]; ++layerCount; ++varX; } _root.party_formData = [[layer, picWidth, picHeight]]; varX = 0; while (varX <= _root.party_Order.length - 1) { attachMovie('mainChr_' + _root.party_Order[varX], 'playrChr' + varX, _root.grid_Plots[_root.formationPlacement[_root.currentForm[0][0]][varX]][1][0] + 10 * layerCount, {'_x': _root.grid_Plots[_root.formationPlacement[_root.currentForm[0][0]][varX]][0][0], '_y': _root.grid_Plots[_root.formationPlacement[_root.currentForm[0][0]][varX]][0][1]}); currentChr = eval('playrChr' + varX); currentChr._xscale = -_root.grid_Plots[_root.formationPlacement[_root.currentForm[0][0]][varX]][1][0]; currentChr._yscale = _root.grid_Plots[_root.formationPlacement[_root.currentForm[0][0]][varX]][1][0]; if (_root.gameVariables[1][0][0] == true) { currentChr.filters = [cellShade]; } _root.party_formData[varX] = [currentChr._width, -currentChr._height, _root.grid_Plots[_root.formationPlacement[_root.currentForm[0][0]][varX]][1][0] + 10 * layerCount, currentChr._x, currentChr._y, currentChr._yscale]; ++layerCount; ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playerChr' + varX); playerChr.swapDepths(_root.party_formData[varX][2]); ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemychr' + varX); enemyChr.swapDepths(_root.enemy_formData[varX][2]); ++varX; } stop(); } } movieClip 867 gridHolder { frame 1 { _global.chrGridLayer = this; gridBuffer = ['normal']; } frame 14 { gotoAndPlay(gridBuffer[0]); } frame 15 { gridBuffer = ['zoomInPlayerLoop']; } frame 31 { gridBuffer = ['zoomInPlayerLoop']; } frame 36 { gotoAndPlay(gridBuffer[0]); } frame 37 { gridBuffer = ['zoomInEnemyLoop']; } frame 53 { gridBuffer = ['zoomInEnemyLoop']; } frame 60 { gotoAndPlay(gridBuffer[0]); } } movieClip 870 { } movieClip 871 { } movieClip 872 { } movieClip 875 { } movieClip 876 { } movieClip 879 backgroundHolderPrime { frame 1 { _global.backgroundPrime = this; backgroundBuffer = ['normal']; tempCount = 0; } frame 4 { backgroundBuffer = ['normal']; } frame 15 { gotoAndPlay(backgroundBuffer[0]); } frame 16 { backgroundBuffer = ['fireLoop']; } frame 34 { if (backgroundBuffer[0] == 'fireLoop') { gotoAndPlay('fireLoop'); } else { gotoAndPlay(backgroundBuffer[0]); } } frame 35 { backgroundBuffer = ['bioLoop']; } frame 52 { if (backgroundBuffer[0] == 'bioLoop') { gotoAndPlay('bioLoop'); } else { gotoAndPlay(backgroundBuffer[0]); } } frame 53 { backgroundBuffer = ['letterBox']; } frame 64 { backgroundBuffer = ['starFXLoop']; } frame 70 { gotoAndPlay(backgroundBuffer[0]); } frame 83 { backgroundBuffer = ['darkTintLoop']; } frame 90 { gotoAndPlay(backgroundBuffer[0]); } frame 95 { backgroundBuffer = ['killLoop']; } frame 96 { randomX = Math.round(Math.random() * 800); randomY = Math.round(Math.random() * 600); randomZ = Math.round(Math.random() * 100); attachMovie('bossKillExplosion_01', 'bossExplosion' + tempCount, tempCount, {'_x': randomX, '_y': randomY}); (eval('bossExplosion' + tempCount))._xscale = randomZ + 100; (eval('bossExplosion' + tempCount))._yscale = randomZ + 100; } frame 102 { ++tempCount; if (tempCount > 3) { tempCount = 0; } } frame 105 { gotoAndPlay(backgroundBuffer[0]); } } movieClip 882 bg6 { } movieClip 883 { frame 1 { stop(); } } movieClip 884 { } movieClip 885 gauge_0 { frame 9 { stop(); } frame 41 { gotoAndPlay('ready'); } } movieClip 887 gauge_1 { frame 9 { stop(); } frame 41 { gotoAndPlay('ready'); } } movieClip 888 gauge_2 { frame 9 { stop(); } frame 41 { gotoAndPlay('ready'); } } movieClip 891 { } movieClip 893 { } movieClip 894 { } movieClip 897 { frame 1 { attachMovie('healthBarPic' + _root.party_Order[0], 'healthBarPic', 0, {'_x': 0, '_y': 0}); } } movieClip 900 mainIcon { frame 31 { gotoAndPlay(1); } } movieClip 901 { frame 1 { function refreshData() { cData = eval('_root.chrCData_' + _root.party_Order[0]); tData = eval('_root.chrTData_' + _root.party_Order[0]); hpBar._yscale = (tData[0] / cData[0]) * 100; spBar._yscale = (tData[1] / cData[1]) * 100; hpText.text = tData[0]; } function refreshReadyBar() { combatData = eval('_root.combatData_' + _root.party_Order[0]); restBar._xscale = combatData[0][0]; if (combatData[0][1] == false) { readyIcon._visible = true; } else { readyIcon._visible = false; } } _global.healthGauge0 = this; readyIcon._visible = false; refreshData(); refreshReadyBar(); } frame 9 { stop(); } } movieClip 904 { frame 1 { attachMovie('healthBarPic' + _root.party_Order[2], 'healthBarPic', 0, {'_x': 0, '_y': 0}); } } movieClip 905 { frame 1 { function refreshData() { cData = eval('_root.chrCData_' + _root.party_Order[2]); tData = eval('_root.chrTData_' + _root.party_Order[2]); hpBar._yscale = (tData[0] / cData[0]) * 100; spBar._yscale = (tData[1] / cData[1]) * 100; hpText.text = tData[0]; } function refreshReadyBar() { combatData = eval('_root.combatData_' + _root.party_Order[2]); restBar._xscale = combatData[0][0]; if (combatData[0][1] == false) { readyIcon._visible = true; } else { readyIcon._visible = false; } } _global.healthGauge2 = this; readyIcon._visible = false; refreshData(); refreshReadyBar(); } } movieClip 907 { frame 1 { attachMovie('healthBarPic' + _root.party_Order[1], 'healthBarPic', 0, {'_x': 0, '_y': 0}); } } movieClip 908 { frame 1 { function refreshData() { cData = eval('_root.chrCData_' + _root.party_Order[1]); tData = eval('_root.chrTData_' + _root.party_Order[1]); hpBar._yscale = (tData[0] / cData[0]) * 100; spBar._yscale = (tData[1] / cData[1]) * 100; hpText.text = tData[0]; } function refreshReadyBar() { combatData = eval('_root.combatData_' + _root.party_Order[1]); restBar._xscale = combatData[0][0]; if (combatData[0][1] == false) { readyIcon._visible = true; } else { readyIcon._visible = false; } } _global.healthGauge1 = this; readyIcon._visible = false; refreshData(); refreshReadyBar(); } frame 9 { stop(); } } movieClip 909 { 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 913 { } movieClip 914 { frame 1 { function onEnterFrame() { supportGauge._yscale = Math.round(_global.gamePlayLayer.supportBar[0]); } } } movieClip 916 { } // unknown tag 88 length 84 movieClip 921 { } movieClip 923 { frame 1 { attachMovie('healthBarPic' + _root.support_Party[0], 'portrait', 1, {'_x': 0, '_y': 0}); } } movieClip 932 { frame 1 { stop(); } frame 24 { stop(); } } movieClip 934 { } movieClip 935 { frame 1 { function onEnterFrame() { _global.gamePlayLayer.gate_C = true; if (_root.gameVariables[2][0][1] == true) { gate_D = true; } if (_global.gamePlayLayer.gate_A == true) { block_0._visible = false; } else { block_0._visible = true; } if (_global.gamePlayLayer.gate_B == true) { block_1._visible = false; } else { block_1._visible = true; } if (_global.gamePlayLayer.gate_C == true) { block_2._visible = false; } else { block_2._visible = true; } if (_global.gamePlayLayer.gate_D == true) { block_3._visible = false; } else { block_3._visible = true; } if (_global.gamePlayLayer.gate_E == true) { block_4._visible = false; } else { block_4._visible = true; } if (_global.gamePlayLayer.gamePlay_STATE == 'PLAY') { block_5._visible = false; } else { block_5._visible = true; } } } } movieClip 936 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 938 { frame 1 { stop(); } } movieClip 939 { frame 1 { stop(); } } movieClip 940 mainConsoleMC { } movieClip 946 healthBarPic0 { } movieClip 948 healthBarPic1 { } movieClip 950 healthBarPic2 { } movieClip 952 healthBarPic10 { } movieClip 954 healthBarPic9 { } movieClip 955 { frame 1 { stop(); } } movieClip 960 { frame 1 { stop(); } frame 45 { stop(); } } // unknown tag 88 length 91 movieClip 966 { frame 1 { comboCountText.text = 'x' + _global.currentScriptLayer.comboCount; comboTotalDamageText.text = _global.currentScriptLayer.comboTotalDamage; comboEnemyName.text = _global.currentScriptLayer.enemy_Name; } } movieClip 972 comboCounter { frame 1 { function comboCount(targetType, targetNum, damage, damageType) { currentTarget = targetType + alphabetArray[targetNum] + _root.selectedEnemies[targetNum]; if (oldTarget == undefined) { oldTarget = currentTarget; } if (oldTarget != currentTarget) { oldTarget = currentTarget; comboNum = 0; comboCounter = 0; } if (oldTarget == currentTarget) { comboNum += damage; ++comboCounter; scanIData = eval('_root.enemyIData_' + _root.selectedEnemies[targetNum]); comboTexts.comboCountText.text = comboCounter; comboTexts.comboTotalDamageText.text = comboNum; comboTexts.comboEnemyName.text = scanIData[0] + ' ' + alphabetArray[targetNum]; this._visible = false; if (comboCounter > 1) { this._visible = true; } } gotoAndPlay('start'); } comboNum = 0; comboCounter = 0; oldTarget = undefined; alphabetArray = ['A', 'B', 'C', 'D', 'E']; stop(); } frame 184 { comboNum = 0; comboCounter = 0; } frame 216 { stop(); } } movieClip 973 { frame 1 { stop(); } } movieClip 1021 { } movieClip 1163 { frame 24 { if (_root.gameVariables[0][0][3] == true) { _global.fx404.start(); } } frame 43 { if (_root.gameVariables[0][0][3] == true) { _global.fx403.start(); } } frame 58 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 59 { _global.gamePlayLayer.checkAniBuffer(this); } frame 64 { counter = 0; } frame 69 { randomNumber = Math.round(Math.random() * 15); if (randomNumber == 0 and counter < 1) { gotoAndPlay('blink'); ++counter; } else { delete randomNumber; delete counter; } } frame 70 { counter = 0; } frame 83 { randomNumber = Math.round(Math.random() * 15); if (randomNumber == 0 and counter < 1) { gotoAndPlay('blink'); ++counter; } else { delete randomNumber; delete counter; } } frame 110 { _global.gamePlayLayer.checkAniBuffer(this); } frame 168 { _global.gamePlayLayer.checkAniBuffer(this); } frame 184 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 190 { _global.gamePlayLayer.checkAniBuffer(this); } frame 196 { _global.gamePlayLayer.gate_C = false; } frame 211 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 225 { _global.gamePlayLayer.moveForMelee(this); } frame 233 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 243 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 251 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 252 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 257 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 262 { if (_global.gamePlayLayer.timerSwitch == false) { _global.gamePlayLayer.timerSwitch = false; gotoAndPlay('melee_NT'); } } frame 270 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 289 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 300 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.timerSwitch = false; } frame 300 { _global.gamePlayLayer.gate_C = true; } frame 306 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 307 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 319 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 335 { _global.gamePlayLayer.moveForMelee(this); } frame 351 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 357 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 367 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 367 { _global.gamePlayLayer.gate_C = true; } frame 372 { _global.gamePlayLayer.gate_C = false; } frame 387 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); if (_root.gameVariables[0][0][3] == true) { _global.fx401.start(); } } frame 395 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 404 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 405 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } _global.damageExtLayer.damageExtension('dmgOnly', this, 100); if (_root.gameVariables[0][0][3] == true) { _global.fx20.start(); } } frame 412 { if (_global.gamePlayLayer.timerSwitch == false) { gotoAndPlay('buster_NT'); } } frame 418 { _global.damageExtLayer.damageExtension('dmgOnly', this, 25); if (_root.gameVariables[0][0][3] == true) { _global.fx20.start(); } } frame 431 { _global.damageExtLayer.damageExtension('dmgOnly', this, 25); if (_root.gameVariables[0][0][3] == true) { _global.fx20.start(); } } frame 475 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 486 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.timerSwitch = false; } frame 486 { _global.gamePlayLayer.gate_C = true; } frame 502 { if (_root.gameVariables[0][0][3] == true) { _global.fx404.start(); } } frame 513 { if (_root.gameVariables[0][0][3] == true) { _global.fx404.start(); } } frame 525 { if (_root.gameVariables[0][0][3] == true) { _global.fx404.start(); } } frame 533 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 540 { _global.gamePlayLayer.checkAniBuffer(this); } frame 545 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 545 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 546 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 550 { if (_root.gameVariables[0][0][3] == true) { _global.fx404.start(); } } frame 573 { if (_root.gameVariables[0][0][3] == true) { _global.fx403.start(); } } frame 586 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 596 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 601 { _global.gamePlayLayer.checkAniBuffer(this); } frame 601 { _global.gamePlayLayer.gate_C = true; } frame 623 { if (_root.gameVariables[0][0][3] == true) { _global.fx52.start(); } } frame 641 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 650 { _global.gamePlayLayer.checkAniBuffer(this); } frame 658 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 658 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 659 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 670 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 679 { _global.gamePlayLayer.moveForBuster(this); } frame 700 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 733 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 737 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 737 { _global.gamePlayLayer.gate_C = true; } frame 743 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 744 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 760 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); if (_root.gameVariables[0][0][3] == true) { _global.fx59.start(); } } frame 779 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 783 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 783 { _global.gamePlayLayer.gate_C = true; } frame 789 { _global.gamePlayLayer.gate_C = false; } frame 801 { if (_root.gameVariables[0][0][3] == true) { _global.fx59.start(); } } frame 818 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 822 { _global.gamePlayLayer.checkAniBuffer(this); } frame 822 { _global.gamePlayLayer.gate_C = true; } frame 828 { _global.gamePlayLayer.moveToNormal(this); } frame 844 { _global.gamePlayLayer.checkAniBuffer(this); } frame 863 { _global.gamePlayLayer.checkAniBuffer(this); } frame 878 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 881 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 887 { if (_root.gameVariables[0][0][3] == true) { _global.fx31.start(); } } frame 897 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 900 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 960 { _global.gamePlayLayer.assignAnimation(this, 'defeatLoop'); } frame 989 { _global.gamePlayLayer.checkAniBuffer(this); } frame 989 { _global.gamePlayLayer.gate_E = true; } frame 995 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 996 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; } frame 999 { if (_root.gameVariables[0][0][3] == true) { _global.fx404.start(); } } frame 1012 { if (_root.gameVariables[0][0][3] == true) { _global.fx406.start(); } } frame 1025 { _global.gamePlayLayer.moveForMelee(this); _global.backgroundLayer.backgroundBuffer = ['impactLoop']; _global.backgroundLayer.gotoAndPlay('impactLoop'); _global.damageExtLayer.damageExtension('dmgOnly', this, 10); } frame 1040 { if (_root.gameVariables[0][0][3] == true) { _global.fx103.start(); } } frame 1046 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1050 { _global.damageExtLayer.damageExtension('dmgOnly', this, 80); } frame 1053 { _global.damageExtLayer.damageExtension('dmgOnly', this, 80); } frame 1057 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1061 { if (_root.gameVariables[0][0][3] == true) { _global.fx408.start(); } } frame 1069 { if (_root.gameVariables[0][0][3] == true) { _global.fx404.start(); } } frame 1079 { if (_root.gameVariables[0][0][3] == true) { _global.fx203.start(); } } frame 1081 { _global.damageExtLayer.damageExtension('dmgOnly', this, 80); } frame 1086 { _global.damageExtLayer.damageExtension('dmgOnly', this, 80); } frame 1091 { _global.damageExtLayer.damageExtension('dmgOnly', this, 80); } frame 1096 { _global.damageExtLayer.damageExtension('dmgOnly', this, 80); _global.fx408.start(); } frame 1101 { _global.fx50.start(); } frame 1117 { _global.backgroundPrime.gotoAndPlay('starFX'); _global.backgroundPrime.backgroundBuffer = ['starFX']; } frame 1130 { if (_root.gameVariables[0][0][3] == true) { _global.fx405.start(); } } frame 1134 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1139 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1145 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1150 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1155 { _global.damageExtLayer.damageExtension('dmgOnly', this, 40); } frame 1159 { _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; } frame 1204 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 1215 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 1215 { _global.gamePlayLayer.gate_C = true; } } movieClip 1164 mainChr_0 { } movieClip 1366 { frame 12 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 21 { if (_root.gameVariables[0][0][3] == true) { _global.fx105.start(); } } frame 61 { if (_root.gameVariables[0][0][3] == true) { _global.fx59.start(); } } frame 75 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 76 { _global.gamePlayLayer.checkAniBuffer(this); } frame 121 { _global.gamePlayLayer.checkAniBuffer(this); } frame 178 { _global.gamePlayLayer.checkAniBuffer(this); } frame 194 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 200 { _global.gamePlayLayer.checkAniBuffer(this); } frame 206 { _global.gamePlayLayer.gate_C = false; } frame 224 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 244 { _global.gamePlayLayer.moveForMelee(this); } frame 254 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 261 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 270 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 271 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 279 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 288 { if (_global.gamePlayLayer.timerSwitch == false) { gotoAndPlay('melee_NT'); _global.gamePlayLayer.timerSwitch = false; } } frame 295 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 314 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 319 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.timerSwitch = false; } frame 319 { _global.gamePlayLayer.gate_C = true; } frame 325 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 326 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 343 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 355 { _global.gamePlayLayer.moveForMelee(this); } frame 371 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); } frame 385 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 393 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 393 { _global.gamePlayLayer.gate_C = true; } frame 398 { _global.gamePlayLayer.gate_C = false; } frame 402 { if (_root.gameVariables[0][0][3] == true) { _global.fx408.start(); } } frame 413 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 421 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 432 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 432 { if (_root.gameVariables[0][0][3] == true) { _global.fx20.start(); } } frame 433 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 439 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); _global.gamePlayLayer.timerSwitch = false; } } frame 453 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 464 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.timerSwitch = false; } frame 464 { _global.gamePlayLayer.gate_C = true; } frame 492 { if (_root.gameVariables[0][0][3] == true) { _global.fx50.start(); } } frame 496 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); _global.fx401.start(); } frame 502 { _global.gamePlayLayer.checkAniBuffer(this); } frame 507 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 508 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 511 { if (_root.gameVariables[0][0][3] == true) { _global.fx302.start(); } } frame 536 { if (_root.gameVariables[0][0][3] == true) { _global.fx107.start(); } } frame 542 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 599 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 600 { _global.gamePlayLayer.checkAniBuffer(this); } frame 600 { _global.gamePlayLayer.gate_C = true; } frame 608 { gotoState = 'chargingShot'; } frame 611 { if (_root.gameVariables[0][0][3] == true) { _global.fx50.start(); } } frame 632 { if (_root.gameVariables[0][0][3] == true) { _global.fx401.start(); } } frame 647 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 654 { _global.gamePlayLayer.checkAniBuffer(this); } frame 662 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 663 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 675 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 684 { _global.gamePlayLayer.moveForBuster(this); } frame 686 { if (_root.gameVariables[0][0][3] == true) { _global.fx404.start(); } } frame 705 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 739 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 744 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 744 { _global.gamePlayLayer.gate_C = true; } frame 750 { _global.gamePlayLayer.gate_C = false; } frame 781 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); if (_root.gameVariables[0][0][3] == true) { _global.fx61.start(); } stop(); } frame 782 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 792 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 796 { _global.gamePlayLayer.checkAniBuffer(this); } frame 796 { _global.gamePlayLayer.gate_C = true; } frame 801 { _global.gamePlayLayer.gate_C = false; } frame 814 { if (_root.gameVariables[0][0][3] == true) { _global.fx61.start(); } } frame 833 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 837 { _global.gamePlayLayer.checkAniBuffer(this); } frame 837 { _global.gamePlayLayer.gate_C = true; } frame 844 { _global.gamePlayLayer.moveToNormal(this); } frame 862 { _global.gamePlayLayer.checkAniBuffer(this); } frame 889 { _global.gamePlayLayer.checkAniBuffer(this); } frame 904 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 907 { _global.gamePlayLayer.checkAniBuffer(this); } frame 923 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 926 { _global.gamePlayLayer.checkAniBuffer(this); } frame 1001 { _global.gamePlayLayer.assignAnimation(this, 'defeatLoop'); } frame 1026 { _global.gamePlayLayer.gate_E = true; } frame 1027 { _global.gamePlayLayer.checkAniBuffer(this); } frame 1033 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 1034 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 1048 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 1062 { _global.gamePlayLayer.moveForMelee(this); } frame 1070 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1082 { _global.damageExtLayer.damageExtension('dmgOnly', this, 85); } frame 1104 { _global.damageExtLayer.damageExtension('dmgOnly', this, 90); } frame 1121 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 1128 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 1128 { _global.gamePlayLayer.gate_C = true; } frame 1138 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 1139 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; } frame 1151 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 1163 { _global.gamePlayLayer.moveForMelee(this); _global.backgroundLayer.backgroundBuffer = ['impactLoop']; _global.backgroundLayer.gotoAndPlay('impactLoop'); _global.damageExtLayer.damageExtension('dmgOnly', this, 10); } frame 1173 { _global.backgroundPrime.gotoAndPlay('darkTint'); _global.backgroundPrime.backgroundBuffer = ['darkTint']; } frame 1186 { _global.damageExtLayer.damageExtension('dmgOnly', this, 60); } frame 1198 { _global.damageExtLayer.damageExtension('dmgOnly', this, 60); } frame 1209 { _global.damageExtLayer.damageExtension('dmgOnly', this, 60); } frame 1222 { _global.damageExtLayer.damageExtension('dmgOnly', this, 60); } frame 1247 { if (_root.gameVariables[0][0][3] == true) { _global.fx106.start(); } } frame 1250 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 1254 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 1258 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 1260 { if (_root.gameVariables[0][0][3] == true) { _global.fx106.start(); } } frame 1269 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 1275 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1280 { _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; } frame 1321 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 1325 { _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.moveToNormal(this); } frame 1325 { _global.gamePlayLayer.gate_C = true; } } movieClip 1367 mainChr_1 { } movieClip 1418 { } movieClip 1450 { } movieClip 1459 bossExplosion_02 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx104.start(); } _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 1 { this._x += 10; } frame 5 { this._x += 10; } frame 8 { this._x += 10; } frame 30 { this.stop(); } } movieClip 1478 bossExplosion_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx104.start(); } } frame 48 { this.stop(); } } movieClip 1479 { frame 6 { if (_root.gameVariables[0][0][3] == true) { _global.fx411.start(); } } frame 11 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 42 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 43 { _global.gamePlayLayer.checkAniBuffer(this); } frame 86 { _global.gamePlayLayer.checkAniBuffer(this); } frame 131 { _global.gamePlayLayer.checkAniBuffer(this); } frame 147 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 153 { _global.gamePlayLayer.checkAniBuffer(this); } frame 159 { _global.gamePlayLayer.gate_C = false; } frame 178 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 192 { _global.gamePlayLayer.moveForMelee(this); } frame 194 { if (_root.gameVariables[0][0][3] == true) { _global.fx411.start(); } } frame 195 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 201 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 216 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 217 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 224 { if (_root.gameVariables[0][0][3] == true) { _global.fx301.start(); } } frame 227 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 235 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.gamePlayLayer.timerSwitch = false; } } frame 240 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 251 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 251 { _global.gamePlayLayer.gate_C = true; } frame 257 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 258 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 269 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 280 { _global.gamePlayLayer.moveForMelee(this); } frame 281 { if (_root.gameVariables[0][0][3] == true) { _global.fx406.start(); } } frame 294 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 311 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 321 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 321 { _global.gamePlayLayer.gate_C = true; } frame 326 { _global.gamePlayLayer.gate_C = false; } frame 345 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 358 { _global.gamePlayLayer.moveForBuster(this); } frame 361 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 361 { if (_root.gameVariables[0][0][3] == true) { _global.fx301.start(); } } frame 367 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 380 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 394 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 407 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.gamePlayLayer.timerSwitch = false; } } frame 420 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 431 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 431 { _global.gamePlayLayer.gate_C = true; } frame 458 { if (_root.gameVariables[0][0][3] == true) { _global.fx50.start(); } } frame 468 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 474 { _global.gamePlayLayer.checkAniBuffer(this); } frame 479 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 480 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 489 { if (_root.gameVariables[0][0][3] == true) { _global.fx409.start(); } } frame 503 { if (_root.gameVariables[0][0][3] == true) { _global.fx302.start(); } } frame 517 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 541 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 544 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 544 { _global.gamePlayLayer.gate_C = true; } frame 578 { if (_root.gameVariables[0][0][3] == true) { _global.fx50.start(); } } frame 589 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 595 { _global.gamePlayLayer.checkAniBuffer(this); } frame 603 { _global.fx50.start(); } frame 603 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 604 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 616 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 630 { _global.gamePlayLayer.moveForBuster(this); } frame 650 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 692 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 701 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 701 { _global.gamePlayLayer.gate_C = true; } frame 707 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 708 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 715 { if (_root.gameVariables[0][0][3] == true) { _global.fx61.start(); } } frame 726 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 738 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 742 { _global.gamePlayLayer.checkAniBuffer(this); } frame 742 { _global.gamePlayLayer.gate_C = true; } frame 748 { _global.gamePlayLayer.gate_C = false; } frame 751 { if (_root.gameVariables[0][0][3] == true) { _global.fx61.start(); } } frame 769 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 773 { _global.gamePlayLayer.checkAniBuffer(this); } frame 773 { _global.gamePlayLayer.gate_C = true; } frame 784 { _global.gamePlayLayer.moveToNormal(this); } frame 802 { _global.gamePlayLayer.checkAniBuffer(this); } frame 825 { _global.gamePlayLayer.checkAniBuffer(this); } frame 840 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 843 { _global.gamePlayLayer.checkAniBuffer(this); } frame 849 { if (_root.gameVariables[0][0][3] == true) { _global.fx32.start(); } } frame 859 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 862 { _global.gamePlayLayer.checkAniBuffer(this); } frame 921 { _global.gamePlayLayer.assignAnimation(this, 'defeatLoop'); } frame 949 { _global.gamePlayLayer.checkAniBuffer(this); } frame 949 { _global.gamePlayLayer.gate_E = true; } frame 958 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 959 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 966 { if (_root.gameVariables[0][0][3] == true) { _global.fx408.start(); } _global.backgroundPrime.gotoAndPlay('darkTint'); _global.backgroundPrime.backgroundBuffer = ['darkTint']; } frame 988 { _global.gamePlayLayer.moveForBuster(this); } frame 993 { if (_root.gameVariables[0][0][3] == true) { _global.fx203.start(); } } frame 1005 { _global.backgroundLayer.backgroundBuffer = ['impactLoop']; _global.backgroundLayer.gotoAndPlay('impactLoop'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1005 { if (_root.gameVariables[0][0][3] == true) { _global.fx107.start(); } } frame 1022 { _global.damageExtLayer.damageExtension('dmgOnly', this, 10); } frame 1065 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; } frame 1079 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 1086 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 1142 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 1145 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 1145 { _global.gamePlayLayer.gate_C = true; } } movieClip 1480 mainChr_2 { } movieClip 1481 gamePlayMC { frame 1 { attachMovie('battleSplashIntro', 'battleSplashIntro', 99910); varX = 0; while (varX <= _root.party_Order.length - 1) { combatData = eval('_root.combatData_' + _root.party_Order[varX]); combatData[0][0] = 0; combatData[0][1] = true; combatData[0][2] = 'inc'; combatData[0][4] = 0; combatData[2][0] = 0; combatData[3] = [false, false, false, false, false]; ++varX; } } frame 2 { function checkAniBuffer(clip) { textClip = String(clip); arrayNum = int(textClip.charAt(textClip.length - 13)); arrayType = textClip.charAt(textClip.length - 21); if (arrayType == 'p') { clip.gotoAndPlay(playerAni_Buffer[_root.party_Order[arrayNum]]); } if (arrayType == 'e') { clip.gotoAndPlay(enemyAni_Buffer[arrayNum]); } } function assignAnimation(clip, newAnimation) { textClip = String(clip); arrayNum = int(textClip.charAt(textClip.length - 13)); arrayType = textClip.charAt(textClip.length - 21); if (arrayType == 'p') { playerAni_Buffer[_root.party_Order[arrayNum]] = [newAnimation]; } if (arrayType == 'e') { enemyAni_Buffer[arrayNum] = [newAnimation]; } } function moveForMelee(clip) { textClip = String(clip); arrayNum = int(textClip.charAt(textClip.length - 13)); arrayType = textClip.charAt(textClip.length - 21); if (arrayType == 'p') { currentChr = eval('_global.characterGridLayer.playrChr' + inputData[0][1]); currentChr._x = _root.enemy_formData[inputData[1][1]][3]; currentChr._y = _root.enemy_formData[inputData[1][1]][4]; currentChr._xscale = -_root.enemy_formData[inputData[1][1]][5]; currentChr._yscale = _root.enemy_formData[inputData[1][1]][5]; currentChr.swapDepths(_root.enemy_formData[inputData[1][1]][2] + 1); } if (arrayType == 'e') { currentChr = eval('_global.characterGridLayer.enemyChr' + inputData[0][1]); currentChr._x = _root.party_formData[inputData[0][2]][3] - _root.party_formData[inputData[0][2]][0] / 2; currentChr._y = _root.party_formData[inputData[0][2]][4]; currentChr._xscale = _root.party_formData[inputData[0][2]][5]; currentChr._yscale = _root.party_formData[inputData[0][2]][5]; currentChr.swapDepths(_root.party_formData[inputData[0][2]][2] + 1); } } function moveForBuster(clip) { textClip = String(clip); arrayNum = int(textClip.charAt(textClip.length - 13)); arrayType = textClip.charAt(textClip.length - 21); if (arrayType == 'p') { currentChr = eval('_global.characterGridLayer.playrChr' + inputData[0][1]); currentChr._x = _root.enemy_formData[inputData[1][1]][3] + 150; currentChr._y = _root.enemy_formData[inputData[1][1]][4]; currentChr._xscale = -_root.enemy_formData[inputData[1][1]][5]; currentChr._yscale = _root.enemy_formData[inputData[1][1]][5]; currentChr.swapDepths(_root.enemy_formData[inputData[1][1]][2] + 1); } if (arrayType == 'e') { currentChr = eval('_global.characterGridLayer.enemyChr' + inputData[0][1]); currentChr._x = _root.party_formData[inputData[0][2]][3] - 150 - _root.party_formData[inputData[0][2]][0] / 2; currentChr._y = _root.party_formData[inputData[0][2]][4]; currentChr._xscale = _root.party_formData[inputData[0][2]][5]; currentChr._yscale = _root.party_formData[inputData[0][2]][5]; currentChr.swapDepths(_root.party_formData[inputData[0][2]][2] + 1); } } function moveToNormal(clip) { textClip = String(clip); arrayNum = int(textClip.charAt(textClip.length - 13)); arrayType = textClip.charAt(textClip.length - 21); _global.gamePlayLayer.gate_C = false; if (arrayType == 'p') { currentChr = eval('_global.characterGridLayer.playrChr' + inputData[0][1]); currentChr._x = _root.party_formData[inputData[0][1]][3]; currentChr._y = _root.party_formData[inputData[0][1]][4]; currentChr._xscale = -_root.party_formData[inputData[0][1]][5]; currentChr._yscale = _root.party_formData[inputData[0][1]][5]; currentChr.swapDepths(_root.party_formData[inputData[0][1]][2]); } if (arrayType == 'e') { currentChr = eval('_global.characterGridLayer.enemyChr' + inputData[0][1]); currentChr._x = _root.enemy_formData[inputData[0][1]][3]; currentChr._y = _root.enemy_formData[inputData[0][1]][4]; currentChr._xscale = _root.enemy_formData[inputData[0][1]][5]; currentChr._yscale = _root.enemy_formData[inputData[0][1]][5]; currentChr.swapDepths(_root.enemy_formData[inputData[0][1]][2]); } } function masterList() { gamePlay_STATE = 'PAUSE'; preCheckDead(); inputData = _global.gamePlayLayer.masterInput[0]; if (inputData[0][0] == 'Player') { chrFocus = eval('_global.characterGridLayer.playrChr' + inputData[0][1]); } if (inputData[0][0] == 'Enemy') { chrFocus = eval('_global.characterGridLayer.enemyChr' + inputData[0][1]); } chrFocus.animationMC.gotoAndPlay(inputData[2][0][8][0][1]); _global.gamePlayLayer.masterInput.shift(); } function updateHPBars() { varX = 0; while (varX <= _root.party_Order.length) { (eval('_global.healthGauge' + varX)).refreshData(); ++varX; } } _global.gamePlayLayer = this; gamePlay_STATE = 'PAUSE'; oneLimit = false; chargeSwitch = true; afterPause = false; defeatCount = 0; _global.gamePlayLayer.gate_A = true; _global.gamePlayLayer.gate_B = true; _global.gamePlayLayer.gate_C = true; _global.gamePlayLayer.gate_D = true; _global.gamePlayLayer.gate_E = true; attachMovie('battleSelectorMC', 'battleSelectorMC', 100, {'_x': 630, '_y': 265}); battleSelectorMC._visible = false; activeBattleBuffer = []; varX = 0; while (varX <= _root.party_Order.length - 1) { (eval('_root.combatData_' + varX))[0][0] = 40 + Math.round(Math.random() * 4 * 10); if (_root.currentForm[0][0] == 3) { (eval('_root.combatData_' + varX))[0][0] = 95; } ++varX; } _root.teamCombatData = [[true, false], [true, false], [true, false], [true, false], [true, false], [0, 0.2]]; supportBar = [0, 0]; supportBar[0] = Math.floor(Math.random() * 50); supportRate = 0.1; if (_root.support_Party[0][0] == 'NONE') { _root.teamCombatData[2][0] = false; supportBar[0] = 0; supportRate = 0; } playerTimer = [0, 0, 0]; enemyTimer = [0, 0, 0, 0, 0, 0, 0, 0, 0]; roundTimer = [0, 0]; playerAni_Buffer = ['intro', 'intro', 'intro']; enemyAni_Buffer = ['intro', 'intro', 'intro', 'intro', 'intro', 'intro', 'intro', 'intro', 'intro']; _global.gamePlayLayer.player_inputSlot = [0, 0, 0]; _global.gamePlayLayer.enemy_inputSlot = [0, 0, 0]; _global.gamePlayLayer.masterInput = []; wheelNum = 0; wheelBuffer = []; activeOn = false; menuWheel_Listener = new Object(); menuWheel_Listener.onKeyDown = function () { if (Key.getCode() == '39' or Key.getAscii() == '54') { ++wheelNum; if (wheelNum > _root.party_Order.length - 1) { wheelNum = 0; } wheelBuffer[wheelBuffer.length] = wheelNum; } if (Key.getCode() == '37' or Key.getAscii() == '52') { if (firstMove == true) { wheelDir = 'R'; oldWheelDir = wheelDir; firstMove = false; wheelNum = 8; } --wheelNum; if (wheelNum < 0) { wheelNum = _root.party_Order.length - 1; } wheelBuffer[wheelBuffer.length] = wheelNum; } if (Key.getCode() == '32') { if ((eval('_root.combatData_' + _root.party_Order[wheelNum]))[0][1] == false) { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (_root.gameVariables[2][0][1] == false) { gate_D = false; } varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 100; ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 100; ++varX; } _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; Key.removeListener(menuWheel_Listener); battleSelectorMC.updateCmdList(_root.party_Order[wheelNum], wheelNum); battleSelectorMC._visible = true; _global.characterGridLayer.blackBG._visible = true; } } }; inBattleListener = new Object(); inBattleListener.onKeyDown = function () { if (Key.getCode() == '32') { if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[4][3]; } ++_root.gamePlay_Stats[4][3]; _root.scanForAchievements(); timerSwitch = true; Key.removeListener(inBattleListener); } }; inBattleCancel = new Object(); inBattleCancel.onKeyDown = function () { if (Key.getCode() == '32') { if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[4][4]; } timerSwitch = false; Key.removeListener(inBattleListener); Key.removeListener(inBattleCancel); } }; timerSwitch = false; if (_root.gameVariables[2][0][1] == false) { Key.addListener(menuWheel_Listener); } } frame 3 { function sequence_00() { if (gamePlay_STATE == 'PLAY') { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true) { checkDead(); } } if (gamePlay_STATE == 'PLAY') { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; if (_global.gamePlayLayer.activeOn == false) { varX = 0; while (varX <= _root.party_Order.length) { (eval('_global.characterGridLayer.playrChr' + varX))._alpha = 100; ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length) { (eval('_global.characterGridLayer.enemyChr' + varX))._alpha = 100; ++varX; } } varX = 0; while (varX <= _root.party_Order.length - 1) { currentChr = eval('_global.characterGridLayer.playrChr' + varX); currentChr._x = _root.party_formData[varX][3]; currentChr._y = _root.party_formData[varX][4]; currentChr._xscale = -_root.party_formData[varX][5]; currentChr._yscale = _root.party_formData[varX][5]; currentChr.swapDepths(_root.party_formData[varX][2]); ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { currentChr = eval('_global.characterGridLayer.enemyChr' + varX); currentChr._x = _root.enemy_formData[varX][3]; currentChr._y = _root.enemy_formData[varX][4]; currentChr._xscale = _root.enemy_formData[varX][5]; currentChr._yscale = _root.enemy_formData[varX][5]; currentChr.swapDepths(_root.enemy_formData[varX][2]); ++varX; } ++roundTimer[0]; if (roundTimer[0] >= 100) { ++roundTimer[1]; roundTimer[0] = 0; } } if (gamePlay_STATE == 'PLAY') { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { _root.teamCombatData[5][0] += _root.teamCombatData[5][1]; } if (_root.teamCombatData[5][0] >= 7) { _root.teamCombatData[0][1] = true; } else { _root.teamCombatData[0][1] = false; } if (_root.teamCombatData[5][0] >= 14) { _root.teamCombatData[1][1] = true; } else { _root.teamCombatData[1][1] = false; } if (_root.teamCombatData[5][0] >= 33) { _root.teamCombatData[2][1] = true; } else { _root.teamCombatData[2][1] = false; } if (_root.teamCombatData[5][0] >= 78) { _root.teamCombatData[3][1] = true; } else { _root.teamCombatData[3][1] = false; } if (_root.teamCombatData[5][0] >= 100) { _root.teamCombatData[5][0] = 100; } _parent.teamSyncMC.refreshSync(_root.teamCombatData[5][0]); } if (gamePlay_STATE == 'PLAY') { varX = 0; while (varX <= _root.party_Order.length - 1) { if ((eval('_root.combatData_' + _root.party_Order[varX]))[1][0] >= 100) { (eval('_root.combatData_' + _root.party_Order[varX]))[1][1] = true; } ++varX; } } if (gamePlay_STATE == 'PLAY') { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { supportBar[0] += supportRate; if (supportBar[0] >= 100) { supportTech = eval('_root.supportMoves_' + _root.support_Party[0]); randomNumber = Math.floor(Math.random() * supportTech.length); commandEntry = [['Player', 0, _root.party_Order[0]], [supportTech[randomNumber][0][1], _root.party_Order[0]], [supportTech[randomNumber][0]]]; inputData = commandEntry; _global.damageExtLayer.splashText = _global.gamePlayLayer.inputData[2][0][0]; _global.damageExtLayer.attachMovie('splashIn_B', 'splashText', 9997, {'_x': 400, '_y': 200}); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); supportBar[0] = 0; } } } if (gamePlay_STATE == 'PLAY') { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { varX = 0; while (varX <= _root.party_Order.length - 1) { ++playerTimer[varX]; tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0 and gamePlay_STATE == 'PLAY') { if (playerTimer[varX] == 10 * (varX + 1)) { r_buffs = (eval('_root.chrTData_' + _root.party_Order[varX]))[4]; r_shields = (eval('_root.chrTData_' + _root.party_Order[varX]))[5]; varA = 0; while (varA <= r_shields.length - 1) { r_shields[varA] -= 9; if (r_shields[varA] <= 0) { r_shields[varA] = 0; } ++varA; } buff_Counter = 0; varA = 0; while (varA <= 1) { if (r_buffs[varA] > 0) { ++buff_Counter; } ++varA; } if (buff_Counter > 0) { _global.healthBarLogic.findPlace(varX); commandEntry = [['Player', _root.party_Order[varX], varX], ['Party', _root.party_Order[varX]], [_root.autoBuff]]; inputData = commandEntry; _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } delete buff_Counter; } if (playerTimer[varX] == 10 * (varX + 1) + 40) { r_afflictions = (eval('_root.chrTData_' + _root.party_Order[varX]))[3]; affliction_Counter = 0; varA = 1; while (varA <= r_afflictions.length - 1) { if (r_afflictions[varA] > 0) { ++affliction_Counter; } ++varA; } if (affliction_Counter > 0) { _global.healthBarLogic.findPlace(varX); commandEntry = [['Player', _root.party_Order[varX], varX], ['Party', _root.party_Order[varX]], [_root.afflictionDmg]]; inputData = commandEntry; _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } delete affliction_Counter; } } if (playerTimer[varX] >= 70) { playerTimer[varX] = 0; } ++varX; } } } if (gamePlay_STATE == 'PLAY') { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { varX = 0; while (varX <= _root.selectedEnemies.length - 1) { ++enemyTimer[varX]; tData = (eval('_root.enemyTData_' + varX))[1]; if (tData[0] > 0 and gamePlay_STATE == 'PLAY') { if (enemyTimer[varX] == 10 * (varX + 1)) { r_buffs = (eval('_root.enemyTData_' + varX))[4]; r_shields = (eval('_root.enemyTData_' + varX))[5]; varA = 0; while (varA <= r_shields.length - 1) { r_shields[varA] -= 5; if (r_shields[varA] <= 0) { r_shields[varA] = 0; } ++varA; } buff_Counter = 0; varA = 0; while (varA <= 1) { if (r_buffs[varA] > 0) { ++buff_Counter; } ++varA; } if (buff_Counter > 0) { commandEntry = [['Enemy', varX, varX], ['Enemy', varX], [_root.autoBuff]]; inputData = commandEntry; _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } delete buff_Counter; } if (enemyTimer[varX] == 10 * (varX + 1) + 100) { r_afflictions = (eval('_root.enemyTData_' + varX))[3]; affliction_Counter = 0; varA = 1; while (varA <= r_afflictions.length - 1) { if (r_afflictions[varA] > 0) { ++affliction_Counter; } ++varA; } if (affliction_Counter > 0) { commandEntry = [['Enemy', varX, varX], ['Enemy', varX], [_root.afflictionDmg]]; inputData = commandEntry; _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } delete affliction_Counter; } } if (enemyTimer[varX] >= 200) { enemyTimer[varX] = 0; } ++varX; } } } } if (gamePlay_STATE == 'PLAY') { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { varX = 0; while (varX <= _root.party_Order.length - 1) { readyBar = eval('_root.combatData_' + _root.party_Order[varX]); cData = eval('_root.chrCData_' + _root.party_Order[varX]); tData = eval('_root.chrTData_' + _root.party_Order[varX]); iData = eval('_root.chrIData_' + _root.party_Order[varX]); if (tData[0] > 0 and readyBar[0][1] == true and gamePlay_STATE == 'PLAY') { r_afflictions = (eval('_root.chrTData_' + _root.party_Order[varX]))[3]; r_buffs = (eval('_root.chrTData_' + _root.party_Order[varX]))[4]; speed = cData[13][0]; if (r_afflictions[4] > 0) { speed = cData[13][0] / 2; } if (r_buffs[2] > 0) { speed = cData[13][0] * 1.5; } if (r_afflictions[5] > 0) { speed = 0; } if (readyBar[0][2] == 'dec') { readyBar[0][0] -= readyBar[0][3]; } if (readyBar[0][0] <= -1 and gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { if (gamePlay_STATE == 'PLAY') { gate_A = false; if (player_inputSlot[_root.party_Order[varX]][1][0] == 'Enemy') { enemyTData = eval('_root.enemyTData_' + player_inputSlot[_root.party_Order[varX]][1][1]); if (enemyTData[1][0] <= 0) { enemyAliveCheck(); player_inputSlot[_root.party_Order[varX]][1][1] = enemyAliveControlList[0]; } } if (player_inputSlot[_root.party_Order[varX]][1][0] == 'Party') { tData = eval('_root.chrTData_' + player_inputSlot[_root.party_Order[varX]][0][2]); if (player_inputSlot[_root.party_Order[varX]][2][0][5][0] != 'revive') { if (player_inputSlot[_root.party_Order[varX]][2][0][2] != 'Self') { if (tData[0] <= 0) { determineAggro(); player_inputSlot[_root.party_Order[varX]][0][2] = aggroTarget; player_inputSlot[_root.party_Order[varX]][1][1] = _root.party_Order[aggroTarget]; } } } } _global.gamePlayLayer.masterInput[_global.gamePlayLayer.masterInput.length] = _global.gamePlayLayer.player_inputSlot[_root.party_Order[varX]]; masterList(); readyBar[0][0] = 0; readyBar[0][2] = 'inc'; } } if (readyBar[3][0] == true) { readyBar[0][0] += speed / 3; } else { if (readyBar[3][1] == true) { readyBar[0][0] += speed / 3; } else { if (readyBar[3][2] == true) { readyBar[0][0] += speed / 3; } else { if (readyBar[0][2] == 'inc') { readyBar[0][0] += speed; } } } } if (gamePlay_STATE == 'PLAY') { if (readyBar[0][0] >= 100 and gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { varZ = 0; while (varZ <= readyBar[3].length - 1) { readyBar[3][varZ] = false; ++varZ; } if (_root.gameVariables[2][0][1] == true) { gate_A = false; gamePlay_STATE = 'PAUSE'; battleSelectorMC.updateCmdList(_root.party_Order[varX], varX); activeBattleBuffer[activeBattleBuffer.length] = varX; readyBar[0][0] = 100; readyBar[0][1] = false; (eval('_global.healthGauge' + _root.party_Order[varX])).restBar.gotoAndPlay('ready'); wheelBuffer[wheelBuffer.length] = varX; _global.characterGridLayer.blackBG._visible = true; } else { readyBar[0][0] = 100; readyBar[0][1] = false; (eval('_global.healthGauge' + varX)).restBar.gotoAndPlay('ready'); } } } (eval('_global.healthGauge' + varX)).refreshReadyBar(); } ++varX; } } } if (gamePlay_STATE == 'PLAY' and _root.gameVariables[2][0][1] == true and activeBattleBuffer.length > 0) { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { wheelNum = activeBattleBuffer[0]; _global.healthBarLogic.findPlace(wheelNum); gamePlay_STATE = 'PAUSE'; Key.removeListener(menuWheel_Listener); battleSelectorMC.updateCmdList(_root.party_Order[wheelNum], wheelNum); battleSelectorMC._visible = true; _parent.scanMC._visible = false; } } if (gamePlay_STATE == 'PLAY') { if (gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { varX = 0; while (varX <= _root.selectedEnemies.length - 1) { readyBar = eval('_root.enemyCombatData_' + varX); cData = eval('_root.enemyBData_' + varX); tData = eval('_root.enemyTData_' + varX); enemyIData = eval('_root.enemyIData_' + _root.selectedEnemies[varX]); if (tData[1][0] > 0 and readyBar[0][1] == true and gamePlay_STATE == 'PLAY') { r_afflictions = (eval('_root.enemyTData_' + varX))[3]; r_buffs = (eval('_root.enemyTData_' + varX))[4]; attackStats = eval('_root.enemyAttackStats_' + varX); speed = attackStats[1][2]; if (r_afflictions[4] > 0) { speed /= 2; } if (r_buffs[2] > 0) { speed *= 1.5; } if (r_afflictions[5] > 0) { speed = 0; } if (readyBar[0][2] == 'dec') { readyBar[0][0] -= readyBar[0][3]; } if (readyBar[0][0] <= -1 and gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { if (gamePlay_STATE == 'PLAY') { if (enemy_inputSlot[varX][1][0] == 'Enemy') { enemyTData = eval('_root.enemyTData_' + enemy_inputSlot[varX][1][1]); if (enemy_inputSlot[varX][2][0][5][0] != 'revive') { if (enemy_inputSlot[varX][2][0][2] != 'Self') { if (enemyTData[1][0] <= 0) { enemyAliveCheck(); enemy_inputSlot[varX][1][1] = enemyAliveControlList[0]; } } } } if (enemy_inputSlot[varX][1][0] == 'Party') { tData = eval('_root.chrTData_' + enemy_inputSlot[varX][0][2]); if (tData[0] <= 0) { determineAggro(); enemy_inputSlot[varX][0][2] = aggroTarget; enemy_inputSlot[varX][1][1] = _root.party_Order[aggroTarget]; } } _global.gamePlayLayer.masterInput[_global.gamePlayLayer.masterInput.length] = _global.gamePlayLayer.enemy_inputSlot[varX]; masterList(); readyBar[0][0] = 0; readyBar[0][2] = 'inc'; } } if (readyBar[3][0] == true) { readyBar[0][0] += speed / 3; } else { if (readyBar[3][1] == true) { readyBar[0][0] += speed / 3; } else { if (readyBar[3][2] == true) { readyBar[0][0] += speed / 3; } else { if (readyBar[0][2] == 'inc') { readyBar[0][0] += speed; } } } } if (gamePlay_STATE == 'PLAY') { if (readyBar[0][0] >= 100 and gate_A == true and gate_B == true and gate_C == true and gate_D == true and gate_E == true) { selfTarget = varX; varZ = 0; while (varZ <= readyBar[3].length - 1) { readyBar[3][varZ] = false; ++varZ; } moveSet = eval('_root.enemySkills_' + _root.selectedEnemies[varX]); enemyHP = cData[1][0]; enemyTHP = tData[1][0]; 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 (tData[1][1] - moveSet[skillSelect][1][5][4] <= 0 or tData[1][0] - moveSet[skillSelect][1][5][3] <= 1) { moveSet = eval('_root.enemyBUSkills_' + _root.selectedEnemies[varX]); skillSelect = 0; } if (readyBar[1][0] >= 100) { readyBar[1][0] = 0; moveSet = eval('_root.enemyBUSkills_' + _root.selectedEnemies[varX]); skillSelect = 1; } tData[1][1] -= moveSet[skillSelect][1][5][4]; tData[1][0] -= moveSet[skillSelect][1][5][3]; targetType = moveSet[skillSelect][1][1]; if (targetType == 'Party') { determineAggro(); commandEntry = [['Enemy', varX, aggroTarget], ['Party', _root.party_Order[aggroTarget]], [moveSet[skillSelect][1]]]; } else { if (targetType == 'Enemy') { targetCatagory = moveSet[skillSelect][1][2]; if (targetCatagory == 'Single') { enemyAliveCheck(); randomNum = Math.ceil(Math.random() * enemyAliveControlList.length) - 1; targetNum = enemyAliveControlList[randomNum]; commandEntry = [['Enemy', varX, undefined], ['Enemy', targetNum], [moveSet[skillSelect][1]]]; } if (targetCatagory == 'Self') { commandEntry = [['Enemy', selfTarget, undefined], ['Enemy', selfTarget], [moveSet[skillSelect][1]]]; } } } _global.gamePlayLayer.enemy_inputSlot[selfTarget] = commandEntry; chrFocus = eval('_global.characterGridLayer.enemyChr' + varX); chrFocus.animationMC.gotoAndPlay(moveSet[skillSelect][1][8][0][0]); enemyAni_Buffer[varX] = moveSet[skillSelect][1][8][0][0]; speechData = eval('_root.speechData_' + _root.selectedEnemies[varX]); speechSwitches = eval('_root.enemySpeechData_' + varX); varSD = 0; while (varSD <= speechData.length - 1) { if (speechData[varSD][0][0] == 'Round' and speechSwitches[varSD][0] == true and roundTimer[1] >= speechData[varSD][0][1]) { if (gamePlay_STATE == 'PLAY') { gamePlay_STATE = 'PAUSE'; speechSwitches[varSD][0] = false; speechPack = speechData[varSD][1]; if (_root.gameVariables[2][0][1] == false) { Key.removeListener(menuWheel_Listener); } _global.battleSelectorLayer.forceCancel(); _parent.textBoxMC.textBox(speechPack); } } if (speechData[varSD][0][0] == 'Move' and skillSelect == speechData[varSD][0][1]) { randomNumber = Math.round(Math.random() * 100); if (randomNumber <= speechData[varSD][0][2]) { if (gamePlay_STATE == 'PLAY') { gamePlay_STATE = 'PAUSE'; speechSwitches[varSD][0] = false; speechPack = speechData[varSD][1]; if (_root.gameVariables[2][0][1] == false) { Key.removeListener(menuWheel_Listener); } _global.battleSelectorLayer.forceCancel(); _parent.textBoxMC.textBox(speechPack); } } } ++varSD; } readyBar[0][0] = 100; readyBar[0][2] = 'dec'; readyBar[0][3] = moveSet[skillSelect][1][6]; delete selfTarget; } } } ++varX; } } } } function preCheckDead() { counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { ++counter; } ++varX; } if (counter <= 0) { _global.gamePlayLayer.gate_A = false; _global.gamePlayLayer.gate_B = false; _global.gamePlayLayer.gate_C = false; _global.battleSelectorLayer.forceCancel(); gotoAndPlay('endBattle'); Key.removeListener(menuWheel_Listener); _global.mainBattleLayer.fadeOutSplash.gotoAndPlay('start'); } counter = 0; varX = 0; while (varX <= _root.selectedEnemies.length - 1) { tData = (eval('_root.enemyTData_' + varX))[1]; if (tData[0] > 0) { ++counter; } ++varX; } if (counter <= 0) { _global.gamePlayLayer.gate_A = false; _global.gamePlayLayer.gate_B = false; _global.gamePlayLayer.gate_C = false; _global.battleSelectorLayer.forceCancel(); gotoAndPlay('endBattle'); attachMovie('victorySplashMovie', 'victorySplashMovie', 99910, {'_x': 0, '_y': 0}); Key.removeListener(menuWheel_Listener); } } function checkDead() { if (gamePlay_STATE == 'PLAY') { counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] <= 0 and playerAni_Buffer[_root.party_Order[varX]][0] != 'defeatLoop') { playerAni_Buffer[_root.party_Order[varX]] = 'defeated'; } if (tData[0] > 0) { ++counter; } ++varX; } if (counter <= 0) { _global.gamePlayLayer.gate_A = false; _global.gamePlayLayer.gate_B = false; _global.gamePlayLayer.gate_C = false; _global.battleSelectorLayer.forceCancel(); gotoAndPlay('endBattle'); Key.removeListener(menuWheel_Listener); _global.mainBattleLayer.fadeOutSplash.gotoAndPlay('start'); } counter = 0; varX = 0; while (varX <= _root.selectedEnemies.length - 1) { tData = (eval('_root.enemyTData_' + varX))[1]; if (tData[0] <= 0 and enemyAni_Buffer[varX][0] != 'defeated') { enemyAni_Buffer[varX] = 'defeated'; } if (tData[0] > 0) { ++counter; } ++varX; } if (counter <= 0) { _global.gamePlayLayer.gate_A = false; _global.gamePlayLayer.gate_B = false; _global.gamePlayLayer.gate_C = false; _global.battleSelectorLayer.forceCancel(); gotoAndPlay('endBattle'); attachMovie('victorySplashMovie', 'victorySplashMovie', 99910, {'_x': 0, '_y': 0}); Key.removeListener(menuWheel_Listener); } if (fleeOn == true) { _global.gamePlayLayer.gate_A = false; _global.gamePlayLayer.gate_B = false; _global.gamePlayLayer.gate_C = false; _global.battleSelectorLayer.forceCancel(); gotoAndPlay('endBattle'); attachMovie('victorySplashMovie', 'victorySplashMovie', 99910, {'_x': 0, '_y': 0}); Key.removeListener(menuWheel_Listener); } } } function determineAggro() { _root.tempList = []; varNum = 0; while (varNum <= _root.party_Order.length - 1) { _root.tempList[varNum] = _root.grid_Plots[varNum][1][2]; if (varNum == 0 and _root.currentForm[0][0] == 4) { _root.tempList[varNum] += 200; } ++varNum; } varNum = 0; while (varNum <= _root.party_Order.length - 1) { combatData = eval('_root.combatData_' + _root.party_Order[varNum]); _root.tempList[varNum] += combatData[2][0]; ++varNum; } delete combatAggro; delete combatData; partyAliveControlList = []; counter = 0; varNum = 0; while (varNum <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varNum]); if (tData[0] > 0) { partyAliveControlList[counter] = varNum; ++counter; } ++varNum; } aggroPool = 0; varNum = 0; while (varNum <= partyAliveControlList.length - 1) { aggroPool += _root.tempList[partyAliveControlList[varNum]]; ++varNum; } 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; } function enemyAliveCheck() { enemyAliveControlList = []; counter = 0; varSE = 0; while (varSE <= _root.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varSE); if (enemyTData[1][0] > 0) { enemyAliveControlList[counter] = varSE; ++counter; } ++varSE; } delete counter; delete varSE; } function scanPlayerAlive() { partyAliveControlList = []; counter = 0; varX = 0; while (varX <= _root.party_Order.length) { tData = eval('_root.chrTData_' + varX); if (tData[0] > 0) { partyAliveControlList[counter] = varX; ++counter; } ++varX; } delete counter; } function sequence_01() { if (gamePlay_STATE == 'STOP') { gotoAndPlay('endBattle'); } if (wheelBuffer.length > 0) { _global.healthBarLogic.findPlace(wheelBuffer[0]); wheelBuffer.shift(); } gotoAndPlay('loop'); } } frame 4 { function checkDamage(dmgPercent) { calculateDamage(dmgPercent); gate_A = true; gate_C = true; if (letterNum == undefined) { letterNum = 0; } ++letterNum; if (letterNum >= alphabetArray.length) { letterNum = 0; } _root.valueTotal = finalNum; _root.valueTotal2 = afflicList + buffList + shieldList; if (dmgSP == true) { _root.valueTotal = '-SP\r' + finalNum; } if (critOn == true) { _root.valueTotal = 'Crit!\r' + finalNum; } if (resistOn == true) { _root.valueTotal = 'Resist\r' + finalNum; } if (weakPOn == true) { _root.valueTotal = 'Weak Point!\r' + finalNum; } if (inEff == true) { _root.valueTotal = 'Ineffective!'; } if (noDmg == true) { _root.valueTotal = ''; } if (reviveOn == true) { _root.valueTotal = 'Revived!\r' + finalNum; } if (blockOn == true) { _root.valueTotal = 'Guard!\r' + finalNum; } if (enrageOn == true) { _root.valueTotal = 'Enrage!\r'; } if (tempBlock == true) { _root.valueTotal = 'Blocking'; } if (iLimitOn == true) { _root.valueTotal = ''; _root.valueTotal2 = 'LIMIT BREAK'; } if (iSupportOn == true) { _root.valueTotal = ''; _root.valueTotal2 = 'SUPPORT READY!'; } if (stealOn == true) { if (stealSuccess == true) { _root.valueTotal = 'STOLEN\r' + gearName + '!'; } if (stealSuccess == false) { _root.valueTotal = 'FAILED!'; } if (stealAll == true) { _root.valueTotal = 'NOTHING TO STEAL!'; } } if (tauntOn == true) { _root.valueTotal = 'Taunt!'; _root.valueTotal2 = 'Aggro UP!'; } if (intimOn == true) { _root.valueTotal = 'Intimidate!'; _root.valueTotal2 = 'Aggro Down'; } if (cloakOn == true) { _root.valueTotal = 'Cloaked!'; _root.valueTotal2 = 'Evade Up!'; } if (fleeFail == true) { _root.valueTotal = 'Failed!'; } if (fleeNo == true) { _root.valueTotal = 'Cannot escape!'; } if (breakLimitOn == true) { _root.valueTotal = 'Limit Cancel!'; _root.valueTotal2 = 'Limit -20%'; } if (missOn == true) { _root.valueTotal = 'Miss!'; } randomX = Math.round(Math.random() * 30); randomY = Math.round(Math.random() * 20); newAlpha = _root.alphabetArray[letterNum]; if (hpHealOn == true) { _global.characterGridLayer.attachMovie('valueSplash' + newAlpha + '_Heal', 'valueSplash' + letterNum, 9500 + letterNum); } else { if (spHealOn == true) { _global.characterGridLayer.attachMovie('valueSplash' + newAlpha + '_SP', 'valueSplash' + letterNum, 9500 + letterNum); } else { _global.characterGridLayer.attachMovie('valueSplash' + newAlpha, 'valueSplash' + letterNum, 9500 + letterNum); } } dmgMovie = eval('_global.characterGridLayer.valueSplash' + letterNum); if (inputData[1][0] == 'Enemy') { dmgMovie._x = _root.enemy_formData[inputData[1][1]][3] - _root.enemy_formData[inputData[1][1]][0] / 2 - randomX; dmgMovie._y = _root.enemy_formData[inputData[1][1]][4] + _root.enemy_formData[inputData[1][1]][1] / 2 - randomY; dmgMovie._xscale = _root.enemy_formData[inputData[1][1]][5] / 2; dmgMovie._yscale = _root.enemy_formData[inputData[1][1]][5] / 2; } if (inputData[1][0] == 'Party') { dmgMovie._x = _root.party_formData[inputData[0][2]][3] - _root.party_formData[inputData[0][2]][0] / 2 - randomX; dmgMovie._y = _root.party_formData[inputData[0][2]][4] - randomY; dmgMovie._xscale = _root.party_formData[inputData[0][2]][5] / 2; dmgMovie._yscale = _root.party_formData[inputData[0][2]][5] / 2; } } function calculateDamage(dmgPercent) { if (inputData[0][0] == 'Player') { caster_cData = eval('_root.chrCData_' + _root.party_Order[inputData[0][1]]); caster_tData = eval('_root.chrTData_' + _root.party_Order[inputData[0][1]]); caster_Data = (eval('_root.chrLevel_' + _root.party_Order[inputData[0][1]]))[0]; caster_Combat = eval('_root.combatData_' + _root.party_Order[inputData[0][1]]); caster_Stats = [[caster_cData[9], caster_cData[10], caster_cData[11]], [caster_cData[13][1], caster_cData[13][2], caster_cData[13][0]]]; caster_Affliction = caster_tData[3]; caster_Buffs = caster_tData[4]; caster_Shields = caster_tData[5]; tech_Type = inputData[2][0][9][0]; tech_Data = inputData[2][0][5]; tech_Affliction = inputData[2][0][9][1]; tech_Buffs = inputData[2][0][9][2]; tech_Shields = inputData[2][0][9][3]; tech_Temp = inputData[2][0][9][4]; } if (inputData[0][0] == 'Enemy') { caster_cData = (eval('_root.enemyBData_' + inputData[0][1]))[1]; caster_tData = eval('_root.enemyTData_' + inputData[0][1]); caster_Data = (eval('_root.enemyTData_' + inputData[0][1]))[0][0]; caster_Stats = eval('_root.enemyAttackStats_' + inputData[0][1]); caster_Affliction = caster_tData[3]; caster_Buffs = caster_tData[4]; caster_Shields = caster_tData[5]; caster_Temp = caster_tData[6]; tech_Type = inputData[2][0][9][0]; tech_Data = inputData[2][0][5]; tech_Affliction = inputData[2][0][9][1]; tech_Buffs = inputData[2][0][9][2]; tech_Shields = inputData[2][0][9][3]; tech_Temp = inputData[2][0][9][4]; } if (inputData[1][0] == 'Party' or inputData[1][0] == 'Self') { iData_receiver = eval('_root.chrIData_' + _root.party_Order[inputData[0][2]]); c_Stats = eval('_root.chrCData_' + _root.party_Order[inputData[0][2]]); combatData = eval('_root.combatData_' + _root.party_Order[inputData[0][2]]); t_Stats = eval('_root.chrTData_' + _root.party_Order[inputData[0][2]]); b_Stats = c_Stats; receiver_bStats = c_Stats; receiver_tStats = [t_Stats[0], t_Stats[1], c_Stats[2], c_Stats[3], c_Stats[4], c_Stats[5], c_Stats[6], c_Stats[7], c_Stats[8]]; receiver_Resist = c_Stats[14]; receiver_Stats = [[c_Stats[9], c_Stats[10], c_Stats[11]], [c_Stats[13][1], c_Stats[13][2], c_Stats[13][0]]]; r_afflictions = (eval('_root.chrTData_' + _root.party_Order[inputData[0][2]]))[3]; r_buffs = (eval('_root.chrTData_' + _root.party_Order[inputData[0][2]]))[4]; r_shields = (eval('_root.chrTData_' + _root.party_Order[inputData[0][2]]))[5]; r_ready = combatData[0]; r_limit = combatData[1]; r_aggro = combatData[2]; r_tempData = combatData[3]; r_stealSwitches = []; r_stealGear = []; } if (inputData[1][0] == 'Enemy') { t_Stats = (eval('_root.enemyTData_' + inputData[1][1]))[1]; b_Stats = (eval('_root.enemyBData_' + inputData[1][1]))[1]; combatData = eval('_root.enemyCombatData_' + inputData[1][1]); checkDead(); receiver_bStats = (eval('_root.enemyBData_' + inputData[1][1]))[1]; receiver_tStats = (eval('_root.enemyTData_' + inputData[1][1]))[1]; receiver_Resist = (eval('_root.enemyBData_' + inputData[1][1]))[2]; receiver_Stats = eval('_root.enemyAttackStats_' + inputData[1][1]); r_afflictions = (eval('_root.enemyTData_' + inputData[1][1]))[3]; r_buffs = (eval('_root.enemyTData_' + inputData[1][1]))[4]; r_shields = (eval('_root.enemyTData_' + inputData[1][1]))[5]; r_ready = combatData[0]; r_limit = combatData[1]; r_aggro = combatData[2]; r_tempData = combatData[3]; r_stealSwitches = eval('_root.itemSteal_' + inputData[1][1]); r_stealGear = (eval('_root.enemyIData_' + _root.selectedEnemies[inputData[1][1]]))[6]; } iLimitOn = false; iSupportOn = false; noDmg = false; critOn = false; missOn = false; resistOn = false; weakPOn = false; inEff = false; hpHealOn = false; spHealOn = false; noDmg = false; reviveOn = false; blockOn = false; tempBlock = false; dmgSP = false; iLimitOn = false; iSupportOn = false; stealOn = false; stealSuccess = false; enrageOn = false; tauntOn = false; intimOn = false; cloakOn = false; fleeOn = false; fleeFail = false; fleeNo = false; breakLimitOn = false; nowStun = false; afflicList = ''; buffList = ''; shieldList = ''; dmgType = inputData[2][0][5][0]; continueDmg = true; if (_global.damageExtLayer.iSwitch == true) { dmgPercent = 0; noDmg = true; continueDmg = false; } if (_global.damageExtLayer.iSwitch == false) { dmgPercent = 0; noDmg = true; continueDmg = false; } if (continueDmg == true) { if (dmgType == 'melee') { rawDmg = caster_Stats[0][0]; if (caster_Affliction[6] > 0) { rawDmg = 0; --caster_Affliction[6]; } if (caster_Buffs[3] > 0) { rawDmg *= 1.5; } luckDmg = Math.round(Math.random(caster_Stats[7]) * 10); mitDmg = (rawDmg + luckDmg) * receiver_Stats[1][0]; totalDmg = Math.round(rawDmg + luckDmg - mitDmg); if (r_tempData[0] == true) { totalDmg *= 0.3; blockOn = true; } if (_root.currentForm[0][0] == 2 and inputData[1][0] == 'Party') { totalDmg = Math.round(finalNum - finalNum * 0.2); } if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][0]; } if (inputData[0][0] == 'Player' and caster_tData[0] < 10 and _root.achievementArray[17][0][1] != true) { _root.achievementArray[17][0][1] = true; _root.scanForAchievements(); } checkResist(); } if (dmgType == 'ranged') { rawDmg = caster_Stats[0][1]; if (caster_Affliction[7] > 0) { rawDmg = 0; } if (caster_Buffs[3] > 0) { rawDmg *= 1.5; } luckDmg = Math.round(Math.random(caster_Stats[7]) * 10); mitDmg = (rawDmg + luckDmg) * receiver_Stats[1][0]; totalDmg = Math.round(rawDmg + luckDmg - mitDmg); if (r_tempData[0] == true) { totalDmg *= 0.3; blockOn = true; } if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][1]; } checkResist(); } if (dmgType == 'ether') { rawDmg = tech_Data[1][0][0]; if (r_buffs[4] > 0) { rawDmg *= 1.5; } if (caster_Buffs[8] > 0) { rawDmg = 0; } prcDmg = b_Stats[0] * (tech_Data[1][0][1] / 100); ethDmg = caster_Stats[0][2]; luckDmg = Math.round(Math.random(caster_Stats[7]) * 10); mitDmg = (rawDmg + luckDmg) * receiver_Stats[1][1]; totalDmg = Math.round(rawDmg + prcDmg + ethDmg + luckDmg - mitDmg); if (r_tempData[0] == true) { totalDmg *= 0.3; blockOn = true; } levelGap = caster_Data / tech_Data[2]; if (levelGap > 1) { levelGap = 1; } totalDmg *= levelGap; checkResist(); if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][2]; } } if (dmgType == 'noDmg') { noDmg = true; totalDmg = 0; dmgPercent = 0; checkResist(); } if (dmgType == 'flee') { fleeOdds = 0; varF = 0; while (varF <= _root.selectedEnemies.length - 1) { fleeData = (eval('_root.enemyIData_' + _root.selectedEnemies[varF]))[4]; if (fleeData[2] == true) { fleeOdds += fleeData[3]; } if (fleeData[2] == false) { fleeNo = true; fleeOn = false; break; } ++varF; } if (_root.currentForm[0][0] == 2 and inputData[0][0] == 'Player') { if (fleeData[2] == true) { fleeOdds = Math.round(fleeOdds - fleeOdds * 0.5); } } randomNum = Math.round(Math.random() * (fleeOdds - 1)); if (randomNum == 0) { fleeOn = true; ++_root.gamePlay_Stats[1][6]; } else { fleeFail = true; } if (fleeNo == true) { fleeOn = false; } noDmg = true; totalDmg = 0; dmgPercent = 0; checkResist(); } if (dmgType == 'overL') { iLimitOn = true; combatData[1][0] = 100; totalDmg = Math.round(b_Stats[0] * 0.85); t_Stats[1] -= Math.round(b_Stats[1] * 0.85); if (t_Stats[1] <= 0) { t_Stats[1] = 0; } if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][3]; } dmgPercent = 100; checkResist(); } if (dmgType == 'steal') { noDmg = true; stealOn = true; totalDmg = 0; dmgPercent = 0; stealSuccess = false; stealAll = false; randomNum = Math.round(Math.random() * 90); if (r_afflictions[3] > 0) { randomNum -= 30; } if (r_afflictions[4] > 0) { randomNum -= 30; } if (randomNum <= caster_cData[7]) { if (r_stealGear.length >= 1) { varS = 0; while (varS <= r_stealGear.length - 1) { stealAll = true; if (r_stealSwitches[varS] == false) { r_stealSwitches[varS] = true; stealSuccess = true; stealAll = false; spoil_TYPE = r_stealGear[varS][0]; spoil_SLOTID = r_stealGear[varS][1]; spoil_NUM = r_stealGear[varS][2]; spoil_PERCENT = r_stealGear[varS][3]; if (spoil_TYPE == 'ITEM') { _root.itemListData[spoil_SLOTID] += spoil_NUM; gearName = (eval('_root.item_' + spoil_SLOTID))[0] + '\rx ' + spoil_NUM; break; } if (spoil_TYPE == 'HEAD') { _root.listHead[spoil_SLOTID] += spoil_NUM; gearName = (eval('_root.WpnHead' + spoil_SLOTID))[0] + '\rx ' + spoil_NUM; break; } if (spoil_TYPE == 'BUSTER') { _root.listBuster[spoil_SLOTID] += spoil_NUM; gearName = (eval('_root.WpnBuster' + spoil_SLOTID))[0] + '\rx ' + spoil_NUM; break; } if (spoil_TYPE == 'MELEE') { _root.listMelee[spoil_SLOTID] += spoil_NUM; gearName = (eval('_root.WpnMelee' + spoil_SLOTID))[0] + '\rx ' + spoil_NUM; break; } if (spoil_TYPE == 'ARMOR') { _root.listArmor[spoil_SLOTID] += spoil_NUM; gearName = (eval('_root.WpnArmor' + spoil_SLOTID))[0] + '\rx ' + spoil_NUM; break; } if (spoil_TYPE == 'LEG') { _root.listLeg[spoil_SLOTID] += spoil_NUM; gearName = (eval('_root.WpnLeg' + spoil_SLOTID))[0] + '\rx ' + spoil_NUM; break; } if (spoil_TYPE == 'TRINKET') { _root.listTrinket[spoil_SLOTID] += spoil_NUM; gearName = (eval('_root.WpnTrinket' + spoil_SLOTID))[0] + '\rx ' + spoil_NUM; break; } break; } ++varS; } } else { stealAll = true; } } if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][3]; } checkResist(); } if (dmgType == 'iLimit') { noDmg = true; iLimitOn = true; combatData[1][0] = 100; totalDmg = 0; dmgPercent = 0; checkResist(); if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][4]; } } if (dmgType == 'iSupport') { noDmg = true; iSupportOn = true; supportBar[0] = 100; totalDmg = 0; dmgPercent = 0; checkResist(); if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][3]; } } if (dmgType == 'healHP') { rawDmg = tech_Data[1][0][0]; prcDmg = b_Stats[0] * (tech_Data[1][0][1] / 100); ethDmg = caster_Stats[0][2]; luckDmg = Math.round(Math.random(caster_Stats[7]) * 10); totalDmg = Math.round(rawDmg + prcDmg + ethDmg + luckDmg); levelGap = caster_Data / tech_Data[2]; if (levelGap > 1) { levelGap = 1; } totalDmg *= levelGap; finalNum = totalDmg; hpHealOn = true; } if (dmgType == 'regen') { prcDmg = b_Stats[0] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(prcDmg); finalNum = totalDmg; hpHealOn = true; dmgType = 'healHP'; } if (dmgType == 'recharge') { prcDmg = b_Stats[1] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(prcDmg); finalNum = totalDmg; hpHealOn = true; spHealOn = true; if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][3]; } } if (dmgType == 'healSP') { rawDmg = tech_Data[1][0][0]; prcDmg = b_Stats[0] * (tech_Data[1][0][1] / 100); ethDmg = caster_Stats[0][2]; luckDmg = Math.round(Math.random(caster_Stats[7]) * 10); totalDmg = Math.round(rawDmg + prcDmg + ethDmg + luckDmg); levelGap = caster_Data / tech_Data[2]; if (levelGap > 1) { levelGap = 1; } totalDmg *= levelGap; finalNum = totalDmg; spHealOn = true; } if (dmgType == 'autoBuff') { finalNum = 0; finalNum_SP = 0; if (r_buffs[0] > 0) { prcDmg = b_Stats[0] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(prcDmg); finalNum = totalDmg; afflicList = 'Regen\r'; hpHealOn = true; } if (r_buffs[1] > 0) { prcDmg = b_Stats[1] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(prcDmg); finalNum_SP = totalDmg; afflicList = 'Recharge\r'; spHealOn = true; } varA = 0; while (varA <= r_buffs.length - 1) { --r_buffs[varA]; if (r_buffs[varA] <= 0) { r_buffs[varA] = 0; } ++varA; } } if (dmgType == 'affDmg') { finalNum = 0; finalNum_SP = 0; if (r_afflictions[1] > 0) { prcDmg = b_Stats[0] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(prcDmg); finalNum = totalDmg; afflicList += 'Poisened!\r'; } if (r_afflictions[2] > 0) { prcDmg = b_Stats[1] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(prcDmg); finalNum_SP = totalDmg; afflicList += 'Short Circuited!\r'; } varA = 0; while (varA <= r_afflictions.length - 1) { --r_afflictions[varA]; if (r_afflictions[varA] <= 0) { r_afflictions[varA] = 0; } ++varA; } } if (dmgType == 'itemHP') { rawDmg = tech_Data[1][0][0]; prcDmg = b_Stats[0] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(rawDmg + prcDmg); finalNum = totalDmg; hpHealOn = true; dmgType = 'healHP'; } if (dmgType == 'itemSP') { rawDmg = tech_Data[1][0][0]; prcDmg = b_Stats[1] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(rawDmg + prcDmg); finalNum = totalDmg; spHealOn = true; dmgType = 'healSP'; } if (dmgType == 'revive') { if (t_Stats[0] <= 0) { rawDmg = tech_Data[1][0][0]; prcDmg = b_Stats[0] * (tech_Data[1][0][1] / 100); totalDmg = Math.round(rawDmg + prcDmg); levelGap = caster_Data / tech_Data[2]; if (levelGap > 1) { levelGap = 1; } totalDmg *= levelGap; finalNum = totalDmg; hpHealOn = true; reviveOn = true; dmgType = 'healHP'; } else { tech_Buffs[0] = 0; reviveOn = false; missOn = true; finalNum = 0; } if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[1][1]; } } if (dmgType == 'repair') { varX = 0; while (varX <= 8) { if (r_afflictions[varX] >= 1 and tech_Affliction[varX] < 0) { if (varX == 0) { afflicList += 'Removed Scan!\r'; } if (varX == 1) { afflicList += 'Cured Poisened!\r'; } if (varX == 2) { afflicList += 'Fixed Short Circuit!\r'; } if (varX == 3) { afflicList += 'Cured Blinded!\r'; } if (varX == 4) { afflicList += 'Removed Frozen!\r'; } if (varX == 5) { afflicList += 'Repaired Stunned!\r'; } if (varX == 6) { afflicList += 'Fixed Disarmed!\r'; } if (varX == 7) { afflicList += 'Fixed Overheated!\r'; } if (varX == 8) { afflicList += 'Neutralized Enraged!\r'; } } ++varX; } missOn = false; noDmg = true; totalDmg = 0; dmgPercent = 0; } if (dmgType == 'breakLimit') { r_limit[0] -= 20; if (r_limit[0] <= 0) { r_limit[0] = 1; } else { r_limit[0] /= 2; } r_limit[1] = false; breakLimitOn = true; noDmg = true; totalDmg = 0; dmgPercent = 0; checkResist(); } if (dmgType == 'taunt') { combatData[2][0] += 200; tauntOn = true; missOn = false; noDmg = true; totalDmg = 0; dmgPercent = 0; finalNum = 0; dmgType = 'healHP'; if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][3]; } } if (dmgType == 'inti') { combatData[2][0] -= 200; if (combatData[2][0] <= 0) { combatData[2][0] = 1; } intimOn = true; missOn = false; noDmg = true; totalDmg = 0; dmgPercent = 0; finalNum = 0; dmgType = 'healHP'; if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][3]; } } varX = 0; while (varX <= tech_Temp.length - 1) { if (tech_Temp[varX] == true) { r_tempData[varX] = tech_Temp[varX]; if (varX == 0) { tempBlock = true; dmgType = 'healHP'; } if (varX == 1) { enrageOn = true; dmgType = 'healHP'; } if (varX == 2) { cloakOn = true; dmgType = 'healHP'; } } ++varX; } if (finalNum < 0) { finalNumfinalNum = 0; inEff = true; } if (_root.currentForm[0][0] == 1 and inputData[1][0] == 'Enemy') { finalNum = Math.round(finalNum + finalNum * 0.1); } if (_root.currentForm[0][0] == 2 and inputData[1][0] == 'Party') { finalNum = Math.round(finalNum - finalNum * 0.1); } luck = caster_cData[7]; randomCrit = Math.round(Math.random() * 100); varX = 0; while (varX <= luck) { if (varX == randomCrit) { critOn = true; finalNum *= 2; } ++varX; } if (hpHealOn == false and spHealOn == false) { addMiss = 0; if (caster_Affliction[3] > 0) { addMiss += 160; } if (r_tempData[2] == true) { addMiss += 120; } luck = receiver_tStats[7] + addMiss; if (dmgType == 'healHP') { luck = 0; } if (dmgType == 'powerH') { luck = 0; } if (dmgType == 'affDmg') { luck = 0; } randomMiss = Math.round(Math.random() * 200); varX = 0; while (varX <= luck) { if (varX == randomMiss) { missOn = true; finalNum = 0; if (dmgType == 'ranged' and inputData[0][0] == 'Player' and _root.achievementArray[29][0][1] != true) { _root.achievementArray[29][0][1] = true; _root.scanForAchievements(); } } ++varX; } } if (missOn == false) { varX = 0; while (varX <= tech_Affliction.length - 1) { resistAfflict = receiver_tStats[8]; if (dmgType == 'healHP' or dmgType == 'healSP' or dmgType == 'repair') { resistAfflict = -1; } randomNum = Math.round(Math.random() * 100); skipResist = false; varZ = 0; while (varZ <= resistAfflict) { if (varZ == randomNum) { skipResist = true; } ++varZ; } if (skipResist == false) { if (tech_Affliction[varX] >= 1 or tech_Affliction[varX] < 0) { r_afflictions[varX] = tech_Affliction[varX]; if (dmgType != 'repair') { if (varX == 0) { afflicList += 'Scanned!\r'; } if (varX == 1) { afflicList += 'Poisened!\r'; } if (varX == 2) { afflicList += 'Short Circuit!\r'; } if (varX == 3) { afflicList += 'Blinded!\r'; } if (varX == 4) { afflicList += 'Frozen!\r'; } if (varX == 5) { afflicList += 'Stunned!\r'; nowStun = true; } if (varX == 6) { afflicList += 'Disarmed!\r'; } if (varX == 7) { afflicList += 'Overheated!\r'; } if (varX == 8) { afflicList += 'Inhibited!\r'; } } if (r_afflictions[varX] < 0) { r_afflictions[varX] = 0; } } } if (r_afflictions[varX] < 0) { tech_Affliction[varX] = 0; } ++varX; } } varX = 0; while (varX <= tech_Buffs.length - 1) { if (tech_Buffs[varX] >= 1) { r_buffs[varX] = tech_Buffs[varX]; if (varX == 0) { buffList += 'Regain\r'; } if (varX == 1) { buffList += 'Recharge\r'; } if (varX == 2) { buffList += 'Haste\r'; } if (varX == 3) { buffList += 'Overdrive\r'; } if (varX == 4) { buffList += 'Overclocked\r'; } if (varX == 5) { buffList += 'Aggro +\r'; } if (varX == 6) { buffList += '\r'; } if (varX == 7) { buffList += '\r'; } if (varX == 8) { buffList += '\r'; } } if (tech_Buffs[varX] < 0) { tech_Buffs[varX] = 0; } ++varX; } varX = 0; while (varX <= tech_Shields.length - 1) { if (tech_Shields[varX] >= 1 or tech_Shields[varX] < 0) { r_shields[varX] = tech_Shields[varX]; if (varX == 0) { shieldList += 'Fire Shield\r'; } if (varX == 1) { shieldList += 'Ice Shield\r'; } if (varX == 2) { shieldList += 'Electric Shield\r'; } if (varX == 3) { shieldList += 'Beam Shield\r'; } if (varX == 4) { shieldList += 'Bio Shield\r'; } if (varX == 5) { shieldList += 'Melee Shield\r'; } if (varX == 6) { shieldList += 'Buster Shield\r'; } if (varX == 7) { shieldList += 'Ether Shield\r'; } if (varX == 8) { shieldList += 'All Shield\r'; } } ++varX; } dmgPercent *= 0.01; finalNum = Math.round(finalNum * dmgPercent); if (inputData[2][0][3] == 'L') { caster_Combat[1][0] = 0; caster_Combat[1][1] = false; } if (inputData[0][0] == 'Player') { caster_Combat[2][0] += Math.round(finalNum * 0.1); if (caster_Combat[2][0] >= 300) { caster_Combat[2][0] = 300; } } if (r_tempData[1] == true and inputData[1][0] == 'Party') { if (_root.support_Party[0][0] != 'NONE') { supportBar[0] += finalNum * 0.05; } r_limit[0] += finalNum * 0.02; _root.teamCombatData[5][0] += finalNum * 0.04; buffList += 'SYNC/SUPPORT/LIMIT +'; } r_limit[0] += finalNum * 0.02; if (r_limit[0] > 100) { buffList += 'LIMIT BREAK!'; } finalNum_SP = Math.round(finalNum_SP * dmgPercent); if (finalNum == undefined) { finalNum = 0; } if (finalNum_SP == undefined) { finalNum_SP = 0; } if (dmgType == 'affDmg') { t_Stats[0] -= finalNum; if (t_Stats[0] >= receiver_bStats[0]) { t_Stats[0] = receiver_bStats[0]; } if (finalNum_SP > 0) { t_Stats[1] -= finalNum_SP; finalNum += '\rSP (-' + finalNum_SP + ')'; if (t_Stats[1] >= receiver_bStats[1]) { t_Stats[1] = receiver_bStats[1]; } } } else { if (dmgType == 'autoBuff') { t_Stats[0] += finalNum; if (t_Stats[0] <= 0) { t_Stats[0] = 0; } if (finalNum_SP > 0) { t_Stats[1] += finalNum_SP; finalNum += '\rSP (+' + finalNum_SP + ')'; if (t_Stats[1] <= 0) { t_Stats[1] = 0; } } } else { if (dmgType == 'healHP') { _root.gamePlay_Stats[2][3] += finalNum; t_Stats[0] += finalNum; if (t_Stats[0] >= receiver_bStats[0]) { t_Stats[0] = receiver_bStats[0]; } if (inputData[1][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + inputData[1][1])).animationMC.gotoAndPlay('useSkill'); } if (inputData[1][0] == 'Party') { (eval('_global.characterGridLayer.playrChr' + inputData[0][2])).animationMC.gotoAndPlay('useSkill'); } if (inputData[0][0] == 'Player') { ++_root.gamePlay_Stats[0][1]; } } else { if (dmgType == 'healSP') { t_Stats[1] += finalNum; if (t_Stats[1] >= receiver_bStats[1]) { t_Stats[1] = receiver_bStats[1]; } if (inputData[1][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + inputData[1][1])).animationMC.gotoAndPlay('useSkill'); } if (inputData[1][0] == 'Party') { (eval('_global.characterGridLayer.playrChr' + inputData[0][2])).animationMC.gotoAndPlay('useSkill'); } } else { if (dmgType == 'dmgSP') { t_Stats[1] -= finalNum; if (t_Stats[1] <= 0) { t_Stats[1] = 0; } if (inputData[1][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + inputData[1][1])).animationMC.gotoAndPlay('damage0'); } if (inputData[1][0] == 'Party') { (eval('_global.characterGridLayer.playrChr' + inputData[0][2])).animationMC.gotoAndPlay('damage0'); } } else { t_Stats[0] -= finalNum; if (inputData[0][0] == 'Player' and dmgType == 'melee') { _root.gamePlay_Stats[2][0] += finalNum; } if (inputData[0][0] == 'Player' and dmgType == 'buster') { _root.gamePlay_Stats[2][1] += finalNum; } if (inputData[0][0] == 'Player' and dmgType == 'ether') { _root.gamePlay_Stats[2][2] += finalNum; } if (blockOn == true) { if (inputData[1][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + inputData[1][1])).animationMC.gotoAndPlay('block'); } if (inputData[1][0] == 'Party') { (eval('_global.characterGridLayer.playrChr' + inputData[0][2])).animationMC.gotoAndPlay('block'); ++_root.gamePlay_Stats[1][5]; } } else { if (critOn == true) { if (inputData[1][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + inputData[1][1])).animationMC.gotoAndPlay('damage1'); } if (inputData[1][0] == 'Party') { (eval('_global.characterGridLayer.playrChr' + inputData[0][2])).animationMC.gotoAndPlay('damage1'); ++_root.gamePlay_Stats[1][4]; } } else { if (missOn == true) { if (inputData[1][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + inputData[1][1])).animationMC.gotoAndPlay('miss'); ++_root.gamePlay_Stats[1][3]; } if (inputData[1][0] == 'Party') { (eval('_global.characterGridLayer.playrChr' + inputData[0][2])).animationMC.gotoAndPlay('miss'); } } else { if (iLimitOn == true or iSupportOn == true or noDmg == true or cloakOn == true or inEff == true or enrageOn == true or tauntOn == true or intimOn == true or fleeOn == true or fleeFail == true or noFlee == true) { if (inputData[1][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + inputData[1][1])).animationMC.gotoAndPlay('useSkill'); } if (inputData[1][0] == 'Party') { (eval('_global.characterGridLayer.playrChr' + inputData[0][2])).animationMC.gotoAndPlay('useSkill'); } } else { if (finalNum > 0) { if (inputData[1][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + inputData[1][1])).animationMC.gotoAndPlay('damage0'); } if (inputData[1][0] == 'Party') { (eval('_global.characterGridLayer.playrChr' + inputData[0][2])).animationMC.gotoAndPlay('damage0'); } } } } } } } } } } } if (t_Stats[0] <= b_Stats[0] * 0.15) { if (inputData[1][0] == 'Enemy') { enemyAni_Buffer[inputData[1][1]] = 'injured'; } if (inputData[1][0] == 'Party') { playerAni_Buffer[inputData[1][1]] = 'injured'; } } if (nowStun == true) { r_ready[0] = 0; r_ready[1] = true; r_ready[2] = 'inc'; r_ready[3] = 0; if (inputData[1][0] == 'Enemy') { enemyAni_Buffer[inputData[1][1]] = 'standing'; } if (inputData[1][0] == 'Party') { playerAni_Buffer[inputData[1][1]] = 'standing'; } } if (t_Stats[0] <= 0) { t_Stats[0] = 0; if (inputData[1][0] == 'Enemy') { ++_root.gamePlay_Stats[3][0]; } if (inputData[1][0] == 'Player') { ++_root.gamePlay_Stats[3][1]; } r_afflictions = [0, 0, 0, 0, 0, 0, 0, 0, 0]; r_buffs = [0, 0, 0, 0, 0, 0, 0, 0, 0]; r_shields = [0, 0, 0, 0, 0, 0, 0, 0, 0]; r_ready[0] = 0; r_ready[1] = true; r_ready[2] = 'inc'; r_ready[3] = 0; if (r_limit[0] <= 0) { r_limit[0] = 1; } else { r_limit[0] /= 2; } r_limit[1] = false; if (r_aggro[0] <= 0) { r_aggro[0] = 1; } else { r_aggro[0] /= 2; } r_tempData[3][0] = [false, false, false, false, false]; if (inputData[1][0] == 'Enemy') { enemyAni_Buffer[inputData[1][1]] = 'defeated'; } if (inputData[1][0] == 'Party') { playerAni_Buffer[inputData[1][1]] = 'defeated'; varCB = 0; while (varCB <= _root.party_Order.length - 1) { (eval('_global.healthGauge' + varCB)).refreshReadyBar(); ++varCB; } _global.battleSelectorLayer.killCancelCheck(inputData[1][1]); } } if (inputData[1][0] == 'Enemy') { _parent.comboCounter.comboCount(inputData[1][0], inputData[1][1], finalNum, dmgType); } _root.checkTData(); updateHPBars(); _global.scanMCLayer.scanMain.updateScan([inputData[1][0], inputData[1][1]]); _global.battleSelectorLayer.helpBar._visible = false; _parent.scanMC._visible = true; _parent.scanMC.scanMain.gotoAndPlay('fadeOut'); delete caster_cData; delete caster_Stats; delete tech_Type; delete tech_Data; delete caster_Data; delete t_Stats; delete receiver_bStats; delete receiver_tStats; delete receiver_Resist; delete receiver_Stats; delete afflictions; delete buffs; delete shields; } } function checkResist() { elementalArray = [0, 0, 0, 0, 0, 0, 0]; resistArray = [0, 0, 0, 0, 0, 0, 0]; bonusEleArray = [0, 0, 0, 0, 0, 0, 0]; varX = 0; while (varX <= tech_Type.length - 1) { if (tech_Type[varX] > 0) { elementalArray[varX] = Math.round(totalDmg * (tech_Type[varX] / 100)); } ++varX; } varX = 0; while (varX <= tech_Type.length - 1) { if (varX == 0) { } if (receiver_Resist[varX] + r_shields[varX] > 0 and tech_Type[varX] > 0) { resistArray[varX] = Math.round(totalDmg * (receiver_Resist[varX] / 100)) + r_shields[varX]; resistOn = true; } ++varX; } varX = 0; while (varX <= tech_Type.length - 1) { if (receiver_Resist[varX] < 0 and tech_Type[varX] > 0) { bonusEleArray[varX] = elementalArray[varX] * Math.abs(receiver_Resist[varX] / 100); weakPOn = true; } ++varX; } finalNum = 0; varX = 0; while (varX <= tech_Type.length - 1) { finalNum += Math.round(elementalArray[varX] + bonusEleArray[varX] - resistArray[varX]); ++varX; } } alphabetArray = ['A', 'B', 'C', 'D', 'E']; } frame 5 { if (gamePlay_STATE != 'STOP') { if (gamePlay_STATE == 'PLAY') { sequence_00(); } if (gamePlay_STATE == 'STOP') { gotoAndPlay('endBattle'); } sequence_01(); } if (gamePlay_STATE == 'STOP') { gotoAndPlay('endBattle'); } } frame 6 { gotoAndPlay('gameLoop'); } frame 11 { gotoAndPlay('endBattle'); } } movieClip 1484 splash_PopUp { frame 1 { txtBox.text = _parent.splashText; } frame 21 { _parent.play(); } frame 57 { stop(); } } movieClip 1485 { frame 1 { stop(); } } movieClip 1488 { } movieClip 1489 { } movieClip 1492 { } movieClip 1496 AttackCmd { } movieClip 1497 { frame 1 { function updateCmdBoxes(chrNum) { cmdList = eval('_root.chrCMDList_' + chrNum); readyBar = eval('_root.combatData_' + chrNum); attachMovie('AttackCmd', 'AttackCmd', 0, {'_x': 0, '_y': 0}); AttackCmd._xscale = 50; AttackCmd._yscale = 50; attachMovie('ShootCmd', 'ShootCmd', 1, {'_x': 35, '_y': 0}); ShootCmd._xscale = 50; ShootCmd._yscale = 50; varX = 0; while (varX <= 10) { removeMovieClip('topBox_' + varX); removeMovieClip('box' + varX); removeMovieClip(FleeCmd); ++varX; } counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { readyBar = eval('_root.combatData_' + _root.party_Order[varX]); if (readyBar[1][1] == true) { ++counter; } ++varX; } topBuffer = []; p_count = 0; if (_root.teamCombatData[0][1] == true and _root.teamCombatData[0][0] == true) { attachMovie('BlockCmd', 'topBox_' + p_count, 200 + p_count, {'_x': +(35 * p_count), '_y': -38}); topBuffer[p_count] = ['BlockCmd']; ++p_count; } if (_root.teamCombatData[1][1] == true and _root.teamCombatData[1][0] == true) { attachMovie('ItemsCmd', 'topBox_' + p_count, 200 + p_count, {'_x': +(35 * p_count), '_y': -38}); topBuffer[p_count] = ['ItemsCmd']; ++p_count; } if (_root.teamCombatData[2][1] == true and _root.teamCombatData[2][0] == true) { attachMovie('SupportCmd', 'topBox_' + p_count, 200 + p_count, {'_x': +(35 * p_count), '_y': -38}); topBuffer[p_count] = ['SupportCmd']; ++p_count; } if (_root.teamCombatData[3][1] == true and _root.teamCombatData[3][0] == true) { attachMovie('iLimitCmd', 'topBox_' + p_count, 200 + p_count, {'_x': +(35 * p_count), '_y': -38}); topBuffer[p_count] = ['iLimitCmd']; ++p_count; } varX = 0; while (varX <= 10) { newBox = eval('topBox_' + varX); newBox._xscale = 50; newBox._yscale = 50; ++varX; } counter = 0; midBuffer = []; varX = 0; while (varX <= cmdList.length - 1) { if (cmdList[varX] == undefined) { break; } readyBar = eval('_root.combatData_' + chrNum); cmdName = cmdList[varX][0]; cmdTarget = cmdList[varX][1]; cmdSelect = cmdList[varX][2]; if (cmdName == 'Techs') { if (readyBar[1][1] == true) { cmdType = 'LimitCmd'; attachMovie('LimitCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } else { cmdType = 'TechsCmd'; attachMovie('TechsCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } } if (cmdName == 'Recharge') { cmdType = 'RechargeCmd'; attachMovie('RechargeCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } if (cmdName == 'Regenerate') { cmdType = 'RegenerateCmd'; attachMovie('RegenerateCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } if (cmdName == 'Deep Scan') { cmdType = 'ScanCmd'; attachMovie('ScanCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } if (cmdName == 'Steal') { cmdType = 'StealCmd'; attachMovie('StealCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } if (cmdName == 'Enrage') { cmdType = 'EnrageCmd'; attachMovie('EnrageCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } if (cmdName == 'Cloak') { cmdType = 'CloakCmd'; attachMovie('CloakCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } if (cmdName == 'Overload') { cmdType = 'OverloadCmd'; attachMovie('OverloadCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } if (cmdName == 'Taunt') { cmdType = 'TauntCmd'; attachMovie('TauntCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } if (cmdName == 'Intimidate') { cmdType = 'IntimCmd'; attachMovie('IntimCmd', 'box' + counter, 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); newBox = eval('box' + counter); } midBuffer[counter] = [cmdType]; newBox._xscale = 50; newBox._xscale = 50; ++counter; ++varX; } attachMovie('FleeCmd', 'FleeCmd', 10 + counter, {'_x': 70 + counter * 35, '_y': 0}); FleeCmd._xscale = 50; FleeCmd._yscale = 50; } } } movieClip 1499 cmdIcon { } movieClip 1502 battleSelectorMC { frame 1 { function updateCmdList(chrNum, rawNum) { this._visible = true; _global.gamePlayLayer.activeOn = true; thisChr = chrNum; rawChrNum = rawNum; confirmCode = false; syncCost = 0; useItem = [false, itemNum]; casterType = 'Player'; cmdList = eval('_root.chrCMDList_' + chrNum); readyBar = eval('_root.combatData_' + chrNum); cmdMovie._y = -19.4; cmdMax = cmdList.length - 1 + 3; selectNum = 0; scrollCredit = 0; subNum = 0; subCredit = 0; chr_locData = _root.party_formData[rawNum]; _parent.readyNow_Icon._x = chr_locData[3] + chr_locData[0] / 2; _parent.readyNow_Icon._y = chr_locData[4] + chr_locData[1] - 25; _parent.readyNow_Icon._visible = true; limitData = eval('_root.limitBData_' + chrNum); counter = 0; limitArray = []; varX = 0; while (varX <= limitData[0].length - 1) { if (limitData[varX][0] == true) { limitArray[counter] = limitData[varX]; ++counter; } ++varX; } cmdMovie.updateCmdBoxes(chrNum); checkSub(); Key.addListener(battleSelect_Listener); } function checkSub() { checkSum = selectNum + scrollCredit - 2; removeMovieClip(iLimitCmd); removeMovieClip(SupportCmd); removeMovieClip(ItemsCmd); removeMovieClip(BlockCmd); if (checkSum == -2) { textBox.text = 'Attack'; attachMovie('AttackCmd', 'portraitPic', 999, {'_x': 115, '_y': -21.5}); cmdType = ['Attack', 'EnemyOnly', 'Single', 'M', 0, ['melee', [[0, 0]], 1, 0, 0], 5, 'NONE', [['readyStance', 'melee', 'impact_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Attack the enemy with your melee weapon.']]; } if (checkSum == -1) { textBox.text = 'Buster'; attachMovie('ShootCmd', 'portraitPic', 999, {'_x': 115, '_y': -21.5}); cmdType = ['Attack', 'EnemyOnly', 'Single', 'M', 0, ['ranged', [[0, 0]], 1, 0, 0], 15, 'NONE', [['readyStance', 'buster', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Attack the enemy with your buster weapon.']]; } if (checkSum >= 0) { if (readyBar[1][1] == true and cmdList[selectNum + scrollCredit - 2][0] == 'Techs') { attachMovie('LimitCmd', 'portraitPic', 999, {'_x': 115, '_y': -21.5}); textBox.text = 'Limit Break'; randomNum = Math.round(Math.random() * (limitArray.length - 1)); cmdType = limitArray[randomNum][1]; trace('cmdType: ' + cmdType[11]); } else { textBox.text = cmdList[selectNum + scrollCredit - 2][0]; attachMovie(cmdMovie.midBuffer[checkSum], 'portraitPic', 999, {'_x': 115, '_y': -21.5}); oldCmd = cmdList[checkSum]; cmdType = cmdList[checkSum]; } } if (checkSum == cmdMax - 2) { textBox.text = 'Escape'; attachMovie('FleeCmd', 'portraitPic', 999, {'_x': 115, '_y': -21.5}); cmdType = ['Flee', 'Party', 'Self', 'M', 0, ['flee', [[0, 0]], 1, 0, 0], 15, 'NONE', [['chargingEnergy', 'dischargeEnergy', 'noAnimation']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Escape from battle.']]; } helpBar._visible = true; helpBar.helpText.text = cmdType[11]; syncCost = 0; portraitPic._xscale = 90; portraitPic._yscale = 90; cmdIcon._x = -202.4000000000001 + 28 * selectNum; cmdMovie._x = -13.6 - 28 * scrollCredit; } function checkTargets() { if (cmdType[1] == 'Enemy' or cmdType[1] == 'EnemyOnly') { enemyAliveList(); enemyTarget = 0; Key.removeListener(battleSelect_Listener); subEnemy(enemyTarget); Key.addListener(enemySelect_Listener); helpBar._visible = false; } if (cmdType[1] == 'Party' or cmdType[1] == 'PartyOnly') { scanPlayerAlive(); if (cmdType[2] == 'Self') { playerTarget = rawChrNum; } else { playerTarget = 0; } Key.removeListener(battleSelect_Listener); subParty(playerTarget); Key.addListener(partySelect_Listener); helpBar._visible = false; } if (cmdType[1] == 'OpenTech') { Key.removeListener(battleSelect_Listener); attachMovie('battleSkillMC', 'battleSkillMC', 6000, {'_x': -230, '_y': -250}); oldControl = 'techSelect'; } } function checkSubSel() { cmdIcon._x = -202.4000000000001 + 28 * subNum; attachMovie(cmdMovie.topBuffer[subNum], 'portraitPic', 999, {'_x': 115, '_y': -21.5}); portraitPic._xscale = 90; portraitPic._yscale = 90; if (cmdMovie.topBuffer[subNum][0] == 'BlockCmd') { textBox.text = 'Block'; attachMovie('BlockCmd', 'portraitPic', 999, {'_x': 115, '_y': -21.5}); cmdType = ['Block', 'Party', 'Self', '', 0, ['noDmg', [[0, 0]], 10, 0, 0], 30, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[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], [true, false, false]], [false, false, false, false, false], ['Reduce all damage taken for one round by 30%. Charge rate doubled.']]; syncCost = 40; } if (cmdMovie.topBuffer[subNum][0] == 'ItemsCmd') { textBox.text = 'Items'; attachMovie('ItemsCmd', 'portraitPic', 999, {'_x': 115, '_y': -21.5}); cmdType = ['Items', 'OpenItem', 'Self', '', '', [], '', '', [[' ', ' ', ''], []], [[], [], [], []], [], ['Use items in battle.']]; syncCost = 50; } if (cmdMovie.topBuffer[subNum][0] == 'SupportCmd') { textBox.text = 'Call for Support'; attachMovie('SupportCmd', 'portraitPic', 999, {'_x': 115, '_y': -21.5}); cmdType = ['Support', 'Party', 'Self', '', '', ['iSupport', [[100, 0]], 10, 0, 0], 30, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Refills your support bar.']]; syncCost = 90; } if (cmdMovie.topBuffer[subNum][0] == 'iLimitCmd') { textBox.text = 'Instant Limit'; attachMovie('iLimitCmd', 'portraitPic', 999, {'_x': 115, '_y': -21.5}); cmdType = ['Instant Limit', 'Party', 'Self', '', '', ['iLimit', [[100, 0]], 10, 0, 0], 30, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]; syncCost = 110; } helpBar.helpText.text = cmdType[11]; syncMove = true; } function scanPlayerAlive() { partyAliveControlList = []; partyLocationList = []; partyReviveList = []; counter = 0; reviveCounter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (cmdType[2] == 'Self' and varX == rawChrNum) { selfNum = counter; } if (tData[0] > 0) { partyAliveControlList[counter] = varX; ++counter; } if (tData[0] <= 0) { partyReviveList[reviveCounter] = varX; ++reviveCounter; } ++varX; } if (cmdType[5][0] == 'revive') { varX = 0; while (varX <= _root.party_Order.length - 1) { partyAliveControlList[varX] = varX; ++varX; } } } function subParty(target) { _parent.readyNow_Icon._visible = false; targetType = 'Party'; varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 50; ++varX; } partyChr = eval('_global.characterGridLayer.playrChr' + rawChrNum); partyChr._alpha = 100; varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 50; ++varX; } varX = 0; while (varX <= 10) { removeMovieClip('_parent.pointer_' + (10 + varX)); ++varX; } if (cmdType[2] == 'Single' or cmdType[2] == 'Self') { duplicateMovieClip(_parent.pointer_1, 'pointer_11', 2001); newPointer = _parent.pointer_11; newPointer._visible = true; newPointer._rotation = 0; if (cmdType[2] == 'Single') { chrSelect = _root.party_formData[partyAliveControlList[target]]; } if (cmdType[2] == 'Self') { chrSelect = _root.party_formData[partyAliveControlList[selfNum]]; target = selfNum; } newPointer._x = chrSelect[3] - 25; newPointer._y = chrSelect[4] + chrSelect[1] / 2; partyChr = eval('_global.characterGridLayer.playrChr' + partyAliveControlList[target]); partyChr._alpha = 100; } if (cmdType[2] == 'All') { varX = 0; while (varX <= partyAliveControlList.length - 1) { duplicateMovieClip(_parent.pointer_1, 'pointer_' + (10 + varX), 2000 + varX); newPointer = eval('_parent.pointer_' + (10 + varX)); newPointer._visible = true; newPointer._rotation = 0; newPointer._x = _root.party_formData[partyAliveControlList[varX]][3] - 25; newPointer._y = _root.party_formData[partyAliveControlList[varX]][4] + _root.party_formData[partyAliveControlList[varX]][1] / 2; partyChr = eval('_global.characterGridLayer.playrChr' + partyAliveControlList[varX]); partyChr._alpha = 100; ++varX; } } if (cmdType[2] == 'Self') { _global.scanMCLayer.scanMain.updateScan(['Player', _root.party_Order[partyAliveControlList[selfNum]]]); } else { _global.scanMCLayer.scanMain.updateScan(['Player', _root.party_Order[partyAliveControlList[target]]]); } _parent._parent.scanMC._visible = true; _parent._parent.scanMC.scanMain.gotoAndPlay('ready'); } function enemyAliveList() { enemyAliveControlList = []; counter = 0; varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveControlList[counter] = varX; ++counter; } ++varX; } delete counter; } function subEnemy(target) { _parent.readyNow_Icon._visible = true; targetType = 'Enemy'; varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 50; ++varX; } partyChr = eval('_global.characterGridLayer.playrChr' + rawChrNum); partyChr._alpha = 100; varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 50; ++varX; } varX = 0; while (varX <= 10) { removeMovieClip('_parent.pointer_' + (10 + varX)); ++varX; } if (cmdType[2] == 'Single') { duplicateMovieClip(_parent.pointer_1, 'pointer_11', 2001); newPointer = _parent.pointer_11; newPointer._visible = true; newPointer._x = _root.enemy_formData[enemyAliveControlList[target]][3] + 25; newPointer._y = _root.enemy_formData[enemyAliveControlList[target]][4] + _root.enemy_formData[enemyAliveControlList[target]][1] / 2; enemyChr = eval('_global.characterGridLayer.enemyChr' + enemyAliveControlList[target]); enemyChr._alpha = 100; } if (cmdType[2] == 'All') { varX = 0; while (varX <= enemyAliveControlList.length - 1) { duplicateMovieClip(_parent.pointer_1, 'pointer_' + (10 + varX), 2000 + varX); newPointer = eval('_parent.pointer_' + (10 + varX)); newPointer._visible = true; newPointer._x = _root.enemy_formData[enemyAliveControlList[varX]][3] + 25; newPointer._y = _root.enemy_formData[enemyAliveControlList[varX]][4] + _root.enemy_formData[enemyAliveControlList[varX]][1] / 2; enemyChr = eval('_global.characterGridLayer.enemyChr' + enemyAliveControlList[varX]); enemyChr._alpha = 100; ++varX; } } _global.scanMCLayer.scanMain.updateScan(['Enemy', enemyAliveControlList[target]]); _parent._parent.scanMC._visible = true; _parent._parent.scanMC.scanMain.gotoAndPlay('ready'); } function forceCancel() { Key.removeListener(battleSelect_Listener); Key.removeListener(enemySelect_Listener); Key.removeListener(partySelect_Listener); Key.removeListener(subSelector_Listener); _parent.battleSelectorMC._visible = false; _parent.readyNow_Icon._visible = false; _global.characterGridLayer.blackBG._visible = false; varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 100; ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 100; ++varX; } varX = 0; while (varX <= 10) { removeMovieClip('_parent.pointer_' + (10 + varX)); ++varX; } _global.gamePlayLayer.gate_A = true; _global.gamePlayLayer.gate_D = true; _global.battleSelectorLayer.oldCmd; } function killCancelCheck(checkNum) { if (thisChr == checkNum) { if (_root.gameVariables[2][0][1] == false) { Key.addListener(_parent.menuWheel_Listener); } Key.removeListener(battleSelect_Listener); Key.removeListener(enemySelect_Listener); Key.removeListener(partySelect_Listener); Key.removeListener(subSelector_Listener); _parent.gamePlay_STATE = 'PLAY'; if (_root.gameVariables[2][0][1] == true) { _parent.stopCheck = false; } _parent.battleSelectorMC._visible = false; _parent.readyNow_Icon._visible = false; _global.gamePlayLayer.activeOn = false; readyBar = eval('_root.combatData_' + thisChr); _parent.activeBattleBuffer.shift(); _global.characterGridLayer.blackBG._visible = false; varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 100; ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 100; ++varX; } varX = 0; while (varX <= 10) { removeMovieClip('_parent.pointer_' + (10 + varX)); ++varX; } _global.gamePlayLayer.gate_A = true; _global.gamePlayLayer.gate_D = true; _global.battleSelectorLayer.oldCmd; } } function finishEntry() { commandEntry = []; _global.gamePlayLayer.gate_A = true; _global.gamePlayLayer.gate_D = true; if (cmdType[2] == 'Self') { partyAliveControlList[playerTarget] = rawChrNum; targetChr = _root.party_Order[rawChrNum]; } commandEntry = [[casterType, rawChrNum, partyAliveControlList[playerTarget]], [targetType, targetChr], [cmdType]]; if (_global.battleSelectorLayer.useItem[0] == true) { --_root.itemListData[useItem[1]]; } if (_root.gameVariables[2][0][1] == false) { Key.addListener(_parent.menuWheel_Listener); } Key.removeListener(battleSelect_Listener); Key.removeListener(enemySelect_Listener); Key.removeListener(partySelect_Listener); readyBar = eval('_root.combatData_' + thisChr); readyBar[0][1] = true; readyBar[0][2] = 'dec'; readyBar[0][3] = cmdType[6]; tData = eval('_root.chrTData_' + _root.party_Order[rawChrNum]); tData[0] -= cmdType[5][3]; tData[1] -= cmdType[5][4]; if (syncMove == true) { _root.teamCombatData[5][0] -= syncCost; if (_root.teamCombatData[5][0] <= 0) { _root.teamCombatData[5][0] = 0; } } _root.checkTData(); _parent.updateHPBars(); _global.characterGridLayer.blackBG._visible = false; varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 100; ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 100; ++varX; } varX = 0; while (varX <= 10) { removeMovieClip('_parent.pointer_' + (10 + varX)); ++varX; } varX = 0; while (varX <= 9) { newPointer = eval('_parent.pointer_' + (10 + varX)); removeMovieClip(newPointer); ++varX; } _parent._parent.scanMC._visible = false; _global.gamePlayLayer.activeOn = false; if (_root.gameVariables[2][0][1] == true) { _parent.activeBattleBuffer.shift(); } if (_root.gameVariables[2][0][1] == false) { _global.gamePlayLayer.activeOn = false; } if (casterType == 'Player') { _global.gamePlayLayer.player_inputSlot[thisChr] = commandEntry; chrFocus = eval('_global.characterGridLayer.playrChr' + rawChrNum); chrFocus.animationMC.gotoAndPlay(cmdType[8][0][0]); _global.gamePlayLayer.playerAni_Buffer[_root.party_Order[rawChrNum]] = cmdType[8][0][0]; } _parent.gamePlay_STATE = 'PLAY'; _parent.battleSelectorMC._visible = false; _parent.readyNow_Icon._visible = false; _global.gamePlayLayer.gate_A = true; _global.gamePlayLayer.gate_D = true; } _parent.attachMovie('mainIcon', 'readyNow_Icon', 10, {'_x': -11, '_y': 0}); _parent.readyNow_Icon._visible = false; _parent.readyNow_Icon._rotation = 90; _parent.attachMovie('mainIcon', 'pointer_1', 20, {'_x': -11, '_y': 0}); _parent.pointer_1._visible = false; _parent.pointer_1._rotation = 180; _parent.attachMovie('mainIcon', 'pointer_2', 30, {'_x': -11, '_y': 0}); _parent.pointer_2._visible = false; _global.battleSelectorLayer = this; battleSelect_Listener = new Object(); battleSelect_Listener.onKeyDown = function () { if (Key.getCode() == '39' or Key.getAscii() == '54') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (selectNum < 3) { ++selectNum; } else { if (scrollCredit < cmdMax - 3) { ++scrollCredit; } } checkSub(); } if (Key.getCode() == '37' or Key.getAscii() == '52') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (selectNum > 0) { --selectNum; } else { if (scrollCredit > 0) { --scrollCredit; } } checkSub(); } if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (cmdMovie.p_count >= 1) { Key.removeListener(battleSelect_Listener); Key.addListener(subSelector_Listener); cmdMovie._y = 10.7; cmdMovie._x = -13.6; subNum = 0; checkSubSel(); } else {} } if (Key.getCode() == '40' or Key.getAscii() == '50') { } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } oldControl = 'battleSelect_Listener'; _global.battleSelectorLayer.helpBar.helpText.text = 'Press the [UP] OR [DOWN] key to change catagories.'; checkTargets(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx3.start(); } if (_root.gameVariables[2][0][1] == false) { Key.addListener(_parent.menuWheel_Listener); } Key.removeListener(battleSelect_Listener); _parent.gamePlay_STATE = 'PLAY'; if (_root.gameVariables[2][0][1] == true) { _parent.stopCheck = false; } _parent.battleSelectorMC._visible = false; _parent.readyNow_Icon._visible = false; _global.gamePlayLayer.activeOn = false; readyBar = eval('_root.combatData_' + thisChr); if (_root.gameVariables[2][0][1] == true) { readyBar[0][0] = 50; readyBar[0][1] = true; _parent.activeBattleBuffer.shift(); } _global.characterGridLayer.blackBG._visible = false; varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 100; ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 100; ++varX; } varX = 0; while (varX <= 10) { removeMovieClip('_parent.pointer_' + (10 + varX)); ++varX; } _global.gamePlayLayer.gate_A = true; _global.gamePlayLayer.gate_D = true; _global.battleSelectorLayer.oldCmd; } }; subSelector_Listener = new Object(); subSelector_Listener.onKeyDown = function () { if (Key.getCode() == '39' or Key.getAscii() == '54') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (subNum < cmdMovie.p_count - 1) { ++subNum; } else { if (subCredit < cmdMovie.p_count) { ++subCredit; } } checkSubSel(); } if (Key.getCode() == '37' or Key.getAscii() == '52') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (subNum > 0) { --subNum; } else { if (subCredit > 0) { --subCredit; } } checkSubSel(); } if (Key.getCode() == '38' or Key.getAscii() == '56') { } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } Key.addListener(battleSelect_Listener); Key.removeListener(subSelector_Listener); selectNum = 0; cmdMovie._y = -19.4; checkSub(); } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (cmdType[1] == 'OpenItem') { Key.removeListener(subSelector_Listener); attachMovie('itemMenuBattle', 'itemMenuBattle', 6000, {'_x': -230, '_y': -250}); oldControl = 'itemSelect'; } else { oldControl = 'subSelector_Listener'; Key.removeListener(subSelector_Listener); _global.battleSelectorLayer.helpBar.helpText.text = 'Press the [UP] OR [DOWN] key to change catagories.'; checkTargets(); } } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx3.start(); } if (_root.gameVariables[2][0][1] == false) { Key.addListener(_parent.menuWheel_Listener); } Key.removeListener(subSelector_Listener); _parent.gamePlay_STATE = 'PLAY'; if (_root.gameVariables[2][0][1] == true) { _parent.stopCheck = false; } _parent.battleSelectorMC._visible = false; _parent.readyNow_Icon._visible = false; _global.gamePlayLayer.activeOn = false; readyBar = eval('_root.combatData_' + thisChr); if (_root.gameVariables[2][0][1] == true) { readyBar[0][0] = 50; readyBar[0][1] = true; _parent.activeBattleBuffer.shift(); } _global.characterGridLayer.blackBG._visible = false; varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 100; ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 100; ++varX; } varX = 0; while (varX <= 10) { removeMovieClip('_parent.pointer_' + (10 + varX)); ++varX; } _global.gamePlayLayer.gate_A = true; _global.gamePlayLayer.gate_D = true; _global.battleSelectorLayer.oldCmd; } }; partySelect_Listener = new Object(); partySelect_Listener.onKeyDown = function () { if (cmdType[2] == 'Single') { if (Key.getCode() == '39' or Key.getAscii() == '54' and cmdType[2] == 'Single') { if (confirmCode == false or confirmCode == undefined) { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++playerTarget; if (playerTarget > partyAliveControlList.length - 1) { playerTarget = 0; } subParty(playerTarget); } } if (Key.getCode() == '37' or Key.getAscii() == '52' and cmdType[2] == 'Single') { if (confirmCode == false or confirmCode == undefined) { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --playerTarget; if (playerTarget < 0) { playerTarget = partyAliveControlList.length - 1; } subParty(playerTarget); } } } if (Key.getCode() == '38' or Key.getAscii() == '56') { if (cmdType[1] != 'PartyOnly') { if (cmdType[2] == 'Single' or cmdType[2] == 'All') { if (confirmCode == false or confirmCode == undefined) { Key.removeListener(partySelect_Listener); cmdType[1] = 'Party'; checkTargets(); } } } } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (cmdType[1] != 'PartyOnly') { if (cmdType[2] == 'Single' or cmdType[2] == 'All') { if (confirmCode == false or confirmCode == undefined) { Key.removeListener(partySelect_Listener); cmdType[1] = 'Enemy'; checkTargets(); } } } } if (Key.getCode() == '32') { if (confirmCode == undefined) { confirmCode = false; } if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } tData = eval('_root.chrTData_' + [thisChr]); if (tData[0] >= cmdType[5][3] and tData[1] >= cmdType[5][4]) { if (cmdType[2] == 'Single' or cmdType[2] == 'Self') { if (confirmCode == false) { _parent.pointer_1.gotoAndPlay('blink'); confirmCode = true; } else { confirmCode = false; _parent.pointer_1._visible = false; targetChr = _root.party_Order[partyAliveControlList[playerTarget]]; finishEntry(); } } if (cmdType[2] == 'All') { if (confirmCode == false) { varX = 0; while (varX <= partyAliveControlList.length - 1) { (eval('_parent.pointer_' + (10 + varX))).gotoAndPlay('blink'); confirmCode = true; ++varX; } } else { confirmCode = false; varX = 0; while (varX <= partyAliveControlList.length - 1) { removeMovieClip(eval('_parent.pointer_' + (10 + varX))); targetChr = playerTarget; finishEntry(); ++varX; } } } } } if (Key.getCode() == '8') { if (confirmCode == false) { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } if (oldControl == 'subSelector_Listener') { Key.addListener(subSelector_Listener); } if (oldControl == 'battleSelect_Listener') { Key.addListener(battleSelect_Listener); } if (oldControl == 'techSelect') { cmdType = oldCmd; oldControl = 'techSelect'; Key.removeListener(partySelect_Listener); Key.addListener(_global.useSkillListLayer.techSelect_Listener); _global.battleSelectorLayer.battleSkillMC._visible = true; } if (oldControl == 'itemSelect') { cmdType = oldCmd; oldControl = 'itemSelect'; Key.removeListener(partySelect_Listener); Key.addListener(itemMenuBattle.itemSelect_Listener); itemMenuBattle._visible = true; } varX = 0; while (varX <= _root.party_Order.length - 1) { playerChr = eval('_global.characterGridLayer.playrChr' + varX); playerChr._alpha = 100; removeMovieClip(eval('_parent.pointer_' + (10 + varX))); _parent.pointer_1._visible = true; helpBar._visible = true; ++varX; } partyChr = eval('_global.characterGridLayer.playrChr' + rawChrNum); partyChr._alpha = 100; _global.battleSelectorLayer.useItem[0] = false; _parent._parent.scanMC._visible = false; Key.removeListener(partySelect_Listener); _parent.pointer_1._visible = false; _parent.readyNow_Icon._visible = true; } else { confirmCode = false; _global.fx4.start(); } } }; enemySelect_Listener = new Object(); enemySelect_Listener.onKeyDown = function () { if (cmdType[2] == 'Single') { if (Key.getCode() == '39' or Key.getAscii() == '54' and cmdType[2] == 'Single') { if (confirmCode == false or confirmCode == undefined) { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++enemyTarget; if (enemyTarget > enemyAliveControlList.length - 1) { enemyTarget = 0; } subEnemy(enemyTarget); } } if (Key.getCode() == '37' or Key.getAscii() == '52' and cmdType[2] == 'Single') { if (confirmCode == false or confirmCode == undefined) { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --enemyTarget; if (enemyTarget < 0) { enemyTarget = enemyAliveControlList.length - 1; } subEnemy(enemyTarget); } } } if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (cmdType[1] != 'EnemyOnly') { if (confirmCode == false or confirmCode == undefined) { Key.removeListener(enemySelect_Listener); cmdType[1] = 'Party'; checkTargets(); } } } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (cmdType[1] != 'EnemyOnly') { if (confirmCode == false or confirmCode == undefined) { Key.removeListener(enemySelect_Listener); cmdType[1] = 'Enemy'; checkTargets(); } } } if (Key.getCode() == '32') { if (confirmCode == undefined) { confirmCode = false; } if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (cmdType[2] == 'Single') { if (confirmCode == false) { _parent.pointer_1.gotoAndPlay('blink'); confirmCode = true; } else { confirmCode = false; _parent.pointer_1._visible = false; targetChr = enemyAliveControlList[enemyTarget]; finishEntry(); } } if (cmdType[2] == 'All') { if (confirmCode == false) { varX = 0; while (varX <= enemyAliveControlList.length - 1) { (eval('_parent.pointer_' + (10 + varX))).gotoAndPlay('blink'); confirmCode = true; ++varX; } } else { confirmCode = false; varX = 0; while (varX <= enemyAliveControlList.length - 1) { removeMovieClip(eval('_parent.pointer_' + (10 + varX))); targetChr = enemyAliveControlList[enemyTarget]; finishEntry(); ++varX; } } } } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx3.start(); } if (confirmCode == false) { if (oldControl == 'subSelector_Listener') { Key.addListener(subSelector_Listener); } if (oldControl == 'battleSelect_Listener') { Key.addListener(battleSelect_Listener); } if (oldControl == 'techSelect') { cmdType = oldCmd; oldControl = 'techSelect'; Key.removeListener(enemySelect_Listener); Key.addListener(_global.useSkillListLayer.techSelect_Listener); _global.battleSelectorLayer.battleSkillMC._visible = true; } if (oldControl == 'itemSelect') { cmdType = oldCmd; oldControl = 'itemSelect'; Key.removeListener(partySelect_Listener); Key.addListener(itemMenuBattle.itemSelect_Listener); itemMenuBattle._visible = true; } varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyChr = eval('_global.characterGridLayer.enemyChr' + varX); enemyChr._alpha = 50; removeMovieClip(eval('_parent.pointer_' + (10 + varX))); _parent.pointer_1._visible = true; helpBar._visible = true; ++varX; } playerChr = eval('_global.characterGridLayer.playrChr' + rawChrNum); playerChr._alpha = 100; _global.battleSelectorLayer.useItem[0] = false; _parent._parent.scanMC._visible = false; Key.removeListener(enemySelect_Listener); _parent.pointer_1._visible = false; } else { confirmCode = false; } } }; } } movieClip 1504 BlockCmd { } movieClip 1506 FleeCmd { } movieClip 1508 ItemsCmd { } movieClip 1510 RechargeCmd { } movieClip 1512 RegenerateCmd { } movieClip 1514 ScanCmd { } movieClip 1516 ShootCmd { } movieClip 1518 TechsCmd { } movieClip 1520 ThrowCmd { } movieClip 1524 LimitCmd { } movieClip 1527 valueSplashA_Heal { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 90 { stop(); removeMovieClip(this); } } movieClip 1528 valueSplashB_Heal { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 90 { stop(); removeMovieClip(this); } } movieClip 1529 valueSplashC_Heal { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 90 { stop(); removeMovieClip(this); } } movieClip 1531 SupportCmd { } movieClip 1533 iLimitCmd { } movieClip 1535 StealCmd { } movieClip 1537 EnrageCmd { } movieClip 1539 CloakCmd { } movieClip 1541 OverloadCmd { } movieClip 1542 { frame 1 { stop(); } } movieClip 1545 { } movieClip 1548 { frame 1 { function updateSync(syncPercent) { if (syncPercent >= 7 and refreshSwitch == true) { refreshSwitch = false; gotoAndPlay('next'); } if (syncPercent < 7 and refreshSwitch == false) { gotoAndStop('load'); refreshSwitch = true; } } refreshSwitch = true; stop(); } frame 2 { if (_root.gameVariables[0][0][3] == true) { _global.fx13.start(); } } frame 24 { stop(); } frame 25 { if (_parent.syncPercent < 12) { play(); } stop(); } } movieClip 1550 { frame 1 { function updateSync(syncPercent) { if (syncPercent >= 33 and refreshSwitch == true) { refreshSwitch = false; gotoAndPlay('next'); } if (syncPercent < 33 and refreshSwitch == false) { gotoAndStop('load'); refreshSwitch = true; } } refreshSwitch = true; stop(); } frame 2 { if (_root.gameVariables[0][0][3] == true) { _global.fx13.start(); } } frame 24 { stop(); } } movieClip 1552 { frame 1 { function updateSync(syncPercent) { if (syncPercent >= 78 and refreshSwitch == true) { refreshSwitch = false; gotoAndPlay('next'); } if (syncPercent < 78 and refreshSwitch == false) { gotoAndStop('load'); refreshSwitch = true; } } refreshSwitch = true; stop(); } frame 2 { if (_root.gameVariables[0][0][3] == true) { _global.fx13.start(); } } frame 24 { stop(); } } movieClip 1554 { frame 1 { function updateSync(syncPercent) { if (syncPercent >= 14 and refreshSwitch == true) { refreshSwitch = false; gotoAndPlay('next'); } if (syncPercent < 14 and refreshSwitch == false) { gotoAndStop('load'); refreshSwitch = true; } } refreshSwitch = true; stop(); } frame 2 { if (_root.gameVariables[0][0][3] == true) { _global.fx13.start(); } } frame 24 { stop(); } } movieClip 1556 { } movieClip 1558 teamSyncMC { frame 1 { function refreshSync(syncPercent) { syncBar._xscale = syncPercent; sync_0.updateSync(syncPercent); sync_1.updateSync(syncPercent); sync_2.updateSync(syncPercent); sync_3.updateSync(syncPercent); sync_4.updateSync(syncPercent); } syncBar._xscale = 0; syncPercent = 0; refreshSync(); stop(); } } movieClip 1561 blackBG { } movieClip 1563 { } movieClip 1565 { } movieClip 1576 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1577 { frame 1 { function onEnterFrame() { if (_global.useSkillListLayer.skillCat == 0) { catIcon._x = 40; catIcon._y = 0; } if (_global.useSkillListLayer.skillCat == 1) { catIcon._x = 20; catIcon._y = 100; } if (_global.useSkillListLayer.skillCat == 2) { catIcon._x = 0; catIcon._y = 200; } } } } movieClip 1583 { frame 1 { function refreshTech() { skillList = eval('_root.chrSkillList_' + _root.party_Order[_global.battleSelectorLayer.rawChrNum]); cData = eval('_root.chrCData_' + _root.party_Order[_global.battleSelectorLayer.rawChrNum]); tData = eval('_root.chrTData_' + _root.party_Order[_global.battleSelectorLayer.rawChrNum]); iData = eval('_root.chrIData_' + _root.party_Order[_global.battleSelectorLayer.rawChrNum]); techList.text = ''; costList.text = ''; userName.text = iData[0]; userSP.text = 'SP: ' + tData[1]; counter = 0; varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (_global.useSkillListLayer.skillCat == 0) { if (skillType == 'H') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][5][4] + '\r'; ++counter; } } if (_global.useSkillListLayer.skillCat == 1) { if (skillType == 'A') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][5][4] + '\r'; ++counter; } } if (_global.useSkillListLayer.skillCat == 2) { if (skillType == 'E' or skillType == 'T') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][5][4] + '\r'; ++counter; } } ++varX; } if (counter == 0) { techList.text = 'None'; costList.text = '---'; counter = 1; } boxList._yscale = counter * 100 + 75 - counter * 15; } newVarX = 0; _global.techListLayer = this; refreshTech(); } frame 8 { stop(); } frame 18 { gotoAndStop('load'); } } movieClip 1584 battleSkillMC { frame 1 { function updateTechDescription() { chrCasting = _global.battleSelectorLayer.thisChr; counter = 0; skillList = eval('_root.chrSkillList_' + chrCasting); varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (skillCat == 0) { if (skillType == 'H') { _root.tempList[counter] = skillList[varX]; ++counter; } } if (skillCat == 1) { if (skillType == 'A') { _root.tempList[counter] = skillList[varX]; ++counter; } } if (skillCat == 2) { if (skillType == 'T' or skillType == 'E') { _root.tempList[counter] = skillList[varX]; ++counter; } } ++varX; } techDescription = _root.tempList[techNum][0][11]; if (counter == 0) { techDescription = 'You have no skills available.'; } _global.battleSelectorLayer.helpBar.helpText.text = techDescription; } _global.useSkillListLayer = this; chrNum = 0; --counter; skillCat = 2; attachMovie('mainIcon', 'menuIcon', 100, {'_x': -120, '_y': 60}); techNum = 0; menuIcon._visible = true; menuIcon._y = 138.5 + techNum * 18; menuIcon._visible = false; techSelect_Listener = new Object(); techSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --techNum; if (techNum < 0) { techNum = _global.techListLayer.counter - 1; } menuIcon._y = 138.5 + techNum * 18; updateTechDescription(); } if (Key.getCode() == '37' or Key.getAscii() == '52') { Key.removeListener(techSelect_Listener); Key.addListener(catSelect_Listener); _global.techListLayer.catOptions.catIcon.gotoAndPlay('active'); menuIcon._visible = false; _global.battleSelectorLayer.helpBar.helpText.text = 'Press the [UP] OR [DOWN] key to change catagories.'; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++techNum; if (techNum > _global.techListLayer.counter - 1) { techNum = 0; } menuIcon._y = 138.5 + techNum * 18; updateTechDescription(); } if (Key.getCode() == '8') { Key.removeListener(techSelect_Listener); Key.removeListener(catSelect_Listener); Key.addListener(_global.battleSelectorLayer.battleSelect_Listener); _global.battleSelectorLayer.oldControl = 'techSelect'; removeMovieClip(_global.battleSelectorLayer.battleSkillMC); _global.battleSelectorLayer.checkSub(); } if (Key.getCode() == '32') { tData = eval('_root.chrTData_' + _root.party_Order[_parent.rawChrNum]); if (tData[0] > _root.tempList[techNum][0][5][3] and tData[1] >= _root.tempList[techNum][0][5][4]) { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } _global.battleSelectorLayer.cmdType = _root.tempList[techNum][0]; Key.removeListener(techSelect_Listener); _global.battleSelectorLayer.battleSkillMC._visible = false; _global.battleSelectorLayer.checkTargets(); } else { if (_root.gameVariables[0][0][3] == true) { _global.fx9.start(); } } } }; catSelect_Listener = new Object(); catSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --skillCat; if (skillCat < 0) { skillCat = 2; } _global.techListLayer.refreshTech(); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++skillCat; if (skillCat > 2) { skillCat = 0; } _global.techListLayer.refreshTech(); } if (Key.getCode() == '39' or Key.getCode() == '32') { techNum = 0; menuIcon._visible = true; menuIcon._y = 138.5 + techNum * 18; Key.addListener(techSelect_Listener); Key.removeListener(catSelect_Listener); _global.techListLayer.catOptions.catIcon.gotoAndPlay('idol'); updateTechDescription(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } Key.removeListener(techSelect_Listener); Key.removeListener(catSelect_Listener); Key.addListener(_global.battleSelectorLayer.battleSelect_Listener); _global.battleSelectorLayer.oldControl = 'techSelect'; removeMovieClip(_global.battleSelectorLayer.battleSkillMC); _global.battleSelectorLayer.checkSub(); } }; Key.addListener(catSelect_Listener); } frame 12 { stop(); } frame 13 { _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 16 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 1585 { frame 1 { stop(); } } movieClip 1586 valueSplashA { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 64 { } frame 89 { stop(); removeMovieClip(this); } } movieClip 1587 valueSplashB { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 64 { } frame 89 { stop(); removeMovieClip(this); } } movieClip 1588 valueSplashC { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 64 { } frame 89 { stop(); removeMovieClip(this); } } movieClip 1589 valueSplashC_SP { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 89 { stop(); removeMovieClip(this); } } movieClip 1593 { frame 1 { function updateStats() { counter = 0; strongAgainstList = []; varX = 0; while (varX <= _parent.r_baseResist.length - 1) { if (_parent.r_baseResist[varX] + _parent.r_shields[varX] > 0) { strongAgainstList[counter] = varX; ++counter; } ++varX; } counter = 0; weakAgainstList = []; varX = 0; while (varX <= _parent.r_baseResist.length - 1) { if (_parent.r_baseResist[varX] + _parent.r_shields[varX] < 0) { weakAgainstList[counter] = varX; ++counter; } ++varX; } varX = 0; while (varX <= 10) { removeMovieClip('strong' + varX); removeMovieClip('weak' + varX); ++varX; } counter = 0; varX = 0; while (varX <= strongAgainstList.length - 1) { if (strongAgainstList[varX] == 0) { attachMovie('fireShield', 'strong' + counter, counter, {'_x': 16 + counter * 25, '_y': 15}); ++counter; } if (strongAgainstList[varX] == 1) { attachMovie('iceShield', 'strong' + counter, counter, {'_x': 16 + counter * 25, '_y': 15}); ++counter; } if (strongAgainstList[varX] == 2) { attachMovie('elecShield', 'strong' + counter, counter, {'_x': 16 + counter * 25, '_y': 15}); ++counter; } if (strongAgainstList[varX] == 3) { attachMovie('beamShield', 'strong' + counter, counter, {'_x': 16 + counter * 25, '_y': 15}); ++counter; } if (strongAgainstList[varX] == 4) { attachMovie('bioShield', 'strong' + counter, counter, {'_x': 16 + counter * 25, '_y': 15}); ++counter; } if (strongAgainstList[varX] == 5) { attachMovie('meleeShield', 'strong' + counter, counter, {'_x': 16 + counter * 25, '_y': 15}); ++counter; } if (strongAgainstList[varX] == 6) { attachMovie('busterShield', 'strong' + counter, counter, {'_x': 16 + counter * 25, '_y': 15}); ++counter; } (eval('strong' + (counter - 1)))._xscale = 70; (eval('strong' + (counter - 1)))._yscale = 70; if (counter >= 6) { break; } ++varX; } counter = 0; varX = 0; while (varX <= weakAgainstList.length - 1) { if (weakAgainstList[varX] == 0) { attachMovie('fireShield', 'weak' + counter, 10 + counter, {'_x': 187 + counter * 25, '_y': 15}); ++counter; } if (weakAgainstList[varX] == 1) { attachMovie('iceShield', 'weak' + counter, 10 + counter, {'_x': 187 + counter * 25, '_y': 15}); ++counter; } if (weakAgainstList[varX] == 2) { attachMovie('elecShield', 'weak' + counter, 10 + counter, {'_x': 187 + counter * 25, '_y': 15}); ++counter; } if (weakAgainstList[varX] == 3) { attachMovie('beamShield', 'weak' + counter, 10 + counter, {'_x': 187 + counter * 25, '_y': 15}); ++counter; } if (weakAgainstList[varX] == 4) { attachMovie('bioShield', 'weak' + counter, 10 + counter, {'_x': 187 + counter * 25, '_y': 15}); ++counter; } if (weakAgainstList[varX] == 5) { attachMovie('meleeShield', 'weak' + counter, 10 + counter, {'_x': 187 + counter * 25, '_y': 15}); ++counter; } if (weakAgainstList[varX] == 6) { attachMovie('busterShield', 'weak' + counter, 10 + counter, {'_x': 187 + counter * 25, '_y': 15}); ++counter; } (eval('weak' + (counter - 1)))._xscale = 70; (eval('weak' + (counter - 1)))._yscale = 70; if (counter >= 6) { break; } ++varX; } } } } movieClip 1595 { } movieClip 1596 { } movieClip 1601 { frame 1 { function updateStatusBar() { varX = 0; while (varX <= 10) { thisClip = eval('movieClip' + varX); removeMovieClip(thisClip); ++varX; } delete thisClip; counter = 0; varX = 0; while (varX <= _parent.r_afflictions.length - 1) { affMovieClips = ['affScan', 'affPoisen', 'affCircuit', 'affBlind', 'affFrozen', 'affStun', 'affDisarm', 'affOverheat', 'affEnrage']; if (_parent.r_afflictions[varX] > 0) { attachMovie(affMovieClips[varX], 'movieClip' + varX, varX, {'_x': 0, '_y': -50 * counter}); ++counter; } ++varX; } } stop(); } } movieClip 1602 { frame 1 { function updateStatusBar() { varX = 0; while (varX <= 10) { thisClip = eval('movieClip' + varX); removeMovieClip(thisClip); ++varX; } delete thisClip; counter = 0; varX = 0; while (varX <= _parent.r_buffs.length - 1) { buffMovieClips = ['buffRegain', 'buffRecharge', 'buffHaste', 'buffODrive', 'buffOClock', 'buffAggroM']; if (_parent.r_buffs[varX] > 0) { attachMovie(buffMovieClips[varX], 'movieClip' + varX, varX, {'_x': 50 * counter, '_y': 0}); ++counter; } ++varX; } } stop(); } } movieClip 1603 { frame 1 { function updateStatusBar() { varX = 0; while (varX <= 10) { thisClip = eval('movieClip' + varX); removeMovieClip(thisClip); ++varX; } delete thisClip; counter = 0; varX = 0; while (varX <= _parent.r_shields.length - 1) { shieldMovieClips = ['fireShield', 'iceShield', 'elecShield', 'beamShield', 'bioShield', 'meleeShield', 'busterShield']; if (_parent.r_shields[varX] > 0) { attachMovie(shieldMovieClips[varX], 'movieClip' + varX, varX, {'_x': 50 * counter, '_y': 0}); ++counter; } ++varX; } } stop(); } } movieClip 1604 { frame 1 { function updateScan(scanData) { if (scanData[0] == 'Party' or scanData[0] == 'Player') { levelData = (eval('_root.chrLevel_' + scanData[1]))[0]; scanTData = eval('_root.chrTData_' + scanData[1]); scanIData = eval('_root.chrIData_' + scanData[1]); scanBData = eval('_root.chrCData_' + scanData[1]); alphaBet = ' '; r_baseResist = scanBData[14]; r_afflictions = (eval('_root.chrTData_' + scanData[1]))[3]; r_buffs = (eval('_root.chrTData_' + scanData[1]))[4]; r_shields = (eval('_root.chrTData_' + scanData[1]))[5]; } if (scanData[0] == 'Enemy') { levelData = (eval('_root.enemyTData_' + scanData[1]))[0]; scanTData = (eval('_root.enemyTData_' + scanData[1]))[1]; scanIData = eval('_root.enemyIData_' + _root.selectedEnemies[scanData[1]]); scanBData = (eval('_root.enemyBData_' + scanData[1]))[1]; alphaBet = _root.alphabetArray[scanData[1]]; r_baseResist = (eval('_root.enemyBData_' + scanData[1]))[2]; r_afflictions = (eval('_root.enemyTData_' + scanData[1]))[3]; r_buffs = (eval('_root.enemyTData_' + scanData[1]))[4]; r_shields = (eval('_root.enemyTData_' + scanData[1]))[5]; } afflictionBar.updateStatusBar(); buffBar.updateStatusBar(); shieldBar.updateStatusBar(); spText.text = 'SP: ?'; sw_MC._visible = false; if (r_afflictions[0] > 0) { sw_MC._visible = true; sw_MC.updateStats(); spText.text = 'SP: ' + scanTData[1] + '/' + scanBData[1]; } percentText.text = levelData; scanHPBar._xscale = Math.round((scanTData[0] / scanBData[0]) * 100); textName.text = scanIData[0] + ' ' + alphaBet; this._visible = true; } } frame 12 { stop(); } frame 116 { this._visible = false; gotoAndPlay('load'); } } movieClip 1605 scanMC { frame 1 { _global.scanMCLayer = this; } frame 5 { stop(); } } movieClip 1606 { frame 1 { stop(); } } movieClip 1609 affBlind { } movieClip 1612 affCircuit { } movieClip 1615 affPoisen { } movieClip 1618 affStun { } movieClip 1632 { } movieClip 1634 affFrozen { } movieClip 1637 affEnrage { } movieClip 1640 affOverheat { } movieClip 1643 affDisarm { } movieClip 1646 buffRegain { } movieClip 1648 beamShield { } movieClip 1650 bioShield { } movieClip 1652 busterShield { } movieClip 1654 elecShield { } movieClip 1656 fireShield { } movieClip 1658 iceShield { } movieClip 1660 meleeShield { } movieClip 1662 omniShield { } movieClip 1665 affScan { } movieClip 1668 buffHaste { } movieClip 1671 buffOClock { } movieClip 1674 buffODrive { } movieClip 1677 buffRecharge { } movieClip 1680 buffAggroM { } movieClip 1681 { frame 1 { stop(); } } movieClip 1682 damageExtension { frame 1 { function damageExtension(ignoreSwitch, currentLayer, dmgPercent) { iSwitch = ignoreSwitch; damagePercent = dmgPercent; if (ignoreSwitch == true) { damagePercent = 'I'; } pausedAnimation = currentLayer; _global.gamePlayLayer.gamePlay_STATE = 'PAUSE'; _global.gamePlayLayer.gate_B = false; loopCycle = 0; loopCounter = 0; enemyAliveList(); scanPlayerAlive(); if (_global.gamePlayLayer.inputData[1][0] == 'Enemy' and _global.gamePlayLayer.inputData[2][0][2] == 'All') { loopCycle = enemyAliveControlList.length - 1; } if (_global.gamePlayLayer.inputData[1][0] == 'Party' and _global.gamePlayLayer.inputData[2][0][2] == 'All') { loopCycle = partyAliveControlList.length - 1; } gotoAndPlay('playSplash'); } function enemyAliveList() { enemyAliveControlList = []; counter = 0; varX = 0; while (varX <= _root.selectedEnemies.length) { enemyTData = eval('_root.enemyTData_' + varX); if (enemyTData[1][0] > 0) { enemyAliveControlList[counter] = varX; ++counter; } ++varX; } delete counter; } function scanPlayerAlive() { partyAliveControlList = []; counter = 0; varX = 0; while (varX <= _root.party_Order.length) { tData = eval('_root.chrTData_' + _root.party_Order[varX]); if (tData[0] > 0) { partyAliveControlList[counter] = varX; ++counter; } ++varX; } delete counter; } _global.damageExtLayer = this; var cellShade = new flash.filters.GlowFilter(); cellShade.strength = 400; cellShade.color = FxFFFFFF; cellShade.blurX = _root.gameVariables[1][0][1]; cellShade.blurY = _root.gameVariables[1][0][1]; stop(); } frame 6 { if (iSwitch == true or iSwitch == 'dmgOnly') { gotoAndPlay('loop'); pausedAnimation.play(); } else { splashText = _global.gamePlayLayer.inputData[2][0][0]; splashType = _global.gamePlayLayer.inputData[2][0][7]; if (_global.gamePlayLayer.inputData[2][0][7] == 'NONE') { gotoAndPlay('loop'); pausedAnimation.play(); } if (_global.gamePlayLayer.inputData[2][0][7] == '') { splashType = 'splashIn_A'; } if (splashType == 'splashIn_A' and _global.gamePlayLayer.inputData[0][0] == 'Enemy') { splashType = 'splashIn_C'; } if (splashType == 'splashIn_A' or splashType == 'splashIn_B' or splashType == 'splashIn_C' or splashType == 'splash_PopUp') { if (splashType == 'splash_PopUp') { attachMovie(splashType, 'splashText', 9997, {'_x': 250, '_y': 200}); } else { attachMovie(splashType, 'splashText', 9997, {'_x': 400, '_y': 200}); } if (_global.gamePlayLayer.activeOn == false) { varX = 0; while (varX <= _root.party_Order.length) { (eval('_global.characterGridLayer.playrChr' + varX))._alpha = 0; ++varX; } varX = 0; while (varX <= _root.selectedEnemies.length) { (eval('_global.characterGridLayer.enemyChr' + varX))._alpha = 0; ++varX; } } if (_global.gamePlayLayer.inputData[0][0] == 'Enemy') { (eval('_global.characterGridLayer.enemyChr' + _global.gamePlayLayer.inputData[0][1]))._alpha = 100; if (_global.gamePlayLayer.inputData[1][0] == 'Party' and _global.gamePlayLayer.inputData[2][0][2] == 'Single') { (eval('_global.characterGridLayer.playrChr' + _global.gamePlayLayer.inputData[0][2]))._alpha = 100; } if (_global.gamePlayLayer.inputData[1][0] == 'Party' and _global.gamePlayLayer.inputData[2][0][2] == 'All') { varX = 0; while (varX <= _root.party_Order.length) { (eval('_global.characterGridLayer.playrChr' + varX))._alpha = 100; ++varX; } } if (_global.gamePlayLayer.inputData[1][0] == 'Enemy' and _global.gamePlayLayer.inputData[2][0][2] == 'Single') { (eval('_global.characterGridLayer.enemyChr' + _global.gamePlayLayer.inputData[1][1]))._alpha = 100; } if (_global.gamePlayLayer.inputData[1][0] == 'Enemy' and _global.gamePlayLayer.inputData[2][0][2] == 'All') { varX = 0; while (varX <= _root.selectedEnemies.length) { (eval('_global.characterGridLayer.enemyChr' + varX))._alpha = 100; ++varX; } } if (_global.gamePlayLayer.activeOn == false) { _global.backgroundLayer.gotoAndPlay('zoomInEnemy'); _global.backgroundLayer.backgroundBuffer = ['zoomInEnemy']; _global.chrGridLayer.gotoAndPlay('zoomInEnemy'); _global.chrGridLayer.gridBuffer = ['zoomInEnemy']; } } if (_global.gamePlayLayer.inputData[0][0] == 'Player') { (eval('_global.characterGridLayer.playrChr' + _global.gamePlayLayer.inputData[0][1]))._alpha = 100; if (_global.gamePlayLayer.inputData[1][0] == 'Party' and _global.gamePlayLayer.inputData[2][0][2] == 'Single') { (eval('_global.characterGridLayer.playrChr' + _global.gamePlayLayer.inputData[0][2]))._alpha = 100; } if (_global.gamePlayLayer.inputData[1][0] == 'Party' and _global.gamePlayLayer.inputData[2][0][2] == 'All') { varX = 0; while (varX <= _root.party_Order.length) { (eval('_global.characterGridLayer.playrChr' + varX))._alpha = 100; ++varX; } } if (_global.gamePlayLayer.inputData[1][0] == 'Enemy' and _global.gamePlayLayer.inputData[2][0][2] == 'Single') { (eval('_global.characterGridLayer.enemyChr' + _global.gamePlayLayer.inputData[1][1]))._alpha = 100; } if (_global.gamePlayLayer.inputData[1][0] == 'Enemy' and _global.gamePlayLayer.inputData[2][0][2] == 'All') { varX = 0; while (varX <= _root.selectedEnemies.length) { (eval('_global.characterGridLayer.enemyChr' + varX))._alpha = 100; ++varX; } } if (_global.gamePlayLayer.activeOn == false) { _global.backgroundLayer.gotoAndPlay('zoomInPlayer'); _global.backgroundLayer.backgroundBuffer = ['zoomInPlayer']; _global.chrGridLayer.gotoAndPlay('zoomInPlayer'); _global.chrGridLayer.gridBuffer = ['zoomInPlayer']; } } } } } frame 10 { stop(); } frame 11 { pausedAnimation.play(); _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.mainBattleLayer.teamSyncMC._visible = true; _global.mainBattleLayer.scanMC._visible = true; _global.mainBattleLayer.comboCounter._visible = true; _global.mainBattleLayer.mainConsoleMC._visible = true; } frame 12 { if (iSwitch == false or iSwitch == 'dmgOnly') { if (_global.gamePlayLayer.inputData[1][0] == 'Enemy' and _global.gamePlayLayer.inputData[2][0][2] == 'All') { _global.gamePlayLayer.inputData[1][1] = enemyAliveControlList[loopCounter]; } if (_global.gamePlayLayer.inputData[1][0] == 'Party' and _global.gamePlayLayer.inputData[2][0][2] == 'All') { _global.gamePlayLayer.inputData[1][1] = _root.party_Order[partyAliveControlList[loopCounter]]; _global.gamePlayLayer.inputData[0][2] = partyAliveControlList[loopCounter]; } if (iSwitch == false) { moveAnimation = 'noAnimation'; } else { moveAnimation = _global.gamePlayLayer.inputData[2][0][8][0][2]; } _global.characterGridLayer.attachMovie(moveAnimation, 'move_' + loopCounter, loopCounter, {'_x': 0, '_y': 0}); animationMC = eval('_global.characterGridLayer.move_' + loopCounter); if (_root.gameVariables[1][0][0] == true) { animationMC.filters = [cellShade]; } if (_global.gamePlayLayer.inputData[1][0] == 'Enemy') { animationMC._x = _root.enemy_formData[_global.gamePlayLayer.inputData[1][1]][3] - _root.enemy_formData[_global.gamePlayLayer.inputData[1][1]][0] / 2; animationMC._y = _root.enemy_formData[_global.gamePlayLayer.inputData[1][1]][4] + _root.enemy_formData[_global.gamePlayLayer.inputData[1][1]][1] / 2; animationMC._xscale = _root.enemy_formData[_global.gamePlayLayer.inputData[1][1]][5] / 2; animationMC._yscale = _root.enemy_formData[_global.gamePlayLayer.inputData[1][1]][5] / 2; animationMC.swapDepths(_root.enemy_formData[_global.gamePlayLayer.inputData[1][1]][2] + 2); } if (_global.gamePlayLayer.inputData[1][0] == 'Party') { animationMC._x = _root.party_formData[_global.gamePlayLayer.inputData[0][2]][3] + _root.party_formData[_global.gamePlayLayer.inputData[0][2]][0] / 2; animationMC._y = _root.party_formData[_global.gamePlayLayer.inputData[0][2]][4] + _root.party_formData[_global.gamePlayLayer.inputData[0][2]][1] / 2; animationMC._xscale = -(_root.party_formData[_global.gamePlayLayer.inputData[0][2]][5] / 2); animationMC._yscale = _root.party_formData[_global.gamePlayLayer.inputData[0][2]][5] / 2; animationMC.swapDepths(_root.party_formData[_global.gamePlayLayer.inputData[0][2]][2] + 2); } stop(); } } frame 13 { stop(); } frame 45 { ++loopCounter; if (loopCounter > loopCycle) { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; _global.gamePlayLayer.gate_B = true; stop(); } else { gotoAndPlay('loop'); } } } movieClip 1683 explode_01 { frame 1 { _global.damageExtLayer.play(); if (_root.gameVariables[0][0][3] == true) { _global.fx107.start(); } _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 9 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 48 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1684 explode_02 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx104.start(); } _global.damageExtLayer.play(); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 1 { this._x += 10; } frame 5 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 5 { this._x += 10; } frame 8 { this._x += 10; } frame 30 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1690 { frame 52 { gotoAndPlay(1); } } movieClip 1691 { frame 42 { stop(); } } movieClip 1692 healHP_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx500.start(); } _global.damageExtLayer.play(); } frame 11 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 82 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1693 healSP_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx503.start(); } _global.damageExtLayer.play(); } frame 10 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 82 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1694 regainHP_01 { frame 1 { _global.damageExtLayer.play(); if (_root.gameVariables[0][0][3] == true) { _global.fx502.start(); } } frame 10 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 82 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1699 { } movieClip 1700 chargeMC { frame 22 { stop(); } } movieClip 1720 chargeShot_01 { frame 1 { _global.damageExtLayer.play(); } frame 2 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; if (_root.gameVariables[0][0][3] == true) { _global.fx112.start(); } } frame 5 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; if (_root.gameVariables[0][0][3] == true) { _global.fx112.start(); } } frame 8 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; if (_root.gameVariables[0][0][3] == true) { _global.fx112.start(); } } frame 71 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1721 impact_noBGFX { frame 1 { _global.damageExtLayer.play(); if (_root.gameVariables[0][0][3] == true) { _global.fx104.start(); } } frame 1 { this._x += 10; } frame 5 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 5 { this._x += 10; } frame 8 { this._x += 10; } frame 30 { _global.damageExtLayer.play(); stop(); } } movieClip 1727 impact_01 { frame 1 { _global.damageExtLayer.play(); } frame 4 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; if (_root.gameVariables[0][0][3] == true) { _global.fx55.start(); } } frame 19 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1728 noAnimation { frame 1 { _global.damageExtLayer.play(); _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 19 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1729 burst_01 { frame 1 { _global.damageExtLayer.play(); if (_root.gameVariables[0][0][3] == true) { _global.fx101.start(); } if (_root.gameVariables[0][0][3] == true) { _global.fx106.start(); } _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 7 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 21 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1744 pillar_01 { frame 1 { _global.damageExtLayer.play(); if (_root.gameVariables[0][0][3] == true) { _global.fx106.start(); } if (_root.gameVariables[0][0][3] == true) { _global.fx103.start(); } } frame 33 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('flash'); _global.backgroundLayer.backgroundBuffer = ['flash']; } frame 63 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1746 { } movieClip 1759 grenades_flash { frame 7 { if (_root.gameVariables[0][0][3] == true) { _global.fx111.start(); } } frame 11 { if (_root.gameVariables[0][0][3] == true) { _global.fx111.start(); } } frame 67 { if (_root.gameVariables[0][0][3] == true) { _global.fx101.start(); } } frame 68 { _global.damageExtLayer.play(); } frame 77 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 77 { this._x += 10; } frame 81 { this._x += 10; } frame 84 { this._x += 10; } frame 123 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1774 flameThrow_01 { frame 1 { _global.damageExtLayer.play(); if (_root.gameVariables[0][0][3] == true) { _global.fx103.start(); } } frame 6 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); if (_root.gameVariables[0][0][3] == true) { _global.fx103.start(); } } frame 16 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 24 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 32 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 39 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 69 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1784 pillar_02 { frame 1 { _global.damageExtLayer.play(); if (_root.gameVariables[0][0][3] == true) { _global.fx106.start(); } if (_root.gameVariables[0][0][3] == true) { _global.fx103.start(); } } frame 22 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('flash'); _global.backgroundLayer.backgroundBuffer = ['flash']; } frame 50 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1800 iceMissle_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx304.start(); } _global.damageExtLayer.play(); } frame 36 { if (_root.gameVariables[0][0][3] == true) { _global.fx60.start(); } } frame 39 { if (_root.gameVariables[0][0][3] == true) { _global.fx55.start(); } } frame 53 { if (_root.gameVariables[0][0][3] == true) { _global.fx60.start(); } } frame 56 { if (_root.gameVariables[0][0][3] == true) { _global.fx304.start(); } } frame 64 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 82 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1817 icePillar_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx304.start(); } _global.damageExtLayer.play(); } frame 122 { if (_root.gameVariables[0][0][3] == true) { _global.fx305.start(); } if (_root.gameVariables[0][0][3] == true) { _global.fx107.start(); } } frame 146 { if (_root.gameVariables[0][0][3] == true) { _global.fx304.start(); } if (_root.gameVariables[0][0][3] == true) { _global.fx107.start(); } } frame 161 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('flash'); _global.backgroundLayer.backgroundBuffer = ['flash']; } frame 174 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1834 iceWind_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx201.start(); } _global.damageExtLayer.play(); } frame 30 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 54 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1854 tornade_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx203.start(); } _global.damageExtLayer.play(); } frame 39 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('flash'); _global.backgroundLayer.backgroundBuffer = ['flash']; } frame 70 { _global.damageExtLayer.play(); stop(); } } movieClip 1863 grenades_ice { frame 7 { if (_root.gameVariables[0][0][3] == true) { _global.fx111.start(); } } frame 11 { if (_root.gameVariables[0][0][3] == true) { _global.fx111.start(); } } frame 67 { if (_root.gameVariables[0][0][3] == true) { _global.fx101.start(); } } frame 68 { _global.damageExtLayer.play(); } frame 77 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 123 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1867 grenades_fire { frame 7 { if (_root.gameVariables[0][0][3] == true) { _global.fx111.start(); } } frame 11 { if (_root.gameVariables[0][0][3] == true) { _global.fx111.start(); } } frame 67 { if (_root.gameVariables[0][0][3] == true) { _global.fx101.start(); } } frame 68 { _global.damageExtLayer.play(); } frame 75 { this._x += 10; } frame 77 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 79 { this._x += 10; } frame 82 { this._x += 10; } frame 108 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1876 electricBall_01 { frame 1 { _global.damageExtLayer.play(); } frame 2 { if (_root.gameVariables[0][0][3] == true) { _global.fx301.start(); } } frame 7 { } frame 56 { if (_root.gameVariables[0][0][3] == true) { _global.fx302.start(); } } frame 60 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 86 { if (_root.gameVariables[0][0][3] == true) { _global.fx302.start(); } } frame 89 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('impact'); _global.backgroundLayer.backgroundBuffer = ['impact']; } frame 127 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1898 highVoltage_01 { frame 1 { _global.damageExtLayer.play(); } frame 2 { if (_root.gameVariables[0][0][3] == true) { _global.fx112.start(); } } frame 6 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); if (_root.gameVariables[0][0][3] == true) { _global.fx301.start(); } } frame 22 { _global.currentScriptLayer.damageFloater([_global.splashHolderLayer.effectsBuffer[0][1], [30]]); _global.battleBGLayer.gotoAndPlay('shakeOnce'); if (_root.gameVariables[0][0][3] == true) { _global.fx410.start(); } } frame 30 { if (_root.gameVariables[0][0][3] == true) { _global.fx410.start(); } } frame 55 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('flash'); _global.backgroundLayer.backgroundBuffer = ['flash']; } frame 71 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1911 poisen_01 { frame 1 { _global.damageExtLayer.play(); _global.backgroundPrime.backgroundBuffer = ['bioLoop']; _global.backgroundPrime.gotoAndPlay('bioLoop'); if (_root.gameVariables[0][0][3] == true) { _global.fx601.start(); } } frame 19 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); _global.backgroundLayer.gotoAndPlay('flash'); _global.backgroundLayer.backgroundBuffer = ['flash']; } frame 29 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1919 shield_01 { frame 1 { _global.damageExtLayer.play(); if (_root.gameVariables[0][0][3] == true) { _global.fx510.start(); } } frame 25 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 35 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1946 scan_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx502.start(); } _global.damageExtLayer.play(); } frame 11 { _global.gamePlayLayer.checkDamage(_global.damageExtLayer.damagePercent); } frame 82 { _global.damageExtLayer.play(); this.stop(); } } movieClip 1947 { frame 1 { stop(); } } movieClip 1950 { } movieClip 1952 { } movieClip 1956 itemMenuBattle { frame 1 { 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; } _global.itemListLayer = this; updateItemList(); iconNum = 0; --counter; attachMovie('itemIcon', 'itemIcon', 100, {'_x': -150, '_y': 130}); _global.battleSelectorLayer.helpBar.helpText.text = _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') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --iconNum; if (iconNum < 0) { iconNum = counter; } _global.battleSelectorLayer.helpBar.helpText.text = _root.tempList[iconNum][0]; itemIcon._y = 130 + iconNum * 16.5; } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++iconNum; if (iconNum > counter) { iconNum = 0; } _global.battleSelectorLayer.helpBar.helpText.text = _root.tempList[iconNum][0]; itemIcon._y = 130 + iconNum * 16.5; } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } _global.battleSelectorLayer.useItem = [true, _root.tempList[iconNum][3]]; _parent.itemMenuBattle._visible = false; Key.removeListener(itemSelect_Listener); _global.battleSelectorLayer.cmdType = _root.tempList[iconNum][2]; _parent.checkTargets(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); } }; Key.addListener(itemSelect_Listener); } frame 12 { stop(); } frame 13 { _global.fx4.start(); Key.removeListener(itemSelect_Listener); Key.addListener(_parent.subSelector_Listener); _parent.checkSubSel(); removeMovieClip(this); } frame 16 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 1959 itemIcon { } movieClip 1960 { frame 1 { stop(); } } movieClip 1961 valueSplashD { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 64 { } frame 89 { stop(); removeMovieClip(this); } } movieClip 1962 valueSplashE { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 64 { } frame 89 { stop(); removeMovieClip(this); } } movieClip 1963 valueSplashD_SP { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 89 { stop(); removeMovieClip(this); } } movieClip 1964 valueSplashE_SP { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 89 { stop(); removeMovieClip(this); } } movieClip 1965 valueSplashD_Heal { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 90 { stop(); removeMovieClip(this); } } movieClip 1966 valueSplashE_Heal { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 90 { stop(); removeMovieClip(this); } } movieClip 1967 valueSplashA_SP { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 89 { stop(); removeMovieClip(this); } } movieClip 1968 valueSplashB_SP { frame 1 { valueText.text = _root.valueTotal; valueText2.text = _root.valueTotal2; } frame 89 { stop(); removeMovieClip(this); } } movieClip 1969 { frame 1 { stop(); } } movieClip 1973 { } // unknown tag 88 length 197 movieClip 1977 texta { frame 1 { txtBox.text = _parent._parent.splashText; } } movieClip 1984 splashIn_A { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx11.start(); } } frame 35 { if (_root.gameVariables[0][0][3] == true) { _global.x12.start(); } } frame 69 { _parent.play(); stop(); } } movieClip 1993 splashIn_B { frame 30 { if (_root.gameVariables[0][0][3] == true) { _global.fx12.start(); } } frame 63 { _parent.play(); stop(); } } movieClip 2002 splashIn_C { frame 29 { if (_root.gameVariables[0][0][3] == true) { _global.fx12.start(); } } frame 63 { _parent.play(); stop(); } } movieClip 2011 splashIn_Support { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx11.start(); } } frame 35 { if (_root.gameVariables[0][0][3] == true) { _global.fx12.start(); } } frame 69 { _parent.play(); stop(); } } movieClip 2012 { frame 1 { stop(); } } movieClip 2013 { } movieClip 2014 { } movieClip 2015 { instance nextBtn of movieClip 2014 { } frame 30 { stop(); } } movieClip 2017 { } movieClip 2021 { } movieClip 2022 { frame 1 { currentLine = 0; attachMovie(_global.convoPic, 'convoPic', 0, {'_x': 0, '_y': 0}); stop(); } } movieClip 2025 { frame 1 { stop(); } frame 32 { _global.fx411.start(); } frame 37 { _parent.gotoAndPlay('textLoop'); stop(); } frame 38 { _parent.textMC._visible = false; _parent.nextBtn._visible = false; } frame 50 { _parent.gotoAndPlay('finished'); gotoAndStop(1); } frame 51 { _parent.textMC._visible = false; _parent.nextBtn._visible = false; } frame 63 { gotoAndStop(1); } } movieClip 2027 { } movieClip 2029 textBoxMC { frame 1 { function textBox(speechPack) { _global.gamePlayLayer.gate_D = false; speechData = speechPack; currentCharacter = speechPack[currentDialog][0][0]; currentExpression = speechPack[currentDialog][0][1]; _global.convoPic = 'chr' + currentCharacter + '_' + currentExpression; updateText(); textScrollListener = new Object(); textScrollListener.onKeyDown = function () { if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } gotoAndStop('stopLoop'); } }; textNextListener = new Object(); textNextListener.onKeyDown = function () { if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } gotoAndPlay('nextLoop'); Key.removeListener(textNextListener); } }; } function updateText() { if (speechData[currentDialog][1][0] == 'TEXT') { textMC.newText.text = speechData[currentDialog][2][0]; currentScreen = 0; totalLetterCount = speechData[currentDialog][2][0].length; maxScreen = Math.ceil(totalLetterCount / 108) - 1; maxDialogs = speechData.length - 1; textBoxFrame.gotoAndPlay('start'); gotoAndPlay('start'); nextBtn._visible = false; } } currentDialog = 0; _global.textBoxMC_Map = this; nextBtn._visible = false; stop(); } frame 9 { stop(); } frame 10 { Key.addListener(textScrollListener); textMC._y = 4 + currentScreen * -42; textMC._visible = true; } frame 30 { Key.removeListener(textScrollListener); Key.addListener(textNextListener); nextBtn._visible = true; nextBtn.gotoAndPlay('start'); stop(); } frame 31 { if (currentScreen >= maxScreen) { ++currentDialog; if (currentDialog > maxDialogs) { textBoxFrame.gotoAndPlay('close'); } else { textBoxFrame.gotoAndPlay('nextClose'); updateText(); } stop(); } else { nextBtn._visible = false; ++currentScreen; gotoAndPlay('textLoop'); } } frame 49 { if (_root.gameVariables[2][0][1] == false) { Key.removeListener(_global.gamePlayLayer.menuWheel_Listener); Key.addListener(_global.gamePlayLayer.menuWheel_Listener); } _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; gotoAndStop(1); _global.gamePlayLayer.gate_D = true; } } movieClip 2030 { frame 1 { stop(); } } movieClip 2032 { } movieClip 2033 victorySplashMovie { frame 1 { _global.victoryLayer = 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; } _global.gamePlayLayer.gamePlay_STATE = 'STOP'; } frame 38 { _global.gamePlayLayer.gamePlay_STATE = 'STOP'; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; } frame 40 { _global.gamePlayLayer.gamePlay_STATE = 'STOP'; levelUpArray = []; newItemArray = []; levelCounter = 0; totalXP = 0; totalSP = 0; if (_parent.fleeOn == false) { varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyIData = eval('_root.enemyIData_' + _root.selectedEnemies[varX]); totalXP += enemyIData[4][0]; totalSP += enemyIData[4][1]; ++varX; } if (_root.currentForm[0][0] == 0) { totalXP = Math.round(totalXP + totalXP * 0.05); } } if (_parent.fleeOn == true) { varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyIData = eval('_root.enemyIData_' + _root.selectedEnemies[varX]); totalXP += 0; totalSP += 0; ++varX; } } counter = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { levelData = eval('_root.chrLevel_' + _root.party_Order[varX]); levelData[1] += totalXP; currentLevel = levelData[0]; neededXP = levelData[0] * 100; currentXP = levelData[1]; if (currentXP > neededXP) { levelUpArray[levelCounter] = _root.party_Order[varX]; ++levelData[0]; levelData[1] = Math.abs(levelData[1] - neededXP); ++counter; ++levelCounter; } ++varX; } varX = 0; while (varX <= _root.party_Order.length - 1) { bcData = eval('_root.chrBCData_' + _root.party_Order[varX]); sxpList = eval('_root.chrSXPList_' + _root.party_Order[varX]); readAll = bcData.length - 1; slot = 0; while (slot <= readAll) { lastSlot = bcData[slot].length - 1; sxpList[bcData[slot][lastSlot][2]] += totalSP; ++slot; } ++varX; } counter = 0; varX = 0; while (varX <= _root.selectedEnemies.length - 1) { enemyIData = eval('_root.enemyIData_' + _root.selectedEnemies[varX]); varZ = 0; while (varZ <= enemyIData[5].length - 1) { randomNum = Math.round(Math.random() * 100); spoil_TYPE = enemyIData[5][varZ][0]; spoil_SLOTID = enemyIData[5][varZ][1]; spoil_NUM = enemyIData[5][varZ][2]; spoil_PERCENT = enemyIData[5][varZ][3]; if (randomNum <= spoil_PERCENT) { if (spoil_TYPE == 'ITEM') { _root.itemListData[spoil_NUM] += spoil_NUM; newItemArray[counter] = [(eval('_root.item_' + spoil_NUM))[0], spoil_NUM, spoil_TYPE]; ++counter; } if (spoil_TYPE == 'HEAD') { _root.listHead[spoil_NUM] += spoil_NUM; newItemArray[counter] = [(eval('_root.WpnHead' + spoil_NUM))[0], spoil_NUM, spoil_TYPE]; ++counter; } if (spoil_TYPE == 'BUSTER') { _root.listBuster[spoil_NUM] += spoil_NUM; newItemArray[counter] = [(eval('_root.WpnBuster' + spoil_NUM))[0], spoil_NUM, spoil_TYPE]; ++counter; } if (spoil_TYPE == 'MELEE') { _root.listMelee[spoil_NUM] += spoil_NUM; newItemArray[counter] = [(eval('_root.WpnMelee' + spoil_NUM))[0], spoil_NUM, spoil_TYPE]; ++counter; } if (spoil_TYPE == 'ARMOR') { _root.listArmor[spoil_NUM] += spoil_NUM; newItemArray[counter] = [(eval('_root.WpnArmor' + spoil_NUM))[0], spoil_NUM, spoil_TYPE]; ++counter; } if (spoil_TYPE == 'LEG') { _root.listLeg[spoil_NUM] += spoil_NUM; newItemArray[counter] = [(eval('_root.WpnLeg' + spoil_NUM))[0], spoil_NUM, spoil_TYPE]; ++counter; } if (spoil_TYPE == 'TRINKET') { _root.listTrinket[spoil_NUM] += spoil_NUM; newItemArray[counter] = [(eval('_root.WpnTrinket' + spoil_NUM))[0], spoil_NUM, spoil_TYPE]; ++counter; } } ++varZ; } ++varX; } _root.checkNewTechs(); _root.updateBCData(); } frame 43 { _parent.fleeOn = true; if (_parent.fleeOn) { attachMovie('missionClearClip', 'clearClip', 0, {'_x': 0, '_y': 0}); } else { attachMovie('fleeClearClip', 'clearClip', 0, {'_x': 0, '_y': 0}); } } frame 47 { stop(); } frame 51 { attachMovie('xpPoints', 'xpPoints', 30, {'_x': 0, '_y': 0}); } frame 56 { stop(); } frame 57 { removeMovieClip(xpPoints); } frame 60 { if (_root.learnedNewTech.length > 0) { attachMovie('techPoints', 'techPoints', 40, {'_x': 0, '_y': 0}); stop(); } else { gotoAndPlay('items'); } } frame 70 { if (newItemArray.length > 0) { attachMovie('earnItemMC', 'earnItemMC', 40, {'_x': 0, '_y': 0}); stop(); } else { gotoAndPlay('cleared'); } } frame 82 { removeMovieClip(xpPoints); removeMovieClip(techPoints); removeMovieClip(earnItemMC); _global.fx2.start(); clearClip.gotoAndPlay('close'); stop(); delete totalXP; delete totalSP; } frame 128 { _global.mapDataLayer.endBattle('VICTORY'); removeMovieClip(_root.battleHolder); stop(); } } movieClip 2038 earnItemMC { frame 11 { newItemText.text = _global.victoryLayer.newItemArray[_global.victoryLayer.newItemArray.length - 1][0] + ' x' + _global.victoryLayer.newItemArray[_global.victoryLayer.newItemArray.length - 1][1]; nameText.text = _global.victoryLayer.newItemArray[_global.victoryLayer.newItemArray.length - 1][2]; _global.victoryLayer.newItemArray.pop(); if (_root.gameVariables[0][0][3] == true) { _global.fx820.start(); } } frame 46 { if (_global.victoryLayer.newItemArray.length <= 0) { _parent.play(); stop(); } if (_global.victoryLayer.newItemArray.length >= 1) { gotoAndPlay('moveLoop'); } } } movieClip 2039 fleeClearClip { frame 18 { if (_root.gameVariables[0][0][3] == true) { _global.fx44.start(); } } frame 73 { _parent.play(); stop(); } frame 92 { _parent.play(); stop(); } } movieClip 2041 fadeOutSplash { frame 1 { stop(); } frame 130 { _global.mapDataLayer.endBattle('DEFEATED'); removeMovieClip(_root.battleHolder); stop(); stop(); } } movieClip 2042 { frame 1 { stop(); } } movieClip 2043 { frame 1 { _global.mainBattleLayer = this; attachMovie('backgroundHolderPrime', 'backgroundHolderPrime', 0, {'_x': 0, '_y': 0}); attachMovie('mainConsoleMC', 'mainConsoleMC', 100, {'_x': 0, '_y': 0}); attachMovie('gridHolder', 'gridHolder', 200, {'_x': 0, '_y': 0}); attachMovie('teamSyncMC', 'teamSyncMC', 250, {'_x': 240, '_y': 15}); attachMovie('damageExtension', 'damageExtension', 270, {'_x': 0, '_y': 0}); attachMovie('gamePlayMC', 'gamePlayMC', 300, {'_x': 0, '_y': 0}); attachMovie('scanMC', 'scanMC', 350, {'_x': 5, '_y': 545}); scanMC._visible = false; attachMovie('comboCounter', 'comboCounter', 375, {'_x': 45, '_y': 45}); attachMovie('timingPopUpMC', 'timingPopUpMC', 385, {'_x': 50, '_y': 150}); attachMovie('textBoxMC', 'textBoxMC', 405, {'_x': 230, '_y': 240}); attachMovie('fadeOutSplash', 'fadeOutSplash', 500, {'_x': 0, '_y': 0}); } frame 12 { stop(); } } movieClip 2044 battleHolder { frame 1 { this._xscale = _root.gameResolution[0]; this._yscale = _root.gameResolution[0]; this._x = _root.gameResolution[1]; this._y = _root.gameResolution[2]; } frame 10 { stop(); } } movieClip 2045 { } movieClip 2049 { frame 31 { stop(); } } movieClip 2050 { frame 53 { stop(); } } movieClip 2051 battleSplashIntro { frame 1 { _global.splashIntroLayer = this; } frame 10 { attachMovie('readyClipFinal', 'splashClip', 0, {'_x': 0, '_y': 0}); } frame 22 { stop(); } frame 47 { _parent.gamePlay_STATE = 'PLAY'; } frame 48 { _parent.play(); removeMovieClip(_parent.battleSplashIntro); stop(); } } movieClip 2052 { frame 1 { stop(); } frame 9 { stop(); } } movieClip 2082 { frame 13 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 14 { _global.gamePlayLayer.checkAniBuffer(this); } frame 44 { _global.gamePlayLayer.checkAniBuffer(this); } frame 61 { _global.gamePlayLayer.assignAnimation(this, 'injuryLoop'); } frame 89 { _global.gamePlayLayer.checkAniBuffer(this); } frame 105 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 111 { _global.gamePlayLayer.checkAniBuffer(this); } frame 117 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 118 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 123 { _global.gamePlayLayer.moveForMelee(this); } frame 128 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 133 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 142 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 143 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 145 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 70); } else { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } } frame 190 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 192 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 192 { _global.gamePlayLayer.gate_C = true; } frame 198 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 199 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 207 { _global.gamePlayLayer.moveForMelee(this); } frame 216 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 223 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 229 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 229 { _global.gamePlayLayer.gate_C = true; } frame 238 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 239 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 244 { _global.gamePlayLayer.moveForBuster(this); } frame 247 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 253 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 265 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 274 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 70); } else { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } } frame 287 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 289 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 289 { _global.gamePlayLayer.gate_C = true; } frame 310 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 316 { _global.gamePlayLayer.checkAniBuffer(this); } frame 336 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 340 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 343 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 359 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 365 { _global.gamePlayLayer.checkAniBuffer(this); } frame 373 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 373 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 374 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 387 { _global.gamePlayLayer.moveForBuster(this); } frame 393 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 402 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 411 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 417 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 418 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 429 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 436 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 440 { _global.gamePlayLayer.checkAniBuffer(this); } frame 440 { _global.gamePlayLayer.gate_C = true; } frame 446 { _global.gamePlayLayer.gate_C = false; } frame 456 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 467 { _global.gamePlayLayer.checkAniBuffer(this); } frame 467 { _global.gamePlayLayer.gate_C = true; } frame 478 { _global.gamePlayLayer.moveToNormal(this); } frame 495 { _global.gamePlayLayer.checkAniBuffer(this); } frame 517 { _global.gamePlayLayer.checkAniBuffer(this); } frame 532 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 535 { _global.gamePlayLayer.checkAniBuffer(this); } frame 551 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 554 { _global.gamePlayLayer.checkAniBuffer(this); } frame 562 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_E = false; } frame 563 { } frame 599 { if (_root.gameVariables[0][0][3] == true) { _global.fx800.start(); } } frame 605 { if (_root.gameVariables[0][0][3] == true) { _global.fx800.start(); } } frame 609 { if (_root.gameVariables[0][0][3] == true) { _global.fx800.start(); } } frame 719 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 735 { stop(); } frame 735 { --_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.gate_E = true; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } } frame 744 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 745 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 752 { _global.gamePlayLayer.moveForBuster(this); _global.backgroundPrime.gotoAndPlay('darkTint'); _global.backgroundPrime.backgroundBuffer = ['darkTint']; } frame 759 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 768 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 776 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 781 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 787 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 797 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 800 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 800 { _global.gamePlayLayer.gate_C = true; } } movieClip 2083 enemyChr_0 { } movieClip 2104 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx101.start(); } } frame 1 { this._x += 10; } frame 5 { this._x += 10; } frame 8 { if (_root.gameVariables[0][0][3] == true) { _global.fx102.start(); } } frame 8 { this._x += 10; } frame 28 { stop(); } } movieClip 2107 { frame 19 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 20 { _global.gamePlayLayer.checkAniBuffer(this); } frame 50 { _global.gamePlayLayer.checkAniBuffer(this); } frame 67 { _global.gamePlayLayer.assignAnimation(this, 'injuryLoop'); } frame 95 { _global.gamePlayLayer.checkAniBuffer(this); } frame 111 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 117 { _global.gamePlayLayer.checkAniBuffer(this); } frame 128 { _global.gamePlayLayer.moveForMelee(this); } frame 133 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 138 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 147 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 148 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 153 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 157 { if (_global.gamePlayLayer.timerSwitch == true) { gotoAndPlay('melee_end'); } } frame 165 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 175 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 177 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 183 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 184 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 191 { _global.gamePlayLayer.moveForMelee(this); } frame 200 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 208 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 213 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 218 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 219 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 223 { } frame 226 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 232 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 244 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 254 { _global.damageExtLayer.damageExtension('dmgOnly', this, 125); } frame 268 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 281 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 281 { _global.gamePlayLayer.gate_C = true; } frame 314 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 320 { _global.gamePlayLayer.checkAniBuffer(this); } frame 339 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 348 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 351 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 369 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 375 { _global.gamePlayLayer.checkAniBuffer(this); } frame 383 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 383 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 384 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 392 { _global.gamePlayLayer.moveForBuster(this); } frame 397 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 408 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 412 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 418 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 419 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 430 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 437 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 441 { _global.gamePlayLayer.checkAniBuffer(this); } frame 441 { _global.gamePlayLayer.gate_C = true; } frame 447 { _global.gamePlayLayer.gate_C = false; } frame 457 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 468 { _global.gamePlayLayer.checkAniBuffer(this); } frame 468 { _global.gamePlayLayer.gate_C = true; } frame 474 { _global.gamePlayLayer.moveToNormal(this); } frame 494 { _global.gamePlayLayer.checkAniBuffer(this); } frame 516 { _global.gamePlayLayer.checkAniBuffer(this); } frame 528 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 531 { _global.gamePlayLayer.checkAniBuffer(this); } frame 543 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 546 { _global.gamePlayLayer.checkAniBuffer(this); } frame 554 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_E = false; } frame 555 { } frame 639 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 675 { stop(); } frame 675 { --_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.gate_E = true; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } } frame 684 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 685 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 692 { _global.gamePlayLayer.moveForBuster(this); _global.backgroundPrime.gotoAndPlay('darkTint'); _global.backgroundPrime.backgroundBuffer = ['darkTint']; } frame 699 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 708 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 716 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 721 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 729 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 732 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 735 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } } movieClip 2108 enemyChr_1 { } movieClip 2123 { } movieClip 2124 { } movieClip 2151 { frame 19 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 20 { _global.gamePlayLayer.checkAniBuffer(this); } frame 49 { _global.gamePlayLayer.checkAniBuffer(this); } frame 63 { _global.gamePlayLayer.assignAnimation(this, 'injuryLoop'); } frame 90 { _global.gamePlayLayer.checkAniBuffer(this); } frame 106 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 112 { _global.gamePlayLayer.checkAniBuffer(this); } frame 118 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 119 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 123 { _global.gamePlayLayer.moveForMelee(this); } frame 128 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 133 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 142 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 143 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 149 { _global.damageExtLayer.damageExtension('dmgOnly', this, 10); } frame 175 { _global.damageExtLayer.damageExtension('dmgOnly', this, 90); } frame 200 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 202 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 202 { _global.gamePlayLayer.gate_C = true; } frame 208 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 209 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 218 { _global.gamePlayLayer.moveForMelee(this); } frame 226 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 232 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 235 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 240 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 241 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 246 { _global.gamePlayLayer.moveForBuster(this); } frame 249 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 255 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 267 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 294 { _global.damageExtLayer.damageExtension('dmgOnly', this, 125); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 337 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 338 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 338 { _global.gamePlayLayer.gate_C = true; } frame 360 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 366 { _global.gamePlayLayer.checkAniBuffer(this); } frame 390 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 400 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 403 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 419 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 425 { _global.gamePlayLayer.checkAniBuffer(this); } frame 433 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 433 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 434 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 447 { _global.gamePlayLayer.moveForBuster(this); } frame 455 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 467 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 476 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 482 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 483 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 503 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 522 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 526 { _global.gamePlayLayer.checkAniBuffer(this); } frame 526 { _global.gamePlayLayer.gate_C = true; } frame 532 { _global.gamePlayLayer.gate_C = false; } frame 553 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 576 { _global.gamePlayLayer.checkAniBuffer(this); } frame 576 { _global.gamePlayLayer.gate_C = true; } frame 585 { _global.gamePlayLayer.moveToNormal(this); } frame 603 { _global.gamePlayLayer.checkAniBuffer(this); } frame 626 { _global.gamePlayLayer.checkAniBuffer(this); } frame 641 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 644 { _global.gamePlayLayer.checkAniBuffer(this); } frame 660 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 663 { _global.gamePlayLayer.checkAniBuffer(this); } frame 671 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_E = false; } frame 672 { } frame 735 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 752 { stop(); } frame 752 { --_global.gamePlayLayer.defeatCount; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } _global.gamePlayLayer.gate_E = true; } } movieClip 2152 enemyChr_3 { } movieClip 2179 { frame 16 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 17 { _global.gamePlayLayer.checkAniBuffer(this); } frame 46 { _global.gamePlayLayer.checkAniBuffer(this); } frame 60 { _global.gamePlayLayer.assignAnimation(this, 'injuryLoop'); } frame 88 { _global.gamePlayLayer.checkAniBuffer(this); } frame 104 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 110 { _global.gamePlayLayer.checkAniBuffer(this); } frame 116 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 117 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 121 { _global.gamePlayLayer.moveForMelee(this); } frame 126 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 131 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 140 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 141 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 147 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 166 { if (_global.gamePlayLayer.timerSwitch == true) { gotoAndPlay('melee_end'); } } frame 185 { _global.damageExtLayer.damageExtension('dmgOnly', this, 40); } frame 217 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 219 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 219 { _global.gamePlayLayer.gate_C = true; } frame 225 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 226 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 235 { _global.gamePlayLayer.moveForMelee(this); } frame 243 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 249 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 252 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 263 { _global.gamePlayLayer.moveForBuster(this); } frame 266 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 272 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 284 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 289 { _global.damageExtLayer.damageExtension('dmgOnly', this, 125); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 297 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 308 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 330 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 336 { _global.gamePlayLayer.checkAniBuffer(this); } frame 359 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 369 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 372 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 388 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 394 { _global.gamePlayLayer.checkAniBuffer(this); } frame 402 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 402 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 403 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 416 { _global.gamePlayLayer.moveForBuster(this); } frame 424 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 436 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 445 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 451 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 452 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 465 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 475 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 479 { _global.gamePlayLayer.checkAniBuffer(this); } frame 479 { _global.gamePlayLayer.gate_C = true; } frame 485 { _global.gamePlayLayer.gate_C = false; } frame 498 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 512 { _global.gamePlayLayer.checkAniBuffer(this); } frame 512 { _global.gamePlayLayer.gate_C = true; } frame 521 { _global.gamePlayLayer.moveToNormal(this); } frame 542 { _global.gamePlayLayer.checkAniBuffer(this); } frame 568 { _global.gamePlayLayer.checkAniBuffer(this); } frame 583 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 586 { _global.gamePlayLayer.checkAniBuffer(this); } frame 602 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 605 { _global.gamePlayLayer.checkAniBuffer(this); } frame 613 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_E = false; } frame 614 { } frame 719 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 736 { stop(); } frame 736 { --_global.gamePlayLayer.defeatCount; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } _global.gamePlayLayer.gate_E = true; } } movieClip 2180 enemyChr_2 { } movieClip 2210 { frame 6 { if (_root.gameVariables[0][0][3] == true) { _global.fx411.start(); } } frame 11 { _global.fx202.start(); } frame 42 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 43 { _global.gamePlayLayer.checkAniBuffer(this); } frame 86 { _global.gamePlayLayer.checkAniBuffer(this); } frame 131 { _global.gamePlayLayer.checkAniBuffer(this); } frame 147 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 153 { _global.gamePlayLayer.checkAniBuffer(this); } frame 159 { _global.gamePlayLayer.gate_C = false; } frame 178 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 192 { _global.gamePlayLayer.moveForMelee(this); } frame 194 { if (_root.gameVariables[0][0][3] == true) { _global.fx411.start(); } } frame 195 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 201 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 216 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 217 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 224 { if (_root.gameVariables[0][0][3] == true) { _global.fx301.start(); } } frame 227 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 235 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.gamePlayLayer.timerSwitch = false; } } frame 240 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 251 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 251 { _global.gamePlayLayer.gate_C = true; } frame 257 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 258 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 269 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 280 { _global.gamePlayLayer.moveForMelee(this); } frame 281 { if (_root.gameVariables[0][0][3] == true) { _global.fx406.start(); } } frame 294 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 311 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 321 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 321 { _global.gamePlayLayer.gate_C = true; } frame 326 { _global.gamePlayLayer.gate_C = false; } frame 345 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 358 { _global.gamePlayLayer.moveForBuster(this); } frame 361 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 361 { if (_root.gameVariables[0][0][3] == true) { _global.fx301.start(); } } frame 367 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 380 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 394 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 407 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.gamePlayLayer.timerSwitch = false; } } frame 420 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 431 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 431 { _global.gamePlayLayer.gate_C = true; } frame 458 { if (_root.gameVariables[0][0][3] == true) { _global.fx50.start(); } } frame 468 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 474 { _global.gamePlayLayer.checkAniBuffer(this); } frame 479 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 480 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 489 { if (_root.gameVariables[0][0][3] == true) { _global.fx409.start(); } } frame 503 { if (_root.gameVariables[0][0][3] == true) { _global.fx302.start(); } } frame 517 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 541 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 544 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 544 { _global.gamePlayLayer.gate_C = true; } frame 578 { if (_root.gameVariables[0][0][3] == true) { _global.fx50.start(); } } frame 589 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 595 { _global.gamePlayLayer.checkAniBuffer(this); } frame 603 { _global.fx50.start(); } frame 603 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 604 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 616 { if (_root.gameVariables[0][0][3] == true) { _global.fx202.start(); } } frame 630 { _global.gamePlayLayer.moveForBuster(this); } frame 650 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 692 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 701 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 701 { _global.gamePlayLayer.gate_C = true; } frame 707 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 708 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 715 { if (_root.gameVariables[0][0][3] == true) { _global.fx61.start(); } } frame 726 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 738 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 742 { _global.gamePlayLayer.checkAniBuffer(this); } frame 742 { _global.gamePlayLayer.gate_C = true; } frame 748 { _global.gamePlayLayer.gate_C = false; } frame 751 { if (_root.gameVariables[0][0][3] == true) { _global.fx61.start(); } } frame 769 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 773 { _global.gamePlayLayer.checkAniBuffer(this); } frame 773 { _global.gamePlayLayer.gate_C = true; } frame 784 { _global.gamePlayLayer.moveToNormal(this); } frame 802 { _global.gamePlayLayer.checkAniBuffer(this); } frame 825 { _global.gamePlayLayer.checkAniBuffer(this); } frame 840 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 843 { _global.gamePlayLayer.checkAniBuffer(this); } frame 849 { if (_root.gameVariables[0][0][3] == true) { _global.fx32.start(); } } frame 859 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 862 { _global.gamePlayLayer.checkAniBuffer(this); } frame 870 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_E = false; } frame 871 { _global.backgroundPrime.backgroundBuffer = ['bossKill']; _global.backgroundPrime.gotoAndPlay('bossKill'); } frame 888 { _global.gamePlayLayer.gamePlay_STATE = 'PAUSE'; _global.backgroundPrime.backgroundBuffer = ['bossKill']; _global.backgroundPrime.gotoAndPlay('bossKill'); } frame 959 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 992 { stop(); } frame 992 { --_global.gamePlayLayer.defeatCount; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } _global.gamePlayLayer.gate_E = true; } frame 1001 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); _global.gamePlayLayer.gate_C = false; } frame 1002 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 1009 { _global.fx408.start(); } frame 1031 { _global.gamePlayLayer.moveForBuster(this); } frame 1036 { _global.fx203.start(); } frame 1048 { _global.backgroundLayer.backgroundBuffer = ['impactLoop']; _global.backgroundLayer.gotoAndPlay('impactLoop'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1048 { _global.fx107.start(); } frame 1065 { _global.damageExtLayer.damageExtension('dmgOnly', this, 10); } frame 1108 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; } frame 1122 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 1129 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } frame 1185 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 1188 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 1189 { _global.gamePlayLayer.gate_C = true; } } movieClip 2211 91_Sigma { } movieClip 2302 { frame 72 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 73 { _global.gamePlayLayer.checkAniBuffer(this); } frame 116 { _global.gamePlayLayer.checkAniBuffer(this); } frame 161 { _global.gamePlayLayer.checkAniBuffer(this); } frame 177 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 183 { _global.gamePlayLayer.checkAniBuffer(this); } frame 189 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 190 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 210 { _global.gamePlayLayer.moveForMelee(this); } frame 212 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 215 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 225 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 226 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 234 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 242 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.gamePlayLayer.timerSwitch = false; } } frame 247 { _global.damageExtLayer.damageExtension('dmgOnly', this, 25); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 281 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 283 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 283 { _global.gamePlayLayer.gate_C = true; } frame 289 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 290 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 312 { _global.gamePlayLayer.moveForMelee(this); } frame 326 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 343 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 353 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 358 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 359 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 381 { _global.gamePlayLayer.moveForBuster(this); } frame 384 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 387 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 395 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 406 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 419 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.gamePlayLayer.timerSwitch = false; } } frame 432 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 443 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 443 { _global.gamePlayLayer.gate_C = true; } frame 480 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 486 { _global.gamePlayLayer.checkAniBuffer(this); } frame 529 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 553 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 556 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 601 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 607 { _global.gamePlayLayer.checkAniBuffer(this); } frame 615 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 615 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 616 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 642 { _global.gamePlayLayer.moveForBuster(this); } frame 662 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 719 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 728 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 734 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 735 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 751 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 755 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 759 { _global.gamePlayLayer.checkAniBuffer(this); } frame 759 { _global.gamePlayLayer.gate_C = true; } frame 765 { _global.gamePlayLayer.gate_C = false; } frame 786 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 790 { _global.gamePlayLayer.checkAniBuffer(this); } frame 790 { _global.gamePlayLayer.gate_C = true; } frame 801 { _global.gamePlayLayer.moveToNormal(this); } frame 819 { _global.gamePlayLayer.checkAniBuffer(this); } frame 842 { _global.gamePlayLayer.checkAniBuffer(this); } frame 857 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 860 { _global.gamePlayLayer.checkAniBuffer(this); } frame 876 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 879 { _global.gamePlayLayer.checkAniBuffer(this); } frame 887 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_E = false; } frame 888 { _global.backgroundPrime.backgroundBuffer = ['bossKill']; _global.backgroundPrime.gotoAndPlay('bossKill'); } frame 1044 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 1077 { stop(); } frame 1077 { --_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.gate_E = true; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } } frame 1086 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 1087 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 1115 { _global.gamePlayLayer.moveForBuster(this); } frame 1120 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1144 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1178 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1214 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1253 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 1256 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 1256 { _global.gamePlayLayer.gate_C = true; } } movieClip 2303 92_YellowDevil { } movieClip 2391 { frame 62 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 63 { _global.gamePlayLayer.checkAniBuffer(this); } frame 106 { _global.gamePlayLayer.checkAniBuffer(this); } frame 151 { _global.gamePlayLayer.checkAniBuffer(this); } frame 167 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 173 { _global.gamePlayLayer.checkAniBuffer(this); } frame 179 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 180 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 184 { _global.gamePlayLayer.moveForMelee(this); } frame 189 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 194 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 203 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 204 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 214 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 227 { if (_global.gamePlayLayer.timerSwitch == true) { gotoAndPlay('melee_end'); } } frame 237 { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 267 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 269 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 275 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 276 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 298 { _global.gamePlayLayer.moveForMelee(this); } frame 312 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 329 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 339 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 344 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 345 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 350 { _global.gamePlayLayer.moveForBuster(this); } frame 353 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 359 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 371 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 381 { _global.damageExtLayer.damageExtension('dmgOnly', this, 125); _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 397 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 408 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 445 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 451 { _global.gamePlayLayer.checkAniBuffer(this); } frame 456 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 457 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 494 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 518 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 521 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 548 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 554 { _global.gamePlayLayer.checkAniBuffer(this); } frame 562 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 562 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 563 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 576 { _global.gamePlayLayer.moveForBuster(this); } frame 589 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 625 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 634 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 640 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 641 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 657 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 692 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 696 { _global.gamePlayLayer.checkAniBuffer(this); } frame 723 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 758 { _global.gamePlayLayer.checkAniBuffer(this); } frame 769 { _global.gamePlayLayer.moveToNormal(this); } frame 787 { _global.gamePlayLayer.checkAniBuffer(this); } frame 810 { _global.gamePlayLayer.checkAniBuffer(this); } frame 825 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 828 { _global.gamePlayLayer.checkAniBuffer(this); } frame 844 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 847 { _global.gamePlayLayer.checkAniBuffer(this); } frame 855 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_C = false; } frame 856 { _global.backgroundPrime.backgroundBuffer = ['bossKill']; _global.backgroundPrime.gotoAndPlay('bossKill'); } frame 873 { _global.gamePlayLayer.gamePlay_STATE = 'PAUSE'; _global.backgroundPrime.backgroundBuffer = ['bossKill']; _global.backgroundPrime.gotoAndPlay('bossKill'); } frame 1027 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 1080 { stop(); } frame 1080 { --_global.gamePlayLayer.defeatCount; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } } frame 1089 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 1090 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 1097 { _global.gamePlayLayer.moveForBuster(this); _global.backgroundPrime.gotoAndPlay('darkTint'); _global.backgroundPrime.backgroundBuffer = ['darkTint']; } frame 1104 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1125 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1133 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1138 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1160 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1237 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 1240 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } } movieClip 2392 93_MegaClone { } movieClip 2399 { } movieClip 2403 { } movieClip 2419 { } movieClip 2424 { } movieClip 2444 { frame 24 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 25 { _global.gamePlayLayer.checkAniBuffer(this); } frame 47 { _global.gamePlayLayer.checkAniBuffer(this); } frame 92 { _global.gamePlayLayer.checkAniBuffer(this); } frame 107 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 113 { _global.gamePlayLayer.checkAniBuffer(this); } frame 119 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 120 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 124 { _global.gamePlayLayer.moveForMelee(this); } frame 129 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 134 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 143 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 144 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 154 { if (_global.gamePlayLayer.timerSwitch == false) { _global.damageExtLayer.damageExtension('dmgOnly', this, 120); } else { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } } frame 195 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 197 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 203 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 204 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 208 { _global.gamePlayLayer.moveForMelee(this); } frame 214 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 221 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 227 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 232 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 233 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 236 { _global.fx202.start(); } frame 245 { _global.gamePlayLayer.moveForBuster(this); } frame 248 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 254 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 266 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 276 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 80); } else { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } } frame 280 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 50); } else { _global.damageExtLayer.damageExtension('dmgOnly', this, 70); } } frame 285 { if (_global.gamePlayLayer.timerSwitch == true) { _global.damageExtLayer.damageExtension('dmgOnly', this, 20); } else { _global.damageExtLayer.damageExtension('dmgOnly', this, 40); } } frame 290 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 291 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 300 { _global.fx404.start(); } frame 313 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 319 { _global.gamePlayLayer.checkAniBuffer(this); } frame 324 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 325 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 326 { _global.fx409.start(); } frame 362 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 394 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 397 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 415 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 421 { _global.gamePlayLayer.checkAniBuffer(this); } frame 429 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 429 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 430 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 437 { _global.gamePlayLayer.moveForBuster(this); } frame 441 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 446 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 452 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 458 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 459 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 475 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 510 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 514 { _global.gamePlayLayer.checkAniBuffer(this); } frame 541 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 576 { _global.gamePlayLayer.checkAniBuffer(this); } frame 587 { _global.gamePlayLayer.moveToNormal(this); } frame 605 { _global.gamePlayLayer.checkAniBuffer(this); } frame 628 { _global.gamePlayLayer.checkAniBuffer(this); } frame 645 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 648 { _global.gamePlayLayer.checkAniBuffer(this); } frame 667 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 670 { _global.gamePlayLayer.checkAniBuffer(this); } frame 678 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_C = false; } frame 679 { _global.backgroundPrime.backgroundBuffer = ['bossKill']; _global.backgroundPrime.gotoAndPlay('bossKill'); } frame 702 { _global.gamePlayLayer.gamePlay_STATE = 'PAUSE'; _global.backgroundPrime.backgroundBuffer = ['bossKill']; _global.backgroundPrime.gotoAndPlay('bossKill'); } frame 845 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 898 { stop(); } frame 898 { --_global.gamePlayLayer.defeatCount; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } } frame 907 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 908 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 915 { _global.gamePlayLayer.moveForBuster(this); _global.backgroundPrime.gotoAndPlay('darkTint'); _global.backgroundPrime.backgroundBuffer = ['darkTint']; } frame 922 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 943 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 951 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 956 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 978 { _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 1055 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 1058 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } } movieClip 2445 94_ProtoClone { } movieClip 2446 mainChr_9 { } movieClip 2466 { } movieClip 2482 { frame 16 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 17 { _global.gamePlayLayer.checkAniBuffer(this); } frame 46 { _global.gamePlayLayer.checkAniBuffer(this); } frame 60 { _global.gamePlayLayer.assignAnimation(this, 'injuryLoop'); } frame 88 { _global.gamePlayLayer.checkAniBuffer(this); } frame 104 { _global.gamePlayLayer.assignAnimation(this, 'readyLoop'); } frame 110 { _global.gamePlayLayer.checkAniBuffer(this); } frame 116 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 117 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 121 { _global.gamePlayLayer.moveForMelee(this); } frame 126 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 131 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 140 { Key.removeListener(_global.gamePlayLayer.inBattleListener); } frame 141 { if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 147 { if (_global.gamePlayLayer.timerSwitch == false) { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } else { _global.damageExtLayer.damageExtension('dmgOnly', this, 70); } } frame 170 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 172 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 172 { _global.gamePlayLayer.gate_C = true; } frame 178 { _global.damageExtLayer.damageExtension(false, this, 0); stop(); } frame 179 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 188 { _global.gamePlayLayer.moveForMelee(this); } frame 196 { _global.damageExtLayer.damageExtension('dmgOnly', this, 0); _global.fx55.start(); } frame 202 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 205 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 210 { _global.damageExtLayer.damageExtension(false, this, 0); _global.gamePlayLayer.gate_C = false; stop(); } frame 211 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 216 { _global.gamePlayLayer.moveForBuster(this); } frame 219 { Key.addListener(_global.gamePlayLayer.inBattleListener); Key.addListener(_global.gamePlayLayer.inBattleCancel); } frame 225 { Key.removeListener(_global.gamePlayLayer.inBattleCancel); } frame 237 { Key.removeListener(_global.gamePlayLayer.inBattleListener); if (_global.gamePlayLayer.timerSwitch == true) { _global.mainBattleLayer.timingPopUpMC.popupText(); } } frame 242 { if (_global.gamePlayLayer.timerSwitch == false) { _global.damageExtLayer.damageExtension('dmgOnly', this, 105); } else { _global.damageExtLayer.damageExtension('dmgOnly', this, 90); } _global.backgroundLayer.backgroundBuffer = ['impact']; _global.backgroundLayer.gotoAndPlay('impact'); } frame 250 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 281 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); _global.gamePlayLayer.timerSwitch = false; } frame 281 { _global.gamePlayLayer.gate_C = true; } frame 303 { _global.gamePlayLayer.assignAnimation(this, 'energyLoop'); } frame 309 { _global.gamePlayLayer.checkAniBuffer(this); } frame 332 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 342 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 345 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 361 { _global.gamePlayLayer.assignAnimation(this, 'shotLoop'); } frame 367 { _global.gamePlayLayer.checkAniBuffer(this); } frame 375 { _global.currentScriptLayer.stop(); _global.comboCounterLayer.stop(); _global.fx50.start(); } frame 375 { _global.damageExtLayer.damageExtension(false, this, 100); stop(); } frame 376 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 389 { _global.gamePlayLayer.moveForBuster(this); } frame 397 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); stop(); } frame 409 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 418 { _global.gamePlayLayer.moveToNormal(this); _global.gamePlayLayer.checkAniBuffer(this); } frame 424 { _global.damageExtLayer.damageExtension(false, this, 100); _global.gamePlayLayer.gate_C = false; stop(); } frame 425 { _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; } frame 442 { _global.damageExtLayer.damageExtension('dmgOnly', this, 100); } frame 448 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 452 { _global.gamePlayLayer.checkAniBuffer(this); } frame 452 { _global.gamePlayLayer.gate_C = true; } frame 458 { _global.gamePlayLayer.gate_C = false; } frame 476 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 485 { _global.gamePlayLayer.checkAniBuffer(this); } frame 485 { _global.gamePlayLayer.gate_C = true; } frame 494 { _global.gamePlayLayer.moveToNormal(this); } frame 515 { _global.gamePlayLayer.checkAniBuffer(this); } frame 541 { _global.gamePlayLayer.checkAniBuffer(this); } frame 556 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 559 { _global.gamePlayLayer.checkAniBuffer(this); } frame 575 { _global.gamePlayLayer.assignAnimation(this, 'standing'); } frame 578 { _global.gamePlayLayer.checkAniBuffer(this); } frame 586 { ++_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.defeatSwitch = true; _global.backgroundLayer.gotoAndPlay('normal'); _global.backgroundLayer.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); _global.backgroundPrime.backgroundBuffer = ['normal']; _global.chrGridLayer.gotoAndPlay('normal'); _global.chrGridLayer.gridBuffer = ['normal']; _global.gamePlayLayer.gate_E = false; } frame 587 { } frame 681 { if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.backgroundPrime.backgroundBuffer = ['normal']; _global.backgroundPrime.gotoAndPlay('normal'); } } frame 709 { stop(); } frame 709 { --_global.gamePlayLayer.defeatCount; _global.gamePlayLayer.gate_E = true; if (_global.gamePlayLayer.defeatCount == 0) { _global.gamePlayLayer.defeatSwitch = false; } if (_global.gamePlayLayer.gamePlay_STATE != 'STOP') { _global.gamePlayLayer.gamePlay_STATE = 'PLAY'; } } } movieClip 2483 enemyChr_101 { } movieClip 2484 enemyChr_102 { } movieClip 2485 enemyChr_103 { } movieClip 2486 { frame 1 { stop(); } } movieClip 2490 timingPopUpMC { frame 1 { function popupText() { if (_root.gameVariables[0][0][3] == true) { _global.fx32.start(); } popUpText.text = 'PERFECT TIMING!'; gotoAndPlay('start'); } stop(); } frame 58 { popUpText.text = ''; } } movieClip 2492 TauntCmd { } movieClip 2494 IntimCmd { } movieClip 2495 bossKillExplosion_01 { frame 1 { if (_root.gameVariables[0][0][3] == true) { _global.fx104.start(); } } frame 48 { this.stop(); } } movieClip 2496 { frame 1 { stop(); } } movieClip 2497 { frame 1 { stop(); } } movieClip 2500 menuIcon { } movieClip 2502 { frame 1 { stop(); } } movieClip 2505 { } movieClip 2506 { } movieClip 2509 { } movieClip 2510 { } movieClip 2511 { frame 1 { function onEnterFrame() { helpText.text = _global.displayHelpText; } } } movieClip 2522 { } movieClip 2526 { } movieClip 2528 { } movieClip 2529 noChip { frame 1 { stop(); } frame 10 { play(); } frame 49 { stop(); } } movieClip 2538 chipMovie { } movieClip 2539 { } movieClip 2540 { } movieClip 2543 { frame 1 { function checkSub() { if (wheelNum == 0) { _global.displayHelpText = 'Check or use items from your inventory.'; wheelText.text = 'ITEMS'; } if (wheelNum == 1) { _global.displayHelpText = 'View or utilize your existing skills.'; wheelText.text = 'SKILLS'; } if (wheelNum == 2) { _global.displayHelpText = 'Change out your weapons and armor.'; wheelText.text = 'EQUIPMENT'; } if (wheelNum == 3) { _global.displayHelpText = 'Change out your battle chips.'; wheelText.text = 'BATTLECHIPS'; } if (wheelNum == 4) { _global.displayHelpText = 'Change party formations and battle tactics.'; wheelText.text = 'FORMATION'; } if (wheelNum == 5) { _global.displayHelpText = 'Review current objectives.'; wheelText.text = 'OBJECTIVES'; } if (wheelNum == 6) { _global.displayHelpText = 'Check game statistics and achievements.'; wheelText.text = 'ACHIEVEMENTS'; } if (wheelNum == 7) { _global.displayHelpText = 'Alter game mechanics and video settings.'; wheelText.text = 'OPTIONS'; } if (wheelNum == 8) { _global.displayHelpText = 'Save your game. Useable only at save stations.'; wheelText.text = 'SAVE GAME'; } menuBar._x = -248 + wheelNum * 35; moneyText.text = 'PAUSED [$] ' + _global.newDollars; } _global.wheelMenuLayer = this; wheelNum = 0; menuWheel_Listener = new Object(); menuWheel_Listener.onKeyDown = function () { if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++wheelNum; if (wheelNum > 8) { wheelNum = 0; } checkSub(); } if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '40' or Key.getAscii() == '50') { if (firstMove == true) { wheelDir = 'R'; oldWheelDir = wheelDir; firstMove = false; wheelNum = 8; } if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --wheelNum; if (wheelNum < 0) { wheelNum = 8; } checkSub(); } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } Key.removeListener(menuWheel_Listener); if (_root.saveOn == undefined) { _root.saveOn = false; } if (wheelNum == 8) { if (_root.saveOn == true) { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } Key.removeListener(menuWheel_Listener); gotoAndPlay('close'); } else { if (_root.gameVariables[0][0][3] == true) { _global.fx9.start(); } ++_root.gamePlay_Stats[6][0]; _root.scanForAchievements(); Key.addListener(menuWheel_Listener); } } else { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } Key.removeListener(menuWheel_Listener); gotoAndPlay('close'); } } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _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); checkSub(); } frame 3 { if (wheelBuffer.length > 0) { menuWheel.gotoAndPlay(wheelBuffer[0]); wheelBuffer.shift(); } } frame 10 { gotoAndPlay('loop'); } frame 19 { _global.wheelMenuLayer._alpha = 50; if (wheelNum == 0) { _global.menuMainLayer.gotoAndPlay('items'); } if (wheelNum == 1) { _global.menuMainLayer.gotoAndPlay('useSkill'); } if (wheelNum == 2) { _global.menuMainLayer.gotoAndPlay('changeGear'); } if (wheelNum == 3) { _global.menuMainLayer.gotoAndPlay('changeBC'); } if (wheelNum == 4) { _global.menuMainLayer.gotoAndPlay('changeForm'); } if (wheelNum == 5) { _global.menuMainLayer.gotoAndPlay('objectives'); } if (wheelNum == 6) { _global.menuMainLayer.gotoAndPlay('achievements'); } if (wheelNum == 7) { _global.menuMainLayer.gotoAndPlay('options'); } if (wheelNum == 8) { _global.menuMainLayer.gotoAndPlay('saveLoad'); } stop(); } } movieClip 2547 { } movieClip 2549 { } movieClip 2551 { } movieClip 2563 { } // unknown tag 88 length 208 movieClip 2571 { } movieClip 2572 { frame 1 { function updateStatus() { box0._visible = false; box1._visible = false; box2._visible = false; 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)).currentXP.text = 'XP: ' + levelData[1]; (eval('box' + varX)).nextlvlXP.text = 'NEXT: ' + levelData[0] * 100; (eval('box' + varX)).attachMovie(iData[4], 'portraitPic', 0, {'_x': -90, '_y': -28.5}); ++varX; } if (_root.support_Party[0][0] !== 'NONE') { iData = eval('_root.chrIData_' + _root.support_Party[0][0]); tData = eval('_root.chrTData_' + _root.support_Party[0][0]); cData = eval('_root.chrCData_' + _root.support_Party[0][0]); levelData = eval('_root.chrLevel_' + _root.support_Party[0][0]); boxS.attachMovie(iData[4], 'portraitPic', 0, {'_x': 9, '_y': 12.5}); boxS.name_S.text = iData[0]; boxS.level_S.text = 'Lvl: ' + levelData[0]; boxS.thp_S.text = 'HP: ' + tData[0]; boxS.tsp_S.text = 'SP: ' + tData[1]; } else { boxS.attachMovie('noSupport', 'portraitPic', 0, {'_x': 9, '_y': 12.5}); boxS.name_S.text = 'None'; boxS.level_S.text = ' '; boxS.thp_S.text = ' '; boxS.tsp_S.text = ' '; } } _global.characterStatusLayer = this; _global.characterStatusLayer.updateStatus(); } frame 9 { stop(); } frame 13 { stop(); } frame 21 { stop(); } } movieClip 2576 { frame 12 { _parent.play(); stop(); } } movieClip 2577 { } movieClip 2578 { } movieClip 2581 { frame 1 { stop(); } frame 2 { 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; } _global.itemListLayer = this; updateItemList(); iconNum = 0; --counter; attachMovie('menuIcon', 'menuIcon', 100, {'_x': -150, '_y': 130}); _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') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --iconNum; if (iconNum < 0) { iconNum = counter; } _global.displayHelpText = _root.tempList[iconNum][0]; if (_root.tempList[iconNum][0] == undefined) { _global.displayHelpText = ''; } menuIcon._y = 130 + iconNum * 16.5; } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++iconNum; if (iconNum > counter) { iconNum = 0; } _global.displayHelpText = _root.tempList[iconNum][0]; if (_root.tempList[iconNum][0] == undefined) { _global.displayHelpText = ''; } menuIcon._y = 130 + iconNum * 16.5; } if (Key.getCode() == '32') { _global.fx1.start(); inARow = 0; if (_root.tempList[iconNum][2][5][0] == 'itemHP' or _root.tempList[iconNum][2][5][0] == 'itemSP' or _root.tempList[iconNum][2][5][0] == 'revive') { Key.removeListener(itemSelect_Listener); Key.addListener(chrSelect_Listener); chrNum = 0; attachMovie('menuIcon', 'menuIcon2', 110, {'_x': 140, '_y': 60}); } } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _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') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } inARow = 0; --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') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } inARow = 0; ++chrNum; if (chrNum > _root.party_Order.length - 1) { chrNum = 0; } menuIcon2._y = 60 + chrNum * 135; } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } removeMovieClip(menuIcon2); Key.removeListener(chrSelect_Listener); Key.addListener(itemSelect_Listener); } if (Key.getCode() == '32') { ++inARow; tData = eval('_root.chrTData_' + _root.party_Order[chrNum]); cData = eval('_root.chrCData_' + _root.party_Order[chrNum]); if (_root.tempList[iconNum][2][5][0] == 'itemHP') { if (tData[0] > 0) { if (_root.gameVariables[0][0][3] == true) { _global.fx500.start(); } tData[0] += _root.tempList[iconNum][2][5][1][0][0]; tData[0] += Math.round(cData[0] * (_root.tempList[iconNum][2][5][1][0][1] / 100)); _root.checkTData(); _global.characterStatusLayer.updateStatus(); --_root.itemListData[_root.tempList[iconNum][3]]; if (_root.itemListData[_root.tempList[iconNum][3]] <= 0) { updateItemList(); removeMovieClip(menuIcon2); Key.removeListener(chrSelect_Listener); Key.addListener(itemSelect_Listener); iconNum = 0; menuIcon._y = 130 + iconNum * 16.5; _global.displayHelpText = _root.tempList[iconNum][0]; } updateItemList(); } else { _global.fx9.start(); } } if (_root.tempList[iconNum][2][5][0] == 'itemSP') { if (tData[1] > 0) { _global.fx500.start(); tData[1] += _root.tempList[iconNum][2][5][1][0][0]; tData[1] += Math.round(cData[1] * (_root.tempList[iconNum][2][5][1][0][1] / 100)); _root.checkTData(); _global.characterStatusLayer.updateStatus(); --_root.itemListData[_root.tempList[iconNum][3]]; _root.gamePlay_Stats[7][0] = inARow; _root.scanForAchievements(); if (_root.itemListData[_root.tempList[iconNum][3]] <= 0) { updateItemList(); removeMovieClip(menuIcon2); Key.removeListener(chrSelect_Listener); Key.addListener(itemSelect_Listener); iconNum = 0; menuIcon._y = 130 + iconNum * 16.5; _global.displayHelpText = _root.tempList[iconNum][0]; } updateItemList(); } else { _global.fx9.start(); } } if (_root.tempList[iconNum][2][5][0] == 'revive') { if (tData[0] <= 0) { _global.fx500.start(); tData[0] += _root.tempList[iconNum][2][5][1][0][0]; tData[0] += Math.round(cData[0] * (_root.tempList[iconNum][2][5][1][0][1] / 100)); _root.checkTData(); _global.characterStatusLayer.updateStatus(); --_root.itemListData[_root.tempList[iconNum][3]]; if (_root.itemListData[_root.tempList[iconNum][3]] <= 0) { updateItemList(); removeMovieClip(menuIcon2); Key.removeListener(chrSelect_Listener); Key.addListener(itemSelect_Listener); iconNum = 0; menuIcon._y = 130 + iconNum * 16.5; _global.displayHelpText = _root.tempList[iconNum][0]; } updateItemList(); } else { _global.fx9.start(); } } } }; Key.addListener(itemSelect_Listener); } frame 13 { stop(); } frame 14 { _global.fx4.start(); Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 17 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2583 { } movieClip 2592 { frame 1 { stop(); } frame 8 { stop(); } } movieClip 2593 { frame 1 { function onEnterFrame() { if (_global.useSkillListLayer.skillCat == 0) { catIcon._x = 40; catIcon._y = 0; } if (_global.useSkillListLayer.skillCat == 1) { catIcon._x = 20; catIcon._y = 100; } if (_global.useSkillListLayer.skillCat == 2) { catIcon._x = 0; catIcon._y = 200; } } } } movieClip 2594 { } movieClip 2599 { frame 1 { _global.techListLayer = this; } frame 10 { function refreshTech() { skillList = eval('_root.chrSkillList_' + _root.party_Order[_global.useSkillListLayer.chrNum]); cData = eval('_root.chrCData_' + _root.party_Order[_global.useSkillListLayer.chrNum]); tData = eval('_root.chrTData_' + _root.party_Order[_global.useSkillListLayer.chrNum]); iData = eval('_root.chrIData_' + _root.party_Order[_global.useSkillListLayer.chrNum]); techList.text = ''; costList.text = ''; userName.text = iData[0]; userSP.text = 'SP: ' + tData[1]; counter = 0; varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (_global.useSkillListLayer.skillCat == 0) { if (skillType == 'H') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][5][4] + '\r'; ++counter; } } if (_global.useSkillListLayer.skillCat == 1) { if (skillType == 'A') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][5][4] + '\r'; ++counter; } } if (_global.useSkillListLayer.skillCat == 2) { if (skillType == 'E' or skillType == 'T') { techList.text += skillList[varX][0][0] + '\r'; costList.text += skillList[varX][0][5][4] + '\r'; ++counter; } } ++varX; } if (counter == 0) { techList.text = 'None'; costList.text = '---'; counter = 1; } boxList._yscale = counter * 100 + 75 - counter * 15; } newVarX = 0; refreshTech(); } frame 21 { stop(); } frame 31 { gotoAndStop('load'); } } movieClip 2600 { frame 1 { stop(); } frame 2 { function updateTechDescription() { chrCasting = _root.party_Order[chrNum]; counter = 0; skillList = eval('_root.chrSkillList_' + chrCasting); varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (skillCat == 0) { if (skillType == 'H') { _root.tempList[counter] = skillList[varX]; ++counter; } } if (skillCat == 1) { if (skillType == 'A') { _root.tempList[counter] = skillList[varX]; ++counter; } } if (skillCat == 2) { if (skillType == 'T' or skillType == 'E') { _root.tempList[counter] = skillList[varX]; ++counter; } } ++varX; } techDescription = _root.tempList[techNum][0][11]; if (counter == 0) { techDescription = 'You have no skills available.'; } _global.displayHelpText = techDescription; } function updateIconCopy() { chrCasting = _root.party_Order[chrNum]; counter = 0; skillList = eval('_root.chrSkillList_' + chrCasting); varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (skillType == 'H') { _root.tempList[counter] = skillList[varX]; ++counter; } ++varX; } trgtAllorSingle = _root.tempList[techNum][0][2]; if (trgtAllorSingle == 'Single' or trgtAllorSingle == 'Revive') { varX = 0; while (varX <= 0) { duplicateMovieClip(menuIcon, 'confirmIcon' + varX, 10 + varX); (eval('confirmIcon' + varX))._x = 150; (eval('confirmIcon' + varX))._y = 60 + varX * 135; ++varX; } } if (trgtAllorSingle == 'All') { varX = 0; while (varX <= _root.party_Order.length - 1) { duplicateMovieClip(menuIcon, 'confirmIcon' + varX, 10 + varX); (eval('confirmIcon' + varX))._x = 150; (eval('confirmIcon' + varX))._y = 60 + varX * 135; ++varX; } } } function healSubRoutine(castedOn) { tDataTrgt = eval('_root.chrTData_' + castedOn); cDataCaster = eval('_root.chrCData_' + chrCasting); tDataCaster = eval('_root.chrTData_' + chrCasting); subtractMana = false; if (manaType == 'healHP' and tDataTrgt[0] > 0 and tDataCaster[1] - manaCost >= 0) { tDataTrgt[0] += techCasted[5][1][0][0]; tDataTrgt[0] += Math.round(cDataCaster[0] * (techCasted[5][1][0][1] / 100)); subtractMana = true; } if (manaType == 'revive' and tDataTrgt[0] <= 0 and tDataCaster[1] - manaCost >= 0) { tDataTrgt[0] += techCasted[5][1][0][0]; tDataTrgt[0] += Math.round(cDataCaster[0] * (techCasted[5][1][0][1] / 100)); subtractMana = true; } } _global.useSkillListLayer = this; chrNum = 0; --counter; skillCat = 0; attachMovie('menuIcon', 'menuIcon', 100, {'_x': 150, '_y': 60}); chrSelect_Listener = new Object(); chrSelect_Listener.onKeyDown = function () { _global.displayHelpText = 'Select a character.'; if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --chrNum; if (chrNum < 0) { chrNum = _root.party_Order.length - 1; } menuIcon._y = 60 + chrNum * 135; _global.techListLayer.refreshTech(); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++chrNum; if (chrNum > _root.party_Order.length - 1) { chrNum = 0; } menuIcon._y = 60 + chrNum * 135; _global.techListLayer.refreshTech(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } removeMovieClip(menuIcon); Key.removeListener(chrSelect_Listener); gotoAndPlay('close'); } if (Key.getCode() == '32' or Key.getCode() == '37' or Key.getAscii() == '52') { tDataCaster = eval('_root.chrTData_' + _root.party_Order[chrNum]); if (tDataCaster[0] > 0) { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } Key.removeListener(chrSelect_Listener); Key.addListener(techSelect_Listener); techNum = 0; menuIcon._x = -150; menuIcon._y = 138.5 + techNum * 17.5; updateTechDescription(); } else { _global.displayHelpText = 'That character is not functional.'; } } }; techSelect_Listener = new Object(); techSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --techNum; if (techNum < 0) { techNum = _global.techListLayer.counter - 1; } menuIcon._y = 138.5 + techNum * 17.5; updateTechDescription(); } if (Key.getCode() == '37' or Key.getAscii() == '52') { Key.removeListener(techSelect_Listener); Key.addListener(catSelect_Listener); _global.techListLayer.catOptions.catIcon.gotoAndPlay('active'); menuIcon._visible = false; _global.displayHelpText = 'Press the [UP] OR [DOWN] key to change catagories. Note: you can only use healing skills. '; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++techNum; if (techNum > _global.techListLayer.counter - 1) { techNum = 0; } menuIcon._y = 138.5 + techNum * 17.5; updateTechDescription(); } if (Key.getCode() == '8' or Key.getCode() == '39' or Key.getAscii() == '54') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } Key.removeListener(techSelect_Listener); Key.addListener(chrSelect_Listener); menuIcon._x = 150; menuIcon._y = 60 + chrNum * 135; _global.displayHelpText = 'Select a character.'; } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } confirmNum = 0; updateIconCopy(); Key.removeListener(techSelect_Listener); Key.addListener(confirmChr_Listener); } }; confirmChr_Listener = new Object(); confirmChr_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --confirmNum; if (confirmNum < 0) { confirmNum = _root.party_Order.length - 1; } if (trgtAllorSingle == 'Single' or trgtAllorSingle == 'Revive') { confirmIcon0._y = 60 + confirmNum * 135; } } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++confirmNum; if (confirmNum > _root.party_Order.length - 1) { confirmNum = 0; } if (trgtAllorSingle == 'Single' or trgtAllorSingle == 'Revive') { confirmIcon0._y = 60 + confirmNum * 135; } } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } varX = 0; while (varX <= _root.party_Order.length - 1) { removeMovieClip(eval('confirmIcon' + varX)); ++varX; } Key.removeListener(confirmChr_Listener); Key.addListener(techSelect_Listener); } if (Key.getCode() == '32') { if (skillCat == 0) { chrCasting = _root.party_Order[chrNum]; castedOn = _root.party_Order[confirmNum]; counter = 0; skillList = eval('_root.chrSkillList_' + chrCasting); varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (skillType == 'H') { _root.tempList[counter] = skillList[varX]; ++counter; } ++varX; } techCasted = _root.tempList[techNum][0]; manaCost = techCasted[5][4]; manaType = techCasted[5][0]; trgtAllorSingle = _root.tempList[techNum][0][2]; if (trgtAllorSingle == 'Single') { healSubRoutine(castedOn); } if (trgtAllorSingle == 'All') { varX = 0; while (varX <= _root.party_Order.length - 1) { healSubRoutine(varX); ++varX; } } if (subtractMana == true) { tDataCaster[1] -= manaCost; _root.checkTData(); _global.characterStatusLayer.updateStatus(); } else {} } _global.techListLayer.refreshTech(); delete tDataCaster; delete dDataCaster; delete tDataTrgt; delete skillList; delete varX; delete chrCasting; delete castedOn; delete techCasted; delete manaCost; delete manaType; } }; catSelect_Listener = new Object(); catSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --skillCat; if (skillCat < 0) { skillCat = 2; } _global.techListLayer.refreshTech(); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++skillCat; if (skillCat > 2) { skillCat = 0; } _global.techListLayer.refreshTech(); } if (Key.getCode() == '8' or Key.getCode() == '39' or Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } techNum = 0; menuIcon._visible = true; menuIcon._y = 138.5 + techNum * 17.5; Key.addListener(techSelect_Listener); Key.removeListener(catSelect_Listener); _global.techListLayer.catOptions.catIcon.gotoAndPlay('idol'); updateTechDescription(); } }; Key.addListener(chrSelect_Listener); } frame 13 { stop(); } frame 14 { _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 17 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2655 { } movieClip 2664 { } movieClip 2665 { frame 69 { stop(); } } movieClip 2667 { frame 57 { stop(); } } movieClip 2669 { frame 60 { stop(); } } movieClip 2671 { frame 66 { stop(); } } movieClip 2673 { frame 75 { stop(); } } movieClip 2675 { frame 64 { stop(); } } movieClip 2677 { frame 1 { function highlightPart(partNum) { varX = 0; while (varX <= gearArray.length - 1) { (eval(gearArray[varX]))._alpha = 20; ++varX; } if (partNum == 'A') { varX = 0; while (varX <= gearArray.length - 1) { (eval(gearArray[varX]))._alpha = 100; ++varX; } } else { (eval(gearArray[partNum]))._alpha = 100; } } _global.gearEquipPicture = this; gearArray = ['gearMelee', 'gearBuster', 'gearBody', 'gearLegs', 'gearHead', 'gearTrinket']; highlightPart('A'); } } movieClip 2680 { frame 1 { function updateGear(who, cat, viewState) { aData = eval('_root.chrAData_' + _root.party_Order[who]); wData = eval('_root.chrWData_' + _root.party_Order[who]); sData = eval('_root.chrSData_' + _root.party_Order[who]); cData = eval('_root.chrCData_' + _root.party_Order[who]); iData = eval('_root.chrIData_' + _root.party_Order[who]); meleeStats = eval('_root.WpnMelee' + wData[0]); busterStats = eval('_root.WpnBuster' + wData[1]); armorStats = eval('_root.WpnArmor' + wData[2]); legStats = eval('_root.WpnLeg' + wData[3]); headStats = eval('_root.WpnHead' + wData[4]); trinketStats = eval('_root.WpnTrinket' + wData[5]); chrName.text = iData[0]; title1.text = 'STATS: (TOTAL / from GEAR)'; title2.text = ''; wpn1Text.text = meleeStats[0]; oldWpn1 = meleeStats[0]; wpn2Text.text = busterStats[0]; oldWpn2 = busterStats[0]; bodyText.text = armorStats[0]; oldBody = armorStats[0]; legText.text = legStats[0]; oldLeg = legStats[0]; headText.text = headStats[0]; oldHead = headStats[0]; trinketText.text = trinketStats[0]; oldTrin = trinketStats[0]; if (viewState == 'TOTAL') { hpText.text = cData[0]; spText.text = cData[1]; strText.text = Math.round(cData[2]); agiText.text = Math.round(cData[6]); ethText.text = Math.round(cData[3]); defText.text = Math.round(cData[4]); eDefText.text = Math.round(cData[5]); luckText.text = Math.round(cData[7]); resistText.text = Math.round(cData[8]); powerText.text = Math.round(cData[9]); rangedText.text = Math.round(cData[10]); focusText.text = Math.round(cData[11]); chipTotalText.text = cData[12]; hpText2.text = '[' + aData[0] + ']'; spText2.text = '[' + aData[1] + ']'; strText2.text = '[' + Math.round(aData[2]) + ']'; agiText2.text = '[' + Math.round(aData[6]) + ']'; ethText2.text = '[' + Math.round(aData[3]) + ']'; defText2.text = '[' + Math.round(aData[4]) + ']'; eDefText2.text = '[' + Math.round(aData[5]) + ']'; luckText2.text = '[' + Math.round(aData[7]) + ']'; resistText2.text = '[' + Math.round(aData[8]) + ']'; powerText2.text = '[' + Math.round(aData[9]) + ']'; rangedText2.text = '[' + Math.round(aData[10]) + ']'; focusText2.text = '[' + Math.round(aData[11]) + ']'; chipTotalText2.text = '[' + aData[12] + ']'; checkColor(aData[0], 'hpText2'); checkColor(aData[1], 'spText2'); checkColor(aData[2], 'strText2'); checkColor(aData[6], 'agiText2'); checkColor(aData[3], 'ethText2'); checkColor(aData[4], 'defText2'); checkColor(aData[5], 'eDefText2'); checkColor(aData[7], 'luckText2'); checkColor(aData[8], 'resistText2'); checkColor(aData[9], 'powerText2'); checkColor(aData[10], 'rangedText2'); checkColor(aData[11], 'focusText2'); checkColor(aData[12], 'chipTotalText2'); chipTotalText.text = cData[12]; } if (viewState == 'ITEM') { if (cat == 0) { _root.tempData = eval('_root.WpnMelee' + wData[0]); } if (cat == 1) { _root.tempData = eval('_root.WpnBuster' + wData[1]); } if (cat == 2) { _root.tempData = eval('_root.WpnArmor' + wData[2]); } if (cat == 3) { _root.tempData = eval('_root.WpnLeg' + wData[3]); } if (cat == 4) { _root.tempData = eval('_root.WpnHead' + wData[4]); } if (cat == 5) { _root.tempData = eval('_root.WpnTrinket' + wData[5]); } title1.text = _root.tempData[0]; hpText.text = _root.tempData[1]; spText.text = _root.tempData[2]; strText.text = Math.round(_root.tempData[3]); agiText.text = Math.round(_root.tempData[7]); ethText.text = Math.round(_root.tempData[4]); defText.text = Math.round(_root.tempData[5]); eDefText.text = Math.round(_root.tempData[6]); luckText.text = Math.round(_root.tempData[8]); resistText.text = Math.round(_root.tempData[9]); powerText.text = Math.round(_root.tempData[10]); rangedText.text = Math.round(_root.tempData[11]); focusText.text = Math.round(_root.tempData[12]); chipTotalText.text = _root.tempData[13]; oldName = _root.tempData[0]; oldHP = _root.tempData[1]; oldSP = _root.tempData[2]; oldStr = Math.round(_root.tempData[3]); oldAgi = Math.round(_root.tempData[7]); oldEth = Math.round(_root.tempData[4]); oldDef = Math.round(_root.tempData[5]); oldEDef = Math.round(_root.tempData[6]); oldLuk = Math.round(_root.tempData[8]); oldResist = Math.round(_root.tempData[9]); oldPower = Math.round(_root.tempData[10]); oldRange = Math.round(_root.tempData[11]); oldFocus = Math.round(_root.tempData[12]); oldChip = Math.round(_root.tempData[13]); hpText2.text = ''; spText2.text = ''; strText2.text = ''; agiText2.text = ''; ethText2.text = ''; defText2.text = ''; eDefText2.text = ''; luckText2.text = ''; resistText2.text = ''; powerText2.text = ''; rangedText2.text = ''; focusText2.text = ''; chipTotalText2.text = ''; } } function checkGear(whatNum, cat) { if (cat == 0) { _root.tempData = eval('_root.WpnMelee' + whatNum); } if (cat == 1) { _root.tempData = eval('_root.WpnBuster' + whatNum); } if (cat == 2) { _root.tempData = eval('_root.WpnArmor' + whatNum); } if (cat == 3) { _root.tempData = eval('_root.WpnLeg' + whatNum); } if (cat == 4) { _root.tempData = eval('_root.WpnHead' + whatNum); } if (cat == 5) { _root.tempData = eval('_root.WpnTrinket' + whatNum); } title1.text = oldName + ' vs ' + _root.tempData[0]; hpText2.text = _root.tempData[1]; spText2.text = _root.tempData[2]; strText2.text = Math.round(_root.tempData[3]); agiText2.text = Math.round(_root.tempData[7]); ethText2.text = Math.round(_root.tempData[4]); defText2.text = Math.round(_root.tempData[5]); eDefText2.text = Math.round(_root.tempData[6]); luckText2.text = Math.round(_root.tempData[8]); resistText2.text = Math.round(_root.tempData[9]); powerText2.text = Math.round(_root.tempData[10]); rangedText2.text = Math.round(_root.tempData[11]); focusText2.text = Math.round(_root.tempData[12]); chipTotalText2.text = _root.tempData[13]; checkColor(_root.tempData[1] - oldHP, 'hpText2'); checkColor(_root.tempData[2] - oldSP, 'spText2'); checkColor(_root.tempData[3] - oldStr, 'strText2'); checkColor(_root.tempData[7] - oldAgi, 'agiText2'); checkColor(_root.tempData[4] - oldEth, 'ethText2'); checkColor(_root.tempData[5] - oldDef, 'defText2'); checkColor(_root.tempData[6] - oldEDef, 'eDefText2'); checkColor(_root.tempData[8] - oldLuk, 'luckText2'); checkColor(_root.tempData[9] - oldResist, 'resistText2'); checkColor(_root.tempData[10] - oldPower, 'powerText2'); checkColor(_root.tempData[11] - oldRange, 'rangedText2'); checkColor(_root.tempData[12] - oldFocus, 'focusText2'); checkColor(_root.tempData[13] - oldChip, 'chipTotalText2'); } function checkColor(num, nameTag) { if (num > 0) { (eval(nameTag)).textColor = '0x0080FF'; } if (num < 0) { (eval(nameTag)).textColor = '0xFF3333'; } if (num == 0) { (eval(nameTag)).textColor = '0xD7FF33'; } } _global.displayGearLayer = this; _global.displayGearLayer.updateGear(0, 0, 'TOTAL'); stop(); } } movieClip 2681 changeGearConsole { } movieClip 2682 changeGearMC { frame 1 { stop(); } frame 2 { function updateHelpBarEquip() { if (equipNum == 0) { _global.displayHelpText = 'Change out your melee weapon. Press [SPACE BAR] to confirm or [BACKSPACE] to cancel.'; } if (equipNum == 1) { _global.displayHelpText = 'Change out your buster/arm cannon. Press [SPACE BAR] to confirm or [BACKSPACE] to cancel.'; } if (equipNum == 2) { _global.displayHelpText = 'Change out your body armor. Press [SPACE BAR] to confirm or [BACKSPACE] to cancel.'; } if (equipNum == 3) { _global.displayHelpText = 'Change out your leg armor. Press [SPACE BAR] to confirm or [BACKSPACE] to cancel.'; } if (equipNum == 4) { _global.displayHelpText = 'Change out your head gear. Press [SPACE BAR] to confirm or [BACKSPACE] to cancel.'; } if (equipNum == 5) { _global.displayHelpText = 'Change out your trinket. Press [SPACE BAR] to confirm or [BACKSPACE] to cancel.'; } _global.gearEquipPicture.highlightPart(equipNum); } function updateHelpBarChangeGear() { _global.displayHelpText = _root.tempList[selectNum][0][0] + ': ' + _root.tempList[selectNum][1][2]; } _global.useSkillListLayer = this; chrNum = 0; --counter; attachMovie('menuIcon', 'menuIcon', 100, {'_x': 150, '_y': 60}); attachMovie('gearListMC', 'gearListMC', 101, {'_x': -145, '_y': 70}); gearListMC._visible = false; _global.displayHelpText = 'Select a character. Changing gear will automatically reset your battle chip configurations.'; chrSelect_Listener = new Object(); chrSelect_Listener.onKeyDown = function () { _global.displayHelpText = 'Select a character. Changing gear will automatically reset your battle chip configurations.'; if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --chrNum; if (chrNum < 0) { chrNum = _root.party_Order.length - 1; } menuIcon._y = 60 + chrNum * 135; _global.displayGearLayer.updateGear(chrNum, '', 'TOTAL'); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++chrNum; if (chrNum > _root.party_Order.length - 1) { chrNum = 0; } menuIcon._y = 60 + chrNum * 135; _global.displayGearLayer.updateGear(chrNum, '', 'TOTAL'); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } removeMovieClip(menuIcon); Key.removeListener(chrSelect_Listener); gotoAndPlay('close'); } if (Key.getCode() == '32' or Key.getCode() == '37' or Key.getAscii() == '52') { Key.removeListener(chrSelect_Listener); Key.addListener(equipSelect_Listener); equipNum = 0; menuIcon._x = -300; menuIcon._y = 165; updateHelpBarEquip(); _global.displayGearLayer.updateGear(chrNum, equipNum, 'ITEM'); } }; equipSelect_Listener = new Object(); equipSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --equipNum; if (equipNum < 0) { equipNum = 5; } menuIcon._y = 165 + equipNum * 60.5; updateHelpBarEquip(); _global.displayGearLayer.updateGear(chrNum, equipNum, 'ITEM'); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++equipNum; if (equipNum > 5) { equipNum = 0; } menuIcon._y = 165 + equipNum * 60.5; updateHelpBarEquip(); _global.displayGearLayer.updateGear(chrNum, equipNum, 'ITEM'); } if (Key.getCode() == '8' or Key.getCode() == '39' or Key.getAscii() == '54') { menuIcon._x = 150; menuIcon._y = 60 + chrNum * 135; _global.displayGearLayer.updateGear(chrNum); Key.removeListener(equipSelect_Listener); Key.addListener(chrSelect_Listener); _global.displayGearLayer.updateGear(chrNum, '', 'TOTAL'); _global.gearEquipPicture.highlightPart('A'); _global.displayHelpText = 'Select a character. Changing gear will automatically reset your battle chip configurations.'; } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } selectNum = 0; _global.gearListLayer.gearListText._y = 59 - selectNum * 18; _global.gearListLayer.gearNumListText._y = 59 - selectNum * 18; gearListMC._visible = true; gearListMC._y = 140; gearListMC._x = -110; gearListMC.gotoAndPlay('load'); menuIcon._visible = false; Key.removeListener(equipSelect_Listener); Key.addListener(changeSelect_Listener); _global.gearListLayer.updateGearList(equipNum); _global.displayGearLayer.checkGear(_root.tempList[selectNum][2], equipNum); updateHelpBarChangeGear(); } }; changeSelect_Listener = new Object(); changeSelect_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52' or Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --selectNum; if (selectNum < 0) { selectNum = 0; } _global.gearListLayer.gearListText._y = 59 - selectNum * 18; _global.gearListLayer.gearNumListText._y = 59 - selectNum * 18; updateHelpBarChangeGear(); _global.displayGearLayer.checkGear(_root.tempList[selectNum][2], equipNum); } if (Key.getCode() == '39' or Key.getAscii() == '54' or Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++selectNum; if (selectNum > _global.gearListLayer.totalGear) { selectNum = _global.gearListLayer.totalGear; } _global.gearListLayer.gearListText._y = 59 - selectNum * 18; _global.gearListLayer.gearNumListText._y = 59 - selectNum * 18; updateHelpBarChangeGear(); _global.displayGearLayer.checkGear(_root.tempList[selectNum][2], equipNum); } if (Key.getCode() == '8') { menuIcon._visible = true; gearListMC.gotoAndPlay('close'); Key.removeListener(changeSelect_Listener); Key.addListener(equipSelect_Listener); _global.displayGearLayer.updateGear(chrNum, equipNum, 'ITEM'); } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } attachMovie('annoucementGear', 'annoucement', 1000, {'_x': -100, '_y': 50}); newChip = 0; chipName = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][0]; linkName = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][1]; chipData = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][2]; chipSlot = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][3]; bcData = eval('_root.chrBCData_' + _root.party_Order[chrNum]); varZ = 0; while (varZ <= bcData.length - 1) { refund = eval('_root.chrBCData_' + _root.party_Order[chrNum]); refundSlot = refund[varZ].length - 1; refundChip = refund[varZ][refundSlot][2]; bcData[varZ] = chipData; _root.numOfChips[chipSlot] = 99; ++_root.numOfChips[refundChip]; if (_root.numOfChips[chipSlot] < 0) { _root.numOfChips[chipSlot] = 0; } ++varZ; } bcData = []; delete bcData; --(eval('_root.' + _global.gearListLayer.listWord))[_root.tempList[selectNum][2]]; wData = eval('_root.chrWData_' + _root.party_Order[chrNum]); ++(eval('_root.' + _global.gearListLayer.listWord))[wData[equipNum]]; wData[equipNum] = _root.tempList[selectNum][2]; _root.updateSData(); _root.updateAData(); _root.checkTData(); _global.characterStatusLayer.updateStatus(); _global.displayGearLayer.updateGear(chrNum, equipNum, 'ITEM'); _global.gearListLayer.updateGearList(equipNum); _root.updateBCData(); menuIcon._visible = true; gearListMC.gotoAndPlay('close'); Key.removeListener(changeSelect_Listener); Key.addListener(equipSelect_Listener); } }; Key.addListener(chrSelect_Listener); } frame 13 { stop(); } frame 14 { _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 18 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2684 { } movieClip 2708 { frame 1 { function refreshData(chrNum) { cData = eval('_root.chrCData_' + _root.party_Order[chrNum]); bcData = eval('_root.chrBCData_' + _root.party_Order[chrNum]); openSlots = cData[12]; varX = 0; while (varX < 10) { removeMovieClip(eval('noChip' + varX)); removeMovieClip(eval('IDChip' + varX)); ++varX; } varX = 0; while (varX < openSlots) { attachMovie('noChip', 'noChip' + varX, 100 + varX, {'_x': varX * 30, '_y': 5}); (eval('noChip' + varX))._xscale = 45; (eval('noChip' + varX))._yscale = 45; ++varX; } varZ = 0; while (varZ < openSlots) { lastSlot = bcData[varZ].length - 1; picID = bcData[varZ][lastSlot][1]; attachMovie(picID, 'IDChip' + varZ, 50 + varZ, {'_x': varZ * 30, '_y': 5}); (eval('IDChip' + varZ))._xscale = 45; (eval('IDChip' + varZ))._yscale = 45; ++varZ; } } _global.battleChipsWindow2Layer = this; refreshData(0); } } movieClip 2710 { frame 1 { function refreshData(chrNum) { cData = eval('_root.chrCData_' + _root.party_Order[chrNum]); bcData = eval('_root.chrBCData_' + _root.party_Order[chrNum]); caData = eval('_root.chrCAData_' + _root.party_Order[chrNum]); cmdList = eval('_root.chrCMDList_' + _root.party_Order[chrNum]); skillList = eval('_root.chrSkillList_' + _root.party_Order[chrNum]); openSlots = cData[12]; myTextFormat = new TextFormat(); myTextFormat.bold = false; myTextFormat.font = 'Verdana'; myTextFormat.align = 'left'; myTextFormat.size = 12; var dropShadow = new flash.filters.DropShadowFilter(10, 45, 0, 5, 0, 4, 3, 1); dropShadow.strength = 5; dropShadow.distance = 1; dropShadow.blurX = 2; dropShadow.blurY = 2; varZ = 0; while (varZ <= 10) { (eval('bText_' + varZ)).text = ''; removeMovieClip(eval('newChips' + varZ)); (eval('numLeft' + varZ)).text = ' '; ++varZ; } techList.text = ''; assistList.text = ''; restoreList.text = ''; openSlotText.text = ''; varX = 0; while (varX <= skillList.length - 1) { skillType = skillList[varX][0][3]; if (skillType == 'E' or skillType == 'T') { techList.text += skillList[varX][0][0] + '\r'; } if (skillType == 'H') { restoreList.text += skillList[varX][0][0] + '\r'; } if (skillType == 'A') { assistList.text += skillList[varX][0][0] + '\r'; } ++varX; } varZ = 0; while (varZ < openSlots) { lastSlot = bcData[varZ].length - 1; benefit = bcData[varZ][lastSlot][0][0][0]; chipSlot = bcData[varZ][lastSlot][2]; chipName = _root.refChips[chipSlot]; if (bcData[varZ][lastSlot][0][1] == true) { (eval('bText_' + varZ)).text = '' + (varZ + 1) + ': ' + benefit; } else { (eval('bText_' + varZ)).text = '' + (varZ + 1) + ': ' + 'NOT MASTERED'; } ++varZ; } cText = ''; varZ = 0; while (varZ < cmdList.length) { cText += '// ' + cmdList[varZ][0] + ' \r'; ++varZ; } commandText.setTextFormat(myTextFormat); commandText.filters = [dropShadow]; commandText.text = cText; counter = 0; varX = 0; while (varX <= 2) { varZ = 0; while (varZ <= 3) { attachMovie('noChip', 'noChip' + counter, 400 + counter, {'_x': 15 + varZ * 75, '_y': 50 + varX * 75}); (eval('noChip' + counter)).gotoAndPlay('animate'); ++counter; ++varZ; } ++varX; } yCount = 0; xCount = 0; varX = 0; while (varX <= (eval('_root.chrCAData_' + _root.party_Order[chrNum])).length - 1) { chipName = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[varX][0]; linkName = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[varX][1]; chipData = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[varX][2]; chipSlot = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[varX][3]; attachMovie(linkName, 'newChips' + varX, 300 + varX, {'_x': 15 + xCount * 75, '_y': 50 + yCount * 75}); if (_root.numOfChips[chipSlot] <= 0 and varX > 0) { (eval('newChips' + varX))._alpha = 50; ++xCount; } else { ++xCount; } if (xCount == 4) { ++yCount; xCount = 0; } ++varX; } openSlotText.text = 'OPEN SLOTS: ' + cData[12]; yCount = 0; xCount = 0; varX = 0; while (varX <= (eval('_root.chrCAData_' + _root.party_Order[chrNum])).length - 1) { chipSlot = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[varX][3]; this.createTextField('numLeft' + varX, 1000 + varX, 15 + xCount * 75, 82 + yCount * 75, 50, 50); (eval('numLeft' + varX)).text = 'x' + _root.numOfChips[chipSlot]; if (varX == 0) { (eval('numLeft' + varX)).text = ''; } (eval('numLeft' + varX)).textColor = 16777215; myTextFormat = new TextFormat(); myTextFormat.bold = true; myTextFormat.font = 'Verdana'; myTextFormat.align = 'right'; (eval('numLeft' + varX)).setTextFormat(myTextFormat); (eval('numLeft' + varX)).filters = [dropShadow]; ++xCount; if (xCount == 4) { ++yCount; xCount = 0; } ++varX; } } _global.viewBCSkillsLayer = this; refreshData(0); } } movieClip 2711 battleChipMC { frame 1 { stop(); _root.updateBCData(); bcWindow1._visible = false; } frame 2 { function subChipSelect() { chipIcon2._x = -315 + exNum * 75; chipIcon2._y = 160 + exRow * 75; moveList._x = -200 + exNum * 75; moveList._y = 130 + exRow * 75; evalNum = _global.bcMainLayer.exRow * 4 + _global.bcMainLayer.exNum; moveList.gotoAndPlay('load'); } _global.bcMainLayer = this; chrNum = 0; --counter; attachMovie('menuIcon', 'menuIcon', 100, {'_x': 150, '_y': 60}); _global.displayHelpText = 'Select a character. Press [SPACE BAR] to continue or [BACKSPACE] to cancel.'; chrSelect_Listener = new Object(); chrSelect_Listener.onKeyDown = function () { _global.displayHelpText = 'Select a character. Press [SPACE BAR] to continue or [BACKSPACE] to cancel.'; if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --chrNum; if (chrNum < 0) { chrNum = _root.party_Order.length - 1; } menuIcon._y = 60 + chrNum * 135; _global.viewBCSkillsLayer.refreshData(chrNum); _global.battleChipsWindow2Layer.refreshData(chrNum); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++chrNum; if (chrNum > _root.party_Order.length - 1) { chrNum = 0; } menuIcon._y = 60 + chrNum * 135; _global.viewBCSkillsLayer.refreshData(chrNum); _global.battleChipsWindow2Layer.refreshData(chrNum); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } _global.characterStatusLayer.gotoAndPlay('visible'); removeMovieClip(menuIcon); removeMovieClip(moveListB); Key.removeListener(chrSelect_Listener); gotoAndPlay('close'); } if (Key.getCode() == '32') { if (_root.party_Order[chrNum] != 9) { bcWindow1._visible = true; _global.characterStatusLayer.gotoAndPlay('fadeOut'); menuIcon._visible = false; Key.removeListener(chrSelect_Listener); Key.addListener(chipSelect_Listener); cData = eval('_root.chrCData_' + _root.party_Order[chrNum]); openSlots = cData[12]; delete cData; chipNum = 0; if (openSlots > 0) { attachMovie('chipMovie', 'chipIcon', 998, {'_x': -329, '_y': 437}); chipIcon._xscale = 45; chipIcon._yscale = 45; } bcData = eval('_root.chrBCData_' + _root.party_Order[chrNum]); _global.displayHelpText = 'Press [SPACE BAR] to continue or [BACKSPACE] to cancel. Press the [U] key to unequip and press [H] to check progress.'; evalNum = chipNum; attachMovie('moveListB', 'moveListB', 10000, {'_x': -345, '_y': 190}); moveListB._visible = false; } else { _global.displayHelpText = 'This character cannot equip Battle Chips.'; if (_root.gameVariables[0][0][3] == true) { _global.fx9.start(); } } } }; chipSelect_Listener = new Object(); chipSelect_Listener.onKeyDown = function () { if (openSlots > 0) { if (Key.getCode() == '37' or Key.getAscii() == '52') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --chipNum; if (chipNum < 0) { chipNum = 0; } chipIcon._x = -328 + chipNum * 30; evalNum = chipNum; moveListB.gotoAndPlay('load'); } if (Key.getCode() == '39' or Key.getAscii() == '54') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++chipNum; if (chipNum >= openSlots) { chipNum = openSlots - 1; } chipIcon._x = -328 + chipNum * 30; evalNum = chipNum; moveListB.gotoAndPlay('load'); } if (Key.getCode() == '72') { if (moveListB._visible == true) { moveListB._visible = false; } else { moveListB._visible = true; } moveListB.gotoAndPlay('load'); } if (Key.getCode() == '85') { bcData = eval('_root.chrBCData_' + _root.party_Order[chrNum]); caData = eval('_root.chrCAData_' + _root.party_Order[chrNum]); newChip = 0; chipName = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][0]; linkName = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][1]; chipData = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][2]; chipSlot = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][3]; refund = eval('_root.chrBCData_' + _root.party_Order[chrNum]); refundSlot = refund[chipNum].length - 1; refundChip = refund[chipNum][refundSlot][2]; bcData[chipNum] = chipData; _root.numOfChips[chipSlot] = 99; ++_root.numOfChips[refundChip]; if (_root.numOfChips[chipSlot] < 0) { _root.numOfChips[chipSlot] = 0; } _root.updateSData(); _root.updateAData(); _root.updateBCData(); _root.checkTData(); _global.battleChipsWindow2Layer.refreshData(chrNum); _global.viewBCSkillsLayer.refreshData(chrNum); if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } moveListB.gotoAndPlay('load'); } if (Key.getCode() == '32') { Key.addListener(chipExchange_Listener); Key.removeListener(chipSelect_Listener); exNum = 0; exRow = 0; evalNum = _global.bcMainLayer.exRow * 4 + _global.bcMainLayer.exNum; attachMovie('chipMovie', 'chipIcon2', 999, {'_x': -315, '_y': 160}); removeMovieClip(moveListB); attachMovie('moveList', 'moveList', 10000, {'_x': -315, '_y': 160}); moveList._x = -315; moveList._y = 160; subChipSelect(); _global.displayHelpText = 'Press [SPACE BAR] to continue, or [BACKSPACE] to cancel. NOTE: Your stats may have altered.'; } } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } _global.characterStatusLayer.gotoAndPlay('fadeIn'); menuIcon._visible = true; chipIcon._visible = false; Key.addListener(chrSelect_Listener); Key.removeListener(chipSelect_Listener); bcWindow1._visible = false; removeMovieClip(moveListB); _global.displayHelpText = 'Select a character. Press [SPACE BAR] to continue or [BACKSPACE] to cancel.'; } }; chipExchange_Listener = new Object(); chipExchange_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --exNum; if (exNum < 0) { exNum = 0; } subChipSelect(); } if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --exRow; if (exRow < 0) { exRow = 0; } subChipSelect(); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++exRow; if (exRow >= 2) { exRow = 2; } subChipSelect(); } if (Key.getCode() == '39' or Key.getAscii() == '54') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++exNum; if (exNum >= 3) { exNum = 3; } subChipSelect(); } if (Key.getCode() == '32') { bcData = eval('_root.chrBCData_' + _root.party_Order[chrNum]); caData = eval('_root.chrCAData_' + _root.party_Order[chrNum]); cNum = eval('_root.chrCNum_' + _root.party_Order[chrNum]); newChip = _global.bcMainLayer.exRow * 4 + _global.bcMainLayer.exNum; chipName = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][0]; linkName = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][1]; chipData = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][2]; chipSlot = (eval('_root.chrCAData_' + _root.party_Order[chrNum]))[newChip][3]; refund = eval('_root.chrBCData_' + _root.party_Order[chrNum]); refundSlot = refund[chipNum].length - 1; refundChip = refund[chipNum][refundSlot][2]; if (_root.numOfChips[chipSlot] > 0) { bcData[chipNum] = chipData; cNum[chipNum] = chipSlot; --_root.numOfChips[chipSlot]; ++_root.numOfChips[refundChip]; if (_root.numOfChips[chipSlot] < 0) { _root.numOfChips[chipSlot] = 0; } } _root.updateSData(); _root.updateAData(); _root.updateBCData(); _root.checkTData(); _global.battleChipsWindow2Layer.refreshData(chrNum); _global.viewBCSkillsLayer.refreshData(chrNum); if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } chipIcon2._visible = false; removeMovieClip(moveList); attachMovie('moveListB', 'moveListB', 10000, {'_x': -345, '_y': 190}); moveListB._visible = false; Key.addListener(chipSelect_Listener); Key.removeListener(chipExchange_Listener); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } chipIcon2._visible = false; removeMovieClip(moveList); attachMovie('moveListB', 'moveListB', 10000, {'_x': -345, '_y': 190}); moveListB._visible = false; Key.addListener(chipSelect_Listener); Key.removeListener(chipExchange_Listener); } }; Key.addListener(chrSelect_Listener); } frame 13 { stop(); } frame 14 { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 16 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2717 { frame 1 { function refreshData() { varX = 0; while (varX <= _root.combatChrPool.length - 1) { iData = eval('_root.chrIData_' + _root.combatChrPool[varX]); clearCheck = true; varZ = 0; while (varZ <= _root.party_Order.length - 1) { if (_root.combatChrPool[varX] == _root.party_Order[varZ]) { clearCheck = false; } if (_root.combatChrPool[varX] == _root.support_Party[0][0]) { clearCheck = false; } ++varZ; } attachMovie(iData[4], 'portraitPic' + varX, varX, {'_x': 20 + varX * 85, '_y': 40}); (eval('portraitPic' + varX))._xscale = 80; (eval('portraitPic' + varX))._yscale = 80; if (clearCheck == false) { (eval('portraitPic' + varX))._alpha = 20; } ++varX; } varX = 0; while (varX <= _root.supportChrPool.length - 1) { iData = eval('_root.chrIData_' + _root.supportChrPool[varX]); clearCheck = true; if (_root.supportChrPool[varX] == _root.support_Party[0][0]) { clearCheck = false; } attachMovie(iData[4], 'portraitPicA' + varX, varX + 100, {'_x': 20 + varX * 85, '_y': 160}); (eval('portraitPicA' + varX))._xscale = 80; (eval('portraitPicA' + varX))._yscale = 80; if (clearCheck == false) { (eval('portraitPicA' + varX))._alpha = 20; } ++varX; } varX = 0; while (varX <= 4) { (eval('form' + varX)).text = ''; ++varX; } currentFormText.text = 'CURRENT FORMATION: ' + _root.formationData[_root.currentForm[0][0]][2]; varX = 0; while (varX <= _root.availbleForms.length - 1) { attachMovie('form_' + _root.formationData[_root.availbleForms[varX]][1], 'form_' + varX, 200 + varX, {'_x': 20 + varX * 85, '_y': 305}); (eval('form_' + varX))._alpha = 20; if (_root.formationData[_root.currentForm[0][0]][1] == _root.formationData[_root.availbleForms[varX]][1]) { (eval('form_' + varX))._alpha = 100; } ++varX; } } _global.changeFormLayoutLayer = this; refreshData(); } } movieClip 2718 changeFormMC { frame 1 { stop(); } frame 2 { function updateHelpBar_chrSelect() { if (chrNum == 'A') { _global.displayHelpText = 'Press the [SPACE BAR] to select a support member. Press [BACKSPACE] to cancel. Press the [LEFT KEY] to change formations.'; } else { _global.displayHelpText = 'Press the [SPACE BAR] to select a party member. Press [BACKSPACE] to cancel. Press the [LEFT KEY] to change formations.'; } } function updateHelpBar_form() { _global.displayHelpText = _root.formationData[_root.availbleForms[formNum]][3]; } function updateHelpBar_changeChr() { if (chrNum == 'A') { _global.displayHelpText = 'Press the [SPACE BAR] again to remove a support member. Press the [LEFT KEY] to switch or add somebody.'; } else { _global.displayHelpText = 'Press [UP] or [DOWN] to rearrange your party. Press the [LEFT KEY] to change our party members (if available).'; } } _global.changeFormLayer = this; chrNum = 0; --counter; updateHelpBar_chrSelect(); attachMovie('menuIcon', 'menuIcon', 100, {'_x': 150, '_y': 60}); chrSelect_Listener = new Object(); chrSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (chrNum == 'A') { chrNum = _root.party_Order.length - 1; } else { --chrNum; } if (chrNum < 0) { chrNum = 'A'; } updateHelpBar_chrSelect(); if (chrNum == 'A') { menuIcon._y = 465; menuIcon._x = 170; } else { menuIcon._y = 60 + chrNum * 135; menuIcon._x = 150; } } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } if (chrNum == 'A') { chrNum = 0; } else { ++chrNum; } if (chrNum > _root.party_Order.length - 1) { chrNum = 'A'; } updateHelpBar_chrSelect(); if (chrNum == 'A') { menuIcon._y = 465; menuIcon._x = 170; } else { menuIcon._y = 60 + chrNum * 135; menuIcon._x = 150; } } if (Key.getCode() == '37' or Key.getAscii() == '52') { Key.removeListener(chrSelect_Listener); Key.addListener(formSelect_Listener); formNum = 0; updateHelpBar_form(); menuIcon._rotation = -90; menuIcon._x = -325; menuIcon._y = 510; } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } removeMovieClip(menuIcon); Key.removeListener(chrSelect_Listener); gotoAndPlay('close'); } if (Key.getCode() == '32') { updateHelpBar_changeChr(); changeNum = chrNum; Key.removeListener(chrSelect_Listener); Key.addListener(changeChrSelect_Listener); duplicateMovieClip('menuIcon', 'menuIcon2', 101); menuIcon2._x -= 15; } }; formSelect_Listener = new Object(); formSelect_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52') { if (formNum <= 0) { formNum = _root.availbleForms.length - 1; } else { --formNum; } menuIcon._x = -325 + formNum * 85; updateHelpBar_form(); } if (Key.getCode() == '39' or Key.getAscii() == '54') { if (formNum >= _root.availbleForms.length - 1) { formNum = 0; } else { ++formNum; } menuIcon._x = -325 + formNum * 85; updateHelpBar_form(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } updateHelpBar_chrSelect(); Key.removeListener(formSelect_Listener); Key.addListener(chrSelect_Listener); menuIcon._rotation = 0; menuIcon._x = 150; menuIcon._y = 60; } if (Key.getCode() == '32') { _root.currentForm[0][0] = _root.availbleForms[formNum]; _global.changeFormLayoutLayer.refreshData(); Key.removeListener(formSelect_Listener); Key.addListener(chrSelect_Listener); updateHelpBar_chrSelect(); menuIcon._rotation = 0; menuIcon._x = 150; menuIcon._y = 60; } }; changeChrSelect_Listener = new Object(); changeChrSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --changeNum; if (changeNum < 0) { changeNum = _root.party_Order.length - 1; } menuIcon2._y = 60 + changeNum * 135; updateHelpBar_changeChr(); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++changeNum; if (changeNum > _root.party_Order.length - 1) { changeNum = 0; } menuIcon2._y = 60 + changeNum * 135; updateHelpBar_changeChr(); } if (Key.getCode() == '37' or Key.getAscii() == '52') { poolNum = 0; if (chrNum == 'A' and _root.support_Party[0][0] != 'NONE') { Key.removeListener(changeChrSelect_Listener); Key.addListener(changeSprtPool_Listener); menuIcon2._rotation = -90; menuIcon2._x = -320; menuIcon2._y = 360; } else { if (chrNum != 'A') { Key.removeListener(changeChrSelect_Listener); Key.addListener(changeChrPool_Listener); menuIcon2._rotation = -90; menuIcon2._x = -320; menuIcon2._y = 240; } } } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } updateHelpBar_chrSelect(); removeMovieClip(menuIcon2); Key.removeListener(changeChrSelect_Listener); Key.addListener(chrSelect_Listener); } if (Key.getCode() == '32') { if (chrNum == 'A' and changeNum == 'A') { _root.support_Party[0][0] = 'NONE'; _global.changeFormLayoutLayer.refreshData(); _global.characterStatusLayer.updateStatus(); removeMovieClip(menuIcon2); Key.removeListener(changeChrSelect_Listener); Key.addListener(chrSelect_Listener); } else { oldChr = _root.party_Order[chrNum]; newChr = _root.party_Order[changeNum]; _root.party_Order[chrNum] = newChr; _root.party_Order[changeNum] = oldChr; _global.characterStatusLayer.updateStatus(); removeMovieClip(menuIcon2); Key.removeListener(changeChrSelect_Listener); Key.addListener(chrSelect_Listener); } } }; changeChrPool_Listener = new Object(); changeChrPool_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --poolNum; if (poolNum < 0) { poolNum = _root.combatChrPool.length - 1; } menuIcon2._x = -320 + poolNum * 85; } if (Key.getCode() == '39' or Key.getAscii() == '54') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++poolNum; if (poolNum > _root.combatChrPool.length - 1) { poolNum = 0; } menuIcon2._x = -320 + poolNum * 85; } if (Key.getCode() == '38' or Key.getAscii() == '56') { } if (Key.getCode() == '40' or Key.getAscii() == '50') { } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } removeMovieClip(menuIcon2); Key.removeListener(changeChrPool_Listener); Key.addListener(chrSelect_Listener); updateHelpBar_chrSelect(); } if (Key.getCode() == '32') { newChr = _root.combatChrPool[poolNum]; clearCheck = true; varX = 0; while (varX <= _root.party_Order.length - 1) { if (newChr == _root.party_Order[varX]) { clearCheck = false; } ++varX; } if (newChr == _root.support_Party[0][0]) { clearCheck = false; } if (clearCheck == false) { } else { if (chrNum == 'A') { _root.support_Party[0][0] = newChr; } else { _root.party_Order[chrNum] = newChr; } } _global.changeFormLayoutLayer.refreshData(); _global.characterStatusLayer.updateStatus(); removeMovieClip(menuIcon2); Key.removeListener(changeChrSelect_Listener); Key.removeListener(changeChrPool_Listener); Key.addListener(chrSelect_Listener); } }; changeSprtPool_Listener = new Object(); changeSprtPool_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --poolNum; if (poolNum < 0) { poolNum = _root.supportChrPool.length - 1; } menuIcon2._x = -320 + poolNum * 85; } if (Key.getCode() == '39' or Key.getAscii() == '54') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++poolNum; if (poolNum > _root.supportChrPool.length - 1) { poolNum = 0; } menuIcon2._x = -320 + poolNum * 85; } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } updateHelpBar_changeChr; removeMovieClip(menuIcon2); Key.removeListener(changeSprtPool_Listener); Key.addListener(chrSelect_Listener); updateHelpBar_chrSelect(); } if (Key.getCode() == '32') { _root.support_Party[0][0] = _root.supportChrPool[poolNum]; _global.changeFormLayoutLayer.refreshData(); _global.characterStatusLayer.updateStatus(); removeMovieClip(menuIcon2); Key.removeListener(changeSprtPool_Listener); Key.addListener(chrSelect_Listener); updateHelpBar_chrSelect(); } }; Key.addListener(chrSelect_Listener); } frame 13 { stop(); } frame 14 { _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 17 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2733 { } movieClip 2736 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 2739 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 2742 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 2745 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 2747 { frame 1 { varX = 0; while (varX <= _root.achievementArray.length - 1) { (eval('ach_' + varX)).gotoAndStop('off'); ++varX; } counter = 0; varX = 0; while (varX <= _root.achievementArray.length - 1) { if (_root.achievementArray[varX][0][0] == true) { (eval('ach_' + varX)).gotoAndStop('on'); ++counter; } ++varX; } percentText.text = Math.round((counter / (_root.achievementArray.length - 1)) * 100) + '% COMPLETE'; listA.text = _root.gamePlay_Stats[0][0] + '\r' + _root.gamePlay_Stats[0][1] + '\r' + _root.gamePlay_Stats[0][2] + '\r' + _root.gamePlay_Stats[0][3] + '\r' + _root.gamePlay_Stats[0][4] + '\r' + _root.gamePlay_Stats[1][0] + '\r'; listB.text = _root.gamePlay_Stats[2][0] + '\r' + _root.gamePlay_Stats[2][1] + '\r' + _root.gamePlay_Stats[2][2] + '\r-\r-\r' + _root.gamePlay_Stats[2][3] + '\r'; listC.text = _root.gamePlay_Stats[3][0] + '\r' + _root.gamePlay_Stats[3][1] + '\r' + _root.gamePlay_Stats[1][1]; listD.text = _root.gamePlay_Stats[4][0] + '\r' + _root.gamePlay_Stats[4][1] + '\r' + _root.gamePlay_Stats[4][2] + '\r' + _root.gamePlay_Stats[4][3] + '/' + _root.gamePlay_Stats[4][4] + '\r' + _root.gamePlay_Stats[5][0]; } } movieClip 2748 { frame 1 { stop(); } frame 2 { function subAchievement() { chipIcon._x = -315 + exNum * 55; chipIcon._y = 160 + exRow * 55; refNum = exNum + exRow * 7; evalNum = _global.bcMainLayer.exRow * 4 + _global.bcMainLayer.exNum; moveList.gotoAndPlay('load'); if (_root.achievementArray[refNum][0][0] == false) { layout.achivementText.text = '???'; } else { layout.achivementText.text = '[ ' + _root.achievementList[refNum][1][0] + ' ] - ' + _root.achievementList[refNum][1][1]; } } _global.achievementLayer = this; _global.menuMainLayer.healthStatus._visible = false; exNum = 0; exRow = 0; attachMovie('chipMovie', 'chipIcon', 998, {'_x': -329, '_y': 437}); chipIcon._xscale = 75; chipIcon._yscale = 75; subAchievement(); achieveMain_Listener = new Object(); achieveMain_Listener.onKeyDown = function () { if (Key.getCode() == '37' or Key.getAscii() == '52') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --exNum; if (exNum < 0) { exNum = 0; } subAchievement(); } if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --exRow; if (exRow < 0) { exRow = 0; } subAchievement(); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++exRow; if (exRow >= 4) { exRow = 4; } subAchievement(); } if (Key.getCode() == '39' or Key.getAscii() == '54') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++exNum; if (exNum >= 6) { exNum = 6; } subAchievement(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } _global.menuMainLayer.healthStatus._visible = true; _global.characterStatusLayer.gotoAndPlay('visible'); removeMovieClip(chipIcon); Key.removeListener(achieveMain_Listener); gotoAndPlay('close'); } }; Key.addListener(achieveMain_Listener); } frame 13 { stop(); } frame 14 { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); } frame 16 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2750 { } movieClip 2755 { frame 1 { function refreshData() { if (_root.gameVariables[1][1][0] == 'low') { dot._y = 92; } if (_root.gameVariables[1][1][0] == 'med') { dot._y = 72; } if (_root.gameVariables[1][1][0] == 'high') { dot._y = 52; } if (_root.gameVariables[1][1][0] == 'max') { dot._y = 32; } if (_root.gameVariables[1][0][0] == true) { cellText.text = 'ENABLED'; } if (_root.gameVariables[1][0][0] == false) { cellText.text = 'DISABLED'; } if (_root.gameVariables[0][0][2] == false) { musicText.text = 'DISABLED'; } if (_root.gameVariables[0][0][2] == true) { musicText.text = 'ENABLED'; } if (_root.gameVariables[0][0][3] == false) { soundText.text = 'DISABLED'; } if (_root.gameVariables[0][0][3] == true) { soundText.text = 'ENABLED'; } if (_root.gameVariables[2][0][1] == false) { easyText.text = 'ENABLED'; } if (_root.gameVariables[2][0][1] == true) { easyText.text = 'DISABLED'; } _root.updateResolution(); } _global.optionsLayer = this; refreshData(); } } movieClip 2757 { frame 36 { _parent.play(); stop(); } } movieClip 2758 optionMenuMC { frame 1 { stop(); } frame 2 { _global.itemListLayer = this; _global.displayHelpText = ''; iconNum = 0; audioNum = 0; attachMovie('menuIcon', 'menuIcon', 100, {'_x': -145, '_y': 110}); _global.displayHelpText = _root.tempList[iconNum][0]; _global.displayHelpText = 'Changing the resolution of the game might affect framerate. Press [SPACE BAR] to confirm or press [BACKSPACE] to cancel.'; resSelect_Listener = new Object(); resSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --iconNum; if (iconNum < 0) { iconNum = 0; } menuIcon._y = 110 + iconNum * 20; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++iconNum; if (iconNum > 3) { iconNum = 3; audioNum = 0; Key.removeListener(resSelect_Listener); Key.addListener(visualSelect_Listener); menuIcon._y = 260; _global.displayHelpText = 'Creates a black outline around characters. Disabling might improve performance and framerate.'; } else { menuIcon._y = 110 + iconNum * 20; } } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (iconNum == 0) { _root.gameVariables[1][1][0] = 'max'; } if (iconNum == 1) { _root.gameVariables[1][1][0] = 'high'; } if (iconNum == 2) { _root.gameVariables[1][1][0] = 'med'; } if (iconNum == 3) { _root.gameVariables[1][1][0] = 'low'; } _global.optionsLayer.refreshData(); _root.menuMainHolder.gotoAndPlay(1); _root.mainMenuHolder.gotoAndPlay('changeRes'); _root.battleMCHolder.gotoAndPlay('changeRes'); _global.loadNewAreaLevel.gotoAndPlay('changeRes'); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); menuIcon._visible = false; _root.dataPacket = SharedObject.getLocal('gameSettings'); _root.dataPacket.data.gameSettings = _root.gameVariables; } }; visualSelect_Listener = new Object(); visualSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } Key.addListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); menuIcon._y = 110 + iconNum * 20; _global.displayHelpText = 'Changing the resolution of the game might affect framerate. Press [SPACE BAR] to confirm or press [BACKSPACE] to cancel.'; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } Key.removeListener(visualSelect_Listener); Key.addListener(audioSelect_Listener); audioNum = 0; menuIcon._y = 365 + audioNum * 20; _global.displayHelpText = 'Disable/enabled music and sfx.'; } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (_root.gameVariables[1][0][0] == true) { _root.gameVariables[1][0][0] = false; } else { _root.gameVariables[1][0][0] = true; } _global.optionsLayer.refreshData(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); } }; audioSelect_Listener = new Object(); audioSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --audioNum; if (audioNum < 0) { audioNum = 0; menuIcon._y = 260; Key.removeListener(audioSelect_Listener); Key.addListener(visualSelect_Listener); _global.displayHelpText = 'Creates a black outline around characters. Disabling might improve performance and framerate.'; } else { menuIcon._y = 365 + audioNum * 20; } } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++audioNum; if (audioNum >= 2) { audioNum = 1; Key.removeListener(audioSelect_Listener); Key.addListener(gamePlay_Listener); menuIcon._y = 480; _global.displayHelpText = 'When ACTIVE BATTLE is enabled, you have more control over battles.'; } else { menuIcon._y = 365 + audioNum * 20; } } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (audioNum == 0) { if (_root.gameVariables[0][0][2] == false) { _root.gameVariables[0][0][2] = true; _root.musicPlayerMC.changeMusic('FORCE', _global.mapDataLayer.roomMusicTrack); } else { _root.gameVariables[0][0][2] = false; _root.musicPlayerMC.changeMusic('STOP', ''); } } if (audioNum == 1) { if (_root.gameVariables[0][0][3] == false) { _root.gameVariables[0][0][3] = true; } else { _root.gameVariables[0][0][3] = false; } } _global.optionsLayer.refreshData(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); } }; gamePlay_Listener = new Object(); gamePlay_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } Key.addListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); audioNum = 1; menuIcon._y = 365 + audioNum * 20; _global.displayHelpText = 'Disable/enabled music and sfx.'; } if (Key.getCode() == '32') { if (_root.gameVariables[0][0][3] == true) { _global.fx1.start(); } if (_root.gameVariables[2][0][1] == false) { _root.gameVariables[2][0][1] = true; } else { _root.gameVariables[2][0][1] = false; } _global.optionsLayer.refreshData(); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); } }; Key.addListener(resSelect_Listener); } frame 13 { stop(); } frame 14 { Key.removeListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); Key.removeListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); stop(); } frame 18 { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); Key.removeListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); Key.removeListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2764 { frame 1 { tempArray = eval('_root.map' + _root.currentObjectives[0][0] + '_OBJECTIVES'); objectiveListText.text = ''; objectiveList = ''; priorityListText.text = ''; priorityList = ''; statusListText.text = ''; statusList = ''; varX = 0; while (varX <= _root.currentObjectives.length - 1) { if (tempArray[_root.currentObjectives[varX][1]][2] == true) { statusList += '[COMPLETE] '; } else { statusList += '[ON-GOING] '; } if (tempArray[_root.currentObjectives[varX][1]][1] == true) { objectiveList += ' - ' + tempArray[_root.currentObjectives[varX][1]][3][1]; } else { objectiveList += ' - ???'; } if (tempArray[_root.currentObjectives[varX][1]][3][0] == 'P') { priorityList += ' '; } if (tempArray[_root.currentObjectives[varX][1]][3][0] == 'S') { priorityList += '(OPTIONAL)'; } objectiveList += '\r'; priorityList += '\r'; statusList += '\r'; ++varX; } objectiveListText.text = objectiveList; priorityListText.text = priorityList; statusListText.text = statusList; } } movieClip 2765 { frame 1 { stop(); } frame 2 { function updateHelpBar() { tempArray = eval('_root.map' + _root.currentObj_Num + '_OBJECTIVES'); tempObjArray = []; counter = 0; varX = 0; while (varX <= tempArray[0].length) { if (tempArray[varX][0] == true) { tempObjArray[counter] = varX; ++counter; } ++varX; } if (tempArray[tempObjArray[iconNum]][1] == true) { _global.displayHelpText = tempArray[tempObjArray[iconNum]][3][2]; } else { _global.displayHelpText = '???'; } } _global.objectivesLayer = this; _global.displayHelpText = ''; iconNum = 0; audioNum = 0; attachMovie('menuIcon', 'menuIcon', 100, {'_x': -375, '_y': 160}); updateHelpBar(); objSelect_Listener = new Object(); objSelect_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --iconNum; if (iconNum < 0) { iconNum = _root.currentObjectives.length - 1; } menuIcon._y = 160 + iconNum * 16.5; updateHelpBar(); } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++iconNum; if (iconNum > _root.currentObjectives.length - 1) { iconNum = 0; } menuIcon._y = 160 + iconNum * 16.5; updateHelpBar(); } if (Key.getCode() == '32') { } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); Key.removeListener(objSelect_Listener); } }; Key.addListener(objSelect_Listener); } frame 13 { stop(); } frame 14 { _global.fx4.start(); Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); Key.removeListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); Key.removeListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); } frame 18 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2771 { frame 36 { stop(); _parent.play(); } } movieClip 2775 { frame 1 { stop(); } frame 31 { _global.saveLoadLayer.gotoAndPlay('softClose'); stop(); } } movieClip 2776 { } movieClip 2777 { frame 1 { stop(); _global.saveDataLayer = this; } frame 14 { varX = 0; while (varX <= 2) { _root.dataPacket = SharedObject.getLocal('savePacket' + varX); (eval('_global.saveDataLayer.saveHolder.box' + varX)).saveNameText.text = _root.dataPacket.data.saveData[2][0][5][0]; (eval('_global.saveDataLayer.saveHolder.box' + varX)).saveStatusText.text = 'TOTAL SAVES: ' + _root.dataPacket.data.saveData[2][0][5][1]; if (_root.dataPacket.data.saveData[8][0][0].length != undefined) { varDP = 0; while (varDP <= _root.dataPacket.data.saveData[8][0][0].length - 1) { profilePic = (eval('_root.chrIData_' + _root.dataPacket.data.saveData[8][0][0][varDP]))[4]; trace('profilePic: ' + profilePic); attachMovie(profilePic, 'profilePic' + varDP + varX, 700 - varDP + varX * 1000, {'_x': 255 + 45 * varDP, '_y': 345 + varX * 150}); (eval('profilePic' + varDP + varX))._xscale = 70; (eval('profilePic' + varDP + varX))._yscale = 70; ++varDP; } } ++varX; } } frame 23 { _global.saveLoadLayer.saveIcon._visible = true; Key.addListener(_global.saveLoadLayer.savePic_Listener); stop(); } } movieClip 2778 { } movieClip 2780 { frame 36 { _parent.play(); stop(); } } movieClip 2781 { frame 1 { function subSave(fileNum) { _root.convertSaveData(); _root.dataPacket = SharedObject.getLocal('autoSave'); _root.dataPacket.data.autoSave = [[_root.stageDataPacket], [_root.levelDataPacket], [_root.locationPacket], [_root.weaponInventoryPacket], [_root.formationPacket], [_root.inventoryPacket], [_root.chrDataPacket], [_root.supportDataPacket], [_root.partyPacket], [_root.achievementPacket]]; _root.dataPacket.data.autoSave.flush(); _root.dataPacket = SharedObject.getLocal('savePacket' + fileNum); _root.dataPacket.data.saveData = [[_root.stageDataPacket], [_root.levelDataPacket], [_root.locationPacket], [_root.weaponInventoryPacket], [_root.formationPacket], [_root.inventoryPacket], [_root.chrDataPacket], [_root.supportDataPacket], [_root.partyPacket], [_root.achievementPacket]]; _root.dataPacket.data.saveData.flush(); _root.dataPacket = SharedObject.getLocal('savePacket' + fileNum); varDP = 0; while (varDP <= _root.dataPacket.data.saveData[8][0][0].length - 1) { profilePic = (eval('_root.chrIData_' + _root.dataPacket.data.saveData[8][0][0][varDP]))[4]; attachMovie(profilePic, 'profilePic' + varDP, 700 - varDP, {'_x': -70 + 45 * varDP, '_y': 155 + fileNum * 150}); (eval('profilePic' + varDP))._xscale = 70; (eval('profilePic' + varDP))._yscale = 70; ++varDP; } (eval('_global.saveDataLayer.saveHolder.box' + fileNum)).saveNameText.text = _root.dataPacket.data.saveData[2][0][5][0]; (eval('_global.saveDataLayer.saveHolder.box' + fileNum)).saveStatusText.text = 'TOTAL SAVES: ' + _root.dataPacket.data.saveData[2][0][5][1]; _root.dataPacket = SharedObject.getLocal('dumpSave'); _root.dataPacket.data.dumpSave = ['local numb']; _root.dataPacket.data.dumpSave.flush(); (eval('_global.saveDataLayer.saveHolder.box' + fileNum)).gotoAndPlay('saved'); } _global.saveLoadLayer = this; _global.displayHelpText = ''; saveIcon._visible = false; iconNum = 0; saveIcon._y = 108; saveIcon._x = -80; savePic_Listener = new Object(); savePic_Listener.onKeyDown = function () { if (Key.getCode() == '38' or Key.getAscii() == '56') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } --iconNum; if (iconNum < 0) { iconNum = 2; } saveIcon._y = 108 + iconNum * 150; } if (Key.getCode() == '40' or Key.getAscii() == '50') { if (_root.gameVariables[0][0][3] == true) { _global.fx6.start(); } ++iconNum; if (iconNum > 2) { iconNum = 0; } saveIcon._y = 108 + iconNum * 150; } if (Key.getCode() == '32') { subSave(iconNum); saveIcon._visible = false; Key.removeListener(savePic_Listener); } if (Key.getCode() == '8') { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } gotoAndPlay('close'); saveIcon._visible = false; } }; } frame 12 { stop(); } frame 13 { varDP = 0; while (varDP <= 3) { removeMovieClip('profilePic' + varDP); ++varDP; } } frame 19 { stop(); } frame 20 { if (_root.gameVariables[0][0][3] == true) { _global.fx4.start(); } Key.removeListener(itemSelect_Listener); _global.wheelMenuLayer.gotoAndPlay('loop'); Key.addListener(_global.wheelMenuLayer.menuWheel_Listener); Key.removeListener(resSelect_Listener); Key.removeListener(visualSelect_Listener); Key.removeListener(audioSelect_Listener); Key.removeListener(gamePlay_Listener); } frame 26 { _global.menuMainLayer.gotoAndPlay('mainSystem'); stop(); } } movieClip 2782 { frame 1 { _global.menuMainLayer = this; _global.wheelMenuLayer._alpha = 100; ++_root.gamePlay_Stats[5][1]; } frame 16 { stop(); } frame 25 { stop(); } frame 36 { stop(); } frame 46 { stop(); } frame 56 { stop(); } frame 66 { stop(); } frame 67 { ++_root.gamePlay_Stats[5][2]; _root.scanForAchievements(); } frame 75 { stop(); } frame 84 { stop(); } frame 92 { stop(); } frame 99 { stop(); } frame 107 { _global.mapDataLayer.unpauseGame(); removeMovieClip(_root.mainMenuHolder); stop(); } } movieClip 2785 profilePic_Soldier { } movieClip 2786 noSupport { } movieClip 2787 { frame 1 { stop(); } } movieClip 2791 menuMainHolder { frame 1 { this._xscale = _root.gameResolution[0]; this._yscale = _root.gameResolution[0]; this._x = _root.gameResolution[1]; this._y = _root.gameResolution[2]; } frame 8 { stop(); } } movieClip 2798 { } movieClip 2800 { frame 1 { function updateGearList(cat) { if (cat == 0) { listWord = 'listMelee'; listStats = 'WpnMelee'; listDesc = 'MeleeDes'; } if (cat == 1) { listWord = 'listBuster'; listStats = 'WpnBuster'; listDesc = 'BusterDes'; } if (cat == 2) { listWord = 'listArmor'; listStats = 'WpnArmor'; listDesc = 'ArmorDes'; } if (cat == 3) { listWord = 'listLeg'; listStats = 'WpnLeg'; listDesc = 'LegDes'; } if (cat == 4) { listWord = 'listHead'; listStats = 'WpnHead'; listDesc = 'HeadDes'; } if (cat == 5) { listWord = 'listTrinket'; listStats = 'WpnTrinket'; listDesc = 'TrinketDes'; } gearNumList = ''; gearList = ''; counter = 0; varX = 0; while (varX <= (eval('_root.' + listWord)).length + 1) { if ((eval('_root.' + listWord))[varX] > 0) { gearList += (eval('_root.' + listStats + varX))[0] + '\r'; _root.tempList[counter] = [eval('_root.' + listStats + varX), eval('_root.' + listDesc + varX), varX]; gearNumList += (eval('_root.' + listWord))[varX] + '\r'; ++counter; } ++varX; } totalGear = counter - 1; gearListText.text = gearList; gearNumListText.text = gearNumList; } _global.gearListLayer = this; stop(); } } movieClip 2801 gearListMC { frame 6 { stop(); } frame 14 { stop(); } } movieClip 2804 annoucementGear { frame 55 { stop(); } } movieClip 2805 { frame 1 { stop(); } } movieClip 2806 openSlot { frame 9 { stop(); } frame 58 { gotoAndPlay('select'); } } movieClip 2809 wilyPic { } movieClip 2812 gutmanPic { } movieClip 2815 firemanPic { } movieClip 2818 restorePic { } movieClip 2821 cainPic { } movieClip 2824 icemanPic { } movieClip 2827 emptyPic { } movieClip 2830 lightPic { } movieClip 2831 { } movieClip 2834 basicPic { } movieClip 2835 { frame 1 { stop(); } } movieClip 2836 moveList { frame 1 { _global.moveListLayer = this; caData = eval('_root.chrCAData_' + _root.party_Order[_global.bcMainLayer.chrNum]); moveLength = caData[_global.bcMainLayer.evalNum][2].length - 1; _root.textBox_Color = '0x000000'; boxWidth = 100; boxHeight = 40; x = 0; y = 0; new MovieClip(); this.createEmptyMovieClip('drawBox', 50); drawBox.lineStyle(1.5, '0x00FF00', 100); drawBox.moveTo(x, y); drawBox.beginFill(_root.textBox_Color, 100); drawBox.lineTo(x, boxHeight + Math.abs(y)); drawBox.lineTo(boxWidth + Math.abs(x), boxHeight + Math.abs(y)); drawBox.lineTo(boxWidth + Math.abs(x), y); drawBox.endFill(); drawBox._visible = false; gotoAndPlay('loop'); } frame 2 { caData = eval('_root.chrCAData_' + _root.party_Order[_global.bcMainLayer.chrNum]); sxpList = eval('_root.chrSXPList_' + _root.party_Order[_global.bcMainLayer.chrNum]); moveLength = caData[_global.bcMainLayer.evalNum][2].length - 1; caID = caData[_global.bcMainLayer.evalNum]; lastSlot = caID.length - 1; currentXP = sxpList[caID[lastSlot]]; _root.textBox_Color = '0xFF0000'; if (moveLength > 0) { drawBox._visible = true; drawBox._alpha = 90; drawBox._x = 0; drawBox._xscale = 350; drawBox._y = 0; drawBox._yscale = 70 * (moveLength + 3); } else { drawBox._visible = false; } varX = 0; while (varX < 10) { (eval('skillText' + varX)).text = ''; (eval('xpText' + varX)).text = ''; (eval('skillType' + varX)).text = ''; (eval('mText' + varX)).text = ''; (eval('bonusText' + varX)).text = ''; chipName.text = ''; removeMovieClip('xpBar' + varX); removeMovieClip('currentBar' + varX); ++varX; } varX = 0; while (varX < moveLength) { skillName = caData[_global.bcMainLayer.evalNum][2][varX][0][0]; skillTgt = caData[_global.bcMainLayer.evalNum][2][varX][0][1]; skillWho = caData[_global.bcMainLayer.evalNum][2][varX][0][2]; skillType = caData[_global.bcMainLayer.evalNum][2][varX][0][3]; neededXP = caData[_global.bcMainLayer.evalNum][2][varX][0][4]; lastSlot = caData[_global.bcMainLayer.evalNum][2].length - 1; commandName = caData[_global.bcMainLayer.evalNum][2][lastSlot][3][0]; benefitName = caData[_global.bcMainLayer.evalNum][2][lastSlot][0][0][0]; myTextFormat = new TextFormat(); myTextFormat.bold = false; myTextFormat.font = 'Verdana'; myTextFormat.align = 'left'; myTextFormat.size = 12; headerFormat = new TextFormat(); headerFormat.font = 'Verdana'; headerFormat.align = 'center'; headerFormat.size = 13; headerFromat.bold = true; var dropShadow = new flash.filters.DropShadowFilter(10, 45, 0, 5, 0, 4, 3, 1); dropShadow.strength = 5; dropShadow.distance = 1; dropShadow.blurX = 10; dropShadow.blurY = 10; this.createTextField('chipName', 75, 15, 10, 330, 50); chipName.text = caData[_global.bcMainLayer.evalNum][0]; chipName.textColor = 16777215; chipName.setTextFormat(headerFormat); chipName.filters = [dropShadow]; this.createTextField('skillText' + varX, 100 + varX, 15, 35 + varX * 20, 350, 50); (eval('skillText' + varX)).text = '????'; if (currentXP >= neededXP) { (eval('skillText' + varX)).text = skillName; hideText = varX; } if (currentXP >= neededXP * 0.5) { (eval('skillText' + varX)).text = skillName; hideText = varX; } (eval('skillText' + varX)).textColor = 65280; (eval('skillText' + varX)).setTextFormat(myTextFormat); (eval('skillText' + varX)).filters = [dropShadow]; this.createTextField('skillType' + varX, 200 + varX, 135, 35 + varX * 20, 350, 50); (eval('skillType' + varX)).text = skillType; if (skillType == 'E') { (eval('skillType' + varX)).textColor = 16625922; } if (skillType == 'A') { (eval('skillType' + varX)).textColor = 16737792; } if (skillType == 'T') { (eval('skillType' + varX)).textColor = 16711680; } if (skillType == 'H') { (eval('skillType' + varX)).textColor = 65357; } (eval('skillType' + varX)).setTextFormat(myTextFormat); (eval('skillType' + varX)).filters = [dropShadow]; if (currentXP >= neededXP) { attachMovie('masteryBar', 'xpBar' + varX, 300 + varX, {'_x': 155, '_y': 35 + varX * 20}); } else { attachMovie('baseBar', 'xpBar' + varX, 300 + varX, {'_x': 155, '_y': 35 + varX * 20}); attachMovie('currentBar', 'currentBar' + varX, 350 + varX, {'_x': 155, '_y': 35 + varX * 20}); x_scale = (currentXP / neededXP) * 100; if (Math.round(x_scale) >= 100) { x_scale = 100; } (eval('currentBar' + varX))._xscale = Math.round(x_scale); } if (currentXP >= neededXP) { this.createTextField('xpText' + varX, 400 + varX, 250, 35 + varX * 20, 350, 50); (eval('xpText' + varX)).text = '[MASTERY]'; (eval('xpText' + varX)).textColor = 655161; (eval('xpText' + varX)).setTextFormat(myTextFormat); (eval('xpText' + varX)).filters = [dropShadow]; } else { this.createTextField('xpText' + varX, 400 + varX, 250, 35 + varX * 20, 350, 50); (eval('xpText' + varX)).text = currentXP + '/' + neededXP; (eval('xpText' + varX)).textColor = 16777215; (eval('xpText' + varX)).setTextFormat(myTextFormat); (eval('xpText' + varX)).filters = [dropShadow]; } ++varX; } if (moveLength > 0) { varX = moveLength + 1; this.createTextField('mText' + varX, 600 + varX, 15, 35 + varX * 20, 350, 50); (eval('mText' + varX)).text = 'MASTERY BONUS: ' + benefitName; (eval('mText' + varX)).textColor = 16776960; (eval('mText' + varX)).setTextFormat(myTextFormat); (eval('mText' + varX)).filters = [dropShadow]; varX = moveLength + 2; this.createTextField('bonusText' + varX, 500 + varX, 15, 35 + varX * 20, 350, 50); (eval('bonusText' + varX)).text = 'COMMAND: ' + commandName; (eval('bonusText' + varX)).textColor = 16750848; (eval('bonusText' + varX)).setTextFormat(myTextFormat); (eval('bonusText' + varX)).filters = [dropShadow]; } } frame 4 { stop(); } } movieClip 2837 baseBar { } movieClip 2839 currentBar { } movieClip 2840 masteryBar { } movieClip 2841 moveListB { frame 1 { _global.moveListLayer = this; _root.updateBCData(); bcDirect = eval('_root.chrBCData_' + _root.party_Order[_global.bcMainLayer.chrNum]); moveLength = bcDirect[_global.bcMainLayer.evalNum].length - 1; _root.textBox_Color = '0x000000'; boxWidth = 100; boxHeight = 40; x = 0; y = 0; new MovieClip(); this.createEmptyMovieClip('drawBox', 50); drawBox.lineStyle(0.5, '0x00FF00', 100); drawBox.moveTo(x, y); drawBox.beginFill(_root.textBox_Color, 100); drawBox.lineTo(x, boxHeight + Math.abs(y)); drawBox.lineTo(boxWidth + Math.abs(x), boxHeight + Math.abs(y)); drawBox.lineTo(boxWidth + Math.abs(x), y); drawBox.endFill(); drawBox._visible = false; gotoAndPlay('loop'); } frame 2 { bcDirect = eval('_root.chrBCData_' + _root.party_Order[_global.bcMainLayer.chrNum]); moveLength = bcDirect[_global.bcMainLayer.evalNum].length - 1; _root.textBox_Color = '0xFF0000'; if (moveLength > 0) { drawBox._visible = true; drawBox._alpha = 90; drawBox._x = 0; drawBox._xscale = 350; drawBox._y = 0; drawBox._yscale = 70 * (moveLength + 3); } else { drawBox._visible = false; } varX = 0; while (varX < 10) { (eval('skillText' + varX)).text = ''; (eval('xpText' + varX)).text = ''; (eval('skillType' + varX)).text = ''; (eval('mText' + varX)).text = ''; (eval('bonusText' + varX)).text = ''; chipName.text = ''; removeMovieClip('xpBar' + varX); removeMovieClip('currentBar' + varX); ++varX; } varX = 0; while (varX < moveLength) { skillName = bcDirect[_global.bcMainLayer.evalNum][varX][0][0]; skillTgt = bcDirect[_global.bcMainLayer.evalNum][varX][0][1]; skillWho = bcDirect[_global.bcMainLayer.evalNum][varX][0][2]; skillType = bcDirect[_global.bcMainLayer.evalNum][varX][0][3]; neededXP = bcDirect[_global.bcMainLayer.evalNum][varX][0][4]; currentXP = bcDirect[_global.bcMainLayer.evalNum][varX][1]; lastSlot = bcDirect[_global.bcMainLayer.evalNum].length - 1; commandName = bcDirect[_global.bcMainLayer.evalNum][lastSlot][3][0]; benefitName = bcDirect[_global.bcMainLayer.evalNum][lastSlot][0][0][0]; myTextFormat = new TextFormat(); myTextFormat.bold = false; myTextFormat.font = 'Verdana'; myTextFormat.align = 'left'; myTextFormat.size = 12; headerFormat = new TextFormat(); headerFormat.font = 'Verdana'; headerFormat.align = 'center'; headerFormat.size = 13; headerFromat.bold = true; var dropShadow = new flash.filters.DropShadowFilter(10, 45, 0, 5, 0, 4, 3, 1); dropShadow.strength = 5; dropShadow.distance = 1; dropShadow.blurX = 10; dropShadow.blurY = 10; this.createTextField('chipName', 75, 15, 10, 330, 50); chipName.text = 'Slot ' + _global.bcMainLayer.evalNum; chipName.textColor = 16777215; chipName.setTextFormat(headerFormat); chipName.filters = [dropShadow]; this.createTextField('skillText' + varX, 100 + varX, 15, 35 + varX * 20, 350, 50); (eval('skillText' + varX)).text = '????'; if (currentXP >= neededXP) { (eval('skillText' + varX)).text = skillName; hideText = varX; } if (currentXP >= neededXP * 0.5) { (eval('skillText' + varX)).text = skillName; hideText = varX; } (eval('skillText' + varX)).textColor = 65280; (eval('skillText' + varX)).setTextFormat(myTextFormat); (eval('skillText' + varX)).filters = [dropShadow]; this.createTextField('skillType' + varX, 200 + varX, 135, 35 + varX * 20, 350, 50); (eval('skillType' + varX)).text = skillType; if (skillType == 'E') { (eval('skillType' + varX)).textColor = 16625922; } if (skillType == 'A') { (eval('skillType' + varX)).textColor = 16737792; } if (skillType == 'T') { (eval('skillType' + varX)).textColor = 16711680; } if (skillType == 'H') { (eval('skillType' + varX)).textColor = 65357; } (eval('skillType' + varX)).setTextFormat(myTextFormat); (eval('skillType' + varX)).filters = [dropShadow]; if (currentXP >= neededXP) { attachMovie('masteryBar', 'xpBar' + varX, 300 + varX, {'_x': 155, '_y': 35 + varX * 20}); } else { attachMovie('baseBar', 'xpBar' + varX, 300 + varX, {'_x': 155, '_y': 35 + varX * 20}); attachMovie('currentBar', 'currentBar' + varX, 350 + varX, {'_x': 155, '_y': 35 + varX * 20}); x_scale = (currentXP / neededXP) * 100; if (Math.round(x_scale) >= 100) { x_scale = 100; } (eval('currentBar' + varX))._xscale = Math.round(x_scale); } if (currentXP >= neededXP) { this.createTextField('xpText' + varX, 400 + varX, 250, 35 + varX * 20, 350, 50); (eval('xpText' + varX)).text = '[MASTERY]'; (eval('xpText' + varX)).textColor = 655161; (eval('xpText' + varX)).setTextFormat(myTextFormat); (eval('xpText' + varX)).filters = [dropShadow]; } else { this.createTextField('xpText' + varX, 400 + varX, 250, 35 + varX * 20, 350, 50); (eval('xpText' + varX)).text = currentXP + '/' + neededXP; (eval('xpText' + varX)).textColor = 16777215; (eval('xpText' + varX)).setTextFormat(myTextFormat); (eval('xpText' + varX)).filters = [dropShadow]; } ++varX; } if (moveLength > 0) { varX = moveLength + 1; this.createTextField('mText' + varX, 600 + varX, 15, 35 + varX * 20, 350, 50); (eval('mText' + varX)).text = 'MASTERY BONUS: ' + benefitName; (eval('mText' + varX)).textColor = 16776960; (eval('mText' + varX)).setTextFormat(myTextFormat); (eval('mText' + varX)).filters = [dropShadow]; varX = moveLength + 2; this.createTextField('bonusText' + varX, 500 + varX, 15, 35 + varX * 20, 350, 50); (eval('bonusText' + varX)).text = 'COMMAND: ' + commandName; (eval('bonusText' + varX)).textColor = 16750848; (eval('bonusText' + varX)).setTextFormat(myTextFormat); (eval('bonusText' + varX)).filters = [dropShadow]; } } frame 4 { stop(); } } movieClip 2842 { frame 1 { stop(); } } movieClip 2844 { } movieClip 2847 form_AGGROMAG { } movieClip 2850 form_DEFENSIVE { } movieClip 2853 form_OFFENSIVE { } movieClip 2856 form_QUICKSHOT { } movieClip 2859 form_STANDARD { } movieClip 2860 { frame 1 { stop(); } } movieClip 2861 { } movieClip 2864 { } movieClip 2866 { } movieClip 2868 { } // unknown tag 88 length 153 movieClip 2871 { frame 1 { achv_Title.text = _parent.achvTitle; } } movieClip 2872 achievementPopUpMC { frame 1 { achvTitle = _root.achv_Title; } frame 19 { if (_root.gameVariables[0][0][3] == true) { _global.fx820.start(); } } frame 111 { stop(); } } movieClip 2873 { frame 1 { stop(); } } movieClip 2874 { frame 1 { stop(); } } frame 15 { _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.song3 = new Sound(); _global.song3.attachSound('song3'); _global.song4 = new Sound(); _global.song4.attachSound('song4'); _global.song5 = new Sound(); _global.song5.attachSound('song5'); _global.voice0 = new Sound(); _global.voice0.attachSound('voice0'); attachMovie('musicPlayerMC', 'musicPlayerMC', 50, {'_x': 0, '_y': 0}); } frame 21 { _root.musicPlayerMC.changeMusic('STOP', ''); } frame 21 { attachMovie('checkDataHolder', 'checkDataHolder', 100, {'_x': 0, '_y': 0}); } frame 30 { stop(); } frame 31 { removeMovieClip('checkDataHolder'); attachMovie('introHolder', 'introHolder', 100, {'_x': 0, '_y': 0}); } frame 31 { _root.chrIData_0 = ['X', 'healthBarPic0', 'battleMovie_0', '', 'profilePic_MegaMan', 'C']; _root.chrIData_1 = ['Zero', 'healthBarPic1', 'battleMovie_1', '', 'profilePic_Zero', 'C']; _root.chrIData_2 = ['Sigma', 'healthBarPic2', 'battleMovie_2', '', 'profilePic_Sigma', 'C']; _root.chrIData_9 = ['Replica Zero', 'healthBarPic1', 'battleMovie_1', '', 'profilePic_Zero', 'C']; } frame 36 { stop(); } frame 37 { removeMovieClip('introHolder'); } frame 37 { _root.listHead = [1, 0, 0, 0, 0, 0]; _root.listBuster = [1, 0, 0, 0, 0, 0]; _root.listMelee = [1, 0, 0, 0, 0, 0]; _root.listArmor = [1, 0, 0, 0, 0, 0]; _root.listLeg = [1, 0, 0, 0, 0, 0]; _root.listTrinket = [1, 0, 0, 0, 0, 0]; _root.WpnBuster0 = ['Buster v.1', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnBuster1 = ['Buster EX v.2', 0, 0, 35, 0, 0, 0, 2, 0, 0, 0, 20, 0, 1, '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, 2, '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, 3, '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, 4, '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, 5, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; var BusterDes0 = ['', '', 'No stat enchancing abilities.']; var BusterDes1 = ['', '', 'Increases your buster damage slightly.']; 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 = ['L-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 = ['Saber EX v.2', 0, 0, 15, 0, 0, 5, 2, 0, 0, 20, 0, 0, 0, 'D', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnMelee2 = ['Z-Saber C', 200, 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', 300, 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', 400, 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', 500, 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 = ['', '', 'Increase your melee damage slightly.']; 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 = ['Visor', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnHead1 = ['Visor v.2', 10, 10, 0, 0, 10, 4, 0, 0, 2, 0, 0, 10, 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 = ['Basic Armor', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnArmor1 = ['Heavy Plate', 60, 20, 0, 0, 10, 10, 0, 0, 1, 0, 0, 0, 1, '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 = ['', '', 'Heavy plating that can witstand against high-impact damage.']; 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 = ['Metal Bracer', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'A', [[0, 0, 0, 0, 0, 0, 0]]]; _root.WpnLeg1 = ['Shin Guards', 20, 5, 0, 0, 0, 0, 2, 1, 0, 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.WpnLeg5 = ['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 = ['Arm Cuffs', 0, 0, 5, 0, 5, 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 = ['', '', 'Metal bracers that protect your hands.']; var TrinketDes1 = ['', '', 'First Aid Kit. Boosts your HP\'s.']; var TrinketDes2 = ['', '', 'Reminds you of a once famous robot.']; 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 37 { function convertSaveData() { ++_global.totalSaves; stageDataPacket = []; varX = 0; while (varX <= 50) { stageDataPacket[varX] = [eval('_root.areaSwitch_' + varX), eval('_root.areaStageData_' + varX)]; ++varX; } levelDataPacket = []; varX = 0; while (varX <= 999) { levelDataPacket[varX] = [eval('_root.objectClips_' + varX), eval('_root.map' + varX + '_OBJECTIVES')]; ++varX; } locationPacket = []; locationPacket = [[_global.mapStageLayer.mainMap._x, _global.mapStageLayer.mainMap._y, _global.mapStageLayer.background_A._x, _global.mapStageLayer.background_B._x], [_global.mapDataLayer.playerChr._x, _global.mapDataLayer.playerChr._y, _global.mapDataLayer.playerChr._xscale], [_global.mapDataLayer.currentLevel, _global.mapDataLayer.vertCount, _global.mapDataLayer.randomBCount, _root.currentObj_Num], [], [_global.mapDataLayer.player, _VSTATE, _global.mapDataLayer.player_BEHAVIOR, _global.mapDataLayer.inAir, _global.mapDataLayer.inRun, _global.mapDataLayer.gravitySpd], [_global.roomName, _global.totalSaves]]; weaponInventoryPacket = []; weaponInventoryPacket = [_root.listHead, _root.listBuster, _root.listMelee, _root.listArmor, _root.listLeg, _root.listTrinket, _root.chipSwitch, _root.numOfChips, _root.refChips]; formationPacket = []; formationPacket = [_root.formationData, _root.currentForm]; inventoryPacket = []; inventoryPacket = [_root.itemListData, _global.newDollars]; chrDataPacket = []; chrDataPacket = []; varX = 0; while (varX <= 9) { chrDataPacket[varX] = [[eval('_root.chrIData_' + varX)], [eval('_root.chrWData_' + varX)], [eval('_root.chrLevel_' + varX)], [eval('_root.chrRep_' + varX)], [eval('_root.chrRData_' + varX)], [eval('_root.chrAData_' + varX)], [eval('_root.chrBData_' + varX)], [eval('_root.chrCData_' + varX)], [eval('_root.chrSData_' + varX)], [eval('_root.chrTData_' + varX)], [eval('_root.chrBCData_' + varX)], [eval('_root.chrCAData_' + varX)], [eval('_root.chrCMD_' + varX)], [eval('_root.chrCMDList_' + varX)], [eval('_root.chrSkillList_' + varX)], [eval('_root.combatData_' + varX)], [eval('_root.supportMoves_' + varX)], [eval('_root.chrSXPList_' + varX)]]; ++varX; } supportDataPacket = []; varX = 0; while (varX <= 10) { supportDataPacket[varX] = [[eval('_root.chrIData_' + (10 + varX))], [eval('_root.chrWData_' + (10 + varX))], [eval('_root.chrLevel_' + (10 + varX))], [eval('_root.chrAData_' + (10 + varX))], [eval('_root.chrBData_' + (10 + varX))], [eval('_root.chrCData_' + (10 + varX))], [eval('_root.chrSData_' + (10 + varX))], [eval('_root.chrTData_' + (10 + varX))], [eval('_root.chrBCData_' + (10 + varX))], [eval('_root.chrCAData_' + (10 + varX))], [eval('_root.chrCMD_' + (10 + varX))], [eval('_root.chrCMDList_' + (10 + varX))], [eval('_root.chrSkillList_' + (10 + varX))], [eval('_root.supportMoves_' + (10 + varX))]]; ++varX; } partyPacket = [_root.party_Order, _root.support_Party, _root.chrAvail_Main, _root.chrAvail_Sprt]; achievementPacket = [_root.gamePlay_Stats, _root.achievementArray]; _root.dataPacket = SharedObject.getLocal('gameSettings'); _root.dataPacket.data.gameSettings = _root.gameVariables; } function autoSaveFeature() { _root.updateTData(); _root.convertSaveData(); _root.dataPacket = SharedObject.getLocal('autoSave'); _root.dataPacket.data.autoSave = [[_root.stageDataPacket], [_root.levelDataPacket], [_root.locationPacket], [_root.weaponInventoryPacket], [_root.formationPacket], [_root.inventoryPacket], [_root.chrDataPacket], [_root.supportDataPacket], [_root.partyPacket], [_root.achievementPacket]]; _root.dataPacket.data.autoSave.flush(); _root.dataPacket = SharedObject.getLocal('dumpSave'); _root.dataPacket.data.dumpSave = ['local numb']; _root.dataPacket.data.dumpSave.flush(); } } frame 48 { 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 = []; chipSwitch = [true, true, true, true, true, true, true, true, true]; numOfChips = [99, 0, 0, 0, 0, 0, 0, 0, 0]; refChips = ['Empty', 'Light Chip', 'Wily Chip', 'Sigma Chip', 'Gutman Chip', 'Restore Chip', 'Fireman Chip', 'Iceman Chip', 'Basic Chip']; 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_4 = ['+100 HP/+50 SP\'s', [100, 0], [50, 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]]; support_Grenade = ['Support: Grenade I', 'Enemy', 'All', 'T', 0, ['ether', [[10, 5]], 10, 0, 0], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Lob a standard grenade at the enemy. Causes Buster-type damage.']]; support_FirstAid = ['Support: First Aid ', 'Party', 'All', 'T', 0, ['healHP', [[10, 5]], 10, 0, 0], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Lob a standard grenade at the enemy. Causes Buster-type damage.']]; assist_Haste = ['Haste', 'PartyOnly', 'Single', 'A', 0, ['noDmg', [[0, 0]], 10, 0, 5], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[0, 0, 0, 0, 0, 0, 100], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 5, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Bestows a haste buff, increasing your charge rate by 150%.']]; assist_LimitCancel = ['Break Limit', 'Enemy', 'Single', 'A', 50, ['breakLimit', [[0, 20]], 10, 0, 5], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Cancels an active limit break and reduces it\'s meter by 20%.']]; limitB_X0 = ['Armor Up!', 'EnemyOnly', 'Single', 'L', 0, ['ether', [[0, 0]], 25, 0, 0], 3, 'splashIn_A', [['readyStance', 'limitBreak0', 'impact_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['LIMIT BREAK [Armor Up!]: Causes high amounts of ether-type damage.']]; limitB_Z0 = ['Saber Fury', 'EnemyOnly', 'Single', 'L', 0, ['melee', [[0, 0]], 25, 0, 0], 3, 'splashIn_A', [['readyStance', 'limitBreak0', 'impact_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['LIMIT BREAK [Saber Fury]: Causes high amounts of melee-type damage.']]; limitB_S0 = ['Hand of a God', 'EnemyOnly', 'Single', 'L', 0, ['ether', [[400, 5]], 25, 0, 0], 3, 'splashIn_A', [['chargingEnergy', 'limitBreak0', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['LIMIT BREAK [Hand of a God]: Causes high amounts of ether-type damage. Attacks all enemies.']]; fireMan_tech1 = ['Burst I', 'Enemy', 'All', 'T', 150, ['ether', [[75, 0]], 10, 0, 7], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'burst_01']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Attack the enemy with a large explosion of fire.']]; fireMan_tech2 = ['Burst II', 'Enemy', 'All', 'T', 500, ['ether', [[150, 0]], 20, 0, 4], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Attack the enemy with a large explosion of fire.']]; fireMan_techA = ['Burst III', 'Enemy', 'All', 'T', 2000, ['ether', [[250, 0]], 30, 0, 4], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Attack the enemy with a large explosion of fire.']]; fireMan_techB = ['Flashbang', 'Enemy', 'Single', 'T', 100, ['ether', [[250, 0]], 10, 0, 9], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'grenades_flash']], [[100, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [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', 'T', 600, ['ether', [[250, 0]], 10, 0, 6], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'pillar_02']], [[100, 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], [false, false, false]], [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', 'T', 1000, ['ether', [[50, 2]], 25, 0, 4], 8, 'splashIn_A', [['chargingShot', 'dischargeShot', 'flameThrow_01']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['A superheated stream of fire incinerates your enemies!']]; ice_freeze1 = ['Freezing Gale', 'Enemy', 'Single', 'T', 100, ['ether', [[250, 0]], 10, 0, 7], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'iceWind_01']], [[0, 100, 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], [false, false, false]], [false, false, false, false, false], ['A freezing gale blasts through an enemy.']]; ice_tornado1 = ['Tornade', 'Enemy', 'Single', 'T', 300, ['ether', [[250, 0]], 10, 0, 5], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'tornade_01']], [[0, 100, 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], [false, false, false]], [false, false, false, false, false], ['A freezing tornado rips through an enemy.']]; ice_grenade1 = ['Ice Grenade', 'Enemy', 'Single', 'T', 180, ['ether', [[150, 0]], 10, 0, 15], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'grenades_ice']], [[0, 100, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Lob a small, yet devestating, ice grenade at the enemy. Chance to freeze the target.']]; ice_Missle1 = ['Ice Missle', 'Enemy', 'Single', 'T', 400, ['ether', [[50, 15]], 10, 0, 15], 7, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'iceMissle_01']], [[0, 100, 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], [false, false, false]], [false, false, false, false, false], ['A pair of ice missles pierce the enemy. Pierces through armor.']]; ice_Pillar1 = ['Ice Pillar', 'Enemy', 'Single', 'T', 700, ['ether', [[220, 0]], 15, 0, 25], 7, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'icePillar_01']], [[0, 100, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Encase the enemy in a wall ice that violently shatters. Chance to freeze the enemy.']]; elect_ball1 = ['Static Shock', 'Enemy', 'Single', 'T', 240, ['ether', [[220, 0]], 15, 0, 15], 15, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'electricBall_01']], [[0, 0, 100, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Creates a large field of electrical energy that damages the enemy. Chance to short circuit the enemy. ']]; beam_Beam1 = ['Piercing Beam', 'Enemy', 'Single', 'T', 245, ['ether', [[120, 0]], 5, 0, 15], 15, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 100, 0, 0, 0], [0, 4, 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], [false, false, false]], [false, false, false, false, false], ['A quick charging beam that tears through an enemy. ']]; bio_Poisen1 = ['Biohazard I', 'Enemy', 'All', 'T', 370, ['ether', [[0, 8]], 5, 0, 20], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'poisen_01']], [[0, 0, 0, 0, 100, 0, 0], [0, 3, 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], [false, false, false]], [false, false, false, false, false], ['Release a hazardous cloud of poison upon the enemy. Chance to poison the enemy.']]; assist_Scan1 = ['Scan', 'Enemy', 'Single', 'A', 50, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'scan_01']], [[0, 0, 0, 0, 0, 0, 0], [9, 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], [false, false, false]], [false, false, false, false, false], ['Scan an enemy to reveal their weakpoints and basic information.']]; assist_fireShield = ['Fire Shield', 'Party', 'Single', 'A', 300, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[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], [70, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Enact a temporary energy field that protects from Fire-type attacks/skills.']]; assist_iceShield = ['Ice Shield', 'Party', 'Single', 'A', 300, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[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, 70, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Enact a temporary energy field that protects from Ice-type attacks/skills.']]; assist_beamShield = ['Beam Shield', 'Party', 'Single', 'A', 600, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[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, 70, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Enact a temporary energy field that protects from Beam-type attacks/skills.']]; assist_electShield = ['Electric Shield', 'Party', 'Single', 'A', 600, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[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, 70, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Enact a temporary energy field that protects from Electric-type attacks/skills.']]; assist_bioShield = ['Bio Shield', 'Party', 'Single', 'A', 1000, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[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, 70, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Enact a temporary energy field that protects from Bio-type attacks/skills.']]; assist_meleeShield = ['Melee Shield', 'Party', 'Single', 'A', 1000, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[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, 70, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Enact a temporary energy field that protects from Melee-type attacks/skills.']]; assist_busterShield = ['Buster Shield', 'Party', 'Single', 'A', 1000, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[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, 70, 0, 0], [false, false, false]], [false, false, false, false, false], ['Enact a temporary energy field that protects from Buster-type attacks/skills.']]; assist_recharge_0 = ['Convert I', 'Party', 'Single', 'A', 200, ['noDmg', [[0, 0]], 5, 0, 15], 10, 'splashIn_B', [['chargingEnergy', 'dischargeEnergy', 'healSP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [5, 5, 5, 5, 5, 5, 5, 5, 5], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Regain a small amount of SP periodically.']]; restChip_rpr1 = ['Repair I', 'Party', 'Single', 'H', 150, ['healHP', [[200, 0]], 15, 0, 18], 9, 'splashIn_B', [['chargingEnergy', 'dischargeEnergy', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restore a small amount of HP\'s.']]; restChip_rpr2 = ['Repair II', 'Party', 'Single', 'H', 700, ['healHP', [[300, 0]], 20, 0, 30], 8, 'splashIn_B', [['chargingEnergy', 'dischargeEnergy', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restore a moderate amount of HP\'s.']]; restChip_rpr3 = ['Repair III', 'Party', 'Single', 'H', 2500, ['healHP', [[500, 0]], 30, 0, 45], 6, 'splashIn_B', [['chargingEnergy', 'dischargeEnergy', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restore a large amount of HP\'s.']]; restChip_rv1 = ['Revive I', 'Party', 'Single', 'H', 800, ['revive', [[50, 10]], 1, 0, 0], 10, 'splashIn_B', [['chargingEnergy', 'dischargeEnergy', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Restore a fallen party member.']]; restChip_techA = ['Mend I', 'Party', 'All', 'H', 250, ['healHP', [[100, 0]], 15, 0, 25], 4, 'splashIn_B', [['chargingEnergy', 'dischargeEnergy', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Heal all party members by a small amount.']]; restChip_techB = ['Regain I', 'Party', 'Single', 'H', 150, ['healHP', [[0, 10]], 15, 0, 25], 9, 'splashIn_B', [['chargingEnergy', 'dischargeEnergy', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [5, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['These specialized cannon shells produce heavy fire/buster damage.']]; autoBuff = ['Auto Buff', 'Party', 'Single', 'H', 0, ['autoBuff', [[0, 10]], 1, 0, 9], 10, 'NONE', [['chargingEnergy', 'dischargeEnergy', 'noAnimation']], [[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], [false, false, false]], [false, false, false, false, false], ['Upon casting, all benefits from existing buffs are immediately granted.']]; afflictionDmg = ['Affliction', 'Party', 'Single', 'H', 0, ['affDmg', [[0, 10]], 1, 0, 9], 10, 'NONE', [['chargingEnergy', 'dischargeEnergy', 'noAnimation']], [[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], [false, false, false]], [false, false, false, false, false], ['Upon casting, all damage from existing afflictions will be incurred immediately.']]; x_chrSpec1 = ['Charged Shots', 'EnemyOnly', 'Single', 'T', 100, ['ether', [[35, 2]], 20, 0, 25], 6, 'splashIn_A', [['chargingShot', 'dischargeShot', 'chargeShot_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Launch three powerful charged volleys at an enemy. ']]; x_chrSpec2 = ['Exploding Shells', 'EnemyOnly', 'Single', 'T', 600, ['ether', [[300, 0]], 15, 0, 25], 6, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[50, 0, 0, 50, 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], [false, false, false]], [false, false, false, false, false], ['These specialized cannon shells produce heavy fire/buster damage.']]; z_chrSpec1 = ['Tri-Slash', 'Enemy', 'Single', 'T', 120, ['melee', [[0, 0]], 10, 0, 25], 8, 'splashIn_A', [['readyStance', 'zero_triSlash', 'impact_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Charge in and slice the enemy to pieces!']]; s_chrSpec1 = ['Infect', 'Enemy', 'All', 'A', 150, ['ether', [[0, 0]], 15, 0, 25], 7, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 100, 0, 0], [0, 4, 4, 0, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Infect an enemy with an assortment of ailments.']]; s_chrSpec2 = ['Breaker Beam Alpha', 'EnemyOnly', 'Single', 'T', 300, ['ether', [[400, 0]], 25, 0, 25], 6, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['The Breaker Beam is an immensely powerful laser capable of destroying everything in it\'s path.']]; train_rpr = ['Minor Aid', 'Party', 'Single', 'H', 50, ['healHP', [[60, 2]], 5, 0, 5], 10, 'splashIn_B', [['chargingEnergy', 'dischargeEnergy', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restore a small moderate of HP\'s.']]; train_bio = ['Minor Nox', 'Enemy', 'Single', 'T', 30, ['ether', [[50, 2]], 5, 0, 7], 3, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'poisen_01']], [[0, 0, 0, 0, 100, 0, 0], [0, 3, 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], [false, false, false]], [false, false, false, false, false], ['Release a simulated cloud of poison. Chance to poison.']]; train_frz = ['Chill Gale', 'Enemy', 'Single', 'T', 25, ['ether', [[50, 0]], 5, 0, 7], 3, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'iceWind_01']], [[0, 100, 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], [false, false, false]], [false, false, false, false, false], ['A simulated gale blasts through an enemy.']]; train_fire = ['Spark Burst', 'Enemy', 'All', 'T', 95, ['ether', [[55, 0]], 5, 0, 10], 3, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'burst_01']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Attack all enemies with simulated fire.']]; elect_beam1 = ['High Voltage', 'Enemy', 'Single', 'T', 150, ['ether', [[60, 10]], 15, 0, 20], 7, 'splashIn_A', [['chargingShot', 'dischargeShot', 'highVoltage_01']], [[0, 0, 100, 0, 0, 0, 0], [0, 0, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['A high voltage shot tears through an enemy. Chance to short circuit the enemy. ']]; command_Techs = ['Techs', 'OpenTech', 'Self', 'T', '', [], '', '', [[' ', ' ', ''], []], [[], [], [], []], [], ['Use techniques in battle.']]; command_Regen = ['Regenerate', 'Party', 'Self', 'T', 0, ['regen', [[0, 15]], 10, 0, 0], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Regenerate a portion of your HP\'s. ']]; command_Recharge = ['Recharge', 'Party', 'Self', 'T', 0, ['healSP', [[0, 10]], 10, 0, 0], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Recharge a portion of your SP\'s.']]; command_Scan = ['Deep Scan', 'Enemy', 'All', 'T', 0, ['noDmg', [[0, 0]], 10, 0, 0], 10, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'scan_01']], [[0, 0, 0, 0, 0, 0, 0], [6, 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], [false, false, false]], [false, false, false, false, false], ['Scan many targets at once. Can be used for enemies or your own party.']]; command_Steal = ['Steal', 'Enemy', 'Single', 'T', 0, ['steal', [[0, 0]], 1, 0, 0], 10, 'splash_PopUp', [['readyStance', 'steal', 'impact_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Attempt to steal an item from the enemy. Odds of success are increased if target is blinded and/or frozen.']]; command_Enrage = ['Enrage', 'Party', 'Self', '', 0, ['noDmg', [[0, 0]], 1, 0, 0], 30, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'noAnimation']], [[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], [false, true, false]], [false, false, false, false, false], ['All damage taken increase the your sync, support, and limit break meters. Last until next turn. Self only.']]; command_Cloak = ['Cloak', 'Party', 'Self', '', 0, ['noDmg', [[0, 0]], 1, 0, 0], 30, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'noAnimation']], [[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], [false, false, true]], [false, false, false, false, false], ['Chance to evade attacks increased by 60%.']]; command_Overload = ['Overload', 'Party', 'Self', '', 0, ['overL', [[0, 0]], 1, 0, 0], 30, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Your limit break becomes availble, but at a cost to HP/SP. There\'s a chance this move can backfire.']]; command_Taunt = ['Taunt', 'Party', 'Self', 'A', 0, ['taunt', [[0, 0]], 10, 0, 5], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Taunt your enemies, increasing aggro (the likelyhood of being attacked) substancially.']]; command_Intimidate = ['Intimidate', 'Party', 'Self', 'A', 0, ['inti', [[0, 0]], 10, 0, 5], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Intimidate your enemies, decreasing aggro (the likelyhood of being attacked) substancially.']]; currentXP = 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_None_9 = [[[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_Steal]]; bc_Fireman_1 = [[fireMan_tech1, currentXP], [fireMan_tech2, currentXP], [fireMan_techB, currentXP], [[benefit_11, false], 'firemanPic', 6, command_Steal]]; bc_Fireman_2 = [[fireMan_tech1, currentXP], [fireMan_tech2, currentXP], [fireMan_techC, currentXP], [[benefit_11, false], 'firemanPic', 6, command_Steal]]; bc_ChrSpecific_0 = [[x_chrSpec1, currentXP], [elect_beam1, currentXP], [[benefit_90, false], 'lightPic', 1, command_Overload]]; bc_ChrSpecific_1 = [[z_chrSpec1, currentXP], [elect_ball1, currentXP], [[benefit_91, false], 'wilyPic', 2, command_Overload]]; bc_ChrSpecific_2 = [[s_chrSpec2, currentXP], [bio_Poisen1, currentXP], [[benefit_92, false], 'cainPic', 3, command_Overload]]; bc_Gutman_0 = [[assist_LimitCancel, currentXP], [assist_beamShield, currentXP], [assist_busterShield, currentXP], [[benefit_25, false], 'gutmanPic', 4, command_Scan]]; bc_Gutman_1 = [[assist_fireShield, currentXP], [assist_electShield, currentXP], [assist_meleeShield, currentXP], [[benefit_21, false], 'gutmanPic', 4, command_Scan]]; bc_Gutman_2 = [[assist_iceShield, currentXP], [assist_bioShield, currentXP], [assist_fireShield, currentXP], [[benefit_21, false], 'gutmanPic', 4, command_Scan]]; bc_Restore_0 = [[restChip_rpr1, currentXP], [restChip_rv1, currentXP], [restChip_rpr3, currentXP], [[benefit_11, false], 'restorePic', 5, command_Regen]]; bc_Restore_1 = [[restChip_techB, currentXP], [restChip_rpr2, currentXP], [restChip_rpr3, currentXP], [[benefit_11, false], 'restorePic', 5, command_Regen]]; bc_Restore_2 = [[restChip_rpr1, currentXP], [restChip_rpr2, currentXP], [restChip_techA, 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_Enrage]]; bc_Iceman_1 = [[ice_grenade1, currentXP], [elect_ball1, currentXP], [ice_Pillar1, currentXP], [[benefit_51, false], 'icemanPic', 7, command_Enrage]]; bc_Iceman_2 = [[ice_freeze1, currentXP], [ice_tornado1, currentXP], [bio_Poisen1, currentXP], [[benefit_51, false], 'icemanPic', 7, command_Enrage]]; bc_BasicChip_0 = [[train_rpr, currentXP], [train_bio, currentXP], [train_frz, currentXP], [train_fire, currentXP], [[benefit_4, false], 'basicPic', 8, command_Scan]]; bc_BasicChip_1 = [[train_rpr, currentXP], [train_bio, currentXP], [train_frz, currentXP], [train_fire, currentXP], [[benefit_4, false], 'basicPic', 8, command_Scan]]; bc_BasicChip_2 = [[train_rpr, currentXP], [train_bio, currentXP], [train_frz, currentXP], [train_fire, currentXP], [[benefit_4, false], 'basicPic', 8, command_Scan]]; bc_BasicChip_9 = [[train_rpr, currentXP], [train_bio, currentXP], [train_frz, currentXP], [train_fire, currentXP], [[benefit_4, false], 'basicPic', 8, command_Scan]]; gotoAndPlay('itemData'); } frame 48 { function scanForAchievements() { varX = 0; while (varX <= _root.achievementArray.length - 1) { if (_root.achievementArray[varX][0][0] == false) { if (_root.gamePlay_Stats[4][3] >= 100) { _root.achievementArray[2][0][1] = true; } if (_root.gamePlay_Stats[4][3] >= 500) { _root.achievementArray[3][0][1] = true; } if (_root.gamePlay_Stats[4][3] >= 20) { _root.achievementArray[4][0][1] = true; } if (_root.gamePlay_Stats[5][2] >= 10) { _root.achievementArray[15][0][1] = true; } if (_root.gamePlay_Stats[4][2] >= 20) { _root.achievementArray[19][0][1] = true; } if (_root.gamePlay_Stats[7][1] >= 3) { _root.achievementArray[30][0][1] = true; } if (_root.gamePlay_Stats[7][0] > 6) { _root.achievementArray[32][0][1] = true; } if (_root.gamePlay_Stats[6][1] > 3) { _root.achievementArray[33][0][1] = true; } if (_root.gamePlay_Stats[6][0] > 2) { _root.achievementArray[34][0][1] = true; } if (_root.achievementArray[varX][0][1] == true) { achievementPop(_root.achievementList[varX][1][0]); _root.achievementArray[varX][0][0] = true; } } ++varX; } } function achievementPop(popText) { attachMovie('achievementPopUpMC', 'achievementPopUpMC', 9050, {'_x': 250, '_y': 150}); achievementPopUpMC._xscale = 75; achievementPopUpMC._yscale = 75; achv_Title = popText; } gamePlay_Stats = []; gamePlay_Stats = [[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]]; achievementArray = []; achievementArray = [[[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]], [[false, false]]]; achievementList = []; achievementList = [[[], ['ACHIEVEMENT NUMBER 0', '']], [[], ['ACHIEVEMENT NUMBER 1', '']], [[], ['NINJA REFLEXS', 'You\'ve pulled off 1000 Timed Hits! Ninja awesome!']], [[], ['PRACTICE MADE PERFECT', 'You\'ve pulled off 500 Timed Hits. Nice!']], [[], ['ABOUT DAMN "TIMED"', 'You\'ve pulled off 20 Timed Hits. ']], [[], ['ACHIEVEMENT NUMBER 5', '']], [[], ['ACHIEVEMENT NUMBER 6', '']], [[], ['CLOSE ENCOUNTER', 'You found the hidden boss - woot woot.']], [[], ['ACHIEVEMENT NUMBER 8', '']], [[], ['ACHIEVEMENT NUMBER 9', '']], [[], ['NOW FOR THE HARD STUFF', 'Completed the Training level. Well done.']], [[], ['WHO\'S YOUR DADDY?', 'Completed the Boss Rush level. Excellent job.']], [[], ['ACHIEVEMENT NUMBER 12', '']], [[], ['ACHIEVEMENT NUMBER 13', '']], [[], ['ACHIEVEMENT NUMBER 14', '']], [[], ['JUUUUST CHECKIN\'', 'You frequently browse your achievements.']], [[], ['ACHIEVEMENT NUMBER 16', '']], [[], ['BLUE BALLS... OF STEEL!', 'Attacked an enemy while at less than 10 HP.']], [[], ['ACHIEVEMENT NUMBER 18', '']], [[], ['NO STONE UNTURNED', 'Find over 20 items!']], [[], ['ACHIEVEMENT NUMBER 20', '']], [[], ['ACHIEVEMENT NUMBER 21', '']], [[], ['ACHIEVEMENT NUMBER 22', '']], [[], ['ACHIEVEMENT NUMBER 23', '']], [[], ['ACHIEVEMENT NUMBER 24', '']], [[], ['ACHIEVEMENT NUMBER 25', '']], [[], ['ACHIEVEMENT NUMBER 26', '']], [[], ['ACHIEVEMENT NUMBER 27', '']], [[], ['ACHIEVEMENT NUMBER 28', '']], [[], ['READY... AIM... FAIL?.', 'Your well aimed shot did no damage. Aww. Sad face.']], [[], ['I\'M S.M.R.T', 'You don\'t need to read instructions - you\'re THAT DAMN GOOD.']], [[], ['MY FIRST ACHIEVEMENT', 'Your first achievement is an achievement of it\'s own! It\'s meta-gaming at its finest!']], [[], ['I HAVE AN ADDICTION', 'Use 7 Ether restoring items on the same person - in a row!']], [[], ['MARIO WOULD CRY', 'You repeatedly fall in holes. Good thing there are no spikes down there...']], [[], ['READING MALFUNCTION', 'You have to be on a save point to save - duh! It even says so on the help bar!']]]; } frame 57 { function refreshAvailbleForms() { _root.availbleForms = []; counter = 0; varX = 0; while (varX <= _root.formationData.length - 1) { if (_root.formationData[varX][0] == true) { _root.availbleForms[counter] = varX; ++counter; } ++varX; } } _root.formationData = [[true, 'STANDARD', 'STANDARD', 'STANDARD: Your basic formation that offers no real advantages/disadvantages. Everybody gains +5% more XP.'], [false, 'OFFENSIVE', 'OFFENSIVE', 'OFFENSIVE: This formation deals 10% MORE damage, but it\'s reckless. As a result, you\'ll take 10% MORE damage.'], [false, 'DEFENSIVE', 'REARGUARD', 'DEFENSIVE: Your flee chances are increased, and you\'ll take 10% LESS damage. Melee attacks do 20% LESS damage.'], [false, 'QUICKSHOT', 'QUICKSHOT', 'QUICKSHOT: Your party members will start the battle fully prepared. No other advantages/disadvantages.'], [false, 'AGGROMAG', 'AGGROMAG', 'AGGROMAG: Your party leader will start with the most aggro.']]; _root.formationPlacement = [[1, 5, 7], [1, 4, 7], [2, 5, 8], [2, 4, 8], [2, 3, 8]]; _root.currentForm = [[0]]; refreshAvailbleForms(); } frame 57 { item_0 = ['First Aid Kit', 'Party', 'Single', 'H', 0, ['itemHP', [[50, 10]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restore a small percentage of HP\'s.']]; item_1 = ['Low-Grade Salve', 'Party', 'Single', 'H', 0, ['itemHP', [[200, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Low-grade medical salve. Restores 200 HP\'s.']]; item_2 = ['Mid-Grade Salve', 'Party', 'Single', 'H', 0, ['itemHP', [[600, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Mid-grade medical salve. Restores 600 HP\'s.']]; item_3 = ['Medical-Grade Salve', 'Party', 'Single', 'H', 0, ['itemHP', [[2000, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Medical-grade medical salve. Restores 2000 HP\'s.']]; item_3 = ['Miracle Salve', 'Party', 'All', 'H', 0, ['itemHP', [[0, 50]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Miracle Salve restores half the parties HP.']]; item_4 = ['Reserve Tank', 'Party', 'Single', 'H', 0, ['itemHP', [[0, 100]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restore one party member\'s HP completely.']]; item_5 = ['Reserve Tank Xtreme', 'Party', 'All', 'H', 0, ['itemHP', [[0, 100]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restore all party member\'s HP completely.']]; item_6 = ['Low-Grade Ether', 'Party', 'Single', 'H', 0, ['itemSP', [[50, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Low-grade Ether. Restores 50 SP\'s.']]; item_7 = ['Mid-Grade Ether', 'Party', 'Single', 'H', 0, ['itemSP', [[90, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Mid-grade Ether. Restores 90 SP\'s.']]; item_8 = ['Excel-Grade Ether', 'Party', 'Single', 'H', 0, ['itemSP', [[300, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Excel-grade Ether. Restores 300 SP\'s.']]; item_9 = ['Ether Vapor', 'Party', 'All', 'H', 0, ['itemSP', [[0, 70]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Ether Vapor restores a large percentage of SP\'s for the entire party.']]; item_10 = ['Emergency Tank', 'Party', 'Single', 'H', 0, ['revive', [[0, 10]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [3, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Restore a fallen party member.']]; item_11 = ['Full Emergency Tank', 'Party', 'Single', 'H', 0, ['revive', [[0, 100]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Restore a fallen party member to full capacity.']]; item_12 = ['Bio Repair Kit', 'Party', 'Single', 'H', 0, ['repair', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, -1, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Eliminates poison and blindness.']]; item_13 = ['Mech Repair Kit', 'Party', 'Single', 'H', 0, ['repair', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, -1, 0, 0, 0, -1, -1, -1], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Eliminates the disarmed, overheated, and inhibitedRepairs short circuits, being disarmed, and inhibited afflictions.']]; item_14 = ['Mobility Repair Kit', 'Party', 'Single', 'H', 0, ['repair', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, -1, -1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Eliminates the frozen and stunned afflictions.']]; item_15 = ['System Flush Kit', 'Party', 'Single', 'H', 0, ['repair', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Eliminates all afflictions.']]; item_16 = ['Tank Drive Addon ', 'Party', 'Single', 'H', 0, ['noDmg', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [5, 0, 0, 0, 0, 0, 0], [-40, -40, -40, -40, -40, 80, 80, 0, 0], [false, false, false]], [false, false, false, false, false], ['Makes a party member highly resistant to melee and ranged attacks, but leaves you exposed to ether-type attacks.']]; item_17 = ['Ether Prism', 'Party', 'Single', 'H', 0, ['noDmg', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[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, 80, 0], [false, false, false]], [false, false, false, false, false], ['All ether-based attacks are partially absorbed by an ether prism. All shields degrade over time. ']]; item_18 = ['Reversion Bot', 'Party', 'Single', 'H', 0, ['noDmg', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 80, 0], [false, false, false]], [false, false, false, false, false], ['Upon defeat, a party member is automatically revived.']]; item_19 = ['Bad Mojo Vial', 'Party', 'Single', 'H', 0, ['noDmg', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [8, 8, 8, 8, 8, 8, 8, 8, 8], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['[???] A mysterious vial labeled simply as, "Bad Mojo". Effects are only felt in battle.']]; item_20 = ['Mixed Mojo Vial', 'Party', 'Single', 'H', 0, ['noDmg', [[0, 0]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 0, 0], [8, 8, 8, 8, 8, 8, 8, 8, 8], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 100], [false, false, false]], [false, false, false, false, false], ['[???] A mysterious vial labeled simply as, "Mixed Mojo". Effects are only felt in battle.']]; item_21 = ['Frag Grenade', 'Enemy', 'Single', 'H', 0, ['ether', [[200, 1]], 1, 0, 0], 10, '', [['chargingEnergy', 'useItem', 'grenades_fire']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Your basic fragmentation grenade.']]; var tempList = []; var itemListData = [2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3]; gotoAndPlay('chrData'); } frame 68 { function refreshChrPool() { combatChrPool = []; supportChrPool = []; counter = 0; varX = 0; while (varX <= chrAvail_Main.length - 1) { if (chrAvail_Main[varX] == true) { combatChrPool[counter] = varX; ++counter; } ++varX; } counter = 0; varX = 0; while (varX <= chrAvail_Main.length - 1) { if (chrAvail_Sprt[varX] == true) { supportChrPool[counter] = varX + 10; ++counter; } ++varX; } } 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]; meleeStats = eval('_root.WpnMelee' + wData[0]); busterStats = eval('_root.WpnBuster' + wData[1]); armorStats = eval('_root.WpnArmor' + wData[2]); legStats = eval('_root.WpnLeg' + wData[3]); headStats = eval('_root.WpnHead' + 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] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; tData[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0]; tData[5] = [0, 0, 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 updateACData() { counter0 = 0; counter5 = 0; counter1 = 0; counter6 = 0; counter2 = 0; counter7 = 0; counter3 = 0; counter8 = 0; counter4 = 0; counter9 = 0; totalPartyNum = _root.party_Order.length - 1; _root.chrCAData_0 = []; _root.chrCAData_1 = []; _root.chrCAData_2 = []; _root.chrCAData_3 = []; _root.chrCAData_4 = []; _root.chrCAData_5 = []; _root.chrCAData_6 = []; _root.chrCAData_7 = []; _root.chrCAData_8 = []; _root.chrCAData_9 = []; 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]); 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.chipSwitch[2] == true and _root.numOfChips[2] >= 0) { 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.chipSwitch[3] == true and _root.numOfChips[3] >= 0) { 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[4] == true and _root.numOfChips[4] >= 0) { if (trinketName == 'Gutman Charm') { chipName = eval('bc_Gutman_' + _root.party_Order[varX]); caData[counter] = ['Gutman Chip', 'gutmanPic', chipName, 4]; ++counter; } } if (_root.chipSwitch[5] == true and _root.numOfChips[5] >= 0) { if (trinketName == 'First Aid Kit') { chipName = eval('bc_Restore_' + _root.party_Order[varX]); caData[counter] = ['Restore Chip', 'restorePic', chipName, 5]; ++counter; } } if (_root.chipSwitch[4] == true and _root.numOfChips[4] >= 0) { chipName = eval('bc_Gutman_' + _root.party_Order[varX]); caData[counter] = ['Gutman Chip', 'gutmanPic', chipName, 4]; ++counter; } if (_root.chipSwitch[5] == true and _root.numOfChips[5] >= 0) { chipName = eval('bc_Restore_' + _root.party_Order[varX]); caData[counter] = ['Restore Chip', 'restorePic', chipName, 5]; ++counter; } if (_root.chipSwitch[6] == true and _root.numOfChips[6] >= 0) { chipName = eval('bc_Fireman_' + _root.party_Order[varX]); caData[counter] = ['Fireman Chip', 'firemanPic', chipName, 6]; ++counter; } if (_root.chipSwitch[7] == true and _root.numOfChips[7] >= 0) { chipName = eval('bc_Iceman_' + _root.party_Order[varX]); caData[counter] = ['Iceman Chip', 'icemanPic', chipName, 7]; ++counter; } if (_root.chipSwitch[8] == true and _root.numOfChips[8] >= 0) { chipName = eval('bc_BasicChip_' + _root.party_Order[varX]); caData[counter] = ['Basic Chip', 'basicPic', chipName, 8]; ++counter; } ++varX; } } function updateBCData() { _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]); 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]); sxpList = eval('_root.chrSXPList_' + _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) { bcData[slot][varY][1] = sxpList[bcData[slot][lastSlot][2]]; 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; } regenCount = 0; rechargeCount = 0; scanCount = 0; stealCount = 0; enrageCount = 0; cloakCount = 0; overloadCount = 0; intimCount = 0; tauntCount = 0; counter = 0; varA = 0; while (varA <= cmdData.length) { if (cmdData[varA][0] == 'Regenerate') { ++regenCount; } if (cmdData[varA][0] == 'Deep Scan') { ++scanCount; } if (cmdData[varA][0] == 'Enrage') { ++enrageCount; } 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; } if (cmdData[varA][0] == 'Cloak') { ++cloakCount; } if (cmdData[varA][0] == 'Overload') { ++overloadCount; } if (cmdData[varA][0] == 'Intimidate') { ++intimCount; } if (cmdData[varA][0] == 'Taunt') { ++tauntCount; } ++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 (stealCount > 0) { cmdList[counter] = _root.command_Steal; ++counter; } if (enrageCount > 0) { cmdList[counter] = _root.command_Enrage; ++counter; } if (cloakCount > 0) { cmdList[counter] = _root.command_Cloak; ++counter; } if (overloadCount > 0) { cmdList[counter] = _root.command_Overload; ++counter; } if (intimCount > 0) { cmdList[counter] = _root.command_Intimidate; ++counter; } if (tauntCount > 0) { cmdList[counter] = _root.command_Taunt; ++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) { bcData[slot][varY][1] = sxpList[bcData[slot][lastSlot][2]]; currentXP = bcData[slot][varY][1]; neededXP = bcData[slot][varY][0][4]; if (currentXP >= neededXP) { skillTemp[counter] = bcData[slot][varY]; ++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 checkNewTechs() { _root.learnedNewTech = []; learnedNum = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { bcData = eval('_root.chrBCData_' + _root.party_Order[varX]); iData = eval('_root.chrIData_' + _root.party_Order[varX]); readAll = bcData.length - 1; slot = 0; while (slot <= readAll) { lastSlot = bcData[slot].length - 1; varY = 0; while (varY < bcData[slot].length - 1) { techName = bcData[slot][varY][0][0]; bcData[slot][varY][1] = sxpList[bcData[slot][lastSlot][2]]; currentXP = bcData[slot][varY][1]; neededXP = bcData[slot][varY][0][4]; if (currentXP >= neededXP) { if (bcData[slot][varY][0][10][_root.party_Order[varX]] == false) { bcData[slot][varY][0][10][_root.party_Order[varX]] = true; _root.learnedNewTech[learnedNum] = [iData[0], techName]; ++learnedNum; } } ++varY; } ++slot; } ++varX; } } _root.chrIData_0 = ['X', 'healthBarPic0', 'battleMovie_0', '', 'profilePic_MegaMan', 'C']; _root.chrWData_0 = [0, 0, 0, 0, 0, 0]; _root.chrLevel_0 = [7, 610]; _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.200000000000002, 3.8, 8, 4, 4.200000000000002, 0.4, 0.7000000000000001]; _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.chrSXPList_0 = [0, 0, 0, 0, 0, 0, 50, 50, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.combatData_0 = [[0, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; _root.supportMoves_0 = [[_root.restChip_tech0], [_root.support_Gernade]]; _root.limitBData_0 = [[true, _root.limitB_X0]]; _root.chrIData_1 = ['Zero', 'healthBarPic1', 'battleMovie_1', '', 'profilePic_Zero', 'C']; _root.chrWData_1 = [0, 0, 0, 0, 0, 0]; _root.chrLevel_1 = [9, 0]; _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.200000000000002, 5.5, 12, 3, 5.8, 0.5, 0.4]; _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.chrSXPList_1 = [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]; _root.combatData_1 = [[0, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; _root.supportMoves_1 = [[_root.restChip_tech0], [_root.support_Gernade]]; _root.limitBData_1 = [[true, _root.limitB_Z0], [true, _root.limitB_X0]]; _root.chrIData_2 = ['Sigma', 'healthBarPic2', 'battleMovie_2', '', 'profilePic_Sigma', 'C']; _root.chrWData_2 = [0, 0, 0, 0, 0, 0]; _root.chrLevel_2 = [14, 0]; _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.100000000000001, 5, 2, 3.5, 0.3, 0.8]; _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.chrSXPList_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]; _root.combatData_2 = [[0, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; _root.supportMoves_2 = [[_root.restChip_tech0], [_root.support_Gernade]]; _root.limitBData_2 = [[true, _root.limitB_S0], [false, _root.limitB_S0]]; _root.chrIData_9 = ['Replica Zero', 'healthBarPic1', 'battleMovie_1', '', 'profilePic_Zero', 'C']; _root.chrWData_9 = [0, 0, 1, 0, 0, 0]; _root.chrLevel_9 = [8, 0]; _root.chrRep_9 = []; _root.chrRData_9 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrAData_9 = [0, 0, 0, 0, 0, 0, 0, 0, 0]; _root.chrBData_9 = [25, 9, 5.200000000000002, 5.5, 12, 3, 5.8, 0.5, 0.4]; _root.chrCData_9 = []; _root.chrSData_9 = []; _root.chrTData_9 = []; _root.chrBCData_9 = []; _root.chrCAData_9 = []; _root.chrCMD_9 = []; _root.chrCMDList_9 = []; _root.chrSkillList_9 = []; _root.chrSXPList_9 = [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]; _root.combatData_9 = [[0, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; _root.supportMoves_9 = [[_root.restChip_tech0], [_root.support_Gernade]]; _root.limitBData_9 = [[true, _root.limitB_Z0], [true, _root.limitB_X0]]; _root.chrIData_10 = ['Roy', 'healthBarPic10', 'battleMovie_0', '', 'profilePic_Soldier', 'S']; _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.200000000000002, 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.support_Grenade], [_root.support_FirstAid]]; tempData = [' ']; 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 68 { _root.enemyIData_0 = ['Bomber Joe', ' ', 'enemyChr_0', _global.enemyLevel, [7, 1, true, 1], [['ITEM', 1, 1, 10]], [['ITEM', 1, 1, 10]]]; _root.enemyBaseData_0 = [['blank'], [7, 7, 2.2, 3.8, 2.2, 2, 3.2, 0.2, 0.2], [-40, -40, 40, 0, 0, 0, 0]]; _root.enemySkills_0 = [[[1, 0, 1], ['Punch', 'Party', 'Single', '', 0, ['melee', [[30, 2]], 10, 0, 0], 8, 'splash_PopUp', [['readyStance', 'melee', 'explode_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Punch your foe.']]], [[1, 3, 0], ['Fire Grenade', 'Party', 'Single', '', 0, ['ether', [[30, 2]], 10, 0, 15], 6, 'splashIn_A', [['readyStance', 'buster', 'grenades_fire']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]], [[1, 3, 1], ['Ice Grenade', 'Party', 'Single', '', 0, ['ether', [[30, 2]], 10, 0, 15], 6, 'splashIn_A', [['readyStance', 'buster', 'grenades_ice']], [[0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]], [[0, 0, 0], ['Anger!', 'Enemy', 'Self', '', '', ['iLimit', [[100, 0]], 10, 0, 0], 30, 'splashIn_A', [['readyStance', 'useItem', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]]]; _root.enemyBUSkills_0 = [[[], ['Ether Potion', 'Enemy', 'Single', 'T', 0, ['healSP', [[100, 0]], 10, 0, 25], 8, 'splashIn_A', [['readyStance', 'useItem', 'healSP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restores ether.']]], [[], ['Mega Flash Grenade', 'Party', 'Single', 'T', 0, ['ether', [[100, 20]], 10, 0, 25], 8, 'splashIn_A', [['readyStance', 'buster', 'grenades_flash']], [[0, 0, 0, 0, 0, 0, 100], [0, 0, 0, 3, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['A huge pillar of fire ignites the target.']]]]; _root.speechData_0 = []; _root.enemyIData_1 = ['Canon Joe', ' ', 'enemyChr_1', _global.enemyLevel, [6, 1, true, 1], [['ITEM', 6, 1, 5]], [['ITEM', 6, 1, 20]]]; _root.enemyBaseData_1 = [['blank'], [8, 7, 4.200000000000002, 2.8, 2.2, 2, 3.2, 0.2, 0.2], [0, 0, 0, 0, 0, 0, 60]]; _root.enemySkills_1 = [[[1, 0, 1], ['Blast', 'Party', 'Single', '', 0, ['ranged', [[30, 2]], 10, 0, 0], 8, 'splash_PopUp', [['readyStance', 'buster', 'explode_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Blast your foe.']]], [[2, 3, 1], ['Concussion Blast', 'Party', 'Single', '', 0, ['ether', [[30, 2]], 10, 0, 20], 6, 'splashIn_A', [['readyStance', 'buster', 'pillar_01']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]], [[1, 3, 1], ['Frost Blast', 'Party', 'Single', '', 0, ['ether', [[30, 2]], 10, 0, 20], 6, 'splashIn_A', [['readyStance', 'buster', 'iceWind_01']], [[0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]], [[0, 0, 0], ['Anger!', 'Enemy', 'Self', '', '', ['iLimit', [[100, 0]], 10, 0, 0], 10, 'splashIn_A', [['readyStance', 'useItem', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]]]; _root.enemyBUSkills_1 = [[[], ['Ether Potion', 'Enemy', 'Single', 'T', 0, ['healSP', [[100, 0]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'useItem', 'healSP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restores ether.']]], [[], ['Hellfire', 'Party', 'Single', 'T', 0, ['ether', [[100, 20]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'buster', 'pillar_02']], [[100, 0, 0, 0, 0, 0, 0], [0, 0, 0, 3, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Lob a mega flash grenade, causing shock and blindness.']]]]; _root.speechData_1 = []; _root.enemyIData_2 = ['Grudge Arm', ' ', 'enemyChr_2', _global.enemyLevel, [8, 1, true, 1], [['ITEM', 13, 1, 10]], [['ITEM', 14, 2, 10]]]; _root.enemyBaseData_2 = [['blank'], [10, 9, 5.200000000000002, 0.8, 4.200000000000002, 1, 2.2, 0.6, 0.4], [0, 0, -20, 0, 0, 20, 20]]; _root.enemySkills_2 = [[[1, 2, 1], ['Bash', 'Party', 'Single', '', 0, ['melee', [[30, 2]], 10, 0, 0], 8, 'splash_PopUp', [['readyStance', 'melee', 'impact_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Blast your foe.']]], [[0, 5, 3], ['Block', 'Enemy', 'Self', '', 0, ['noDmg', [[0, 0]], 10, 0, 10], 10, 'splashIn_A', [['readyStance', 'useItem', 'shield_01']], [[0, 0, 0, 0, 0, 100, 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], [true, false, false]], [false, false, false, false, false], ['Reduce all damage taken for one round by 30%. Charge rate reduced by half.']]], [[0, 3, 5], ['Low-Grade Salve', 'Enemy', 'Single', '', 0, ['healHP', [[80, 0]], 10, 0, 20], 6, 'splashIn_A', [['readyStance', 'useItem', 'healHP_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]], [[0, 0, 0], ['Anger!', 'Enemy', 'Self', '', '', ['iLimit', [[100, 0]], 10, 0, 0], 10, 'splashIn_A', [['readyStance', 'useItem', 'explode_02']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]]]; _root.enemyBUSkills_2 = [[[], ['Ether Potion', 'Enemy', 'Single', 'T', 0, ['healSP', [[100, 0]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'useItem', 'healSP_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restores ether.']]], [[], ['Brain Bash', 'Party', 'Single', 'T', 0, ['melee', [[0, 25]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'melee', 'impact_01']], [[0, 0, 0, 0, 0, 100, 0], [0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Hit one target for half their health.']]]]; _root.speechData_2 = [[['Move', 0, 2, true], [[0, 2, 0], ['TEXT'], ['Why are you attacking me?']]], [['Move', 1, 2, true], [[0, 2, 0], ['TEXT'], ['This is my second conversation...']]]]; _root.enemyIData_3 = ['Torch Bot', ' ', 'enemyChr_3', _global.enemyLevel, [5, 1, true, 1], [['ITEM', 1, 1, 20]], [['ITEM', 1, 1, 5]]]; _root.enemyBaseData_3 = [['blank'], [7, 1, 1.2, 1.2, 2.2, 15, 2.2, 0.2, 3.7], [100, -100, 0, 0, 0, 0, 0]]; _root.enemySkills_3 = [[[1, 0, 0], ['Smack', 'Party', 'Single', '', 0, ['melee', [[30, 2]], 10, 0, 0], 8, 'splash_PopUp', [['readyStance', 'melee', 'impact_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Blast your foe.']]], [[1, 2, 1], ['Fire Blast', 'Party', 'All', '', 0, ['ether', [[50, 0]], 20, 0, 10], 9, 'splashIn_A', [['readyStance', 'buster', 'pillar_01']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Reduce all damage taken for one round by 30%. Charge rate reduced by half.']]], [[1, 1, 5], ['Flame Arc', 'Party', 'Single', '', 0, ['ether', [[60, 2]], 30, 0, 20], 6, 'splashIn_A', [['readyStance', 'buster', 'pillar_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]], [[1, 0, 1], ['Anger!', 'Enemy', 'Self', '', '', ['iLimit', [[100, 0]], 10, 0, 0], 10, 'splashIn_A', [['readyStance', 'useItem', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]]]; _root.enemyBUSkills_3 = [[[], ['Flame Bath', 'Enemy', 'Self', 'T', 0, ['healSP', [[100, 0]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'useItem', 'pillar_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Restores ether.']]], [[], ['Flame Arc Supreme', 'Party', 'All', 'T', 0, ['ether', [[0, 15]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'buster', 'pillar_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Hit one target for half their health.']]]]; _root.speechData_3 = [[['Move', 0, 5, true], [[0, 2, 0], ['TEXT'], ['Why are you attacking me?']]], [['Move', 1, 5, true], [[0, 2, 0], ['TEXT'], ['This is my second conversation...']]]]; _root.enemyIData_51 = ['Frost Giant', ' ', 'battle_CanonJoe', _global.enemyLevel, [25, 25, false, 1], [['ITEM', 1, 2, 100], ['MELEE', 1, 2, 100]], [['ITEM', 1, 2, 100], ['MELEE', 1, 2, 100]]]; _root.enemyBaseData_51 = [['blank'], [30, 7, 4.200000000000002, 1.800000000000001, 2.2, 2, 3.2, 0.2, 0.2], [0, 0, 0, 0, 0, 0, 0]]; _root.enemySkills_51 = [[[4, 3, 1], ['Grenade I', 'Party', 'Single', 'T', 0, ['ether', [[10, 0]], 10, 23, 25], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Lob a standard grenade at the enemy. Causes Buster-type damage.']]], [[1, 3, 1], ['Regenerate', 'Enemy', 'Single', 'T', 0, ['regen', [[0, 15]], 10, 0, 0], 10, 'splash_PopUp', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Regenerate a portion of your HP\'s. ']]]]; _root.enemyBUSkills_51 = [[[], ['NO mana I', 'Enemy', 'Single', 'T', 0, ['ether', [[100, 0]], 10, 0, 25], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Lob a standard grenade at the enemy. Causes Buster-type damage.']]], [[], ['LIMIT BREAK', 'Enemy', 'Single', 'T', 0, ['ether', [[100, 0]], 10, 0, 25], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Lob a standard grenade at the enemy. Causes Buster-type damage.']]]]; _root.speechData_51 = [[['Move', 0, 5, true], [[0, 2, 0], ['TEXT'], ['Why are you attacking me?']]], [['Move', 1, 5, true], [[0, 2, 0], ['TEXT'], ['This is my second conversation...']]]]; _root.enemyIData_91 = ['Sigma', ' ', '91_Sigma', _global.enemyLevel, [0, 0, false, 99], [['ITEM', 1, 2, 2]], [['ITEM', 1, 2, 2]]]; _root.enemyBaseData_91 = [['blank'], [80, 30, 5.200000000000002, 3.8, 2.2, 2, 6.200000000000002, 0.2, 0.9000000000000002], [0, 0, -30, 0, 0, 10, -10]]; _root.enemySkills_91 = [[[1, 1, 1], ['Power Swipe', 'Party', 'Single', 'T', 0, ['melee', [[0, 0]], 10, 0, 5], 5, 'splash_PopUp', [['readyStance', 'melee', 'impact_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Melee attack.']]], [[1, 1, 1], ['Floor Charge', 'Party', 'Single', 'T', 0, ['ranged', [[0, 5]], 10, 0, 5], 5, 'splash_PopUp', [['readyStance', 'buster', 'impact_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Buster attack. ']]], [[1, 2, 4], ['Soul Eater', 'Party', 'Single', 'T', 0, ['ether', [[0, 0]], 10, 0, 15], 5, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'impact_01']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Buster attack. ']]]]; _root.enemyBUSkills_91 = [[[], ['Overload', 'Enemy', 'Self', '', 0, ['overL', [[0, 0]], 1, 0, 0], 30, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'explode_02']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Your limit break becomes availble, but at a cost to HP/SP. There\'s a chance this move can backfire.']]], [[], ['Hand of a God', 'Party', 'Single', 'L', 0, ['melee', [[20, 0]], 30, 0, 0], 8, 'splashIn_A', [['readyStance', 'limitBreak0', 'impact_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Hand of a God.']]]]; _root.speechData_91 = []; _root.enemyIData_92 = ['Yellow Devil (Replica)', ' ', '92_YellowDevil', _global.enemyLevel, [100, 20, false, 99], [['ITEM', 1, 2, 100]], [['ITEM', 1, 2, 100]]]; _root.enemyBaseData_92 = [['blank'], [150, 40, 5.200000000000002, 2.8, 1.2, 1, 1.2, 0.2, 1.9], [-30, -30, -30, -30, -30, 50, -50]]; _root.enemySkills_92 = [[[1, 1, 4], ['Gigantic Press', 'Party', 'Single', 'T', 0, ['melee', [[75, 25]], 20, 0, 0], 5, 'splash_PopUp', [['readyStance', 'melee', 'explode_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Melee attack.']]], [[1, 1, 4], ['Throw', 'Party', 'Single', 'T', 0, ['ranged', [[75, 25]], 20, 0, 0], 5, 'splash_PopUp', [['readyStance', 'buster', 'impact_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Buster attack. ']]], [[10, 2, 4], ['Preparation', 'Enemy', 'Self', '', '', ['iLimit', [[100, 0]], 10, 0, 0], 30, 'splashIn_A', [['readyStance', 'useItem', 'scan_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]]]; _root.enemyBUSkills_92 = [[[], ['Overload', 'Enemy', 'Self', '', 0, ['overL', [[0, 0]], 1, 0, 0], 30, 'splashIn_A', [['readyStance', 'useItem', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Your limit break becomes availble, but at a cost to HP/SP. There\'s a chance this move can backfire.']]], [[], ['Reckless Charge', 'Party', 'Single', 'L', 0, ['melee', [[20, 20]], 20, 0, 0], 8, 'splashIn_A', [['readyStance', 'limitBreak0', 'explode_02']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Reckless Charge']]]]; _root.speechData_92 = []; _root.enemyIData_93 = ['???', ' ', '93_MegaClone', _global.enemyLevel, [100, 20, false, 99], [['ITEM', 1, 2, 100]], [['ITEM', 1, 2, 100]]]; _root.enemyBaseData_93 = [['blank'], [150, 40, 5.200000000000002, 3.8, 1.2, 4, 1.2, 0.2, 1.9], [0, 0, 20, 0, 0, 0, 20]]; _root.enemySkills_93 = [[[1, 3, 1], ['Mega Slash', 'Party', 'Single', 'T', 0, ['melee', [[75, 25]], 20, 0, 0], 5, 'splash_PopUp', [['readyStance', 'melee', 'impact_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Mega slash.']]], [[3, 3, 1], ['Mega Buster', 'Party', 'Single', 'T', 0, ['ranged', [[75, 25]], 20, 0, 0], 5, 'splash_PopUp', [['readyStance', 'buster', 'impact_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Mega Buster']]], [[1, 1, 1], ['Charged Shot', 'Party', 'Single', '', '', ['ranged', [[50, 60]], 20, 0, 0], 3, 'splashIn_A', [['chargingShot', 'dischargeShot', 'chargeShot_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]], [[0, 1, 1], ['Charging', 'Enemy', 'Self', '', '', ['iLimit', [[100, 0]], 10, 0, 0], 10, 'splashIn_A', [['readyStance', 'useItem', 'shield_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]]]; _root.enemyBUSkills_93 = [[[], ['Overload', 'Enemy', 'Self', '', 0, ['overL', [[0, 0]], 1, 0, 0], 30, 'splashIn_A', [['readyStance', 'useItem', 'explode_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Your limit break becomes availble, but at a cost to HP/SP. There\'s a chance this move can backfire.']]], [[], ['Shockwave', 'Party', 'Single', 'L', 0, ['melee', [[20, 8]], 20, 0, 0], 8, 'splashIn_A', [['readyStance', 'limitBreak0', 'electricBall_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Reckless Charge']]]]; _root.speechData_93 = []; _root.enemyIData_94 = ['???', ' ', '94_ProtoClone', _global.enemyLevel, [100, 20, false, 99], [['ITEM', 10, 1, 100]], [['ITEM', 10, 1, 100]]]; _root.enemyBaseData_94 = [['blank'], [160, 30, 5.200000000000002, 2.8, 2.2, 1, 2.2, 0.5, 5.9], [-20, -20, -20, -20, -20, 20, 20]]; _root.enemySkills_94 = [[[3, 1, 0], ['Proto Blast', 'Party', 'Single', 'T', 0, ['melee', [[75, 25]], 20, 0, 0], 5, 'splash_PopUp', [['readyStance', 'melee', 'explode_02']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Proto Blast.']]], [[3, 1, 1], ['Proto Charge', 'Party', 'Single', 'T', 0, ['ranged', [[75, 25]], 20, 0, 0], 5, 'splash_PopUp', [['readyStance', 'buster', 'impact_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Proto Charge']]], [[1, 1, 0], ['Haste', 'Enemy', 'Single', 'A', 0, ['noDmg', [[0, 0]], 10, 0, 5], 8, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'shield_01']], [[0, 0, 0, 0, 0, 0, 100], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 5, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [false, false, false]], [false, false, false, false, false], ['Bestows a haste buff, increasing your charge rate by 150%.']]], [[0, 1, 1], ['Charged Shot', 'Party', 'Single', '', '', ['ranged', [[50, 60]], 20, 0, 0], 3, 'splashIn_A', [['chargingEnergy', 'dischargeEnergy', 'chargeShot_01']], [[0, 0, 0, 0, 0, 0, 100], [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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]], [[0, 0, 1], ['Charging', 'Enemy', 'Self', '', '', ['iLimit', [[100, 0]], 10, 0, 0], 10, 'splashIn_A', [['readyStance', 'useItem', 'shield_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Instantly charge your characters limit bar, granting you a limit break on your next turn.']]]]; _root.enemyBUSkills_94 = [[[], ['Recharge', 'Enemy', 'Self', 'T', 0, ['healSP', [[100, 0]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'useItem', 'shield_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restores ether.']]], [[], ['Wily Potion', 'Enemy', 'Self', 'T', 0, ['healHP', [[0, 65]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'useItem', 'shield_01']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Hit one target for half their health.']]]]; _root.speechData_94 = []; _root.enemyIData_101 = ['Training Bot', ' ', 'enemyChr_101', _global.enemyLevel, [10, 25, false, 1], [['ITEM', 1, 1, 20]], [['ITEM', 6, 1, 100]]]; _root.enemyBaseData_101 = [['blank'], [2, 1000, 1.2, 1.2, 2.2, 1, 0, 0.2, 0.7000000000000001], [100, -100, 100, 100, 100, 100, -100]]; _root.enemySkills_101 = [[[1, 0, 1], ['Punch', 'Party', 'Single', '', 0, ['melee', [[30, 2]], 10, 0, 0], 8, 'splash_PopUp', [['readyStance', 'melee', 'explode_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Punch your foe.']]], [[1, 3, 0], ['Rocket Arm ', 'Party', 'Single', '', 0, ['ether', [[30, 2]], 10, 0, 15], 6, 'splashIn_A', [['readyStance', 'buster', 'explode_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]]]; _root.enemyBUSkills_101 = [[[], ['???', 'Enemy', 'Self', 'T', 0, ['melee', [[100, 0]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'useItem', 'pillar_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Restores ether.']]], [[], ['???', 'Party', 'All', 'T', 0, ['ether', [[0, 15]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'buster', 'pillar_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['???']]]]; _root.speechData_101 = [[['Round', 5, 50, true], [[[98, 0, 0], ['TEXT'], ['To determine an enemies weakpoints, you must SCAN them. This can make battles much easier.']]]]]; _root.enemyIData_102 = ['Training Bot', ' ', 'enemyChr_101', _global.enemyLevel, [15, 5, false, 1], [['ITEM', 1, 1, 20]], [['ITEM', 1, 1, 5]]]; _root.enemyBaseData_102 = [['blank'], [10, 1, 1.2, 1.2, 2.2, 5, 0.2, 0.2, 0.7000000000000001], [100, -100, 100, -100, 100, 100, 100]]; _root.enemySkills_102 = [[[1, 0, 1], ['Punch', 'Party', 'Single', '', 0, ['melee', [[30, 2]], 10, 0, 0], 8, 'splash_PopUp', [['readyStance', 'melee', 'explode_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Punch your foe.']]], [[1, 3, 0], ['Rocket Arm ', 'Party', 'Single', '', 0, ['ether', [[30, 2]], 10, 0, 15], 6, 'splashIn_A', [['readyStance', 'buster', 'explode_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]]]; _root.enemyBUSkills_102 = [[[], ['???', 'Enemy', 'Self', 'T', 0, ['melee', [[100, 0]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'useItem', 'pillar_02']], [[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], [false, false, false]], [false, false, false, false, false], ['Restores ether.']]], [[], ['???', 'Party', 'All', 'T', 0, ['ether', [[0, 15]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'buster', 'pillar_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['???']]]]; _root.speechData_102 = [[['Round', 4, 50, true], [[[98, 0, 0], ['TEXT'], ['To scan the enemy, select the SCAN skill from the command list.']]]]]; _root.enemyIData_103 = ['Training Bot', ' ', 'enemyChr_101', _global.enemyLevel, [15, 5, false, 1], [['ITEM', 1, 1, 20]], [['ITEM', 1, 1, 5]]]; _root.enemyBaseData_103 = [['blank'], [2, 1000, 1.2, 1.2, 2.2, 1, 0.2, 0.2, 0.7000000000000001], [100, 100, -100, 100, -100, 10, 100]]; _root.enemySkills_103 = [[[1, 0, 1], ['Punch', 'Party', 'Single', '', 0, ['melee', [[30, 2]], 10, 0, 0], 8, 'splash_PopUp', [['readyStance', 'melee', 'explode_01']], [[0, 0, 0, 0, 0, 100, 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], [false, false, false]], [false, false, false, false, false], ['Punch your foe.']]], [[1, 3, 0], ['Rocket Arm ', 'Party', 'Single', '', 0, ['ether', [[30, 2]], 10, 0, 15], 6, 'splashIn_A', [['readyStance', 'buster', 'explode_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['Lob a fire grenade at the target. ']]]]; _root.enemyBUSkills_103 = [[[], ['???', 'Enemy', 'Self', 'T', 0, ['melee', [[100, 0]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'melee', 'explode_01']], [[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], [false, false, false]], [false, false, false, false, false], ['Restores ether.']]], [[], ['???', 'Party', 'All', 'T', 0, ['ether', [[0, 15]], 10, 0, 0], 8, 'splashIn_A', [['readyStance', 'buster', 'pillar_02']], [[100, 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], [false, false, false]], [false, false, false, false, false], ['???']]]]; _root.speechData_103 = []; _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 77 { function setupFight(fightID) { if (fightID == 'SCRIPTED') { if (_root.arrangedBattleData[0][0][0] != 'NO CHANGE') { _root.party_Order[1]; } } avgEnemyLvl = 0; varX = 0; while (varX <= _root.party_Order.length - 1) { avgEnemyLvl += (eval('_root.chrLevel_' + _root.party_Order[varX]))[0]; ++varX; } avgEnemyLvl /= _root.party_Order.length; avgEnemyLvl = Math.round(avgEnemyLvl); if (fightID == 'SCRIPTED') { avgEnemyLvl = _root.arrangedBattleData[0][1][1][0]; } selectedEnemies = []; randomSize = Math.round(Math.random() * (_root.enemyRange.length - 1 + _root.party_Order.length)) * 1; if (randomSize <= 0) { randomSize = 1; } if (randomSize > _root.party_Order.length - 1) { randomSize = _root.party_Order.length; } varX = 0; while (varX <= randomSize) { randomVar = Math.round(Math.random() * (_root.enemyRange.length - 1)) * 1; selectedEnemies[varX] = randomVar; ++varX; } if (fightID == 'SCRIPTED') { selectedEnemies = _root.arrangedBattleData[0][1][0][0]; } randomGrid = []; randomGrid[0] = [10, 14, 16, 12, 18, 13, 11, 17, 15]; randomGrid[1] = [10, 13, 16, 14, 11, 17, 15, 12, 18]; randomGrid[2] = [10, 14, 16, 15, 13, 11, 17, 12, 18]; randomGrid[3] = [11, 14, 17, 13, 10, 16, 12, 18, 15]; randomNum = Math.round(Math.random() * 3); enemyPlacement = randomGrid[randomNum]; if (fightID == 'SCRIPTED') { enemyPlacement = _root.arrangedBattleData[0][1][2][0]; } varX = 0; while (varX <= selectedEnemies.length - 1) { randomNumber = Math.round(Math.random() * _root.party_Order.length - 1); enemyIData = eval('_root.enemyIData_' + selectedEnemies[varX]); enemyBData = eval('_root.enemyBaseData_' + selectedEnemies[varX]); speechData = eval('_root.speechData_' + selectedEnemies[varX]); enemyCombatData = eval('_root.enemyCombatData_' + varX); enemyTData = eval('_root.enemyTData_' + varX); startingAgi = Math.ceil(Math.random() * 60); if (varX == 0) { _root.enemyTData_0 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_0 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_0 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_0 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_0 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_0 = [false, false, false, false]; } if (varX == 1) { _root.enemyTData_1 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_1 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_1 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_1 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_1 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_1 = [false, false, false, false]; } if (varX == 2) { _root.enemyTData_2 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_2 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_2 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_2 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_2 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_2 = [false, false, false, false]; } if (varX == 3) { _root.enemyTData_3 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_3 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_3 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_3 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_3 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_3 = [false, false, false, false]; } if (varX == 4) { _root.enemyTData_4 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_4 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_4 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_4 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_4 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_4 = [false, false, false, false]; } if (varX == 5) { _root.enemyTData_5 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_5 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_5 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_5 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_5 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_5 = [false, false, false, false]; } if (varX == 6) { _root.enemyTData_6 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_6 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_6 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_6 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_6 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_6 = [false, false, false, false]; } if (varX == 7) { _root.enemyTData_7 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_7 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_7 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_7 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_7 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_7 = [false, false, false, false]; } if (varX == 8) { _root.enemyTData_8 = [[avgEnemyLvl + randomNumber], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; _root.enemyBData_8 = [['Empty'], [Math.round(enemyBData[1][0] * avgEnemyLvl), Math.round(enemyBData[1][1] * avgEnemyLvl), Math.round(enemyBData[1][2] * avgEnemyLvl), Math.round(enemyBData[1][3] * avgEnemyLvl), Math.round(enemyBData[1][4] * avgEnemyLvl), Math.round(enemyBData[1][5] * avgEnemyLvl), Math.round(enemyBData[1][6] * avgEnemyLvl), Math.round(enemyBData[1][7] * avgEnemyLvl), Math.round(enemyBData[1][8] * avgEnemyLvl)], enemyBData[2]]; _root.enemyCombatData_8 = [[startingAgi, true, 'inc', 0], [0, false], [0], [false, false, false, false, false]]; bData = eval('_root.enemyBData_' + varX); powerBonus = bData[1][2] / avgEnemyLvl * 100; attackPower = Math.round(bData[1][2] * powerBonus + bData[1][2]); rangeBonus = bData[1][3] / avgEnemyLvl * 100; rangePower = Math.round(bData[1][3] * rangeBonus + bData[1][3]); etherBonus = bData[1][4] / avgEnemyLvl * 100; etherPower = Math.round(bData[1][4] * etherBonus + bData[1][4]); damageNegation = bData[1][4] / avgEnemyLvl * 100; damageNegation += damageNegation * (avgEnemyLvl * 0.02); magicNegation = bData[1][5] / avgEnemyLvl * 100; magicNegation += magicNegation * (avgEnemyLvl * 0.02); agility = bData[1][6] / avgEnemyLvl * 5 + 0.5; agility += agility * (avgEnemyLvl * 0.02); _root.enemyAttackStats_8 = [[attackPower, rangePower, etherPower], [damageNegation, magicNegation, agility]]; _root.enemySpeechData_8 = [[true, 0], [true, 0], [true, 0], [true, 0], [true, 0], [true, 0]]; _root.itemSteal_8 = [false, false, false, false]; } ++varX; } _root.selectBG = _root.arrangedBattleData[1][0][0]; _root.musicPlayerMC.changeMusic(_root.arrangedBattleData[1][1][0][0], _root.arrangedBattleData[1][1][1][0]); ++_root.gamePlay_Stats[5][0]; attachMovie('battleHolder', 'battleHolder', 9010, {'_x': 0, '_y': 0}); stop(); } _root.arrangedBattleData = [[['partyData'], [['enemyData'], ['enemyLevel'], ['enemyGrid']]], [['backgroundNum'], [['musicCmd'], ['musicNum']]]]; _root.arrangedBattleOld = [[['oldPartyData']]]; alphabetArray = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K']; } frame 77 { function updateCurrentObjectives(num) { if (num == 0) { _root.map0_OBJECTIVES = [[false, false, false, ['P', 'Collect all 3 treasure nodes.', 'Search the area for treasure.']], [false, false, false, ['P', 'Defeat 5 enemies.', 'Defeat 5 enemies.']], [false, false, false, ['P', 'Equip new gear.', 'Equip your new armor and BATTLE CHIP.']], [false, false, false, ['P', 'Target the enemies weakpoints.', 'Use your new TECHNIQUES to exploit the enemies weaknesses and destroy them!']], [false, false, false, ['P', 'Defeat the Master Robot.', 'Defeat the Master Robot.']], [false, false, false, ['S', 'Defeat the Master Robot with Replica Zero\'s help.', '']]]; } if (num == 1) { _root.map1_OBJECTIVES = [[true, true, false, ['P', 'Destroy as many enemies as you can.', 'The bosses are tought - watch out!']]]; } _root.currentObj_Num = num; } function refreshObjectives(mapNum) { _root.currentObjectives = []; counter = 0; varX = 0; while (varX <= (eval('_root.map' + mapNum + '_OBJECTIVES')).length - 1) { if ((eval('_root.map' + mapNum + '_OBJECTIVES'))[varX][0] == true) { _root.currentObjectives[counter] = [mapNum, varX]; ++counter; } ++varX; } } _root.party_Order = [0, 1, 2, 9, 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); cNum[varZ] = (eval('_root.bc_None_' + varX))[0][3]; ++varZ; } ++varX; } _root.updateBCData(); _root.checkNewTechs(); _root.updateTData(); _root.updateACData(); _root.party_Order = [0]; _root.support_Party = [['NONE']]; _global.newDollars = 325; if (_root.loadFile == undefined) { _root.loadFile = false; } if (_root.loadFile == false) { chrAvail_Main = [true, false, false, false, false, false, false, false, false, false]; chrAvail_Sprt = [false]; refreshChrPool(); updateCurrentObjectives(0); _root.mapTransferData = [['levelMain_0'], [0, 'startOnDrop'], []]; _global.totalSaves = 0; _root.areaSwitch_0 = [false, false, false, false]; _root.areaSwitch_1 = [false, false, false, false]; _root.areaStageData_0 = ['NODECOUNT', 'DESTROYCOUNT', 'DESTROYCOUNT', 'SOLO/PARTNER']; _root.areaStageData_1 = ['NOT USED', 'NOT USED', 'NOT USED', 'NOT USED']; updateCurrentObjectives(0); refreshObjectives(0); } if (_root.loadFile == true) { _root.party_Order = _root.partyPacket[0][0]; _root.support_Party = _root.partyPacket[0][1]; _root.chrAvail_Main = _root.partyPacket[0][2]; _root.chrAvail_Sprt = _root.partyPacket[0][3]; refreshChrPool(); _root.mapTransferData = [[_root.locationPacket[0][2][0]], [0, 'startOnDrop'], []]; if (_root.locationPacket[0][5][0] == 'CHAPTER 0 FINISH') { _root.mapTransferData = [['levelMain_BR1'], [0, 'startOnDrop'], []]; chrAvail_Main = [true, true, false, false, false, false, false, false, false, false]; chrAvail_Sprt = [10]; refreshChrPool(); _root.party_Order = [0, 1]; updateCurrentObjectives(1); refreshObjectives(1); } _global.totalSaves = _root.locationPacket[0][5][1]; _root.areaSwitch_0 = _root.stageDataPacket[0][0][0]; _root.areaStageData_0 = _root.stageDataPacket[0][0][1]; _root.areaSwitch_1 = _root.stageDataPacket[0][1][0]; _root.areaStageData_1 = _root.stageDataPacket[0][1][1]; _root.areaSwitch_2 = _root.stageDataPacket[0][2][0]; _root.areaStageData_2 = _root.stageDataPacket[0][2][1]; _root.areaSwitch_3 = _root.stageDataPacket[0][3][0]; _root.areaStageData_3 = _root.stageDataPacket[0][3][1]; _root.areaSwitch_4 = _root.stageDataPacket[0][4][0]; _root.areaStageData_4 = _root.stageDataPacket[0][4][1]; updateCurrentObjectives(_root.locationPacket[0][2][3]); _root.map0_OBJECTIVES = _root.levelDataPacket[0][0][1]; _root.map1_OBJECTIVES = _root.levelDataPacket[0][1][1]; refreshObjectives(_root.locationPacket[0][2][3]); _root.objectClips_0 = _root.levelDataPacket[0][0][0]; _root.objectClips_1 = _root.levelDataPacket[0][1][0]; _root.objectClips_2 = _root.levelDataPacket[0][2][0]; _root.objectClips_3 = _root.levelDataPacket[0][3][0]; _root.objectClips_4 = _root.levelDataPacket[0][4][0]; _root.listHead = _root.weaponInvPacket[0][0]; _root.listBuster = _root.weaponInvPacket[0][1]; _root.listMelee = _root.weaponInvPacket[0][2]; _root.listArmor = _root.weaponInvPacket[0][3]; _root.listLeg = _root.weaponInvPacket[0][4]; _root.listTrinket = _root.weaponInvPacket[0][5]; _root.chipSwitch = _root.weaponInvPacket[0][6]; _root.numOfChips = _root.weaponInvPacket[0][7]; _root.refChips = _root.weaponInvPacket[0][8]; _root.formationData = _root.formationPacket[0][0]; _root.currentForm = _root.formationPacket[0][1]; _root.itemListData = _root.inventoryPacket[0][0]; _global.newDollars = _root.inventoryPacket[0][1]; varX = 0; _root.chrIData_0 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_0 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_0 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_0 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_0 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_0 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_0 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_0 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_0 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_0 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_0 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_0 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_0 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_0 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_0 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_0 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_0 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_0 = _root.chrDataPacket[0][varX][17][0]; varX = 1; _root.chrIData_1 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_1 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_1 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_1 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_1 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_1 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_1 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_1 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_1 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_1 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_1 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_1 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_1 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_1 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_1 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_1 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_1 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_1 = _root.chrDataPacket[0][varX][17][0]; varX = 2; _root.chrIData_2 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_2 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_2 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_2 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_2 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_2 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_2 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_2 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_2 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_2 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_2 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_2 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_2 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_2 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_2 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_2 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_2 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_2 = _root.chrDataPacket[0][varX][17][0]; varX = 3; _root.chrIData_3 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_3 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_3 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_3 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_3 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_3 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_3 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_3 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_3 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_3 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_3 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_3 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_3 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_3 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_3 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_3 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_3 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_3 = _root.chrDataPacket[0][varX][17][0]; varX = 4; _root.chrIData_4 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_4 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_4 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_4 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_4 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_4 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_4 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_4 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_4 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_4 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_4 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_4 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_4 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_4 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_4 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_4 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_4 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_4 = _root.chrDataPacket[0][varX][17][0]; varX = 5; _root.chrIData_5 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_5 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_5 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_5 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_5 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_5 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_5 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_5 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_5 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_5 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_5 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_5 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_5 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_5 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_5 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_5 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_5 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_5 = _root.chrDataPacket[0][varX][17][0]; varX = 6; _root.chrIData_6 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_6 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_6 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_6 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_6 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_6 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_6 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_6 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_6 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_6 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_6 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_6 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_6 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_6 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_6 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_6 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_6 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_6 = _root.chrDataPacket[0][varX][17][0]; varX = 7; _root.chrIData_7 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_7 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_7 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_7 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_7 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_7 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_7 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_7 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_7 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_7 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_7 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_7 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_7 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_7 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_7 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_7 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_7 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_7 = _root.chrDataPacket[0][varX][17][0]; varX = 8; _root.chrIData_8 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_8 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_8 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_8 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_8 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_8 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_8 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_8 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_8 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_8 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_8 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_8 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_8 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_8 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_8 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_8 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_8 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_8 = _root.chrDataPacket[0][varX][17][0]; varX = 9; _root.chrIData_9 = _root.chrDataPacket[0][varX][0][0]; _root.chrWData_9 = _root.chrDataPacket[0][varX][1][0]; _root.chrLevel_9 = _root.chrDataPacket[0][varX][2][0]; _root.chrRep_9 = _root.chrDataPacket[0][varX][3][0]; _root.chrRData_9 = _root.chrDataPacket[0][varX][4][0]; _root.chrAData_9 = _root.chrDataPacket[0][varX][5][0]; _root.chrBData_9 = _root.chrDataPacket[0][varX][6][0]; _root.chrCData_9 = _root.chrDataPacket[0][varX][7][0]; _root.chrSData_9 = _root.chrDataPacket[0][varX][8][0]; _root.chrTData_9 = _root.chrDataPacket[0][varX][9][0]; _root.chrBCData_9 = _root.chrDataPacket[0][varX][10][0]; _root.chrCAData_9 = _root.chrDataPacket[0][varX][11][0]; _root.chrCMD_9 = _root.chrDataPacket[0][varX][12][0]; _root.chrCMDList_9 = _root.chrDataPacket[0][varX][13][0]; _root.chrSkillList_9 = _root.chrDataPacket[0][varX][14][0]; _root.combatData_9 = _root.chrDataPacket[0][varX][15][0]; _root.supportMoves_9 = _root.chrDataPacket[0][varX][16][0]; _root.chrSXPList_9 = _root.chrDataPacket[0][varX][17][0]; varX = 0; _root.chrIData_10 = _root.supportPacket[0][varX][0][0]; _root.chrWData_10 = _root.supportPacket[0][varX][1][0]; _root.chrLevel_10 = _root.supportPacket[0][varX][2][0]; _root.chrAData_10 = _root.supportPacket[0][varX][3][0]; _root.chrBData_10 = _root.supportPacket[0][varX][4][0]; _root.chrCData_10 = _root.supportPacket[0][varX][5][0]; _root.chrSData_10 = _root.supportPacket[0][varX][6][0]; _root.chrTData_10 = _root.supportPacket[0][varX][7][0]; _root.chrBCData_10 = _root.supportPacket[0][varX][8][0]; _root.chrCAData_10 = _root.supportPacket[0][varX][9][0]; _root.chrCMD_10 = _root.supportPacket[0][varX][10][0]; _root.chrCMDList_10 = _root.supportPacket[0][varX][11][0]; _root.chrSkillList_10 = _root.supportPacket[0][varX][12][0]; _root.supportMoves_10 = _root.supportPacket[0][varX][13][0]; varX = 1; _root.chrIData_11 = _root.supportPacket[0][varX][0][0]; _root.chrWData_11 = _root.supportPacket[0][varX][1][0]; _root.chrLevel_11 = _root.supportPacket[0][varX][2][0]; _root.chrAData_11 = _root.supportPacket[0][varX][3][0]; _root.chrBData_11 = _root.supportPacket[0][varX][4][0]; _root.chrCData_11 = _root.supportPacket[0][varX][5][0]; _root.chrSData_11 = _root.supportPacket[0][varX][6][0]; _root.chrTData_11 = _root.supportPacket[0][varX][7][0]; _root.chrBCData_11 = _root.supportPacket[0][varX][8][0]; _root.chrCAData_11 = _root.supportPacket[0][varX][9][0]; _root.chrCMD_11 = _root.supportPacket[0][varX][10][0]; _root.chrCMDList_11 = _root.supportPacket[0][varX][11][0]; _root.chrSkillList_11 = _root.supportPacket[0][varX][12][0]; _root.supportMoves_11 = _root.supportPacket[0][varX][13][0]; varX = 2; _root.chrIData_12 = _root.supportPacket[0][varX][0][0]; _root.chrWData_12 = _root.supportPacket[0][varX][1][0]; _root.chrLevel_12 = _root.supportPacket[0][varX][2][0]; _root.chrAData_12 = _root.supportPacket[0][varX][3][0]; _root.chrBData_12 = _root.supportPacket[0][varX][4][0]; _root.chrCData_12 = _root.supportPacket[0][varX][5][0]; _root.chrSData_12 = _root.supportPacket[0][varX][6][0]; _root.chrTData_12 = _root.supportPacket[0][varX][7][0]; _root.chrBCData_12 = _root.supportPacket[0][varX][8][0]; _root.chrCAData_12 = _root.supportPacket[0][varX][9][0]; _root.chrCMD_12 = _root.supportPacket[0][varX][10][0]; _root.chrCMDList_12 = _root.supportPacket[0][varX][11][0]; _root.chrSkillList_12 = _root.supportPacket[0][varX][12][0]; _root.supportMoves_12 = _root.supportPacket[0][varX][13][0]; varX = 3; _root.chrIData_13 = _root.supportPacket[0][varX][0][0]; _root.chrWData_13 = _root.supportPacket[0][varX][1][0]; _root.chrLevel_13 = _root.supportPacket[0][varX][2][0]; _root.chrAData_13 = _root.supportPacket[0][varX][3][0]; _root.chrBData_13 = _root.supportPacket[0][varX][4][0]; _root.chrCData_13 = _root.supportPacket[0][varX][5][0]; _root.chrSData_13 = _root.supportPacket[0][varX][6][0]; _root.chrTData_13 = _root.supportPacket[0][varX][7][0]; _root.chrBCData_13 = _root.supportPacket[0][varX][8][0]; _root.chrCAData_13 = _root.supportPacket[0][varX][9][0]; _root.chrCMD_13 = _root.supportPacket[0][varX][10][0]; _root.chrCMDList_13 = _root.supportPacket[0][varX][11][0]; _root.chrSkillList_13 = _root.supportPacket[0][varX][12][0]; _root.supportMoves_13 = _root.supportPacket[0][varX][13][0]; _root.gamePlay_Stats = _root.achievementPacket[0][0]; _root.achievementArray = _root.achievementPacket[0][1]; _root.updateSData(); _root.updateAData(); _root.checkTData(); _root.updateACData(); _root.updateBCData(); _root.dataPacket = SharedObject.getLocal('dumpSave'); _root.dataPacket.data.dumpSave = ['local numb']; _root.dataPacket.data.dumpSave.flush(); } } frame 86 { _root.updateBCData(); attachMovie('levelSelect', 'levelSelect', 100, {'_x': 0, '_y': 0}); } frame 97 { stop(); }




http://swfchan.com/12/57376/info.shtml
Created: 18/4 -2019 05:46:20 Last modified: 18/4 -2019 05:46:20 Server time: 22/12 -2024 23:16:38