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

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

Epic Battle Fantasy 2.swf

This is the info page for
Flash #100571

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { function deadClick() {} function gotoMySite() { getURL('http://kupo707.deviantart.com/', '_blank'); } function gotoAG() { getURL('http://www.armorgames.com/', '_blank'); } function gotoHal() { getURL('http://halcyonicfalconx.newgrounds.com', '_blank'); } function gotoEP1() { getURL('http://armorgames.com/play/3776/epic-battle-fantasy', '_blank'); } function lowQF() { _quality = 'LOW'; } function medQF() { _quality = 'MEDIUM'; } function highQF() { _quality = 'HIGH'; } function unmute() { _root.sound.setVolume(100); } function mute() { _root.sound.setVolume(0); } var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var copyrightNotice = new ContextMenuItem('© 2009 Matt Roszak', gotoMySite); var mySiteLink = new ContextMenuItem('Visit the author\'s site!', gotoMySite); mySiteLink.separatorBefore = true; var moregames = new ContextMenuItem('Play more games', gotoAG); var AGlink = new ContextMenuItem('@ Armor Games', gotoAG); var EP = new ContextMenuItem('Play Epic Battle Fantasy 1', gotoEP1); EP.separatorBefore = true; var Mulink = new ContextMenuItem('Get the soundtrack!', gotoHal); Mulink.separatorBefore = true; var quality = new ContextMenuItem('Quality:', deadClick); quality.separatorBefore = true; var lowQ = new ContextMenuItem('Low', lowQF); var medQ = new ContextMenuItem('Medium', medQF); var highQ = new ContextMenuItem('High', highQF); var music = new ContextMenuItem('Sounds/Music:', deadClick); music.separatorBefore = true; var unmute = new ContextMenuItem('On', unmute); var mute = new ContextMenuItem('Off', mute); myMenu.customItems.push(moregames, AGlink, mySiteLink, copyrightNotice, EP, Mulink, quality, lowQ, medQ, highQ, music, unmute, mute); over.menu = myMenu; } frame 1 { function playerSpeech(textNo) { if (textList[textNo] == undefined) { if (_global.txtspeed != 'fast') { textList[textNo] = 1; _global.Text = textNo; _root.maintext.pie = true; _root.maintext.play(); trace('speech played'); } } } function nextBG() { stop(); menu.stop(); pause = function () { clearInterval(pause1); play(); menu.play(); }; pause1 = setInterval(pause, 1500); BG.play(); if (live[1]) { P1.gotoAndPlay('run'); } if (live[2]) { P2.gotoAndPlay('run'); } } function getAcc(player, acc) { if (player == 'P1') { _global.accuracy = acc * _global.P1acc; if (_global.P1blind) { _global.accuracy /= 2; } } if (player == 'P2') { _global.accuracy = acc * _global.P2acc; if (_global.P2blind) { _global.accuracy /= 2; } } if (player == 'foe') { _global.accuracy = acc; if ((eval(_global.user)).blind) { _global.accuracy /= 2; } } if (player == 'nil') { _global.accuracy = acc; } } function shake(V) { shake.gotoAndPlay(V); } function givePoison(X) { if (_global.T == 'Tall') { T1.poison = X / 2; T2.poison = X / 2; T3.poison = X / 2; } else { (eval(_global.T)).poison = X; } } function giveSeal(X) { if (_global.P2skills[13][0]) { X *= 2; } else { _global.P2skills[13][1] += 1; } if (live[3] and live[4] or live[3] and live[5] or live[4] and live[5]) { T1.seal = X / 2; T2.seal = X / 2; T3.seal = X / 2; } else { (eval(_global.T)).seal = X; } } function flareBlind(X) { if (_global.P2skills[13][0]) { X *= 2; } else { _global.P2skills[13][1] += 1; } if (live[3] and live[4] or live[3] and live[5] or live[4] and live[5]) { T1.blind = X; T2.blind = X; T3.blind = X; } else { (eval(_global.T)).blind = 10; } } textList = [0]; _global.help = 1; swordCount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; _global.blood = false; _global.summonEnd = 0; } frame 1 { sound = new Sound(); } frame 1 { function getMedal(medalNo) { trace('Get Medal: ' + medalNo); if (!_global.medalList[medalNo]) { _global.medalList[medalNo] = 1; trace('List Updated'); trace('PopUp'); } trace(_global.medalList); var v2 = SharedObject.getLocal('etc'); v2.data.medalList = _global.medalList; v2.flush(); } var game = SharedObject.getLocal('etc'); _global.medalList = game.data.medalList; if (_global.medalList == undefined) { _global.medalList = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } _global.blood = false; } frame 1 { function defaultBuffs() { _global.P1mdef = 1; _global.P1def = 1; _global.P1matk = 1; _global.P1atk = 1; _global.P2mdef = 1; _global.P2def = 1; _global.P2matk = 1; _global.P2atk = 1; _global.P1regen = 0; _global.P1autolife = 0; _global.P1seal = 0; _global.P1blind = 0; _global.P1poison = 0; _global.P1freeze = 0; _global.P1stun = 0; _global.P2regen = 0; _global.P2autolife = 0; _global.P2seal = 0; _global.P2blind = 0; _global.P2poison = 0; _global.P2freeze = 0; _global.P2stun = 0; } function miniMedals() { if (highS1 >= 5000) { getMedal(13); } if (highS2 >= 6000) { getMedal(14); } if (highS3 >= 10000) { getMedal(15); } } _focusrect = false; dif = 1; } frame 1 { stop(); } frame 1 { function scoresLoad() { var v1 = SharedObject.getLocal('scores'); highS1 = v1.data.high1; highS2 = v1.data.high2; highS3 = v1.data.high3; } scoresLoad(); if (highS1 == undefined) { highS1 = 0; } if (highS2 == undefined) { highS2 = 0; } if (highS3 == undefined) { highS3 = 0; } var game = SharedObject.getLocal('bestiary'); _global.bestiary = game.data.bestiary; if (_global.bestiary == undefined) { _global.bestiary = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } } frame 1 { function toDif(fff) { if (fff == 0.8) { return 'Easy'; } else { if (fff == 1) { return 'Norm'; } else { if (fff == 1.2) { return 'Hard'; } else { if (fff == 1.4) { return 'Epic'; } else { return '---'; } } } } } _global.ionEnable = true; } frame 1 { function saveFile(fileNo) { var v3 = SharedObject.getLocal(fileNo); v3.data.money = _global.money; v3.data.P1skills = _global.P1skills; v3.data.P2skills = _global.P2skills; v3.data.checkPoint = _root.checkPoint; v3.data.difficulty = _root.dif; v3.data.medals = _root.medals; v3.data.SL1 = _global.SL1; v3.data.SL2 = _global.SL2; v3.data.SC1 = _global.SC1; v3.data.SC2 = _global.SC2; v3.data.P1stats = _root.P1stats; v3.data.P2stats = _root.P2stats; v3.data.itemz = [_root.itemz1, _root.itemz2, _root.itemz3, _root.itemz4, _root.itemz5, _root.itemz6, _root.itemz7, _root.itemz8, _root.itemz9, _root.itemz10, _root.itemz11, _root.itemz12, _root.itemz13]; v3.data.money = _root.money; v3.data.sword = _global.sword; v3.data.P1atk2 = _global.P1atk2; v3.data.P1matk2 = _global.P1matk2; v3.data.P1mdef2 = _global.P1mdef2; v3.data.P1def2 = _global.P1def2; v3.data.P1limit = _global.P1limit; v3.data.P1limitmax = _global.P1limitmax; v3.data.P1acc = _global.P1acc; v3.data.P1evade = _global.P1evade; v3.data.P1atkB = _global.P1atkB; v3.data.P1matkB = _global.P1matkB; v3.data.P1defB = _global.P1defB; v3.data.P1mdefB = _global.P1mdefB; v3.data.P1elements = _global.P1elements; v3.data.P2limit = _global.P2limit; v3.data.P2limitmax = _global.P2limitmax; v3.data.P2acc = _global.P2acc; v3.data.P2evade = _global.P2evade; v3.data.P2atkB = _global.P2atkB; v3.data.P2matkB = _global.P2matkB; v3.data.P2defB = _global.P2defB; v3.data.P2mdefB = _global.P2mdefB; v3.data.P2elements = _global.P2elements; v3.flush(); } } frame 1 { function X() { if (_global.T == 'P1') { return _root.coords[0]; } if (_global.T == 'P2') { return _root.coords[2]; } if (_global.T == 'T1') { return _root.coords[4]; } if (_global.T == 'T2') { return _root.coords[6]; } if (_global.T == 'T3') { return _root.coords[8]; } } function Y() { if (_global.T == 'P1') { return _root.coords[1]; } if (_global.T == 'P2') { return _root.coords[3]; } if (_global.T == 'T1') { return _root.coords[5]; } if (_global.T == 'T2') { return _root.coords[7]; } if (_global.T == 'T3') { return _root.coords[9]; } } _global.P1HP = 9999; _global.P1MP = 999; _global.P1HPmax = 9999; _global.P1MPmax = 999; _global.P1atk = 1; _global.P1atk2 = 1.1; _global.P1matk = 1; _global.P1matk2 = 1.1; _global.P1def = 1; _global.P1mdef = 1; _global.P1mdef2 = 1.1; _global.P1def2 = 1.1; _global.P1poison = 0; _global.P1seal = 0; _global.P1freeze = 0; _global.P1autolife = 0; _global.P1regen = 0; _global.P1stun = 0; _global.P1limit = 0; _global.P1blind = 0; _global.P1limitmax = 100; _global.P1acc = 1; _global.P1evade = 0.05; _global.P1atkB = 1; _global.P1matkB = 1; _global.P1defB = 1; _global.P1mdefB = 1; _global.P2elements = 1; _global.P1elements = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; _global.P2HP = 9999; _global.P2MP = 999; _global.P2HPmax = 9999; _global.P2MPmax = 999; _global.P2atk = 1; _global.P2matk = 1; _global.P2def = 1; _global.P2mdef = 1; _global.P2poison = 0; _global.P2seal = 0; _global.P2freeze = 0; _global.P2autolife = 0; _global.P2regen = 0; _global.P2stun = 0; _global.P2blind = 0; _global.P2limit = 0; _global.P2limitmax = 100; _global.P2acc = 1; _global.P2atkB = 1; _global.P2matkB = 1; _global.P2defB = 1; _global.P2mdefB = 1; _global.P2evade = 0.05; _global.damage = 0; _global.command = 0; _global.magic = 0; _global.atype = 0; _global.T = 0; _global.def1 = 0; _global.def2 = 0; _global.user = 'P1'; _global.kills = 0; coords = new Array(); coords = [180, 230, 60, 272, 530, 220, 560, 300, 0, 0]; T1.multi = 1; T1.ID = 1; T2.multi = 1; T2.ID = 2; } frame 1 { function hideButtons() { B1._visible = false; B2._visible = false; B3._visible = false; BP1._visible = false; BP2._visible = false; } function showButtons() { if (live[3] == 1) { B1._visible = true; } if (live[4] == 1) { B2._visible = true; } if (live[5] == 1) { B3._visible = true; } } function showButtons2() { if (live[1] == 1 or _global.magic == 'water' or _global.magic == 'revive') { BP1._visible = true; } if (live[2] == 1 or _global.magic == 'water' or _global.magic == 'revive') { BP2._visible = true; } } function randam() { return Math.round(_global.damage * (1 + Math.random() / 10)); } function damageNo() { trace('damage: ' + damage); _root.dam.duplicateMovieClip('bob' + b, b); ++b; bb = 'bob' + (b - 1); tellTarget (''_root.' + bb') { _x = 0; _y = 0; damage = _root.P1.damage; } } function hurt() { p = 0; if ((_global.T == 'P1' or _global.T == 'Pall') and live[1] == 1) { P1.damage = randam(); P1.hit(); } if ((_global.T == 'P2' or _global.T == 'Pall') and live[2] == 1) { P2.damage = randam(); P2.hit(); } if ((_global.T == 'T1' or _global.T == 'Tall') and live[3] == 1) { T1.damage = randam(); T1.hit(); } if ((_global.T == 'T2' or _global.T == 'Tall') and live[4] == 1) { T2.damage = randam(); T2.hit(); } if ((_global.T == 'T3' or _global.T == 'Tall') and live[5] == 1) { T3.damage = randam(); T3.hit(); } } function t1() { _global.timer += 1; trace('Up to: ' + _global.timer); } function t2() { _global.timer -= 1; trace('Down to: ' + _global.timer); if (_global.timer == 0) { _root.menu.play(); } if (_global.timer < 0) { trace('OVERFLOW'); _global.timer = 0; } } function cheer() { if (_global.user == 'P1') { tellTarget ('/P1') { gotoAndPlay('cheer'); } } if (_global.user == 'P2') { tellTarget ('/P2') { gotoAndPlay('cheer'); } } } function ranplay() { if (live[1] == 0 and live[2] == 0) { return 0; } if (live[1] == 0) { _global.T = 'P2'; } else { if (live[2] == 0) { _global.T = 'P1'; } else { t = random(2); if (t == 0) { _global.T = 'P1'; } if (t == 1) { _global.T = 'P2'; } } } } function randomT() { while (!false) { u = random(3); if (u == 0 and live[3]) { _global.T = 'T1'; break; } if (u == 1 and live[4]) { _global.T = 'T2'; break; } if (u == 2 and live[5]) { _global.T = 'T3'; break; } } } DamageCount = 0; live = new Array(); live[1] = 1; live[2] = 1; live[3] = 0; live[4] = 0; live[5] = 0; hideButtons(); _global.txtspeed = 'slow'; _global.sword = 'heaven'; _global.timer = 0; _quality = 'MEDIUM'; _global.damage = 0; _focusrect = false; } frame 1 { function swap() { if (_global.T == 'T1') { spells.swapDepths(L2); } if (_global.T == 'T2') { spells.swapDepths(L3); } if (_global.T == 'P1') { spells.swapDepths(L1); } } function swap2() { if (_global.user == 'P1') { if (_global.T == 'T2') { P1.swapDepths(L2); } if (_global.T == 'T3') { P1.swapDepths(L3); } } else { if (_global.user == 'P2') { if (_global.T == 'T2') { P2.swapDepths(L2); } if (_global.T == 'T3') { P2.swapDepths(L3); } } else { if (_global.user == 'T1' and _global.T == 'P1') { T1.swapDepths(L1); } else { if (_global.user == 'T2' and _global.T == 'P1') { T2.swapDepths(L1); } else { if (_global.user == 'T3' and _global.T == 'P1') { T3.swapDepths(L1); } } } } } } } frame 1 { waves = 0; } movieClip 37 { } movieClip 43 { } movieClip 46 { } movieClip 57 { } movieClip 59 { frame 40 { stop(); } } movieClip 69 { } button 70 { on (release) { startMovie(); } } movieClip 71 { frame 1 { function timerHandler() { if (!loadingComplete) { var v4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * v4; if (v4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop('loaded'); } return undefined; } } dt = getTimer() - time; time += dt; frameAccum += dt; var v3 = 0; for (;;) { if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break; advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } frameAccum -= FRAME_TIME; v3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return undefined; } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof clip[childName] == 'movieclip') { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.33333333333334; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler(); } } movieClip 73 { } movieClip 75 { } movieClip 77 { } button 79 { on (release) { getURL('http://armorgames.com/', '_blank'); } } button 81 { on (release) { getURL('http://armorgames.com/free-website-games', '_blank'); } } movieClip 84 { } frame 2 { function fadeTo(marker) { whiteFade.play(); whiteFade.marker = marker; } } movieClip 89 { } button 94 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 97 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 218 { _root.fadeTo('mainmenu'); stop(); } } movieClip 99 { frame 1 { stop(); } frame 30 { _root.gotoAndStop(marker); } } frame 3 { urlStart = _url.indexOf('://') + 3; urlEnd = _url.indexOf('/', urlStart); domain = _url.substring(urlStart, urlEnd); LastDot = domain.lastIndexOf('.') - 1; domEnd = domain.lastIndexOf('.', LastDot) + 1; domain = domain.substring(domEnd, domain.length); if (domain != 'armorgames.com') { gotoAndStop('siteLock'); } } frame 3 { function menuNewGame() { fadeTo('gamestart'); } function menuContinue() { fadeTo('loadmenu'); } function menuMinigames() { stopAllSounds(); fadeTo('minigames'); } function menuCredits() { fadeTo('credits'); } function menuArtGallery() { fadeTo('gallery'); } function menuArmorGames() { getURL('http://armorgames.com/', '_blank'); } function menuEpic1() { getURL('http://armorgames.com/play/3776/epic-battle-fantasy', '_blank'); } } frame 3 { stop(); } movieClip 101 { } movieClip 104 { } movieClip 105 { frame 6 { stop(); } } button 109 { on (release) { _root.menuNewGame(); } } button 110 { on (release) { _root.menuContinue(); } } button 111 { on (release) { _root.menuMinigames(); } } button 112 { on (release) { _root.menuArtGallery(); } } button 113 { on (release) { _root.menuCredits(); } } button 114 { on (release) { _root.menuEpic1(); } } button 115 { on (release) { _root.menuArmorGames(); } } movieClip 118 { } movieClip 120 { } movieClip 122 { } movieClip 124 { } movieClip 126 { } movieClip 128 { } movieClip 130 { } movieClip 132 { } movieClip 134 { } movieClip 135 { frame 1 { _visible = false; } frame 2 { _visible = true; } frame 83 { stop(); } } movieClip 139 { } button 140 { on (release) { gotoAndStop('here'); } } movieClip 141 { frame 1 { } frame 2 { _visible = true; } frame 93 { stop(); } } movieClip 145 { } movieClip 156 { } movieClip 157 { } movieClip 160 { } movieClip 163 { } movieClip 166 { } movieClip 167 { } movieClip 169 { } movieClip 171 { } movieClip 175 { } movieClip 177 { } movieClip 179 { } movieClip 182 { } movieClip 184 { } movieClip 185 { } movieClip 189 { frame 1 { gotoAndStop(_global.sword); } } movieClip 191 { } movieClip 197 { } movieClip 199 { } movieClip 200 { } movieClip 201 { } movieClip 204 { } movieClip 206 { } movieClip 207 { } movieClip 208 { } movieClip 215 { } movieClip 217 { } movieClip 219 { } movieClip 224 { } button 225 { on (press) { gotoAndPlay(2); } } movieClip 226 { frame 1 { stop(); } } movieClip 229 { } movieClip 234 { } movieClip 237 { } movieClip 241 { } movieClip 244 { } movieClip 245 { } button 248 { on (release) { nextFrame(); } } button 249 { on (release) { prevFrame(); } } button 250 { on (release) { _root.fadeTo('mainmenu'); } } button 255 { on (release) { getURL('http://xyionan.deviantart.com/art/Epic-Battle-Fantasy-fanart-130989159', '_blank'); } } movieClip 257 { frame 5 { stop(); } } button 261 { on (release) { getURL('http://xyionan.deviantart.com/art/OC-DYNAMIC-DOODLES-3-60779634', '_blank'); } } movieClip 264 { } button 266 { on (release) { getURL('http://espardalegion.deviantart.com/', '_blank'); } } button 271 { on (release) { getURL('http://curth1.deviantart.com/', '_blank'); } } button 273 { on (release) { getURL('http://hadamo.deviantart.com/art/Matt-likes-swords-i-know-it-130694563', '_blank'); } } button 278 { on (release) { getURL('http://long-white-hair.deviantart.com/', '_blank'); } } movieClip 313 { } movieClip 316 { } movieClip 319 { } button 322 { on (release) { getURL('http://NCH85.deviantart.com/', '_blank'); } } movieClip 325 { } movieClip 327 { } movieClip 329 { } movieClip 332 { } movieClip 333 { } movieClip 339 { } movieClip 342 { } movieClip 343 { } movieClip 349 { } movieClip 351 { } movieClip 353 { } movieClip 355 { } button 363 { on (release) { if (gameComplete) { gotoAndStop(16); } else { nextFrame(); } } } button 365 { on (release) { if (gameComplete) { nextFrame(); } } } movieClip 370 { } movieClip 373 { frame 1 { if (_parent.topoff) { _visible = false; } } } button 376 { on (release) { gotoAndStop(14); } } movieClip 435 { frame 1 { if (_global.medalList[6]) { gameComplete = true; } else { gameComplete = false; } } frame 1 { stop(); _global.sword = 'heaven'; } frame 39 { prevFrame(); } } button 437 { on (release) { getURL('http://halcyonicfalconx.newgrounds.com', '_blank'); } } button 438 { on (release) { getURL('http://kupo707.deviantart.com/', '_blank'); } } button 439 { on (release) { getURL('http://armorgames.com/', '_blank'); } } frame 7 { function showFiles() { k = 1; while (k < 7) { var v2 = SharedObject.getLocal('file' + k); prog = v2.data.checkPoint; dif2 = v2.data.difficulty; if (prog == 1) { prog = '33%'; } else { if (prog == 2) { prog = '66%'; } else { if (prog == 3) { prog = '100%'; } else { prog = '---'; } } } String = 'h' + k; this[String] = prog + '\n' + toDif(dif2); ++k; } } function loadFile(fileNo) { var v3 = SharedObject.getLocal(fileNo); if (v3.data.checkPoint != undefined) { _global.P1skills = v3.data.P1skills; _global.P2skills = v3.data.P2skills; if (v3.data.money != undefined) { _global.money = v3.data.money; } _root.dif = v3.data.difficulty; _root.medals = v3.data.medals; _global.SL1 = v3.data.SL1; _global.SL2 = v3.data.SL2; _global.SC1 = v3.data.SC1; _global.SC2 = v3.data.SC2; _root.P1stats = v3.data.P1stats; _root.P2stats = v3.data.P2stats; _root.itemz1 = v3.data.itemz[0]; _root.itemz2 = v3.data.itemz[1]; _root.itemz3 = v3.data.itemz[2]; _root.itemz4 = v3.data.itemz[3]; _root.itemz5 = v3.data.itemz[4]; _root.itemz6 = v3.data.itemz[5]; _root.itemz7 = v3.data.itemz[6]; _root.itemz8 = v3.data.itemz[7]; _root.itemz9 = v3.data.itemz[8]; _root.itemz10 = v3.data.itemz[9]; _root.itemz11 = v3.data.itemz[10]; _root.itemz12 = v3.data.itemz[11]; _root.itemz13 = v3.data.itemz[12]; _root.money = v3.data.money; _global.sword = v3.data.sword; _global.P1atk2 = v3.data.P1atk2; _global.P1matk2 = v3.data.P1matk2; _global.P1mdef2 = v3.data.P1mdef2; _global.P1def2 = v3.data.P1def2; _global.P1limit = v3.data.P1limit; _global.P1limitmax = v3.data.P1limitmax; _global.P1acc = v3.data.P1acc; _global.P1evade = v3.data.P1evade; _global.P1atkB = v3.data.P1atkB; _global.P1matkB = v3.data.P1matkB; _global.P1defB = v3.data.P1defB; _global.P1mdefB = v3.data.P1mdefB; _global.P1elements = v3.data.P1elements; _global.P2limit = v3.data.P2limit; _global.P2limitmax = v3.data.P2limitmax; _global.P2acc = v3.data.P2acc; _global.P2evade = v3.data.P2evade; _global.P2atkB = v3.data.P2atkB; _global.P2matkB = v3.data.P2matkB; _global.P2defB = v3.data.P2defB; _global.P2mdefB = v3.data.P2mdefB; _global.P2elements = v3.data.P2elements; gotoAndPlay('checkpoint' + v3.data.checkPoint); trace('checkpoint' + v3.data.checkPoint); } else { trace('No data'); } } showFiles(); } button 446 { on (release) { loadFile('file1'); } } button 448 { on (release) { loadFile('file2'); } } button 449 { on (release) { loadFile('file5'); } } button 450 { on (release) { loadFile('file3'); } } button 451 { on (release) { loadFile('file6'); } } button 452 { on (release) { loadFile('file4'); } } frame 10 { function scoresSave() { var v1 = SharedObject.getLocal('scores'); v1.data.high1 = highS1; v1.data.high2 = highS2; v1.data.high3 = highS3; v1.flush(); } MGT = 0; trace(cash); if (mmode == 'stage1' and cash > highS1) { highS1 = cash; } if (mmode == 'stage2' and cash > highS2) { highS2 = cash; } if (mmode == 'survival' and cash > highS3) { highS3 = cash; } cash = 0; trace(highS1); trace(highS2); trace(highS3); scoresSave(); miniMedals(); } frame 10 { function endGame() { if (MGT == 0) { gotoAndStop('minigameOver'); } if (MGT == 1) { gotoAndStop('gameEnd1'); } if (MGT == 2) { gotoAndStop('gameEnd2'); } } clearInterval(pause1); clearInterval(pause3); timer = 100; stop(); } button 465 { on (release) { gotoAndStop('instructions'); } } button 466 { on (release) { gotoAndStop('stage1'); mmode = 'stage1'; } } button 467 { on (release) { gotoAndStop('stage2'); mmode = 'stage2'; } } button 468 { on (release) { gotoAndStop('stage3'); mmode = 'survival'; } } button 469 { on (release) { gotoAndStop('2player'); mmode = '2P'; } } button 470 { on (release) { _root.fadeTo('mainmenu'); stopAllSounds(); } } movieClip 477 { } movieClip 482 { frame 10 { stop(); } } movieClip 486 { } movieClip 491 { } movieClip 493 { } movieClip 504 { frame 1 { if (!_global.blood) { _visible = false; } } frame 11 { stop(); } } movieClip 505 { frame 1 { stop(); } } movieClip 506 { frame 1 { function wallbounce() { if (_parent.facing == 'right') { if (_parent._x < 100) { if (!_parent.turn) { _parent.X *= -1; _parent._x = 99; } } if (_parent._x > 750) { if (!_parent.turn) { _parent.X *= -1; _parent._x = 748; } } } if (_parent.facing == 'left') { if (_parent._x < -50) { if (!_parent.turn) { _parent.X *= -1; _parent._x = -49; } } if (_parent._x > 600) { if (!_parent.turn) { _parent.X *= -1; _parent._x = 598; } } } } wallbounce(); } frame 1 { _parent._x += _parent.X; if (_parent.slow) { _parent.X *= 0.8; } else { _parent.X *= 0.95; } } frame 2 { wallbounce(); } frame 2 { _parent._x += _parent.X; if (_parent.slow) { _parent.X *= 0.8; } else { _parent.X *= 0.95; } } } button 508 { on (keyPress '<Up>') { gotoAndPlay('jump'); } on (keyPress 'a') { gotoAndPlay('block'); } on (keyPress '<Down>') { gotoAndPlay('attack'); } } movieClip 510 { } button 512 { on (keyPress '<Down>') { gotoAndPlay('spin'); } } button 514 { on (keyPress '<Up>') { gotoAndPlay('spear'); } } movieClip 538 { } movieClip 540 { frame 1 { blood.gotoAndStop(11); } frame 1 { X = 0; } frame 1 { function k() { gotoAndPlay('stand'); } } frame 1 { turn = false; } frame 1 { _root.HP = 5; } frame 2 { facing = 'left'; slow = true; } frame 4 { function move() { if (Key.isDown(37)) { if (facing == 'right') { gotoAndPlay('turn'); facing = 'left'; } else { X -= 2; if (X < -12) { X = -12; } } } else { if (Key.isDown(39)) { if (facing == 'left') { gotoAndPlay('turn'); facing = 'right'; } else { X += 2; if (X > 12) { X = 12; } } } } } function move2() { if (Key.isDown(37)) { X -= 2; if (X < -20) { X = -20; } } else { if (Key.isDown(39)) { X += 2; if (X > 20) { X = 20; } } } } } frame 5 { if (_root.HP <= 0) { gotoAndPlay('die'); } } frame 5 { slow = true; turn = false; if (Key.isDown(40)) { gotoAndPlay('attack'); } if (_xscale > 0 and facing == 'right') { facing = 'left'; } if (_xscale < 0 and facing == 'left') { facing = 'right'; } } frame 6 { move(); } frame 7 { move(); } frame 8 { move(); } frame 9 { move(); } frame 10 { move(); } frame 11 { move(); } frame 12 { move(); } frame 13 { move(); } frame 14 { move(); } frame 15 { move(); } frame 16 { move(); } frame 17 { move(); } frame 18 { move(); } frame 19 { move(); } frame 20 { k(); if (_root.HP <= 0) { gotoAndPlay('die'); } } frame 20 { move(); } frame 21 { turn = true; } frame 24 { k(); _xscale = -_xscale; if (_xscale > 0) { _x = _x - 180; } else { _x = _x + 180; } } frame 25 { slow = false; } frame 26 { move2(); } frame 27 { move2(); } frame 28 { move2(); } frame 29 { move2(); } frame 29 { if (Key.isDown(40)) { gotoAndPlay('spin'); } } frame 30 { move2(); } frame 31 { move2(); } frame 32 { move2(); } frame 33 { move2(); } frame 34 { move2(); } frame 35 { move2(); } frame 36 { move2(); } frame 37 { move2(); } frame 38 { move2(); } frame 39 { move2(); } frame 40 { move2(); } frame 44 { k(); } frame 45 { slow = false; } frame 45 { slow = false; } frame 59 { k(); } frame 75 { k(); } frame 76 { _global.hit = true; trace('Immune'); _alpha = 50; blood.play(); pause = function () { clearInterval(pause1); trace('End immune'); _alpha = 100; _global.hit = false; }; pause1 = setInterval(pause, 2000); _root.HP -= 1; if (_root.HP <= 0) { gotoAndPlay('die'); } } frame 76 { slow = false; } frame 81 { k(); } frame 83 { slow = false; } frame 85 { clearInterval(pause1); } frame 126 { _root.endGame(); } frame 127 { move2(); } frame 128 { move2(); } frame 129 { move2(); } frame 130 { move2(); } frame 131 { move2(); } frame 132 { move2(); } frame 133 { move2(); } frame 134 { move2(); } frame 135 { move2(); } frame 136 { move2(); } frame 137 { move2(); } frame 138 { move2(); } frame 139 { move2(); } frame 140 { move2(); } frame 145 { k(); } frame 146 { slow = false; } frame 162 { k(); } } button 541 { on (release) { gotoAndStop('minigames'); } } movieClip 548 { } frame 12 { score = 0; cash = 0; _global.hit = false; stop(); HP = 5; HP2 = 5; } frame 12 { b = 1; stop(); pause5 = function () { if (b == 12) { clearInterval(pause6); } else { (eval('f' + b)).play(); ++b; trace('spawn'); } }; pause6 = setInterval(pause5, 1500); } frame 12 { pause2 = function () { if (timer != 0) { --timer; } else { clearInterval(pause3); clearInterval(cat.pause1); endGame(); } }; pause3 = setInterval(pause2, 1000); } movieClip 550 { frame 1 { stop(); } } movieClip 551 { } movieClip 553 { } movieClip 554 { } movieClip 556 { frame 1 { stop(); } } movieClip 557 { } movieClip 559 { } movieClip 561 { frame 1 { _parent._x -= _parent.speedB; if (_parent._x < 20 and _parent.speedB > 0) { if (!_parent.turn) { _parent.gotoAndPlay('turn'); } } if (_parent._x > 680 and _parent.speedB < 0) { if (!_parent.turn) { _parent.gotoAndPlay('turn'); } } } frame 1 { if (_parent.foe.hitTest(_root.cat.sword)) { _parent.gotoAndPlay('die'); } if (_parent.foe.hitTest(_root.cat.cat) and !_global.hit) { _root.cat.gotoAndPlay('hit'); } } frame 2 { _parent._x -= _parent.speedB; if (_parent._x < 20 and _parent.speedB > 0) { if (!_parent.turn) { _parent.gotoAndPlay('turn'); } } if (_parent._x > 680 and _parent.speedB < 0) { if (!_parent.turn) { _parent.gotoAndPlay('turn'); } } } frame 2 { if (_parent.foe.hitTest(_root.cat.sword)) { _parent.gotoAndPlay('die'); } if (_parent.foe.hitTest(_root.cat.cat) and !_global.hit) { _root.cat.gotoAndPlay('hit'); } } } movieClip 565 { } movieClip 569 { } movieClip 577 { } movieClip 581 { } movieClip 585 { } movieClip 586 { frame 1 { function heartGet() { if (_root.HP < 5) { _root.HP += 1; } _root.cat.hart.play(); } function cashGet(XX) { _root.cash += XX; } b = random(22); if (_root.mmode == 'survival') { m = _root.cash / 10000; if ((b == 0 or b == 13 or b == 21) and Math.random() < m) { b = 6; } } cc = 0; ss = 'heart1'; if (b == 0) { item.gotoAndStop('heart'); ss = 'heart1'; } if (b == 13) { item.gotoAndStop('heart'); ss = 'heart1'; } if (b == 21) { item.gotoAndStop('heart'); ss = 'heart1'; } if (b == 1) { item.gotoAndStop('rupee'); cc = 18; ss = 'rupee1'; } if (b == 2) { item.gotoAndStop('rupee2'); cc = 23; ss = 'rupee2'; } if (b == 3) { item.gotoAndStop('gold'); cc = 15; ss = 'coin1'; } if (b == 4) { item.gotoAndStop('silver'); cc = 10; ss = 'coin1'; } if (b == 5) { item.gotoAndStop('bronze'); cc = 5; ss = 'coin1'; } if (b == 6) { item.gotoAndStop('diamond'); cc = 50; ss = 'cash'; } if (b == 7) { item.gotoAndStop('crown'); cc = 47; ss = 'cash'; } if (b == 8) { item.gotoAndStop('cup'); cc = 14; ss = 'coin2'; } if (b == 9) { item.gotoAndStop('cup2'); cc = 32; ss = 'coin2'; } if (b == 10) { item.gotoAndStop('cup3'); cc = 44; ss = 'coin2'; } if (b == 11) { item.gotoAndStop('gem'); cc = 32; ss = 'rupee3'; } if (b == 12) { item.gotoAndStop('orb'); cc = 21; ss = 'rupee3'; } if (b == 17) { item.gotoAndStop('orb2'); cc = 45; ss = 'rupee2'; } if (b == 14) { item.gotoAndStop('crystal'); cc = 39; ss = 'rupee3'; } if (b == 15) { item.gotoAndStop('crystal2'); cc = 42; ss = 'cash'; } if (b == 16) { item.gotoAndStop('ruby'); cc = 17; ss = 'rupee1'; } if (b == 18) { item.gotoAndStop('tri'); cc = 48; ss = 'cash'; } if (b == 19) { item.gotoAndStop('ruby2'); cc = 7; ss = 'rupee2'; } if (b == 20) { item.gotoAndStop('black'); cc = 40; ss = 'rupee3'; } trace(ss); } frame 3 { if (hart.hitTest(_root.cat.cat)) { gotoAndPlay('hit'); } } frame 4 { if (hart.hitTest(_root.cat.cat)) { gotoAndPlay('hit'); } else { gotoAndPlay(3); } } frame 6 { if (b and b != 13 and b != 21) { cashGet(cc); } else { heartGet(); } } frame 6 { var sound = new Sound(); sound.attachSound(ss); sound.start(0, 0); } frame 9 { stop(); } } movieClip 588 { } movieClip 590 { frame 1 { _visible = false; } frame 1 { stop(); if (speedB < 0) { speedB = -random(12) / 5 - 1; } else { speedB = random(12) / 5 + 1; } } frame 2 { _visible = true; } frame 3 { this._x = random(400) + 170; } frame 29 { turn = false; this._x -= speedB; } frame 30 { stop(); } frame 31 { turn = true; } frame 40 { speedB = -speedB; gotoAndPlay('walk'); this._xscale = -this._xscale; } frame 41 { play(); } frame 41 { tellTarget ('/') { score += 1; } } frame 130 { gotoAndPlay(2); } } movieClip 593 { } movieClip 595 { } movieClip 597 { } movieClip 599 { } movieClip 601 { } movieClip 603 { } movieClip 605 { } movieClip 607 { } movieClip 608 { } movieClip 612 { } movieClip 616 { frame 1 { stop(); } } movieClip 617 { frame 2 { if (_root.HP == 5) { h5.gotoAndStop(1); } else { h5.gotoAndStop(2); } if (_root.HP > 3) { h4.gotoAndStop(1); } else { h4.gotoAndStop(2); } if (_root.HP > 2) { h3.gotoAndStop(1); } else { h3.gotoAndStop(2); } if (_root.HP > 1) { h2.gotoAndStop(1); } else { h2.gotoAndStop(2); } if (_root.HP > 0) { h1.gotoAndStop(1); } else { h1.gotoAndStop(2); } } } frame 13 { score = 0; cash = 0; _global.hit = false; stop(); HP = 5; HP2 = 5; } frame 13 { b = 1; stop(); pause = function () { if (b == 16) { clearInterval(pause1); } else { (eval('f' + b)).play(); ++b; trace('spawn'); } }; pause1 = setInterval(pause, 1000); } frame 13 { pause2 = function () { if (timer != 0) { --timer; } else { clearInterval(pause3); clearInterval(cat.pause1); endGame(); } }; pause3 = setInterval(pause2, 1000); } movieClip 619 { frame 1 { stop(); } } frame 14 { score = 0; cash = 0; _global.hit = false; stop(); HP = 5; HP2 = 5; } frame 14 { b = 1; stop(); pause = function () { if (b == 16) { clearInterval(pause1); } else { (eval('f' + b)).play(); ++b; trace('spawn'); } }; pause1 = setInterval(pause, 1500); } movieClip 623 { } frame 16 { score = 0; cash = 0; _global.hit = false; _global.hit2 = false; stop(); HP = 5; HP2 = 5; } button 624 { on (keyPress '<Up>') { gotoAndPlay('jump'); } on (keyPress '<Down>') { gotoAndPlay('attack'); } } button 625 { on (keyPress '<Down>') { gotoAndPlay('spin'); } } button 626 { on (keyPress '<Up>') { gotoAndPlay('spear'); } } movieClip 630 { frame 1 { X = 0; } frame 1 { function k() { gotoAndPlay('stand'); } } frame 1 { turn = false; } frame 1 { _root.HP = 5; } frame 2 { facing = 'left'; slow = true; } frame 3 { function hurt() { if (sword.hitTest(_root.cat2.sword)) { if (facing == 'right') { X = -17; } else { X = 17; } } else { if (sword.hitTest(_root.cat2.cat)) { _root.cat2.gotoAndPlay('hit'); } } } } frame 4 { function move() { if (Key.isDown(37)) { if (facing == 'right') { gotoAndPlay('turn'); facing = 'left'; } else { X -= 2.5; if (X < -14) { X = -14; } } } else { if (Key.isDown(39)) { if (facing == 'left') { gotoAndPlay('turn'); facing = 'right'; } else { X += 2.5; if (X > 14) { X = 14; } } } } } function move2() { if (Key.isDown(37)) { X -= 2; if (X < -20) { X = -20; } } else { if (Key.isDown(39)) { X += 2; if (X > 20) { X = 20; } } } } } frame 5 { slow = true; turn = false; if (Key.isDown(40)) { gotoAndPlay('attack'); } if (_xscale > 0 and facing == 'right') { facing = 'left'; } if (_xscale < 0 and facing == 'left') { facing = 'right'; } } frame 6 { move(); } frame 7 { move(); } frame 8 { move(); } frame 9 { move(); } frame 10 { move(); } frame 11 { move(); } frame 12 { move(); } frame 13 { move(); } frame 14 { move(); } frame 15 { move(); } frame 16 { move(); } frame 17 { move(); } frame 18 { move(); } frame 19 { move(); } frame 20 { k(); } frame 20 { move(); } frame 21 { turn = true; } frame 24 { k(); _xscale = -_xscale; if (_xscale > 0) { _x = _x - 180; } else { _x = _x + 180; } } frame 25 { slow = false; } frame 26 { move2(); } frame 27 { move2(); } frame 28 { move2(); } frame 29 { move2(); } frame 29 { if (Key.isDown(40)) { gotoAndPlay('spin'); } } frame 30 { move2(); } frame 31 { move2(); } frame 32 { move2(); } frame 33 { move2(); } frame 34 { move2(); } frame 35 { move2(); } frame 36 { move2(); } frame 37 { move2(); } frame 38 { move2(); } frame 39 { move2(); } frame 40 { move2(); } frame 44 { k(); } frame 45 { slow = true; } frame 50 { hurt(); } frame 51 { hurt(); } frame 57 { k(); } frame 73 { k(); } frame 74 { _global.hit = true; _alpha = 50; pause = function () { clearInterval(pause1); _global.hit = false; _alpha = 100; }; pause1 = setInterval(pause, 200); _root.HP -= 1; if (_root.HP <= 0) { gotoAndPlay('die'); } } frame 74 { slow = false; } frame 79 { k(); } frame 81 { slow = false; } frame 82 { clearInterval(pause1); clearInterval(_parent.cat2.pause1); } frame 122 { stop(); _root.gotoAndStop('P2wins'); } frame 124 { _root.gotoAndStop(1); } frame 125 { move2(); } frame 126 { move2(); } frame 127 { move2(); hurt(); } frame 128 { move2(); hurt(); } frame 129 { move2(); } frame 130 { move2(); } frame 131 { move2(); } frame 132 { move2(); } frame 133 { move2(); } frame 134 { move2(); } frame 135 { move2(); } frame 136 { move2(); } frame 137 { move2(); } frame 138 { move2(); } frame 143 { k(); } frame 144 { slow = true; } frame 145 { hurt(); } frame 146 { hurt(); } frame 147 { hurt(); } frame 159 { k(); } } movieClip 632 { } movieClip 634 { } movieClip 635 { } movieClip 637 { } movieClip 639 { } movieClip 642 { } movieClip 643 { } movieClip 645 { } button 646 { on (keyPress 'w') { gotoAndPlay('jump'); } on (keyPress 's') { gotoAndPlay('attack'); } } button 647 { on (keyPress 's') { gotoAndPlay('spin'); } } button 648 { on (keyPress 'w') { gotoAndPlay('spear'); } } movieClip 652 { } movieClip 653 { frame 1 { X = 0; } frame 1 { function k() { gotoAndPlay('stand'); } } frame 1 { turn = false; } frame 1 { _root.HP = 5; } frame 2 { facing = 'left'; slow = true; } frame 3 { function hurt() { trace('P2:' + _x); if (sword.hitTest(_root.cat.sword)) { if (facing == 'right') { X = -24; } else { X = 24; } var v2 = new Sound(); v2.attachSound('ching'); v2.start(0, 0); } else { if (sword.hitTest(_root.cat.cat)) { _root.cat.gotoAndPlay('hit'); } } } } frame 4 { function move() { if (Key.isDown(65)) { if (facing == 'right') { gotoAndPlay('turn'); facing = 'left'; } else { X -= 3; if (X < -16) { X = -16; } } } else { if (Key.isDown(68)) { if (facing == 'left') { gotoAndPlay('turn'); facing = 'right'; } else { X += 3; if (X > 16) { X = 16; } } } } } function move2() { if (Key.isDown(65)) { X -= 2; if (X < -20) { X = -20; } } else { if (Key.isDown(68)) { X += 2; if (X > 20) { X = 20; } } } } } frame 5 { slow = true; turn = false; if (Key.isDown(83)) { gotoAndPlay('attack'); } if (_xscale > 0 and facing == 'right') { facing = 'left'; } if (_xscale < 0 and facing == 'left') { facing = 'right'; } } frame 6 { move(); } frame 7 { move(); } frame 8 { move(); } frame 9 { move(); } frame 10 { move(); } frame 11 { move(); } frame 12 { move(); } frame 13 { move(); } frame 14 { move(); } frame 15 { move(); } frame 16 { move(); } frame 17 { move(); } frame 18 { move(); } frame 19 { move(); } frame 20 { k(); } frame 20 { move(); } frame 21 { turn = true; } frame 24 { k(); _xscale = -_xscale; if (_xscale > 0) { _x = _x - 180; } else { _x = _x + 180; } turn = false; } frame 25 { slow = false; } frame 26 { move2(); } frame 27 { move2(); } frame 28 { move2(); } frame 29 { move2(); } frame 29 { if (Key.isDown(83)) { gotoAndPlay('spin'); } } frame 30 { move2(); } frame 31 { move2(); } frame 32 { move2(); } frame 33 { move2(); } frame 34 { move2(); } frame 35 { move2(); } frame 36 { move2(); } frame 37 { move2(); } frame 38 { move2(); } frame 39 { move2(); } frame 40 { move2(); } frame 41 { move(); } frame 42 { move(); } frame 43 { move(); } frame 44 { k(); } frame 45 { slow = false; } frame 49 { hurt(); } frame 50 { slow = true; } frame 51 { hurt(); } frame 57 { k(); } frame 73 { k(); } frame 74 { _global.hit2 = true; _alpha = 50; trace('Immune2'); pause = function () { clearInterval(pause1); _global.hit2 = false; _alpha = 100; trace('End immune2'); }; pause1 = setInterval(pause, 200); _root.HP2 -= 1; if (_root.HP2 <= 0) { gotoAndPlay('die'); } } frame 74 { slow = false; } frame 79 { k(); } frame 81 { clearInterval(pause1); clearInterval(_parent.cat.pause1); } frame 81 { slow = false; } frame 124 { _root.gotoAndStop('P1wins'); } frame 124 { stop(); } frame 125 { move2(); } frame 126 { move2(); } frame 127 { move2(); } frame 127 { hurt(); } frame 128 { move2(); } frame 128 { hurt(); } frame 129 { move2(); } frame 130 { move2(); } frame 131 { move2(); } frame 132 { move2(); } frame 133 { move2(); } frame 134 { move2(); } frame 135 { move2(); } frame 136 { move2(); } frame 137 { move2(); } frame 142 { k(); } frame 143 { slow = true; } frame 143 { hurt(); } frame 144 { hurt(); } frame 145 { hurt(); } frame 146 { hurt(); } frame 147 { hurt(); } frame 151 { k(); } } movieClip 656 { } movieClip 657 { frame 2 { if (_root.HP2 == 5) { h5.gotoAndStop(1); } else { h5.gotoAndStop(2); } if (_root.HP2 > 3) { h4.gotoAndStop(1); } else { h4.gotoAndStop(2); } if (_root.HP2 > 2) { h3.gotoAndStop(1); } else { h3.gotoAndStop(2); } if (_root.HP2 > 1) { h2.gotoAndStop(1); } else { h2.gotoAndStop(2); } if (_root.HP2 > 0) { h1.gotoAndStop(1); } else { h1.gotoAndStop(2); } } } frame 19 { function scoresSave() { var v1 = SharedObject.getLocal('scores'); v1.data.high1 = high1; v1.data.high2 = high2; v1.data.high3 = high3; v1.flush(); } if (mmode == 'stage1' and cash > high1) { high1 = cash; } if (mmode == 'stage2' and cash > high2) { high2 = cash; } if (mmode == 'survival' and cash > high3) { high3 = cash; } cash = 0; timer = 100; scoresSave(); } frame 19 { function endGame() { gotoAndStop('earnings'); } } frame 19 { function scoresLoad() { var v1 = SharedObject.getLocal('scores'); high1 = v1.data.high1; high2 = v1.data.high2; high3 = v1.data.high3; } scoresLoad(); if (high1 == undefined) { high1 = 0; } if (high2 == undefined) { high2 = 0; } if (high3 == undefined) { high3 = 0; } } button 661 { on (release) { if (MGT == 1) { gotoAndStop('stage1'); mmode = 'stage1'; } if (MGT == 2) { gotoAndStop('stage2'); mmode = 'stage2'; } } } frame 20 { function scoresSave() { var v1 = SharedObject.getLocal('scores'); v1.data.high1 = highS1; v1.data.high2 = highS2; v1.data.high3 = highS3; v1.flush(); } clearInterval(pause1); clearInterval(pause3); _global.money += cash; stop(); if (mmode == 'stage1' and cash > highS1) { highS1 = cash; } if (mmode == 'stage2' and cash > highS2) { highS2 = cash; } if (mmode == 'survival' and cash > highS3) { highS3 = cash; } cash = 0; scoresSave(); } frame 20 { miniMedals(); } button 666 { on (release) { if (MGT == 1) { gotoAndStop('gameEnd1'); } if (MGT == 2) { gotoAndStop('gameEnd2'); } } } frame 26 { stop(); } button 669 { on (release) { dif = 0.8; fadeTo('gamestart2'); } } button 670 { on (release) { dif = 1; fadeTo('gamestart2'); } } button 671 { on (release) { dif = 1.2; fadeTo('gamestart2'); } } button 672 { on (release) { dif = 1.4; fadeTo('gamestart2'); } } button 673 { on (release) { fadeTo('mainmenu'); } } frame 27 { play(); } frame 27 { stopAllSounds(); } frame 28 { textList = [0]; _global.sword = 'heaven'; _global.timer = 0; P1stats = [0, 0, 0, 0]; P2stats = [0, 0, 0]; _global.SL1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; _global.SL2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; _global.SC1 = 0; _global.SC2 = 0; itemz1 = 5; itemz2 = 2; itemz3 = 3; itemz4 = 1; itemz5 = 3; itemz6 = 2; itemz7 = 2; itemz8 = 4; itemz9 = 2; itemz10 = 1; itemz11 = 1; itemz12 = 2; itemz13 = 2; _global.P1skills = [[0, 0, 'Berzerker', 'Attack increases when hit by a powerful attack'], [0, 0, 'Survivor', '30% chance of surviving a lethal attack with 1HP'], [0, 0, 'Mighty Warrior', 'Boosts Atk, Matk, Def, Mdef by 4%'], [0, 0, 'Slayer', 'Boosts attack by 8%'], [0, 0, 'Eagle Eye', 'Boosts Evade by 5%, and Accuracy by 20%'], [0, 0, 'Swordsman', 'Boosts standard attack by 40%'], [0, 0, 'Holy Power', 'Boosts Seiken by 40%, +20 resistance to Dark'], [0, 0, 'Cat Tamer', 'NoLegs will randomly bring Healing Items on his own'], [0, 0, 'Cat Warrior', 'NoLegs will randomly Attack foes on his own'], [0, 0, 'BlackSmith', 'Temper adds an extra 20% attack'], [0, 0, 'Secret Weapon', 'Adds a new type of bomb for AirStrike'], [0, 0, 'Aerial Support', 'AirStrike activates randomly'], [0, 0, 'Counter', 'Counter physical attacks sometimes'], [0, -0.1, 'Counter x2', 'Counter physical attacks more often'], [0, 0, 'Chemist', 'Boosts Item effects by 40%'], [0, -0.1, 'Chemist x2', 'Boosts Item effects by 80%'], [0, 0, 'Defender', 'Doubles the effect of defend'], [0, 0, 'Mana Leech', 'Adds MP drain to basic attack for some other swords'], [0, 0, 'Fiery Spirit', 'Immune to freezing, +10% resistance to Fire and Ice'], [0, 0, 'Burning Soul', 'Boosts Erruption by 40%, +10% resistance to Fire and Ice.'], [0, 0, 'Arctic Wind', '+10% resistance to Fire, Ice, Water and Wind'], [0, 0, 'Sub Zero', 'Boosts IceBerg by 40%, +10% resistance to Water and ice.'], [0, 0, 'Hurricane', 'Boosts Windslash by 40%, +10% resistance to Wind'], [0, 0, 'Bloodthirsty', 'Boosts the power of Drain by 50%'], [0, 0, 'Swordbreaker', 'Adds AttackDown effect to basic attack of some other swords.'], [0, 0, 'Venomous', 'Immune to Poison and Stun'], [0, 0, 'Earthern Soul', 'Boosts magic defence by 8%'], [0, 0, 'Rock On', 'Boosts Quake by 40%, +10% resistance to Earth and Wind.'], [0, 0, 'Fear Lord', 'Boosts screamer by 40%, +20% resistance to Holy'], [0, 0, 'Extreme Metal', 'Boosts Power Metal\'s damage by 40%'], [0, 0, 'Healing Metal', 'Boosts Power Metal\'s healing by 30%'], [0, 0, 'Cleaver', 'Boosts the power of a certain ultimate attack by 40%'], [0, 0, 'Never Forgive', 'Boosts the power of Revenge by 40%'], [0, 0, 'Legendary', 'Boosts the power of Legend by 30%'], [0, 0, 'Ready Edge', 'Buffs attack when switching swords'], [0, 0, 'Sword Heart', 'Boosts Unleash\'s damage by 40%'], [0, 0, 'The Force', 'Boosts magic attack by 8%'], [0, 0, 'Rock Solid', 'Boosts defence by 8%']]; _global.P2skills = [[0, 0, 'Astrology', 'Boosts the power of Lucky Star and Pulsar by 25%'], [0, 0, 'Astrology x2', 'Boosts the power of Lucky Star and Pulsar by 50%'], [0, 0, 'Elementalist', 'Boosts Fireball, Thunderbolt, Glacier and Toxic by 20%'], [0, -0.1, 'Elementalist x2', 'Boosts Fireball, Thunderbolt, Glacier and Toxic by 40%'], [0, -0.2, 'Elementalist x3', 'Boosts Fireball, Thunderbolt, Glacier and Toxic by 60%'], [0, 0, 'Healer', 'Boosts Heal and Healmore by 20%'], [0, -0.1, 'Healer x2', 'Boosts Heal and Healmore by 40%'], [0, 0, 'Angel', 'Occasionally gains Autolife status for no reason'], [0, -1, 'Divinity', 'Revive fully heals HP'], [0, 0, 'Bunny!', 'Boosts Slime Bunny\'s healing by 50%'], [0, 0, 'Meows!', 'Boosts Meow Meow\'s damage by 40%'], [0, 0, 'Ions!', 'Boosts Orbital Ion Cannon\'s damage by 30%'], [0, 0, 'Behold!', 'Boosts Beholder\'s damage by 40%'], [0, 0, 'Curses', 'The effects of Syphon and Flare last longer'], [0, 0, 'Resistance', 'Boosts resistance to all elements by 10%'], [0, -0.1, 'Resistance x2', 'Boosts resistance to all elements by 20%'], [0, -0.2, 'Resistance x3', 'Boosts resistance to all elements by 30%'], [0, 0, 'Kyun', 'Gauge for special attack fills faster'], [0, 0, 'Chemist', 'Boosts Item effects by 40%'], [0, -0.1, 'Chemist x2', 'Boosts Item effects by 80%'], [0, 0, 'Protection (P)', 'Defence increases when hit with a powerful attack'], [0, 0, 'Protection (M)', 'Magic Defence increases when hit with a powerful attack'], [0, 0, 'Mana Leech', 'Standard Attack leeches MP from a foe'], [0, 0, 'Bunny!!!', 'Slime Bunny sometimes appears without being called'], [0, -1, 'Meows!!!', 'Meow Meow sometimes appears without being called'], [0, 0, 'Magic Counter', 'Sometimes counters magic attacks with Lucky Star'], [0, 0, 'Thunderclap', 'Increases Thunderbolt\'s chance of stunning the foe'], [0, 0, 'Immunity', '50% immunity to all bad status effects'], [0, -0.1, 'Immunity x2', '100% immunity to all bad status effects'], [0, 0, 'Wizardry', 'Boosts Magic Attack by 9%'], [0, 0, 'Cleric', 'Boosts Magic Defence by 9%'], [0, 0, 'Mighty Mage', 'Boosts Atk, Matk, Def, Mdef by 4%'], [0, 0, 'Elusive', 'Boosts Evade by 10%'], [0, 0, 'Sniper', 'Boosts Accuracy by 20%'], [0, 0, 'Genesis', 'Boosts Judgement by 40%']]; } frame 28 { stop(); } button 681 { on (release) { nextFrame(); } } button 682 { on (release) { prevFrame(); } } movieClip 684 { frame 1 { q = 1; text = 'this is where you put your text'; stop(); } frame 2 { if (q < text.length) { textbox = text.substring(0, q); ++q; } else { textbox = text; gotoAndStop(1); } } frame 3 { gotoAndPlay(2); } } movieClip 685 { } movieClip 686 { } movieClip 687 { } movieClip 691 { } movieClip 696 { } movieClip 706 { frame 2 { texts.text = 'After the events of the first game, the world was left in a devestated state. \nThe menacing evil that was terrorizing the universe was destroyed, but with such force that seismic and gamma waves tore the earth apart. \nIt was not an ideal victory.'; texts.q = 0; texts.play(); stop(); } frame 3 { texts.text = 'For many years the sky was covered with a thick poisonous smoke, and the global climate took a radical twist. \nMany creatures began to mutate from the effects and became vicious, attacking people and spreading further disease.'; texts.q = 0; texts.play(); stop(); } frame 4 { texts.text = 'Although the earth eventually began to recover, the order was severely disrupted. \nThere was much competition as to how the human race could be strengthened as to avoid another similar tragedy.'; texts.q = 0; texts.play(); } frame 5 { texts.text = 'While survivors debate and struggle to rebuild their lives, an ambitious man takes this oppurtunity to conquer the lands.\rGathering an army of beasts and machines, he rampages across the continent destroying all life in his way in the name of peace.'; texts.q = 0; texts.play(); } frame 6 { texts.text = 'After a slow and painful recovery, our heroes prepare for another epic battle. \nThey have mastered new skills and met new allies along the way, to replace their fallen and forgotten comrades.'; texts.q = 0; texts.play(); } frame 7 { texts.text = 'Their journey begins in the Kitten Kingdom, whose occupants have shown them kindness and support whilst they were injured, but now they must make a hasty escape...'; texts.q = 0; texts.play(); } frame 8 { _root.play(); } frame 10 { texts.text = 'And so our heroes have defeated the guardian of a massive arms factory. \nThough it seems that the factory has been deserted for some time, \nand the majority of weapons are no longer here. \nWe probably should have known by the unkept state of the place.'; texts.q = 0; texts.play(); stop(); } frame 11 { texts.text = 'However, our heroes have managed to unlock access to an orbital ion cannon, \nwhich is currently conveniently positioned right above this location! \nI suppose that may be helpful, though potentially lethal to both parties. \nMake sure to try it out when wanting to vapourise some foes.'; texts.q = 0; texts.play(); stop(); } frame 12 { texts.text = 'Oh! Who\'s this guy? \nAh that\'s right! It\'s one of our rivals from long ago! \nHe\'s not here to fight today though, looks like he\'s gathered a lot of treasure and wants to sell us some pots.'; texts.q = 0; texts.play(); stop(); } frame 13 { texts.text = 'Meanwhile, NoLegs the cat struggles with the tormented souls of his fallen brothers, who he betrayed back in his homeland, as he would otherwise have never been allowed to leave on this urgent quest. \nTheir corpses must be slain again in order for them to rest in peace.'; texts.q = 0; texts.play(); stop(); } frame 14 { _root.play(); } frame 16 { texts.text = 'Looks like our target is still a few steps ahead of us, there wasn\'t much here but wild beasts. \nNo problem though! At least they were delicious.'; texts.q = 0; texts.play(); stop(); } frame 17 { texts.text = 'Uh oh, it seems this food is rather poisonous!! \nIn the following moments our heroes died of food poisoning, swine flu and dehydration.'; texts.q = 0; texts.play(); stop(); } frame 18 { texts.text = 'But then an angel conveniantly descends from the heavens and revives the party! \nChances of that!'; texts.q = 0; texts.play(); stop(); } frame 19 { texts.text = 'She then offers to sell you some potions and other drugs. \nYou could use some of that to boost your morale. \nGetting through the desert was kinda crap after all. \nBut first, it\'s time for another money-grabbing minigame!!'; texts.q = 0; texts.play(); stop(); } frame 20 { _root.play(); } frame 22 { texts.text = 'Eh I don\'t like the look of this place, and what\'s with that fancy car over there.'; texts.q = 0; texts.play(); stop(); } frame 23 { texts.text = '*I am not a car*'; texts.q = 0; texts.play(); stop(); } frame 24 { texts.text = 'Get out of the way nooblets, this area has been quarentined. \nWell, your lives are forfeit either way now that you\'ve seen me. \nThe earth must be purged of all infidels.'; texts.q = 0; texts.play(); stop(); } frame 25 { texts.text = 'Huh, have we met before? \nSo what\'s your plan now, just trying to kill everything?'; texts.q = 0; texts.play(); stop(); } frame 26 { texts.text = 'It sickens me to see things the way they are. \nOnly by destroying everything can the world be rebuilt. \nG\'fahahaha.'; texts.q = 0; texts.play(); stop(); } frame 27 { texts.text = 'I don\'t like that sort of stuff!!! \nGonna have to smash up your tank bro.'; texts.q = 0; texts.play(); stop(); } frame 28 { _root.play(); } frame 30 { texts.text = 'And so in a glorious display of power the war machine was blown to smithereens. \nThe Earth\'s greatest threat had now been eliminated. \nBut what of the pilot?'; texts.q = 0; texts.play(); stop(); } frame 30 { if (_root.dif == 1) { _root.getMedal(18); } if (_root.dif == 1.2) { _root.getMedal(19); } if (_root.dif == 1.4) { _root.getMedal(20); } } frame 31 { texts.text = 'The two young men have recognised each other\'s fighting spirit, and put their differences behind them. \nLance surrendered his uniform and learnt the importance of human life. \nAnd so the party has gained a 3rd member!'; texts.q = 0; texts.play(); stop(); } frame 32 { texts.text = 'The world finally enjoys a long awaited peace, with the three legendary heroes watching over it.'; texts.q = 0; texts.play(); stop(); } frame 33 { texts.text = 'The End'; texts.q = 0; texts.play(); stop(); } frame 34 { _root.fadeTo('credits'); } } frame 29 { stage = 1; _global.damage = 0; if (dif == 0.8) { EZmode = 0.8; } else { EZmode = 1; } } frame 29 { function hideButtons() { B1._visible = false; B2._visible = false; B3._visible = false; BP1._visible = false; BP2._visible = false; } function showButtons() { if (live[3] == 1) { B1._visible = true; } if (live[4] == 1) { B2._visible = true; } if (live[5] == 1) { B3._visible = true; } } function showButtons2() { if (live[1] == 1 or _global.magic == 'water' or _global.magic == 'revive') { BP1._visible = true; } if (live[2] == 1 or _global.magic == 'water' or _global.magic == 'revive') { BP2._visible = true; } } function randam() { return Math.round(_global.damage * (1 + Math.random() / 10)); } function damageNo() { trace('damage: ' + damage); _root.dam.duplicateMovieClip('bob' + b, b); ++b; bb = 'bob' + (b - 1); tellTarget (''_root.' + bb') { _x = 0; _y = 0; damage = _root.P1.damage; } } function hurt() { p = 0; if ((_global.T == 'P1' or _global.T == 'Pall') and live[1] == 1) { P1.damage = randam(); P1.hit(); } if ((_global.T == 'P2' or _global.T == 'Pall') and live[2] == 1) { P2.damage = randam(); P2.hit(); } if ((_global.T == 'T1' or _global.T == 'Tall') and live[3] == 1) { T1.damage = randam(); T1.hit(); } if ((_global.T == 'T2' or _global.T == 'Tall') and live[4] == 1) { T2.damage = randam(); T2.hit(); } if ((_global.T == 'T3' or _global.T == 'Tall') and live[5] == 1) { T3.damage = randam(); T3.hit(); } } function t1() { _global.timer += 1; trace('Up to: ' + _global.timer); } function t2() { _global.timer -= 1; trace('Down to: ' + _global.timer); if (_global.timer == 0) { _root.menu.play(); } if (_global.timer < 0) { trace('OVERFLOW'); _global.timer = 0; } } function cheer() { if (_global.user == 'P1') { tellTarget ('/P1') { gotoAndPlay('cheer'); } } if (_global.user == 'P2') { tellTarget ('/P2') { gotoAndPlay('cheer'); } } } function ranplay() { if (live[1] == 0 and live[2] == 0) { return 0; } if (live[1] == 0) { _global.T = 'P2'; } else { if (live[2] == 0) { _global.T = 'P1'; } else { t = random(2); if (t == 0) { _global.T = 'P1'; } if (t == 1) { _global.T = 'P2'; } } } } function randomT() { while (!false) { u = random(3); if (u == 0 and live[3]) { _global.T = 'T1'; break; } if (u == 1 and live[4]) { _global.T = 'T2'; break; } if (u == 2 and live[5]) { _global.T = 'T3'; break; } } } DamageCount = 0; _global.ionEnable = false; live = new Array(); live[1] = 1; live[2] = 1; live[3] = 1; live[4] = 1; live[5] = 0; hideButtons(); _global.txtspeed = 'slow'; _global.sword = 'heaven'; _global.timer = 0; _quality = 'MEDIUM'; _global.damage = 0; } frame 29 { stopAllSounds(); } movieClip 710 { } movieClip 712 { } movieClip 714 { } movieClip 716 { } movieClip 718 { } movieClip 720 { } movieClip 722 { } movieClip 724 { } movieClip 726 { } movieClip 728 { } movieClip 729 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_global.P1atk < 1) { a2._visible = true; a2._alpha = -(_global.P1atk - 1) * 300; } if (_global.P1def < 1) { b2._visible = true; b2._alpha = -(_global.P1def - 1) * 300; } if (_global.P1matk < 1) { c2._visible = true; c2._alpha = -(_global.P1matk - 1) * 300; } if (_global.P1mdef < 1) { d2._visible = true; d2._alpha = -(_global.P1mdef - 1) * 300; } if (_global.P1atk > 1) { a1._visible = true; a1._alpha = (_global.P1atk - 1) * 300; } if (_global.P1def > 1) { b1._visible = true; b1._alpha = (_global.P1def - 1) * 300; } if (_global.P1matk > 1) { c1._visible = true; c1._alpha = (_global.P1matk - 1) * 300; } if (_global.P1mdef > 1) { d1._visible = true; d1._alpha = (_global.P1mdef - 1) * 300; } if (_global.P1poison > 0) { po._visible = true; } if (_global.P1seal > 0) { se._visible = true; } if (_global.P1stun > 0) { stun._visible = true; } if (_global.P1autolife == 1) { life._visible = true; life._alpha = 50; } else { if (_global.P1autolife > 1) { life._visible = true; life._alpha = 100; } } if (_global.P1regen == 1) { regen._visible = true; regen._alpha = 50; } else { if (_global.P1regen > 1) { regen._visible = true; regen._alpha = 100; } } if (_global.P1blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_global.P1blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 29 { symbols(); } } movieClip 742 { frame 1 { gotoAndStop(random(12) + 2); } } movieClip 750 { frame 1 { stop(); if (_global.P1freeze) { gotoAndPlay(2); } } frame 14 { stop(); } } movieClip 763 { frame 1 { gotoAndStop(random(20) + 2); } } movieClip 774 { frame 1 { if (!_global.blood) { _visible = false; } } frame 11 { stop(); } } movieClip 776 { frame 1 { if (!_global.blood) { _visible = false; } } frame 10 { stop(); } } movieClip 781 { } movieClip 788 { } movieClip 789 { frame 1 { gotoAndStop(random(25) + 1); } } movieClip 802 { frame 1 { gotoAndStop(random(15) + 1); } } movieClip 803 { } movieClip 804 { frame 17 { stop(); } } movieClip 807 { } movieClip 813 { frame 1 { gotoAndStop(_global.magic); } } movieClip 814 { frame 24 { stop(); } } movieClip 815 { } movieClip 824 { frame 1 { gotoAndStop(random(10) + 2); } } movieClip 834 { frame 1 { if (!_global.blood) { _visible = false; } } frame 10 { stop(); } } movieClip 837 { frame 1 { if (!_global.blood) { _visible = false; } } } movieClip 845 { frame 1 { gotoAndStop(random(6) + 1); } } movieClip 847 { } movieClip 848 { } movieClip 850 { } movieClip 851 { } movieClip 865 { } movieClip 868 { } movieClip 874 { } movieClip 879 { frame 1 { gotoAndStop(_global.magic); } } movieClip 884 { } movieClip 886 { } movieClip 888 { } movieClip 889 { } movieClip 893 { } movieClip 901 { } movieClip 926 { } movieClip 932 { frame 1 { gotoAndStop(_global.magic); } } movieClip 972 { } movieClip 981 { } movieClip 982 { frame 1 { function unleash() { if (_global.P1skills[35][0]) { _global.damage *= 1.4; } else { ++_global.P1skills[35][1]; } } gotoAndPlay(_global.sword); } frame 2 { _global.element = [2, 1]; _global.effect = ['atkDown', 1, 0.25]; _root.getAcc('P1', 2); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 5000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 11 { stop(); } frame 12 { _global.element = [6, 1]; _global.effect = ['stun', 0.8, 2]; _root.getAcc('P1', 1.3); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 6000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 23 { stop(); } frame 24 { _global.element = [0, 1]; _global.effect = ['mdefDown', 4, 0.4]; _root.getAcc('P1', 1.5); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 6000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 35 { stop(); } frame 36 { _global.element = [8, 0.5]; _global.effect = ['seal', 4, 5]; _root.getAcc('P1', 1.2); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 5000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 42 { stop(); } frame 43 { _global.element = [8, 1]; _global.effect = ['blind', 1.5, 4]; _root.getAcc('P1', 1.2); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 6000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 55 { stop(); } frame 56 { _global.element = [4, 1]; _global.effect = ['poison', 3, 5]; _root.getAcc('P1', 1.2); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 2000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 66 { stop(); } frame 67 { _global.element = [7, 1]; _root.getAcc('P1', 0.6); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 16000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 67 { _root.shake('small'); } frame 76 { stop(); } frame 77 { _global.element = [3, 1]; _global.effect = ['defDown', 3, 0.4]; _root.getAcc('P1', 1.2); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 5000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 77 { _parent.shake('small'); } frame 87 { stop(); } frame 90 { _global.element = [4, 0.5]; _global.effect = ['debuff', 4, 1]; _root.getAcc('P1', 1.5); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 3000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 102 { stop(); } frame 103 { _global.element = [7, 1]; _global.effect = ['debuff', 4, 1]; _root.getAcc('P1', 1.3); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 7000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 113 { stop(); } frame 114 { _global.element = [2, 1]; _global.effect = ['matkDown', 2, 0.25]; _root.getAcc('P1', 1.5); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * 5000; _global.atype = 'p'; unleash(); _root.hurt(); } frame 123 { stop(); } } movieClip 1004 { frame 1 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } function damageNo() { _root.dam.duplicateMovieClip('bob' + b, b); (eval('_root.bob' + b))._x = _x - 320 + random(50); (eval('_root.bob' + b))._y = _y + random(50); (eval('_root.bob' + b)).damage = damage; b += 2; } function heal() { _root.heal.duplicateMovieClip('bob' + b, b); (eval('_root.bob' + b))._x = _x - 200; (eval('_root.bob' + b))._y = _y + 100; (eval('_root.bob' + b)).cure = cure; b += 2; } function getXY() { X = (_root.X() - _root.coords[0] - 160) / 12; Y = -(_root.coords[1] - _root.Y()) / 12; } q = 0; b = 1; } frame 1 { function chemist() { if (_global.user == 'P1') { if (_global.P1skills[15][0]) { return 1.6; } else { if (_global.P1skills[14][0]) { _global.P1skills[15][1] += 0.6; return 1.3; } else { _global.P1skills[14][1] += 1; return 1; } } } else { if (_global.user == 'P2') { if (_global.P2skills[19][0]) { return 1.6; } else { if (_global.P2skills[18][0]) { _global.P2skills[19][1] += 0.6; return 1.3; } else { _global.P2skills[18][1] += 1; return 1; } } } else { return 1; } } } } frame 2 { function k() { gotoAndPlay('stand'); } function hit() { if (_global.P1freeze or _global.P1stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy - _global.P1evade + stunE; if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.def1 == 1) { damage = Math.round(damage / 2); if (_global.P1skills[16][0]) { damage = Math.round(damage / 2); } else { _global.P1skills[16][1] += 1; } } if (_global.def1 == 1 and _global.atype == 'p') { damage = Math.round(damage / 4); } if (_global.atype == 'p') { _global.counterr = 1; damage = Math.round(damage / _global.P1def / _global.P1def2); } else { damage = Math.round(damage / _global.P1mdef / _global.P1mdef2); } if (q == 0) { _root.t1(); q = 1; } if (_global.P1freeze) { damage *= 1.5; } elementbonus = damage * _global.element[1] * _global.P1elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (_global.P1skills[18][0] and _global.effect[0] == 'freeze') { inflict = false; } if (_global.P1skills[25][0] and (_global.effect[0] == 'poison' or _global.effect[0] == 'stun')) { inflict = false; } if (inflict) { if (_global.effect[0] == 'stun') { _global.P1stun += _global.effect[2]; } if (_global.effect[0] == 'poison') { _global.P1poison += _global.effect[2]; } if (_global.effect[0] == 'seal') { _global.P1seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { _global.P1blind += _global.effect[2]; } if (_global.effect[0] == 'freeze') { _global.P1freeze += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { _global.P1atk -= _global.effect[2]; } if (_global.effect[0] == 'defDown') { _global.P1def -= _global.effect[2]; } if (_global.effect[0] == 'mdefDown') { _global.P1mdef -= _global.effect[2]; } if (_global.effect[0] == 'matkDown') { _global.P1matk -= _global.effect[2]; } } _global.P1HP -= damage; _global.P1limit += damage / 100; _root.DamageCount += damage; if (_global.P1HP <= 0) { _global.P1HP = 0; gotoAndPlay('die'); } else { if (_global.effect[0] == 'freeze' and inflict) { gotoAndPlay('freeze'); } else { if (_global.def1 == 1 and !_global.P1freeze) { gotoAndPlay('defhit'); } else { if (damage > 4000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } } } damageNo(); if (q == 0) { _root.t1(); q = 1; } } freeze = false; } frame 2 { function retarget() { if (_global.T == 'T1' and !_root.live[3] and _root.live[4]) { _global.T = 'T2'; } else { if (_global.T == 'T1' and !_root.live[3] and _root.live[5]) { _global.T = 'T3'; } } if (_global.T == 'T2' and !_root.live[4] and _root.live[5]) { _global.T = 'T3'; } else { if (_global.T == 'T2' and !_root.live[4] and _root.live[3]) { _global.T = 'T1'; } } if (_global.T == 'T3' and !_root.live[5] and _root.live[4]) { _global.T = 'T2'; } else { if (_global.T == 'T3' and !_root.live[5] and _root.live[3]) { _global.T = 'T1'; } } } } frame 3 { function swordElement() { if (_global.sword == 'heaven') { _global.element = [8, 0.5]; } if (_global.sword == 'anarchy') { _global.element = [7, 0.5]; } if (_global.sword == 'stone') { _global.element = [3, 0.5]; } if (_global.sword == 'inferno') { _global.element = [0, 0.75]; } if (_global.sword == 'blizzard') { _global.element = [6, 0.75]; } if (_global.sword == 'swift') { _global.element = [8, 0.5]; } if (_global.sword == 'soul') { _global.element = [7, 0.2]; } if (_global.sword == 'cross') { _global.element = [8, 0.2]; } if (_global.sword == 'blackfang') { _global.element = [4, 0.5]; } if (_global.sword == 'razorback') { _global.element = [8, 0.2]; } if (_global.sword == 'blood') { _global.element = [4, 0.2]; } } function swordEffect() { if (_global.sword == 'blackfang') { _global.effect = ['poison', 1.5, 1]; } else { if (_global.sword == 'anarchy' and _global.P1skills[24][0]) { _global.effect = ['atkDown', 2, 0.4]; } else { if (_global.sword == 'anarchy') { _global.effect = ['atkDown', 1.5, 0.2]; } else { if (_global.P1skills[24][0]) { _global.effect = ['atkDown', 1.5, 0.2]; } } } } } } frame 11 { _root.t1(); } frame 36 { if (_global.command == 'windslash') { _root.t2(); } if (_global.sword == 'blood' and _global.command == 'windslash' and _global.missHit) { gotoAndPlay('heal'); _global.cure = _global.damage / 2; _global.magic = 'pot'; } if (_global.sword == 'cross' and _global.command == 'windslash' and _global.missHit) { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 20); } else { if (_global.P1skills[17][0] and _global.command == 'windslash' and _global.missHit) { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 70); } } } frame 37 { _root.t2(); } frame 39 { q = 0; } frame 39 { stop(); } frame 40 { k(); q = 0; } frame 41 { } frame 43 { _global.P1freeze = 0; } frame 43 { clearInterval(pause1); } frame 65 { if (_global.P1HP == 1) { _root.getMedal(11); } } frame 70 { k(); _root.t2(); } frame 73 { _global.P1freeze = 0; } frame 101 { if (_global.user != 'P2') { if (!random(4)) { _root.playerSpeech(62); } else { if (!random(3)) { _root.playerSpeech(73); } else { if (!random(2)) { _root.playerSpeech(74); } } } } } frame 119 { if (_global.P1skills[0][0]) { _global.P1atk += 0.25; } else { ++_global.P1skills[0][1]; } if (_global.P1HP == 1) { _root.getMedal(11); } } frame 129 { k(); _root.t2(); } frame 130 { _root.t1(); } frame 149 { _global.def1 = 1; _global.P1evade += 0.2; } frame 173 { k(); _root.t2(); } frame 177 { _global.P1freeze = 0; } frame 185 { _root.itemGet(); } frame 217 { _root.go = 1; } frame 218 { k(); } frame 219 { cure = Math.round(_global.cure * (1 + Math.random(1) / 20)); if (_global.magic != 'ant' and _global.magic != 'ether' and _global.magic != 'maxether' and _global.magic != 'atkpot' and _global.magic != 'magpot') { _global.P1HP += cure; if (_global.P1HP > _global.P1HPmax) { _global.P1HP = _global.P1HPmax; } } else { if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') { _global.P1MP += _global.cure; if (_global.P1MP > _global.P1MPmax) { _global.P1MP = _global.P1MPmax; } } } } frame 220 { if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') { heal(); } _root.t1(); } frame 221 { _global.P1freeze = 0; } frame 222 { _global.P1freeze = 0; } frame 251 { k(); trace(_global.command); if (_global.command == 'windslash' or _global.command == 'attack' or _global.command == 'legend' or _global.command == 'drain' or _global.command == 'limit') { _root.t2(); } _root.t2(); } frame 252 { _root.t1(); } frame 298 { if (_global.magic == 'nolegs') { _root.summons.gotoAndPlay(_global.magic); } else { _root.spells.gotoAndPlay(_global.magic); } } frame 319 { k(); } frame 320 { j = random(3); if (_global.P1skills[1][0] and !j) { _global.P1HP = 1; gotoAndPlay('hit'); _root.getMedal(11); } else { _global.P1skills[1][1] += 3; _root.live[1] = 0; } } frame 322 { _global.P1freeze = 0; } frame 329 { _global.P1regen = 0; } frame 336 { if (_root.live[2]) { _root.playerSpeech(64); } } frame 343 { if (_root.live[2]) { if (!random(4)) { _root.playerSpeech(68); } else { if (!random(3)) { _root.playerSpeech(69); } else { if (!random(2)) { _root.playerSpeech(64); } } } } } frame 358 { if (_global.P1autolife) { _global.magic = 'autolife'; gotoAndPlay('revive2'); } else { stop(); _root.t2(); } } frame 359 { _root.t1(); } frame 360 { if (_global.magic == 'revive') { cure = Math.round(5700 * (1 + Math.random(1) / 10) * _global.P2matk * _global.P2matkB); } if (_global.magic == 'autolife') { cure = Math.round(1000 * _global.P1autolife * _global.P2matk * _global.P2matkB); } else { cure = Math.round(4000 * chemist() * (1 + Math.random(1) / 10)); } _global.P1HP += cure; if (_global.P1HP > _global.P1HPmax) { _global.P1HP = _global.P1HPmax; } heal(); _root.live[1] = 1; } frame 367 { _global.P1seal = 0; _global.P1poison = 0; _global.P1stun = 0; _global.P1freeze = 0; _global.P1blind = 0; _global.P1autolife = 0; _global.P1regen = 0; } frame 399 { k(); _root.t2(); } frame 401 { getXY(); _root.t1(); } frame 404 { swordElement(); _root.getAcc('P1', 1); _global.damage = _global.P1atk * 5500 * _global.P1atk2 * _global.P1atkB; _global.atype = 'p'; if (_global.P1skills[5][0]) { _global.damage *= 1.4; } else { _global.P1skills[5][1] += 1; } } frame 411 { run(X, Y); } frame 412 { run(X, Y); } frame 413 { run(X, Y); } frame 414 { run(X, Y); } frame 415 { run(X, Y); } frame 416 { run(X, Y); } frame 417 { _root.swap2(); } frame 417 { run(X, Y); } frame 418 { run(X, Y); } frame 419 { run(X, Y); } frame 420 { run(X, Y); } frame 421 { run(X, Y); } frame 422 { run(X, Y); } frame 423 { swordEffect(); _root.hurt(); } frame 425 { X = -X; Y = -Y; } frame 427 { run(X, Y); } frame 428 { run(X, Y); } frame 429 { run(X, Y); } frame 430 { run(X, Y); } frame 431 { run(X, Y); } frame 432 { _root.swap2(); } frame 432 { run(X, Y); } frame 433 { run(X, Y); } frame 434 { run(X, Y); } frame 435 { run(X, Y); } frame 436 { run(X, Y); } frame 437 { run(X, Y); } frame 438 { run(X, Y); } frame 443 { if (_global.sword == 'blood' and _global.missHit) { _global.magic = 'pot'; gotoAndPlay('heal'); _global.cure = _global.damage / 2; } else { if (_global.sword == 'cross' and _global.missHit) { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 30); } else { if (_global.P1skills[17][0] and _global.missHit) { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 80); } else { k(); _root.t2(); } } } } frame 444 { _root.t1(); } frame 472 { if (_root.live[1] and _global.T == 'P1' and random(2)) { _root.playerSpeech(102); } else { if (random(2)) { _root.playerSpeech(103); } } } frame 492 { _root.items.gotoAndPlay(_global.magic); } frame 495 { k(); } frame 497 { X = random(200) + 70; X /= 12; _root.t1(); } frame 507 { run(X); } frame 508 { run(X); } frame 509 { run(X); } frame 510 { run(X); } frame 511 { run(X); } frame 512 { run(X); } frame 513 { run(X); } frame 514 { run(X); } frame 515 { run(X); } frame 516 { run(X); } frame 517 { run(X); } frame 518 { run(X); } frame 521 { X = -X; } frame 523 { run(X); } frame 524 { run(X); } frame 525 { run(X); } frame 526 { run(X); } frame 527 { run(X); } frame 528 { run(X); } frame 529 { run(X); } frame 530 { run(X); } frame 531 { run(X); } frame 532 { run(X); } frame 533 { run(X); } frame 534 { run(X); } frame 539 { k(); _root.t2(); } frame 540 { _root.t1(); } frame 567 { _global.atype = 'p'; shake('small'); } frame 577 { _root.spells.gotoAndPlay(_global.magic); } frame 594 { k(); } frame 595 { _root.t1(); _global.P1MP -= 40; _global.T = 'Tall'; } frame 612 { swordElement(); swordEffect(); _global.damage = _global.P1atk * 3300 * _global.P1atk2 * _global.P1atkB; _root.getAcc('P1', 1.2); _global.atype = 'p'; if (_global.sword == 'swift') { _global.damage *= 1.6; } if (_global.P1skills[22][0]) { _global.damage *= 1.4; } else { _global.P1skills[22][1] += 1; } _root.hurt(); } frame 628 { _global.command = 'windslash'; } frame 629 { gotoAndPlay('intro'); } frame 630 { _root.t1(); } frame 643 { _global.sword = _global.magic; } frame 648 { if (_global.P1skills[34][0]) { if (_global.P1atk < 1.1) { _global.P1atk += 0.4; } } else { _global.P1skills[34][1] += 1; } } frame 668 { k(); _root.t2(); } frame 669 { getXY(); _root.t1(); _global.P1MP -= 30; } frame 683 { run(X, Y); } frame 684 { run(X, Y); } frame 685 { run(X, Y); } frame 686 { run(X, Y); } frame 687 { run(X, Y); } frame 688 { run(X, Y); } frame 689 { _root.swap2(); } frame 689 { run(X, Y); } frame 690 { run(X, Y); } frame 691 { run(X, Y); } frame 692 { run(X, Y); } frame 693 { run(X, Y); } frame 694 { run(X, Y); } frame 696 { swordElement(); _global.damage = _global.P1atk * 3500 * _global.P1atk2 * _global.P1atkB; _root.getAcc('P1', 1.2); _global.atype = 'p'; if (_global.sword == 'blood') { _global.damage *= 1.6; } if (_global.P1skills[23][0]) { _global.damage *= 1.5; } else { _global.P1skills[23][1] += 1; } _root.hurt(); swordEffect(); } frame 697 { _global.magic = 'nil'; } frame 698 { X = -X; Y = -Y; } frame 699 { run(X, Y); } frame 700 { run(X, Y); } frame 701 { run(X, Y); } frame 702 { run(X, Y); } frame 703 { run(X, Y); } frame 704 { _root.swap2(); } frame 704 { run(X, Y); } frame 705 { if (!random(3)) { _root.playerSpeech(92); } } frame 705 { run(X, Y); } frame 706 { run(X, Y); } frame 707 { run(X, Y); } frame 708 { run(X, Y); } frame 709 { run(X, Y); } frame 710 { run(X, Y); } frame 711 { _global.cure = _global.damage / 2; } frame 716 { if (_global.missHit) { gotoAndPlay('heal'); } else { _root.t2(); k(); } } frame 744 { k(); _root.t2(); } frame 746 { _global.P1freeze = 0; } frame 761 { stop(); } frame 763 { _global.P1MP -= 90; } frame 764 { getXY(); _root.t1(); } frame 773 { run(X, Y); } frame 774 { run(X, Y); } frame 775 { run(X, Y); } frame 776 { run(X, Y); } frame 777 { run(X, Y); } frame 778 { run(X, Y); } frame 779 { _root.swap2(); } frame 779 { run(X, Y); } frame 780 { run(X, Y); } frame 781 { run(X, Y); } frame 782 { run(X, Y); } frame 783 { run(X, Y); } frame 784 { run(X, Y); } frame 785 { swordElement(); _global.damage = _global.P1atk * 1000 * _global.P1atk2 * _global.P1atkB; _root.getAcc('P1', 1); _global.atype = 'p'; _root.hurt(); } frame 789 { _global.damage = _global.P1atk * 900 * _global.P1atk2 * _global.P1atkB; _root.hurt(); } frame 792 { if (!random(3)) { _root.playerSpeech(94); } } frame 797 { _global.damage = _global.P1atk * 900 * _global.P1atk2 * _global.P1atkB; _root.hurt(); } frame 804 { _global.damage = _global.P1atk * 900 * _global.P1atk2 * _global.P1atkB; _root.hurt(); } frame 812 { _global.damage = _global.P1atk * 900 * _global.P1atk2 * _global.P1atkB; _root.hurt(); } frame 822 { _global.damage = _global.P1atk * 1100 * _global.P1atk2 * _global.P1atkB; _root.hurt(); } frame 830 { _global.damage = _global.P1atk * 1100 * _global.P1atk2 * _global.P1atkB; _root.hurt(); } frame 846 { swordEffect(); swordElement(); _global.damage = _global.P1atk * 5000 * _global.P1atk2 * _global.P1atkB; if (_global.P1skills[33][0]) { _global.damage *= 1.5; } else { _global.P1skills[33][1] += 1; } _root.hurt(); shake('small'); } frame 855 { X = -X; Y = -Y; } frame 856 { run(X, Y); } frame 857 { run(X, Y); } frame 858 { run(X, Y); } frame 859 { run(X, Y); } frame 860 { run(X, Y); } frame 861 { _root.swap2(); } frame 861 { run(X, Y); } frame 862 { run(X, Y); } frame 863 { run(X, Y); } frame 864 { run(X, Y); } frame 865 { run(X, Y); } frame 866 { run(X, Y); } frame 867 { run(X, Y); } frame 872 { if (_global.sword == 'blood' and _global.missHit) { gotoAndPlay('heal'); _global.cure = _global.damage * 0.6; _global.magic = 'pot'; _root.t1(); } else { if (_global.sword == 'cross' and _global.missHit) { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 25); _root.t1(); } else { if (_global.P1skills[17][0] and _global.missHit) { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 80); _root.t1(); } else { k(); } } } _root.t2(); } frame 889 { _global.P1poison = 0; } frame 907 { k(); } frame 908 { _root.t1(); } frame 947 { _root.spells.gotoAndPlay(_global.magic); } frame 959 { k(); } frame 960 { k(); } frame 962 { getXY(); _root.t1(); _global.P1MP -= 30; } frame 978 { run(X, Y); } frame 979 { run(X, Y); } frame 980 { run(X, Y); } frame 981 { run(X, Y); } frame 982 { run(X, Y); } frame 983 { _root.swap2(); } frame 983 { run(X, Y); } frame 984 { run(X, Y); } frame 985 { run(X, Y); } frame 986 { run(X, Y); } frame 987 { run(X, Y); } frame 988 { run(X, Y); } frame 989 { run(X, Y); } frame 990 { swordElement(); swordEffect(); _root.getAcc('P1', 1); _global.damage = _global.P1atk * _global.P1atk2 * _global.P1atkB * Math.pow(_global.P1HPmax - _global.P1HP, 1.06); _global.atype = 'p'; if (_global.P1skills[32][0]) { _global.damage *= 1.4; } else { _global.P1skills[32][1] += 1; } _root.hurt(); } frame 990 { if (_global.P1HP < 1000) { shake('big'); } else { if (_global.P1HP < 4000) { shake('small'); } } } frame 992 { X = -X; Y = -Y; } frame 993 { if (!random(3)) { _root.playerSpeech(93); } } frame 994 { run(X, Y); } frame 995 { run(X, Y); } frame 996 { run(X, Y); } frame 997 { run(X, Y); } frame 998 { _root.swap2(); } frame 998 { run(X, Y); } frame 999 { run(X, Y); } frame 1000 { run(X, Y); } frame 1001 { run(X, Y); } frame 1002 { run(X, Y); } frame 1003 { run(X, Y); } frame 1004 { run(X, Y); } frame 1005 { run(X, Y); } frame 1010 { k(); _root.t2(); } frame 1012 { getXY(); _global.P1MP -= 60; _root.t1(); } frame 1021 { X = random(150) + 120; X /= 12; } frame 1026 { run(X, Y); } frame 1027 { run(X, Y); } frame 1028 { run(X, Y); } frame 1029 { run(X, Y); } frame 1030 { run(X, Y); } frame 1031 { _root.swap2(); } frame 1031 { run(X, Y); } frame 1032 { run(X, Y); } frame 1033 { run(X, Y); } frame 1034 { run(X, Y); } frame 1035 { run(X, Y); } frame 1036 { run(X, Y); } frame 1037 { run(X, Y); } frame 1040 { X = -X; Y = -Y; } frame 1048 { run(X, Y); } frame 1049 { run(X, Y); } frame 1050 { run(X, Y); } frame 1051 { run(X, Y); } frame 1052 { run(X, Y); } frame 1053 { _root.swap2(); } frame 1053 { run(X, Y); } frame 1054 { run(X, Y); } frame 1055 { run(X, Y); } frame 1056 { run(X, Y); } frame 1057 { run(X, Y); } frame 1058 { run(X, Y); } frame 1059 { run(X, Y); } frame 1069 { k(); _root.t2(); } frame 1080 { stop(); _root.t2(); q = 0; } frame 1085 { _global.P1freeze = 0; } frame 1096 { k(); _root.t2(); } frame 1111 { k(); _root.t2(); } frame 1114 { getXY(); X *= 3; Y *= 3; _root.t1(); } frame 1126 { if (!random(4)) { _root.playerSpeech(76); } if (!random(3)) { _root.playerSpeech(77); } if (!random(2)) { _root.playerSpeech(78); } } frame 1140 { run(X, Y); } frame 1141 { run(X, Y); } frame 1142 { run(X, Y); } frame 1143 { run(X, Y); } frame 1145 { swordElement(); swordEffect(); _root.getAcc('P1', 1); _global.damage = _global.P1atk * 5900 * _global.P1atk2 * _global.P1atkB; _global.atype = 'p'; if (_global.P1skills[31][0]) { _global.damage *= 1.4; } else { _global.P1skills[31][1] += 2; } _root.hurt(); } frame 1145 { shake('small'); } frame 1155 { retarget(); _root.hurt(); } frame 1155 { shake('small'); } frame 1165 { retarget(); _root.hurt(); } frame 1165 { shake('big'); } frame 1173 { shake('small'); } frame 1174 { retarget(); _root.hurt(); } frame 1182 { shake('small'); } frame 1183 { retarget(); _root.hurt(); } frame 1184 { shake('big'); } frame 1190 { _global.P1limit = 0; _global.P1limitmax += 50; } frame 1190 { X = -X / 3; Y = -Y / 3; } frame 1197 { run(X, Y); } frame 1198 { run(X, Y); } frame 1199 { run(X, Y); } frame 1200 { run(X, Y); } frame 1201 { run(X, Y); } frame 1202 { run(X, Y); } frame 1203 { run(X, Y); } frame 1204 { run(X, Y); } frame 1205 { run(X, Y); } frame 1206 { run(X, Y); } frame 1207 { run(X, Y); } frame 1208 { run(X, Y); } frame 1213 { if (_global.sword == 'blood' and _global.missHit) { _global.magic = 'pot'; gotoAndPlay('heal'); _global.cure = _global.damage * 2; } else { if (_global.sword == 'cross' and _global.missHit) { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 4); } else { if (_global.P1skills[17][0] and _global.missHit) { _global.magic = 'ether'; gotoAndPlay('heal'); _global.cure = Math.round(_global.damage / 80); } else { k(); _root.t2(); } } } } } movieClip 1005 { } movieClip 1006 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_global.P2atk < 1) { a2._visible = true; a2._alpha = -(_global.P2atk - 1) * 300; } if (_global.P2def < 1) { b2._visible = true; b2._alpha = -(_global.P2def - 1) * 300; } if (_global.P2matk < 1) { c2._visible = true; c2._alpha = -(_global.P2matk - 1) * 300; } if (_global.P2mdef < 1) { d2._visible = true; d2._alpha = -(_global.P2mdef - 1) * 300; } if (_global.P2atk > 1) { a1._visible = true; a1._alpha = (_global.P2atk - 1) * 300; } if (_global.P2def > 1) { b1._visible = true; b1._alpha = (_global.P2def - 1) * 300; } if (_global.P2matk > 1) { c1._visible = true; c1._alpha = (_global.P2matk - 1) * 300; } if (_global.P2mdef > 1) { d1._visible = true; d1._alpha = (_global.P2mdef - 1) * 300; } if (_global.P2poison > 0) { po._visible = true; } if (_global.P2seal > 0) { se._visible = true; } if (_global.P2stun > 0) { stun._visible = true; } if (_global.P2autolife == 1) { life._visible = true; life._alpha = 50; } else { if (_global.P2autolife > 1) { life._visible = true; life._alpha = 100; } } if (_global.P2regen == 1) { regen._visible = true; regen._alpha = 50; } else { if (_global.P2regen > 1) { regen._visible = true; regen._alpha = 100; } } if (_global.P2blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_global.P2blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 29 { symbols(); } } movieClip 1022 { frame 1 { gotoAndStop(random(15) + 2); } } movieClip 1030 { frame 1 { stop(); if (_global.P2freeze) { gotoAndPlay(2); } } frame 17 { stop(); } } movieClip 1043 { frame 1 { gotoAndStop(random(32) + 2); } } movieClip 1045 { } movieClip 1046 { frame 28 { stop(); } } movieClip 1048 { } movieClip 1054 { frame 1 { gotoAndStop(random(5) + 2); } } movieClip 1060 { frame 1 { gotoAndStop(random(15) + 2); } } movieClip 1061 { frame 17 { stop(); } } movieClip 1063 { } movieClip 1070 { } movieClip 1084 { frame 1 { gotoAndStop(_global.magic); } } movieClip 1085 { frame 36 { stop(); } } movieClip 1087 { } movieClip 1092 { frame 1 { gotoAndStop(random(5) + 2); } } movieClip 1093 { } movieClip 1094 { } movieClip 1097 { } movieClip 1099 { } movieClip 1100 { } movieClip 1101 { frame 1 { gotoAndStop(_global.magic); } } movieClip 1102 { } movieClip 1103 { } movieClip 1106 { frame 1 { function hideGuys() { _root.P1._visible = false; _root.P2._visible = false; _root.T1._visible = false; _root.T2._visible = false; _root.T3._visible = false; } function showGuys() { _root.P1._visible = true; _root.P2._visible = true; _root.T1._visible = true; _root.T2._visible = true; _root.T3._visible = true; } hitt = 0; } frame 1 { function chemist() { if (_global.user == 'P1') { if (_global.P1skills[15][0]) { return 1.6; } else { if (_global.P1skills[14][0]) { _global.P1skills[15][1] += 0.6; return 1.3; } else { _global.P1skills[14][1] += 1; return 1; } } } else { if (_global.user == 'P2') { if (_global.P2skills[19][0]) { return 1.6; } else { if (_global.P2skills[18][0]) { _global.P2skills[19][1] += 0.6; return 1.3; } else { _global.P2skills[18][1] += 1; return 1; } } } else { return 1; } } } } frame 2 { function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = (_root.X() - _root.coords[2] - 120) / 12; Y = -(_root.coords[3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bo' + b, b); (eval('_root.bo' + b))._x = _x - 260 + random(50); (eval('_root.bo' + b))._y = _y + random(50); (eval('_root.bo' + b)).damage = damage; b += 2; } function hit() { if (_global.P2freeze or _global.P2stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy - _global.P2evade + stunE; if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.def2 == 1) { damage = Math.round(damage / 2); } if (_global.atype == 'p') { damage = Math.round(damage / _global.P2def); } else { damage = Math.round(damage / _global.P2mdef); _global.counterr2 = 1; } if (_global.P2freeze) { damage *= 1.5; } elementbonus = damage * _global.element[1] * _global.P2elements; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (_global.P2skills[27][0] and random(2)) { inflict = false; } else { if (_global.P2skills[28][0]) { inflict = false; } } if (inflict) { if (_global.effect[0] == 'stun') { _global.P2stun += _global.effect[2]; } if (_global.effect[0] == 'poison') { _global.P2poison += _global.effect[2]; } if (_global.effect[0] == 'seal') { _global.P2seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { _global.P2blind += _global.effect[2]; } if (_global.effect[0] == 'freeze') { _global.P2freeze += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { _global.P2atk -= _global.effect[2]; } if (_global.effect[0] == 'defDown') { _global.P2def -= _global.effect[2]; } if (_global.effect[0] == 'mdefDown') { _global.P2mdef -= _global.effect[2]; } if (_global.effect[0] == 'matkDown') { _global.P2matk -= _global.effect[2]; } } _global.P2HP -= damage; if (_global.P2skills[17][0]) { _global.P2limit += damage / 60; } else { _global.P2limit += damage / 100; } _root.DamageCount += damage; if (_global.P2HP <= 0) { _global.P2HP = 0; gotoAndPlay('die'); } else { if (_global.effect[0] == 'freeze' and inflict) { gotoAndPlay('freeze'); } else { if (_global.def2 == 1 and !_global.P2freeze) { gotoAndPlay('defhit'); } else { if (damage > 3500) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } } } if (q == 0) { _root.t1(); q = 1; } damageNo(); } function heal() { _root.heal.duplicateMovieClip('bo' + b, b); (eval('_root.bo' + b))._x = _x - 200; (eval('_root.bo' + b))._y = _y + 100; (eval('_root.bo' + b)).cure = cure; b += 2; } q = 0; b = 0; } frame 3 { _root.t1(); } frame 14 { if (_global.summonEnd) { _root.t2(); _global.summonEnd = 0; } } frame 31 { _root.t2(); if (hitt) { _root.t2(); } hitt = 0; } frame 32 { stop(); q = 0; } frame 33 { k(); } frame 41 { _global.P2freeze = 0; } frame 44 { if (!_global.P2skills[14][0]) { _global.P2skills[14][1] += 0.2; } else { if (!_global.P2skills[15][0]) { _global.P2skills[15][1] += 0.1; } else { if (!_global.P2skills[16][0]) { _global.P2skills[16][1] += 0.1; } } } if (!_global.P2skills[32][0]) { _global.P2skills[32][1] += 0.15; } } frame 63 { k(); _root.t2(); } frame 65 { _global.magic = 'yes'; } frame 67 { if (_global.atype == 'p') { if (!_global.P2skills[20][0]) { _global.P2skills[20][1] += 1.5; } else { _global.P2def += 0.15; } } if (_global.atype == 'm') { if (!_global.P2skills[21][0]) { _global.P2skills[21][1] += 1.5; } else { _global.P2mdef += 0.15; } } _global.P2freeze = 0; } frame 81 { hitt = 1; } frame 85 { gotoAndPlay('intro'); } frame 86 { _root.t1(); } frame 103 { _global.def2 = 1; _global.P2evade += 0.2; } frame 114 { if (!random(2) and _root.live[1]) { _root.playerSpeech(72); } } frame 129 { k(); _root.t2(); } frame 139 { _global.P2freeze = 0; } frame 159 { if (_root.live[1] == 0) { _root.getItem(); } } frame 166 { if (_root.live[1] == 0) { _root.go = 1; } } frame 167 { k(); } frame 169 { cure = Math.round(_global.cure * (1 + Math.random(1) / 20)); if (_global.magic != 'ant' and _global.magic != 'ether' and _global.magic != 'maxether' and _global.magic != 'atkpot' and _global.magic != 'magpot') { _global.P2HP += cure; if (_global.P2HP > _global.P2HPmax) { _global.P2HP = _global.P2HPmax; } } else { if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') { _global.P2MP += _global.cure; if (_global.P2MP > _global.P2MPmax) { _global.P2MP = _global.P2MPmax; } } } } frame 169 { trace('P2 heal 1'); } frame 170 { if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') { heal(); } _root.t1(); } frame 170 { trace('P2 heal 2'); } frame 171 { if (_global.def2 == 1 and _global.atype == 'm' or _global.command == 'attack') { _root.t2(); } } frame 171 { trace('P2 heal 3'); } frame 174 { _global.P2freeze = 0; } frame 201 { k(); _root.t2(); } frame 202 { _root.t1(); } frame 225 { if (!_global.P2skills[30][0]) { _global.P2skills[30][1] += 0.3; } if (!_global.P2skills[27][0]) { _global.P2skills[27][1] += 0.33; } else { _global.P2skills[28][1] += 0.25; } } frame 259 { _global.atype = 'm'; _root.spells.gotoAndPlay(_global.magic); } frame 267 { k(); } frame 268 { _root.t1(); } frame 295 { if (!_global.P2skills[29][0]) { _global.P2skills[29][1] += 0.3; } if (!_global.P2skills[33][0]) { _global.P2skills[33][1] += 0.2; } } frame 319 { _global.atype = 'm'; _root.spells.gotoAndPlay(_global.magic); } frame 329 { k(); } frame 330 { _root.live[2] = 0; } frame 337 { if (!_global.P2skills[7][0]) { _global.P2skills[7][1] += 5; } _global.P2freeze = 0; } frame 340 { if (_root.live[1]) { _root.playerSpeech(63); } } frame 352 { if (_root.live[1]) { if (!random(4)) { _root.playerSpeech(63); } else { if (!random(3)) { _root.playerSpeech(66); } else { if (!random(2)) { _root.playerSpeech(67); } } } } } frame 357 { _global.P2regen = 0; } frame 369 { if (_global.P2autolife) { _global.magic = 'autolife'; gotoAndPlay('revive2'); } else { stop(); _root.t2(); } } frame 370 { _root.t1(); } frame 371 { if (_global.magic == 'revive') { cure = Math.round(5700 * (1 + Math.random(1) / 10) * _global.P2matk * _global.P2matkB); } if (_global.magic == 'autolife') { cure = Math.round(1000 * _global.P2autolife * _global.P2matk * _global.P2matkB); } else { cure = Math.round(4000 * chemist() * (1 + Math.random(1) / 10)); } _global.P2HP += cure; if (_global.P2HP > _global.P2HPmax) { _global.P2HP = _global.P2HPmax; } heal(); _root.live[2] = 1; } frame 387 { _global.P2seal = 0; _global.P2poison = 0; _global.P2stun = 0; _global.P2freeze = 0; _global.P2blind = 0; _global.P2autolife = 0; } frame 416 { k(); _root.t2(); } frame 417 { getXY(); _root.t1(); } frame 422 { _root.getAcc('P2', 0.95); _global.damage = _global.P2atk * 1500; _global.atype = 'p'; } frame 424 { run(X, Y); } frame 425 { run(X, Y); } frame 426 { run(X, Y); } frame 427 { run(X, Y); } frame 428 { run(X, Y); } frame 429 { _root.swap2(); } frame 429 { run(X, Y); } frame 430 { run(X, Y); } frame 431 { run(X, Y); } frame 432 { run(X, Y); } frame 433 { run(X, Y); } frame 434 { run(X, Y); } frame 435 { run(X, Y); } frame 436 { _root.hurt(); } frame 437 { X = -X; Y = -Y; } frame 440 { run(X, Y); } frame 441 { run(X, Y); } frame 442 { run(X, Y); } frame 443 { run(X, Y); } frame 444 { run(X, Y); } frame 445 { run(X, Y); } frame 446 { _root.swap2(); } frame 446 { run(X, Y); } frame 447 { run(X, Y); } frame 448 { run(X, Y); } frame 449 { run(X, Y); } frame 450 { run(X, Y); } frame 451 { run(X, Y); } frame 459 { if (!_global.P2skills[22][0] or !_global.missHit) { _global.P2skills[22][1] += 1.5; k(); _root.t2(); } else { gotoAndPlay('heal'); _global.magic = 'ether'; _global.cure = Math.round(_global.damage / 15); } } frame 460 { _root.t1(); } frame 489 { _root.items.gotoAndPlay(_global.magic); } frame 494 { k(); } frame 518 { stop(); _root.summons.gotoAndPlay(_global.magic); } frame 537 { if (_global.atype == 'm') { _global.cure = Math.round(damage / 8); _global.magic = 'ether'; gotoAndPlay('heal'); } } frame 538 { _root.t2(); k(); } frame 539 { _root.t1(); } frame 574 { if (_global.magic != 'ion' and _global.magic != 'slime') { gotoAndPlay('hide'); if (_root.live[1]) { tellTarget ('/P1') { gotoAndPlay('hide'); } } } else { _root.summons.gotoAndPlay(_global.magic); k(); } } frame 590 { _global.P2poison = 0; } frame 608 { k(); } frame 609 { _root.t1(); } frame 630 { _root.spells.gotoAndPlay(_global.magic); } frame 641 { k(); } frame 645 { _global.P2freeze = 0; } frame 658 { k(); _root.t2(); } frame 669 { stop(); _root.t2(); q = 0; } frame 673 { _global.P2freeze = 0; } frame 684 { k(); _root.t2(); } frame 685 { _root.t1(); } frame 694 { _root.spells.gotoAndPlay('kyun'); } frame 739 { k(); } } movieClip 1108 { } movieClip 1110 { } movieClip 1112 { } movieClip 1114 { } movieClip 1116 { } movieClip 1118 { } movieClip 1120 { } movieClip 1122 { } movieClip 1126 { frame 1 { gotoAndStop(_parent.sword); } } movieClip 1129 { } movieClip 1131 { } movieClip 1133 { frame 1 { gotoAndStop(_parent.cat); } } movieClip 1135 { } movieClip 1138 { } movieClip 1140 { frame 1 { gotoAndStop(_parent.cat); } } movieClip 1143 { } movieClip 1144 { } movieClip 1147 { } movieClip 1149 { } movieClip 1150 { } movieClip 1151 { } movieClip 1153 { } movieClip 1155 { } movieClip 1156 { } movieClip 1158 { } movieClip 1159 { } movieClip 1162 { } movieClip 1164 { frame 1 { gotoAndStop(_parent.cat); } } movieClip 1166 { } movieClip 1168 { } movieClip 1170 { } movieClip 1172 { } movieClip 1174 { } movieClip 1175 { frame 1 { gotoAndStop(_parent.shield); } } movieClip 1177 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 1188 { frame 1 { if (!_global.blood) { _visible = false; } } frame 11 { stop(); } } movieClip 1195 { } movieClip 1204 { frame 1 { _visible = false; } frame 2 { _visible = true; } frame 3 { poison = 0; blind = 0; seal = 0; stun = 0; monster = 'kitten'; elements = [1.8, 1, 1, 1, 1.5, 1, 1, 1, 1, 1, 1]; } frame 4 { HP = 5000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; cat = random(5) + 2; sword = random(11) + 2; if (random(2)) { shield = random(7) + 2; } else { shield = 2; } HPmax = HP; cat = random(5) + 2; } frame 5 { function moveset() { b = random(3); _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack2'); } if (b == 2) { gotoAndPlay('attack3'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'poison') { poison += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (shield > 2) { def /= 2; mdef /= 2; } if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 3500) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 6 { if (shield > 2) { def *= 2; mdef *= 2; } } frame 7 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 100 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 22 { stop(); q = 0; idle.cat = cat; idle.sword = sword; idle.shield = shield; trace(poison); } frame 24 { shield = 2; } frame 40 { k(); _root.t2(); } frame 41 { ranS = random(15); var sound = new Sound(); if (ranS == 1) { sound.attachSound('cat1'); } if (ranS == 2) { sound.attachSound('cat2'); } if (ranS == 3) { sound.attachSound('cat3'); } if (ranS == 4) { sound.attachSound('cat4'); } if (ranS == 5) { sound.attachSound('cat5'); } sound.start(0.1, 0); } frame 42 { shield = 2; } frame 67 { k(); _root.t2(); } frame 68 { _root.live[2 + ID] = 0; } frame 68 { ranS = random(5) + 1; var sound = new Sound(); if (ranS == 1) { sound.attachSound('cat1'); } if (ranS == 2) { sound.attachSound('cat2'); } if (ranS == 3) { sound.attachSound('cat3'); } if (ranS == 4) { sound.attachSound('cat4'); } if (ranS == 5) { sound.attachSound('cat5'); } sound.start(0.1, 0); } frame 71 { if (_global.user == 'P1' and random(3)) { _root.playerSpeech(60); } } frame 72 { ++_root.killCount; } frame 120 { stop(); _root.t2(); } frame 121 { _root.t1(); } frame 126 { getXY(); } frame 127 { run(X, Y); } frame 128 { run(X, Y); } frame 129 { run(X, Y); } frame 130 { run(X, Y); } frame 131 { run(X, Y); } frame 132 { run(X, Y); } frame 133 { run(X, Y); } frame 134 { run(X, Y); } frame 135 { run(X, Y); } frame 136 { run(X, Y); } frame 137 { run(X, Y); } frame 138 { run(X, Y); } frame 139 { X = -X / 2; Y = -Y / 2; } frame 141 { _root.getAcc('foe', 0.95); _global.damage = 550 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 144 { if (_global.T == 'P2') { _root.playerSpeech(61); } } frame 149 { run(X, Y); } frame 150 { run(X, Y); } frame 151 { run(X, Y); } frame 152 { run(X, Y); } frame 153 { run(X, Y); } frame 154 { run(X, Y); } frame 155 { run(X, Y); } frame 156 { run(X, Y); } frame 157 { run(X, Y); } frame 158 { run(X, Y); } frame 159 { run(X, Y); } frame 160 { run(X, Y); } frame 161 { run(X, Y); } frame 162 { run(X, Y); } frame 163 { run(X, Y); } frame 164 { run(X, Y); } frame 165 { run(X, Y); } frame 166 { run(X, Y); } frame 167 { run(X, Y); } frame 168 { run(X, Y); } frame 169 { run(X, Y); } frame 170 { run(X, Y); } frame 171 { run(X, Y); } frame 172 { run(X, Y); } frame 173 { k(); _root.t2(); } frame 174 { _root.t1(); } frame 179 { getXY(); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { run(X, Y); } frame 188 { run(X, Y); } frame 189 { run(X, Y); } frame 190 { run(X, Y); } frame 191 { run(X, Y); } frame 192 { X = -X / 2; Y = -Y / 2; } frame 195 { _root.getAcc('foe', 0.9); _global.damage = 300 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 207 { _global.damage = 150 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 216 { _global.damage = 150 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 223 { _global.damage = 150 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 229 { run(X, Y); } frame 230 { run(X, Y); } frame 231 { run(X, Y); } frame 232 { run(X, Y); } frame 233 { run(X, Y); } frame 234 { run(X, Y); } frame 235 { run(X, Y); } frame 236 { run(X, Y); } frame 237 { run(X, Y); } frame 238 { run(X, Y); } frame 239 { run(X, Y); } frame 240 { run(X, Y); } frame 241 { run(X, Y); } frame 242 { run(X, Y); } frame 243 { run(X, Y); } frame 244 { run(X, Y); } frame 245 { run(X, Y); } frame 246 { run(X, Y); } frame 247 { run(X, Y); } frame 248 { run(X, Y); } frame 249 { run(X, Y); } frame 250 { run(X, Y); } frame 251 { run(X, Y); } frame 252 { run(X, Y); } frame 253 { k(); _root.t2(); } frame 254 { _root.t1(); } frame 260 { getXY(); } frame 261 { run(X, Y); } frame 262 { run(X, Y); } frame 263 { run(X, Y); } frame 264 { run(X, Y); } frame 265 { run(X, Y); } frame 266 { run(X, Y); } frame 267 { run(X, Y); } frame 268 { run(X, Y); } frame 269 { run(X, Y); } frame 270 { run(X, Y); } frame 271 { run(X, Y); } frame 272 { run(X, Y); } frame 273 { X = -X / 2; Y = -Y / 2; } frame 274 { _root.getAcc('foe', 0.8); _global.damage = 1000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 280 { run(X, Y); } frame 281 { run(X, Y); } frame 282 { run(X, Y); } frame 283 { run(X, Y); } frame 284 { run(X, Y); } frame 285 { run(X, Y); } frame 286 { run(X, Y); } frame 287 { run(X, Y); } frame 288 { run(X, Y); } frame 289 { run(X, Y); } frame 290 { run(X, Y); } frame 291 { run(X, Y); } frame 292 { run(X, Y); } frame 293 { run(X, Y); } frame 294 { run(X, Y); } frame 295 { run(X, Y); } frame 296 { run(X, Y); } frame 297 { run(X, Y); } frame 298 { run(X, Y); } frame 299 { run(X, Y); } frame 300 { run(X, Y); } frame 301 { run(X, Y); } frame 302 { run(X, Y); } frame 303 { run(X, Y); } frame 304 { k(); _root.t2(); } frame 320 { k(); _root.t2(); } } movieClip 1206 { frame 7 { stop(); } } button 1208 { on (press) { _global.T = 'T1'; menu.play(); } } button 1209 { on (press) { _global.T = 'T2'; menu.play(); } } button 1210 { on (press) { _global.T = 'T3'; menu.play(); } } button 1211 { on (press) { _global.T = 'P1'; menu.play(); } } button 1212 { on (press) { _global.T = 'P2'; menu.play(); } } movieClip 1214 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _root._x = cX - this._x * v4; _root._y = cY - this._y * v3; _root._xscale = 100 * v4; _root._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _root._xscale = 100; _root._yscale = 100; _root._x = 0; _root._y = 0; } this._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } movieClip 1215 { frame 1 { stop(); } frame 6 { trace('small shake'); } frame 15 { gotoAndStop(1); } frame 25 { trace('big shake'); } frame 41 { gotoAndStop(1); } } movieClip 1223 { } movieClip 1225 { } movieClip 1234 { } movieClip 1238 { } movieClip 1241 { } movieClip 1243 { } movieClip 1244 { } movieClip 1245 { frame 17 { stop(); } } movieClip 1249 { } movieClip 1250 { frame 5 { this._x = random(200) + 100; this._y = random(100) + 130; } } movieClip 1253 { } movieClip 1254 { frame 18 { stop(); } } movieClip 1258 { } movieClip 1261 { } movieClip 1262 { } movieClip 1266 { } movieClip 1270 { } movieClip 1273 { } movieClip 1285 { } movieClip 1287 { } movieClip 1289 { } movieClip 1292 { frame 1 { gotoAndPlay(random(26) + 2); } frame 60 { stop(); } } movieClip 1293 { } movieClip 1295 { } movieClip 1299 { } movieClip 1309 { } movieClip 1320 { } movieClip 1355 { } movieClip 1393 { } movieClip 1400 { } movieClip 1402 { } movieClip 1413 { } movieClip 1415 { } movieClip 1417 { } movieClip 1427 { } movieClip 1433 { } movieClip 1434 { frame 1 { stop(); } } movieClip 1445 { } movieClip 1452 { frame 1 { gotoAndStop(random(5)); } } movieClip 1472 { } movieClip 1474 { frame 1 { function k() { gotoAndStop('nil'); trace('spells ready'); _global.magic = 'nil'; _root.t2(); } function elementalist() { if (_global.P2skills[4][0]) { _global.damage *= 1.6; } else { if (_global.P2skills[3][0]) { _global.damage *= 1.4; _global.P2skills[4][1] += 0.4; } else { if (_global.P2skills[2][0]) { _global.damage *= 1.2; _global.P2skills[3][1] += 0.6; } else { _global.P2skills[2][1] += 0.7; } } } } function astrology() { if (_global.P2skills[1][0]) { _global.damage *= 1.5; } else { if (_global.P2skills[0][0]) { _global.damage *= 1.25; _global.P2skills[1][1] += 0.7; } else { _global.P2skills[0][1] += 1; } } } function getXY(type) { if (type == 0) { _x = 0; _y = 0; } else { _x = _root.X() + 80; _y = _root.Y() - 120; } } function hideGuys() { _root.P1._visible = false; _root.P2._visible = false; _root.T1._visible = false; _root.T2._visible = false; _root.T3._visible = false; } function showGuys() { _root.P1._visible = true; _root.P2._visible = true; _root.T1._visible = true; _root.T2._visible = true; _root.T3._visible = true; } } frame 1 { function chemist() { if (_global.user == 'P1') { if (_global.P1skills[15][0]) { return 1.6; } else { if (_global.P1skills[14][0]) { _global.P1skills[15][1] += 0.6; return 1.3; } else { _global.P1skills[14][1] += 1; return 1; } } } else { if (_global.user == 'P2') { if (_global.P2skills[19][0]) { return 1.6; } else { if (_global.P2skills[18][0]) { _global.P2skills[19][1] += 0.6; return 1.3; } else { _global.P2skills[18][1] += 1; return 1; } } } else { return 1.3; } } } } frame 1 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } trace('shake should have happened'); } } frame 2 { stop(); } frame 4 { getXY(1); _global.P2MP -= 40; _root.swap(); } frame 10 { _global.atype = 'm'; _global.element = [0, 1]; _root.getAcc('P2', 1.1); _global.effect = ['mdefDown', 0.8, 0.25]; _global.damage = _global.P2matk * _global.P2matkB * 7500; elementalist(); _root.hurt(); } frame 37 { k(); _root.swap(); } frame 38 { getXY(1); _global.P1MP -= 40; _root.swap(); } frame 41 { shake('small'); } frame 43 { _global.atype = 'p'; _global.element = [3, 1]; _root.getAcc('P1', 1.1); _global.damage = _global.P1atk * 5500 * _global.P1atkB * _global.P1atk2; if (_global.sword == 'stone') { _global.damage *= 1.5; } if (_global.P1skills[27][0]) { _global.damage *= 1.4; } else { _global.P1skills[27][1] += 1; } _root.hurt(); } frame 82 { k(); _root.swap(); } frame 83 { _root.swap(); } frame 83 { getXY(1); _global.P2MP -= 20; } frame 95 { _global.cure = 5000 * _global.P2matk * _global.P2matkB; if (_global.P2skills[6][0]) { _global.cure *= 1.4; } else { if (_global.P2skills[5][0]) { _global.cure *= 1.2; _global.P2skills[6][1] += 0.6; } else { _global.P2skills[5][1] += 0.9; } } if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 101 { if (_root.live[1] and _global.T == 'P1') { _root.playerSpeech(101); } } frame 104 { k(); _root.swap(); } frame 105 { getXY(1); _global.P2MP -= 40; _root.swap(); } frame 122 { _global.atype = 'm'; _global.element = [4, 1]; _root.getAcc('P2', 1.1); _global.effect = ['poison', 2, 3]; _global.damage = _global.P2matk * _global.P2matkB * 3500; elementalist(); _root.hurt(); } frame 143 { k(); _root.swap(); } frame 144 { getXY(1); _global.P2MP -= 40; _root.swap(); } frame 159 { _global.atype = 'm'; _global.element = [6, 1]; _root.getAcc('P2', 1.1); _global.damage = _global.P2matk * _global.P2matkB * 8300; elementalist(); _root.hurt(); } frame 165 { trace(_global.accuracy); } frame 190 { k(); _root.swap(); } frame 191 { getXY(1); _root.swap(); _global.P2MP -= 40; _global.atype = 'm'; _global.element = [1, 1]; _root.getAcc('P2', 1.1); if (_global.P2skills[26][0]) { _global.effect = ['stun', 0.25, 1]; } else { _global.P2skills[26][1] += 1; _global.effect = ['stun', 0.1, 1]; } _global.damage = _global.P2matk * _global.P2matkB * 6900 / 5; elementalist(); } frame 192 { _root.hurt(); } frame 196 { _root.hurt(); } frame 198 { if (!random(3)) { _root.playerSpeech(84); } } frame 200 { _root.hurt(); } frame 206 { _root.hurt(); } frame 212 { _root.hurt(); } frame 224 { k(); _root.swap(); } frame 225 { _x = 50; _y = 0; } frame 226 { _global.P2MP -= 100; _global.atype = 'm'; _global.element = [7, 1]; } frame 268 { _global.atype = 'm'; _root.getAcc('P2', 1.5); _global.T = 'Tall'; _global.damage = _global.P2matk * _global.P2matkB * 8800; astrology(); _root.hurt(); } frame 269 { shake('small'); } frame 289 { k(); } frame 290 { _global.P2MP -= 70; _x = 50; _y = 0; } frame 317 { _global.cure = 5200 * _global.P2matk * _global.P2matkB; if (_global.P2skills[6][0]) { _global.cure *= 1.4; } else { if (_global.P2skills[5][0]) { _global.cure *= 1.2; _global.P2skills[6][1] += 0.6; } else { _global.P2skills[5][1] += 0.9; } } if (_root.live[1] == 1) { _root.P1.gotoAndPlay('heal'); } if (_root.live[2] == 1) { _root.P2.gotoAndPlay('heal'); } } frame 323 { if (!random(3)) { _root.playerSpeech(87); } else { if (!random(3)) { _root.playerSpeech(88); } } } frame 343 { k(); } frame 344 { getXY(); _global.P2MP -= 90; _root.swap(); } frame 369 { if (!random(3)) { _root.playerSpeech(89); } } frame 381 { if (!_root.live[1] and _global.T == 'P1') { _root.P1.gotoAndPlay('revive'); } if (_root.live[1] and _global.T == 'P1') { _global.P1autolife = 5; } if (_root.live[2] and _global.T == 'P2') { _global.P2autolife = 5; } } frame 405 { k(); _root.swap(); } frame 406 { _x = 50; _y = 0; _global.atype = 'm'; } frame 407 { _global.P2MP -= 10; } frame 419 { if (!random(3)) { _root.playerSpeech(85); } else { if (!random(3)) { _root.playerSpeech(86); } } } frame 432 { _global.P1poison = 0; _global.P1seal = 0; _global.P1stun = 0; _global.P1blind = 0; _global.P2poison = 0; _global.P2seal = 0; _global.P2stun = 0; _global.P2blind = 0; } frame 448 { k(); } frame 449 { _x = 50; _y = 0; _global.P1MP -= 100; _global.atype = 'm'; } frame 451 { shake('small'); } frame 484 { _global.cure = 2500 * _global.P1matk * _global.P1matk2 * _global.P1matkB; if (_global.P1skills[30][0]) { _global.cure *= 1.3; } else { _global.P1skills[30][1] += 0.8; } if (_root.live[1] == 1) { _root.P1.gotoAndPlay('heal'); } if (_root.live[2] == 1) { _root.P2.gotoAndPlay('heal'); } } frame 534 { _global.damage = 4800 * _global.P1matk * _global.P1matk2 * _global.P1matkB; _root.getAcc('P2', 1.5); _global.element = [2, 1]; if (_global.sword == 'razorback') { _global.damage *= 1.1; } if (_global.P1skills[29][0]) { _global.damage *= 1.5; } else { _global.P1skills[29][1] += 1; } _global.T = 'Tall'; _root.hurt(); shake('small'); } frame 548 { k(); } frame 550 { getXY(1); _global.P1MP -= 70; _global.atype = 'p'; _root.swap(); } frame 571 { _global.damage = _global.P1atk * 8000 * _global.P1atk2 * _global.P1atkB; _root.getAcc('P2', 1); _global.element = [8, 0.75]; if (_global.sword == 'heaven' or _global.sword == 'cross') { _global.damage *= 1.4; } if (_global.P1skills[6][0]) { _global.damage *= 1.4; } else { _global.P1skills[6][1] += 1; } _root.hurt(); } frame 604 { k(); _root.swap(); } frame 605 { getXY(1); _global.P1MP -= 50; _global.atype = 'p'; _root.swap(); } frame 609 { shake('small'); } frame 610 { _global.damage = _global.P1atk * 6400 * _global.P1atk2 * _global.P1atkB; _global.element = [0, 0.75]; _root.getAcc('P2', 1.1); if (_global.sword == 'inferno') { _global.damage *= 1.4; } if (_global.sword == 'stone') { _global.damage *= 1.2; } if (_global.P1skills[19][0]) { _global.damage *= 1.4; } else { _global.P1skills[19][1] += 1; } _root.hurt(); } frame 613 { if (!random(3)) { _root.playerSpeech(90); } } frame 647 { k(); _root.swap(); } frame 648 { getXY(1); _global.P2MP -= 20; _global.atype = 'm'; _root.swap(); } frame 669 { _global.damage = _global.P2matk * (2000 + random(11000)) * _global.P2matkB; astrology(); _root.getAcc('P2', 1); _root.hurt(); } frame 677 { if (!random(3)) { _root.playerSpeech(83); } } frame 708 { k(); _root.swap(); } frame 709 { _x = 50; _y = 0; _global.P1MP -= 75; _global.atype = 'm'; } frame 740 { _global.damage = 4900 * _global.P1matk * _global.P1matk2 * _global.P1matkB; _global.T = 'Tall'; _global.element = [7, 1]; _root.getAcc('P2', 1.5); _global.effect = ['mdefDown', 1.5, 0.3]; if (_global.P1skills[28][0]) { _global.damage *= 1.4; } else { _global.P1skills[28][1] += 1; } _root.hurt(); } frame 753 { k(); } frame 754 { shake('small'); _x = 50; _y = 0; } frame 763 { _root.hurt(); } frame 804 { k(); } frame 805 { _x = 50; _y = 0; _global.P2MP -= 30; } frame 832 { _global.P1mdef = 1.65; _global.P2mdef = 1.65; } frame 865 { k(); } frame 866 { if (_global.P1skills[10][0]) { b = random(3); if (b == 0) { gotoAndPlay('airstrike2'); } if (b == 1) { gotoAndPlay('airstrike3'); } } else { b = random(2); if (b != 0) { gotoAndPlay('airstrike2'); } } getXY(); _global.P1MP -= 50; _global.atype = 'm'; } frame 867 { _root.swap(); } frame 873 { shake('small'); } frame 899 { shake('small'); } frame 900 { _global.damage = 14000 * _global.P1matkB * _global.P1matk2; _global.element = [9, 1]; _root.getAcc('nil', 1.2); if (!_global.P1skills[10][0]) { _global.P1skills[10][1] += 2.5; } _root.hurt(); } frame 939 { k(); _root.swap(); } frame 940 { _x = 50; _y = 0; } frame 972 { shake('small'); } frame 973 { _global.damage = 3000 * _global.P1matkB * _global.P1matk2; _global.atype = 'm'; _global.T = 'Tall'; _global.element = [9, 1]; _root.getAcc('nil', 1); if (!_global.P1skills[11][0]) { _global.P1skills[11][1] += 3; } _root.hurt(); } frame 977 { _root.hurt(); } frame 978 { shake('small'); } frame 981 { _root.hurt(); } frame 1014 { k(); } frame 1015 { getXY(); _global.atype = 'm'; _global.P2MP -= 100; _root.swap(); } frame 1044 { shake('big'); } frame 1047 { _global.damage = _global.P2matk * 10800 * _global.P2matkB; _global.element = [8, 1]; _root.getAcc('P2', 1.2); _global.effect = ['debuff', 0.8, 1]; if (_global.P2skills[34][0]) { _global.damage *= 1.4; } else { _global.P2skills[34][1] += 1; } _root.hurt(); } frame 1061 { if (!random(2)) { _root.playerSpeech(82); } } frame 1071 { _global.cure = 3300 * _global.P2matk * _global.P2matkB; _root.P2.gotoAndPlay('heal'); } frame 1087 { k(); _root.swap(); } frame 1089 { getXY(1); _root.swap(); } frame 1111 { _root.hurt(); } frame 1124 { if (_global.hitMiss and _root.live[1] and _global.T == 'P2') { _root.playerSpeech(63); } if (_global.hitMiss and _root.live[2] and _global.T == 'P1') { _root.playerSpeech(64); } } frame 1135 { k(); _root.swap(); } frame 1139 { getXY(1); _root.swap(); } frame 1140 { _root.hurt(); } frame 1144 { _root.hurt(); } frame 1155 { k(); _root.swap(); } frame 1227 { k(); } frame 1228 { getXY(1); _root.swap(); _global.P1MP -= 50; } frame 1230 { shake('small'); } frame 1233 { _global.damage = _global.P1atk * 8300 * _global.P1atk2 * _global.P1atkB; if (_global.sword == 'blizzard') { _global.damage *= 1.4; } if (_global.sword == 'stone') { _global.damage *= 1.2; } _global.element = [6, 0.75]; _root.getAcc('P2', 0.9); if (_global.P1skills[21][0]) { _global.damage *= 1.4; } else { _global.P1skills[21][1] += 1; } _root.hurt(); } frame 1241 { if (!random(3)) { _root.playerSpeech(91); } } frame 1268 { k(); _root.swap(); } frame 1269 { _root.swap(); getXY(1); } frame 1300 { _root.hurt(); } frame 1329 { k(); _root.swap(); } frame 1336 { shake('small'); } frame 1373 { shake('big'); } frame 1374 { _global.damage = 15000 * _global.P1matkB * _global.P1matk2; _global.T = 'Tall'; _global.element = [9, 0.5]; _global.effect = ['defDown', 1, 0.3]; _root.getAcc('nil', 1.5); _root.hurt(); } frame 1419 { k(); } frame 1420 { getXY(); } frame 1485 { gotoAndStop('nil'); } frame 1522 { k(); } frame 1523 { getXY(1); _root.swap(); } frame 1537 { _root.hurt(); } frame 1562 { k(); _root.swap(); } frame 1563 { _root.swap(); _y = 0; _x = 50; } frame 1578 { _root.hurt(); } frame 1582 { _root.hurt(); } frame 1586 { _root.hurt(); } frame 1591 { _root.hurt(); } frame 1597 { _global.effect = ['atkDown', 0.7, 0.3]; _root.hurt(); } frame 1614 { k(); _root.swap(); } frame 1673 { k(); } frame 1675 { _y = 0; _x = 50; _global.P2MP -= 60; } frame 1724 { _global.effect = ['blind', 1.2, 5]; _global.atype = 'm'; _root.getAcc('P2', 1.5); _global.T = 'Tall'; _global.damage = _global.P2matk * _global.P2matkB * 1700; astrology(); _root.hurt(); } frame 1738 { k(); } frame 1740 { _x = 50; _y = 0; } frame 1741 { _root.P2MP -= 60; } frame 1757 { _global.effect = ['seal', 1.2, 5]; _global.atype = 'm'; _root.getAcc('P2', 1.5); _global.T = 'Tall'; _global.damage = _global.P2matk * _global.P2matkB * 900; _root.hurt(); } frame 1805 { k(); } frame 1806 { _x = 50; _y = 0; } frame 1825 { _global.effect = ['atkDown', 0.6, 0.2]; _root.hurt(); } frame 1831 { _global.effect = ['matkDown', 0.6, 0.2]; _root.hurt(); } frame 1838 { _global.effect = ['defDown', 0.6, 0.2]; _root.hurt(); } frame 1845 { _global.effect = ['mdefDown', 0.6, 0.2]; _root.hurt(); } frame 1878 { k(); } frame 1880 { _x = 50; _y = 0; } frame 1900 { if (_root.live[2]) { _root.playerSpeech(51); } } frame 1916 { _root.hurt(); } frame 1924 { k(); } frame 1925 { _x = 50; _y = 0; } frame 1934 { _root.hurt(); } frame 1952 { k(); } frame 1953 { _x = 50; _y = 0; } frame 1957 { shake('big'); } frame 1980 { shake('big'); } frame 1985 { shake('big'); } frame 1990 { shake('big'); } frame 1995 { shake('big'); } frame 2002 { shake('big'); } frame 2010 { shake('big'); } frame 2018 { shake('big'); } frame 2025 { shake('big'); } frame 2026 { _root.getMedal(17); } frame 2038 { shake('big'); } frame 2044 { shake('big'); } frame 2055 { shake('big'); } frame 2085 { _root.T = 'Pall'; _root.hurt(); } frame 2087 { shake('small'); } frame 2116 { k(); } frame 2117 { _x = 50; _y = 0; _global.P1MP -= 25; } frame 2145 { _global.P1def = 1.65; _global.P2def = 1.65; } frame 2164 { k(); } frame 2165 { _x = 50; _y = 0; _global.P1MP -= 15; } frame 2202 { _global.magic = 'atkpot'; _root.P1.gotoAndPlay('heal'); if (!_global.P1skills[9][0]) { _global.P1skills[9][1] += 1; _global.P1atk += 0.5; } else { _global.P1atk += 0.7; } } frame 2228 { k(); } frame 2229 { _x = 50; _y = 0; } frame 2230 { if (!_global.P2skills[17][0]) { _global.P2skills[17][0] += 3; } if (_root.live[1]) { _root.t1(); } } frame 2236 { hideGuys(); } frame 2314 { showGuys(); } frame 2317 { _global.atype = 'm'; _global.P2limit = 0; _global.P2limitmax += 50; } frame 2319 { _global.cure = 6000 * _global.P2matk * _global.P2matkB; if (_root.live[1] == 1) { _root.P1.gotoAndPlay('heal'); } if (_root.live[2] == 1) { _root.P2.gotoAndPlay('heal'); } } frame 2321 { tellTarget ('/T1') { atkDown(0.4); defDown(0.4); matkDown(0.4); mdefDown(0.4); } tellTarget ('/T2') { atkDown(0.4); defDown(0.4); matkDown(0.4); mdefDown(0.4); } tellTarget ('/T3') { atkDown(0.4); defDown(0.4); matkDown(0.4); mdefDown(0.4); } _global.P1atk += 0.4; _global.P1matk += 0.4; _global.P1def += 0.4; _global.P1mdef += 0.4; _global.P2atk += 0.4; _global.P2matk += 0.4; _global.P2def += 0.4; _global.P2mdef += 0.4; _global.P1poison = 0; _global.P1blind = 0; _global.P1stun = 0; _global.P1seal = 0; _global.P2poison = 0; _global.P2blind = 0; _global.P2stun = 0; _global.P2seal = 0; } frame 2333 { if (!random(4)) { _root.playerSpeech(79); } else { if (!random(3)) { _root.playerSpeech(80); } else { if (!random(2)) { _root.playerSpeech(81); } } } } frame 2340 { k(); } frame 2345 { getXY(); _root.swap(); if (_global.command == 'item2') { _root.itemz9 -= 1; } } frame 2347 { if (_global.user != 'T2' or global.user != 'T1') { _global.damage = 15000 * chemist(); _global.atype = 'm'; if (_global.user == 'P1') { _root.getAcc('P1', 1.3); } if (_global.user == 'P2') { _root.getAcc('P2', 1.3); } if (_global.user == 'nolegs') { _root.getAcc('nil', 1.5); } } _global.element = [9, 1]; _root.hurt(); } frame 2374 { k(); _root.swap(); } frame 2375 { getXY(); _root.swap(); _root.itemz10 -= 1; } frame 2377 { _global.damage = 2000 * chemist(); _global.atype = 'm'; if (_global.user == 'P1') { _root.getAcc('P1', 1.2); } if (_global.user == 'P2') { _root.getAcc('P2', 1.2); } _global.element = [1, 1]; _global.effect = ['stun', 1.3, 2]; _root.hurt(); } frame 2402 { k(); _root.swap(); } frame 2403 { getXY(); _root.swap(); _root.itemz11 -= 1; } frame 2405 { _global.atype = 'p'; if (_global.user == 'P1') { _global.damage = 8000 * chemist() * _global.P1atk * _global.P1atkB; _root.getAcc('P1', 1.4); } if (_global.user == 'P2') { _global.damage = 7000 * chemist() * _global.P2atk * _global.P2atkB; _root.getAcc('P2', 1.4); } _global.element = [2, 0.5]; _global.effect = ['poison', 1.5, 4]; _root.hurt(); } frame 2415 { k(); _root.swap(); } } movieClip 1482 { } movieClip 1485 { } movieClip 1487 { } movieClip 1500 { } movieClip 1502 { } movieClip 1508 { } movieClip 1526 { } button 1536 { on (release) { _parent.play(); } } movieClip 1565 { frame 1 { function updateBestiary() { _global.bestiary[_currentframe] = 1; trace(_currentframe); trace(_global.bestiary); var v3 = SharedObject.getLocal('bestiary'); v3.data.bestiary = _global.bestiary; v3.flush(); collected = 0; for (a in _global.bestiary) { collected += _global.bestiary[a]; } if (collected == 27) { _root.getMedal(8); } } } frame 1 { if (_global.T == 'T1') { HP = _root.T1.HP; HPmax = _root.T1.HPmax; gotoAndStop(_root.T1.monster); } if (_global.T == 'T2') { HP = _root.T2.HP; HPmax = _root.T2.HPmax; gotoAndStop(_root.T2.monster); } if (_global.T == 'T3') { HP = _root.T3.HP; HPmax = _root.T3.HPmax; gotoAndStop(_root.T3.monster); } } frame 2 { updateBestiary(); } frame 3 { updateBestiary(); } frame 4 { updateBestiary(); } frame 5 { updateBestiary(); } frame 6 { updateBestiary(); } frame 7 { updateBestiary(); } frame 8 { updateBestiary(); } frame 9 { updateBestiary(); } frame 10 { updateBestiary(); } frame 11 { updateBestiary(); } frame 12 { updateBestiary(); } frame 13 { updateBestiary(); } frame 14 { updateBestiary(); } frame 15 { updateBestiary(); } frame 16 { updateBestiary(); } frame 17 { updateBestiary(); } frame 18 { updateBestiary(); } frame 19 { updateBestiary(); } frame 20 { updateBestiary(); } frame 21 { updateBestiary(); } frame 22 { updateBestiary(); } frame 23 { updateBestiary(); } frame 24 { updateBestiary(); } frame 25 { updateBestiary(); } frame 26 { updateBestiary(); } frame 27 { updateBestiary(); } frame 28 { updateBestiary(); } } movieClip 1567 { } movieClip 1568 { } movieClip 1570 { } movieClip 1577 { } movieClip 1579 { } movieClip 1585 { } movieClip 1597 { } movieClip 1600 { frame 1 { function k() { _global.summonEnd = 1; gotoAndStop('nil'); tellTarget ('/P2') { gotoAndPlay('intro'); } if (_root.live[1] == 1) { tellTarget ('/P1') { gotoAndPlay('intro'); } } _global.magic = 'yes'; } function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } function hideGuys() { _root.P1._visible = false; _root.P2._visible = false; _root.T1._visible = false; _root.T2._visible = false; _root.T3._visible = false; } function showGuys() { _root.P1._visible = true; _root.P2._visible = true; _root.T1._visible = true; _root.T2._visible = true; _root.T3._visible = true; } stop(); } frame 1 { function getXY() { X = (_root.X() - _root.coords[2] - 350) / 12; Y = -(_root.coords[3] - _root.Y()) / 12; } } frame 1 { function summonBoost(S, M, P) { if (_global.P2skills[S][0]) { _global.damage *= M; } else { _global.P2skills[S][1] += P; } } function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } trace('shake should have happened'); } } frame 6 { _global.P2MP -= 100; } frame 77 { meow = random(3); if (!meow) { tellTarget ('/P2') { gotoAndPlay('intro'); } if (_root.live[1] == 1) { tellTarget ('/P1') { gotoAndPlay('intro'); } } _global.magic = 'yes'; } } frame 130 { if (!meow) { gotoAndPlay('meow2'); } } frame 136 { shake('big'); } frame 138 { _global.atype = 'p'; _global.accuracy = 1.2; _global.T = 'Tall'; _global.damage = 10500 * _global.P2matkB; summonBoost(10, 1.4, 1); _root.hurt(); } frame 142 { shake('big'); } frame 148 { shake('small'); } frame 199 { k(); } frame 202 { shake('big'); } frame 204 { _global.atype = 'p'; _global.accuracy = 1.2; _global.T = 'Tall'; _global.damage = 10500 * _global.P2matkB; summonBoost(10, 1.2, 1); _root.hurt(); } frame 219 { _global.T = 'Pall'; _global.damage = 4500 * _global.P2matkB; _global.accuracy = 0.8; summonBoost(10, 1.2, 0.1); _root.hurt(); } frame 219 { shake('big'); } frame 221 { _global.T = 'Tall'; _global.damage = 9000 * _global.P2matkB; _global.accuracy = 0.8; summonBoost(10, 1.2, 0.1); _root.hurt(); } frame 224 { if (!_global.P2HP) { _root.getMedal(12); } } frame 265 { gotoAndStop('nil'); _root.t2(); } frame 281 { _global.P2MP -= 70; } frame 307 { behold = random(7); } frame 312 { if (!behold) { gotoAndPlay('rape'); } } frame 331 { _global.atype = 'm'; _global.accuracy = 1; _global.effect = ['defDown', 1, 0.2]; _global.T = 'Tall'; _global.damage = 4500 * _global.P2matkB; summonBoost(12, 1.4, 1); _root.hurt(); } frame 332 { shake('small'); } frame 364 { gotoAndPlay('bdone'); } frame 365 { _root.randomT(); getXY(); } frame 369 { function run(X, Y) { this._x += X; this._y += Y; } } frame 376 { run(X, Y); } frame 377 { run(X, Y); } frame 378 { run(X, Y); } frame 379 { run(X, Y); } frame 380 { run(X, Y); } frame 381 { run(X, Y); } frame 382 { run(X, Y); } frame 383 { run(X, Y); } frame 384 { run(X, Y); } frame 385 { run(X, Y); } frame 386 { run(X, Y); } frame 387 { run(X, Y); } frame 388 { X = -X / 2; Y = -Y / 2; } frame 426 { _global.atype = 'p'; _global.element = [4, 0.5]; _global.accuracy = 1.2; _global.effect = ['poison', 1, 5]; _global.damage = 10000 * _global.P2matkB; summonBoost(12, 1.2, 1); _root.hurt(); } frame 432 { run(X, Y); } frame 433 { run(X, Y); } frame 434 { run(X, Y); } frame 435 { run(X, Y); } frame 436 { run(X, Y); } frame 437 { run(X, Y); } frame 438 { run(X, Y); } frame 439 { run(X, Y); } frame 440 { run(X, Y); } frame 441 { run(X, Y); } frame 442 { run(X, Y); } frame 443 { run(X, Y); } frame 444 { run(X, Y); } frame 445 { run(X, Y); } frame 446 { run(X, Y); } frame 447 { run(X, Y); } frame 448 { run(X, Y); } frame 449 { run(X, Y); } frame 450 { run(X, Y); } frame 451 { run(X, Y); } frame 452 { run(X, Y); } frame 453 { run(X, Y); } frame 454 { run(X, Y); } frame 455 { run(X, Y); } frame 481 { k(); } frame 482 { if (_global.user == 'P2') { _global.P2MP -= 30; } } frame 523 { _root.spells.gotoAndPlay('scan'); } frame 567 { stop(); } frame 602 { k(); } frame 605 { if (_global.user == 'P2') { _global.P2MP -= 50; } } frame 632 { if (!_global.P2skills[9][0]) { _global.P2skills[9][1] += 1; } if (!_global.P2skills[23][0]) { _global.P2skills[23][1] += 0.8; } } frame 677 { _global.P1regen = 10; _global.P2regen = 10; } frame 685 { gotoAndStop('nil'); _root.t2(); } frame 716 { _root.randomT(); _global.atype = 'p'; _global.accuracy = 1.2; _global.element = [10, 1]; _global.damage = 7000 * _global.P1atkB; _root.hurt(); } frame 722 { _root.getMedal(16); } frame 731 { gotoAndStop('nil'); _root.t2(); } frame 732 { _global.command = 'magic'; if (_global.user == 'P1') { _global.P1MP -= 5; } _global.T = 'P1'; if (!_root.live[1]) { _global.T = 'P2'; } else { if (_root.live[2]) { k = random(2); if (k == 0) { _global.T = 'P2'; } } } j = random(15); if (j == 0) { _global.magic = 'maxpot'; } else { if (j == 1) { _global.magic = 'ether'; } else { if (j == 2) { _global.magic = 'ant'; } else { if (j == 3) { _global.magic = 'atkpot'; } else { if (j == 4) { _global.magic = 'magpot'; } else { if (j == 5) { _global.magic = 'ether'; } else { if (j == 6) { _global.magic = 'maxether'; } else { if (j == 7) { _global.magic = 'water'; u = random(2); if (u) { _global.T = 'P1'; } else { _global.T = 'P2'; } } else { if (j == 8) { _global.magic = 'mist'; } else { _global.magic = 'pot'; } } } } } } } } } } frame 739 { _global.P1skills[7][1] += 1; _global.P1skills[8][1] += 1.2; } frame 769 { _root.t1(); _root.items.gotoAndPlay(_global.magic); } frame 772 { if (!random(3)) { _root.playerSpeech(95); } } frame 784 { gotoAndStop('nil'); _root.t2(); } frame 798 { _root.getMedal(16); } frame 817 { _root.shake('big'); _root.randomT(); _root.spells.gotoAndPlay('bob'); } frame 845 { gotoAndStop('nil'); } frame 853 { hideGuys(); } frame 861 { if (_global.user == 'P2') { _global.P2MP -= 200; } } frame 920 { _root.getMedal(10); } frame 921 { shake('small'); } frame 935 { shake('small'); } frame 1090 { shake('big'); } frame 1099 { shake('small'); } frame 1135 { showGuys(); } frame 1146 { shake('big'); } frame 1152 { shake('big'); } frame 1153 { _global.atype = 'm'; _global.accuracy = 1.5; _global.T = 'Pall'; _global.damage = 4000 * _global.P2matkB; summonBoost(11, 1.3, 1); if (_global.user != 'P2') { _global.damage = 7500 * _root.dif; } _root.hurt(); } frame 1156 { _global.atype = 'm'; _global.accuracy = 1.5; _global.T = 'Tall'; _global.damage = 25000 * _global.P2matkB; summonBoost(11, 1.2, 1); if (_global.user != 'P2') { _global.damage = 15000 * _root.dif; } _root.hurt(); } frame 1158 { if (!_global.P2HP) { _root.getMedal(12); } } frame 1217 { if (_root.live[1]) { _root.playerSpeech(59); } else { _root.playerSpeech(58); } } frame 1267 { gotoAndStop('nil'); _root.t2(); } } movieClip 1604 { } movieClip 1606 { } movieClip 1609 { } movieClip 1611 { } movieClip 1613 { } movieClip 1615 { } movieClip 1618 { } movieClip 1620 { } movieClip 1622 { frame 1 { function chemist() { if (_global.user == 'P1') { if (_global.P1skills[15][0]) { return 1.6; } else { if (_global.P1skills[14][0]) { _global.P1skills[15][1] += 0.6; return 1.3; } else { _global.P1skills[14][1] += 1; return 1; } } } else { if (_global.user == 'P2') { if (_global.P2skills[19][0]) { return 1.6; } else { if (_global.P2skills[18][0]) { _global.P2skills[19][1] += 0.6; return 1.3; } else { _global.P2skills[18][1] += 1; return 1; } } } else { return 1; } } } } frame 1 { function getXY() { if (_global.T == 'P2') { _x = dx - 110; _y = dy + 40; } else { _x = dx; _y = dy; } } dx = 20; dy = -100; } frame 1 { function k() { gotoAndStop('nil'); _root.t2(); } stop(); } frame 4 { getXY(); } frame 4 { if (_global.command != 'magic') { _root.itemz1 -= 1; } } frame 19 { _global.cure = 5000 * chemist(); if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 31 { k(); } frame 32 { getXY(); } frame 32 { if (_global.command != 'magic') { _root.itemz2 -= 1; } } frame 49 { _global.cure = 9999 * chemist(); if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 64 { k(); } frame 65 { getXY(); } frame 65 { if (_global.command != 'magic') { _root.itemz3 -= 1; } } frame 79 { _global.cure = 500 * chemist(); if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 88 { k(); } frame 89 { getXY(); } frame 89 { if (_global.command != 'magic') { _root.itemz4 -= 1; } } frame 111 { _global.cure = 999 * chemist(); if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 124 { k(); } frame 125 { getXY(); if (_global.command != 'magic') { _root.itemz5 -= 1; } } frame 133 { if (_global.T == 'P1') { _global.P1poison = 0; _global.P1seal = 0; _global.P1blind = 0; _global.P1stun = 0; } else { _global.P2poison = 0; _global.P2seal = 0; _global.P2blind = 0; _global.P2stun = 0; } if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 148 { k(); } frame 150 { getXY(); if (_global.command != 'magic') { _root.itemz6 -= 1; } } frame 159 { if (_global.T == 'P1') { _global.P1atk = 1 + 0.5 * chemist(); } else { _global.P2atk = 1 + 0.5 * chemist(); } } frame 164 { if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 170 { k(); } frame 171 { getXY(); if (_global.command != 'magic') { _root.itemz7 -= 1; } } frame 177 { if (_global.T == 'P1') { _global.P1matk = 1 + 0.5 * chemist(); } else { _global.P2matk = 1 + 0.5 * chemist(); } } frame 186 { if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } frame 191 { k(); } frame 192 { getXY(); if (_global.command != 'magic') { _root.itemz8 -= 1; } } frame 213 { if (_global.T == 'P1') { if (_root.live[1] == 0) { _root.P1.gotoAndPlay('revive'); } else { _global.cure = 10000 * chemist(); _root.P1.gotoAndPlay('heal'); } } if (_global.T == 'P2') { if (_root.live[2] == 0) { _root.P2.gotoAndPlay('revive'); } else { _global.cure = 10000 * chemist(); _root.P2.gotoAndPlay('heal'); } } } frame 223 { k(); } frame 224 { getXY(); if (_global.command != 'magic') { _root.itemz13 -= 1; } } frame 238 { b = random(5); if (!b) { _global.magic = 'pot'; _global.cure = 8000 * chemist(); if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } if (b == 1) { _global.magic = 'atkpot'; if (_global.T == 'P1') { _global.P1atk = 1.5; _global.P1matk = 1.5; } else { _global.P2atk = 1.5; _global.P2matk = 1.5; } } if (b == 2) { _global.magic = 'ether'; _global.cure = 777 * chemist(); if (_global.T == 'P1') { _root.P1.gotoAndPlay('heal'); } else { _root.P2.gotoAndPlay('heal'); } } if (b == 3) { _global.damage = random(10100) * chemist() + 2; _global.atype = 'p'; _global.accuracy = 2; _root.hurt(); } if (b == 4) { if (_global.T == 'P1') { _global.P1regen = 5; _global.P1autolife = 5; } if (_global.T == 'P2') { _global.P2regen = 5; _global.P2autolife = 5; } } } frame 264 { k(); } frame 265 { getXY(); if (_global.command != 'magic') { _root.itemz12 -= 1; } } frame 278 { _global.cure = 5000 * chemist(); if (_root.live[1]) { _root.P1.gotoAndPlay('heal'); } } frame 288 { if (_root.live[2]) { _root.P2.gotoAndPlay('heal'); } } frame 308 { k(); } } movieClip 1624 { } movieClip 1625 { frame 1 { if (damage > 99999) { damage = 99999; if (_global.user == 'P1' or _global.user == 'P2') { _root.getMedal(7); } } } frame 2 { if (damage > 99999) { damage = 99999; if (_global.user == 'P1' or _global.user == 'P2') { _root.getMedal(7); } } } frame 3 { if (damage != 'Miss') { _global.missHit = true; } else { _global.missHit = false; } } frame 51 { this.removeMovieClip(); } frame 52 { stop(); } } movieClip 1627 { } movieClip 1628 { frame 1 { if (_global.magic == 'ether' or _global.magic == 'maxether') { cure += 'mp'; } } frame 50 { this.removeMovieClip(); } frame 52 { stop(); } } movieClip 1641 { frame 1 { stop(); } } movieClip 1650 { frame 1 { if (_root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0 and _global.timer == 0 and _root.go) { _root.play(); _root.go = 0; _root.menu.gotoAndPlay(1); } HP1.gotoAndStop(Math.round((_global.P1HP / _global.P1HPmax) * 100) + 1); MP1.gotoAndStop(Math.round((_global.P1MP / _global.P1MPmax) * 100) + 1); limit1.gotoAndStop(Math.round((_global.P1limit / _global.P1limitmax) * 100) + 1); HP2.gotoAndStop(Math.round((_global.P2HP / _global.P2HPmax) * 100) + 1); MP2.gotoAndStop(Math.round((_global.P2MP / _global.P2MPmax) * 100) + 1); limit2.gotoAndStop(Math.round((_global.P2limit / _global.P2limitmax) * 100) + 1); FHP1.gotoAndStop(Math.round((_root.T1.HP / _root.T1.HPmax) * 100) + 1); FHP2.gotoAndStop(Math.round((_root.T2.HP / _root.T2.HPmax) * 100) + 1); FHP3.gotoAndStop(Math.round((_root.T3.HP / _root.T3.HPmax) * 100) + 1); } } button 1652 { on (release) { play(); trace(_root.menu._currentFrame); } } button 1660 { on (release) { _root.sound.setVolume(0); _root.menu.sound.setVolume(0); } } button 1661 { on (release) { _quality = 'LOW'; } } button 1662 { on (release) { _quality = 'MEDIUM'; } } button 1663 { on (release) { _quality = 'HIGH'; } } button 1664 { on (release) { play(); } } button 1665 { on (release) { _root.sound.setVolume(100); _root.menu.sound.setVolume(100); } } button 1666 { on (release) { _global.blood = true; } } button 1667 { on (release) { _global.blood = false; } } button 1668 { on (release) { _global.txtspeed = 'fast'; } } button 1669 { on (release) { _global.txtspeed = 'slow'; } } movieClip 1670 { frame 1 { stop(); } frame 8 { stop(); } } button 1677 { on (release) { hideWindows('P2'); skills2.play(); } } button 1678 { on (release) { hideWindows('P1'); skills1.play(); } } button 1679 { on (release) { _global.help = 0; } } button 1680 { on (release) { _global.help = 1; } } button 1681 { on (release) { hideWindows('stages'); stages.play(); } } button 1682 { on (release) { hideWindows('tut'); tutorial.play(); } } button 1683 { on (release) { hideWindows('medals'); medals.play(); } } button 1684 { on (release) { hideWindows('bestiary'); bestiary.play(); } } movieClip 1715 { frame 1 { atk = _global.P1atkB * 100 + ' x ' + _global.P1atk2 + ' x ' + _global.P1atk; def = _global.P1defB * 100 + ' x ' + _global.P1def2 + ' x ' + _global.P1def; matk = _global.P1matkB * 100 + ' x ' + _global.P1matk2 + ' x ' + _global.P1matk; mdef = _global.P1mdefB * 100 + ' x ' + _global.P1mdef2 + ' x ' + _global.P1mdef; acc = _global.P1acc * 100; eva = _global.P1evade * 100; s10 = '--'; s9 = '--'; s8 = '--'; s7 = '--'; s6 = '--'; s5 = '--'; s4 = '--'; s3 = '--'; s2 = '--'; s1 = '--'; d10 = '--'; d9 = '--'; d8 = '--'; d7 = '--'; d6 = '--'; d5 = '--'; d4 = '--'; d3 = '--'; d2 = '--'; d1 = '--'; b = _global.SC1; while (b > 0) { skill = 's' + b; desc = 'd' + b; this[skill] = _global.P1skills[_global.SL1[b - 1]][2]; this[desc] = _global.P1skills[_global.SL1[b - 1]][3]; --b; } } } movieClip 1716 { frame 1 { stop(); } frame 8 { stop(); } } movieClip 1746 { frame 1 { atk = _global.P2atkB * 100 + ' x ' + _global.P2atk; def = _global.P2defB * 100 + ' x ' + _global.P2def; matk = _global.P2matkB * 100 + ' x ' + _global.P2matk; mdef = _global.P2mdefB * 100 + ' x ' + _global.P2mdef; acc = _global.P2acc * 100; eva = _global.P2evade * 100; s10 = '--'; s9 = '--'; s8 = '--'; s7 = '--'; s6 = '--'; s5 = '--'; s4 = '--'; s3 = '--'; s2 = '--'; s1 = '--'; d10 = '--'; d9 = '--'; d8 = '--'; d7 = '--'; d6 = '--'; d5 = '--'; d4 = '--'; d3 = '--'; d2 = '--'; d1 = '--'; b = _global.SC2; while (b > 0) { skill = 's' + b; desc = 'd' + b; this[skill] = _global.P2skills[_global.SL2[b - 1]][2]; this[desc] = _global.P2skills[_global.SL2[b - 1]][3]; --b; } } } movieClip 1747 { frame 1 { stop(); } frame 8 { stop(); } } button 1752 { on (release) { _parent.play(); } } movieClip 1777 { frame 1 { stop(); } } movieClip 1799 { frame 1 { b = 1; while (b <= 20) { if (_global.medalList[b]) { (eval('pic' + b)).gotoAndStop(b + 1); } ++b; } } } movieClip 1800 { frame 1 { _visible = false; } frame 1 { stop(); } frame 2 { _visible = true; } frame 8 { stop(); } } movieClip 1807 { } movieClip 1809 { } movieClip 1814 { frame 1 { if (_global.user == 'P1') { gotoAndStop(2); } else { if (_global.user == 'P2') { gotoAndStop(3); } else { gotoAndStop(4); } } } } movieClip 1836 { frame 1 { gotoAndStop(_root.stage + 1); } } movieClip 1837 { frame 1 { stop(); } frame 7 { stop(); } } button 1840 { on (release) { _parent.play(); } } movieClip 1843 { } movieClip 1845 { } movieClip 1853 { } movieClip 1871 { frame 1 { stop(); } } movieClip 1872 { frame 1 { stop(); } frame 7 { stop(); } } button 1874 { on (release) { prev = false; nextFrame(); } } button 1875 { on (release) { prev = true; prevFrame(); } } movieClip 1932 { frame 1 { function checkBestiary() { if (_global.bestiary[_currentframe]) { stop(); } else { if (prev) { prevFrame(); } else { nextFrame(); } } } collected = 0; for (a in _global.bestiary) { collected += _global.bestiary[a]; } } frame 1 { stop(); prev = false; } frame 2 { checkBestiary(); } frame 3 { checkBestiary(); } frame 4 { checkBestiary(); } frame 5 { checkBestiary(); } frame 6 { checkBestiary(); } frame 7 { checkBestiary(); } frame 8 { checkBestiary(); } frame 9 { checkBestiary(); } frame 10 { checkBestiary(); } frame 11 { checkBestiary(); } frame 12 { checkBestiary(); } frame 13 { checkBestiary(); } frame 14 { checkBestiary(); } frame 15 { checkBestiary(); } frame 16 { checkBestiary(); } frame 17 { checkBestiary(); } frame 18 { checkBestiary(); } frame 19 { checkBestiary(); } frame 20 { checkBestiary(); } frame 21 { checkBestiary(); } frame 22 { checkBestiary(); } frame 23 { checkBestiary(); } frame 24 { checkBestiary(); } frame 25 { checkBestiary(); } frame 26 { checkBestiary(); } frame 27 { checkBestiary(); } frame 28 { checkBestiary(); } frame 29 { gotoAndStop(1); } } movieClip 1933 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 1934 { frame 1 { stop(); } frame 3 { _parent._parent.swaps(); } frame 8 { stop(); } frame 8 { function hideWindows(X) { if (X != 'P1') { skills1.gotoAndStop(1); } if (X != 'P2') { skills2.gotoAndStop(1); } if (X != 'stages') { stages.gotoAndStop(1); } if (X != 'medals') { medals.gotoAndStop(1); } if (X != 'tut') { tutorial.gotoAndStop(1); } if (X != 'bestiary') { bestiary.gotoAndStop(1); } } } frame 13 { _parent._parent.swaps(); } } movieClip 1935 { frame 1 { stop(); } } movieClip 1938 { } movieClip 1940 { frame 60 { gotoAndPlay(8); } } movieClip 1943 { } button 1944 { on (release) { gotoAndStop('special'); } } button 1945 { on (release) { gotoAndStop('bushido'); } } button 1946 { on (release) { gotoAndStop('sword'); } } button 1947 { on (release) { gotoAndStop('item'); } } button 1948 { on (release) { gotoAndStop('tactics'); } } button 1949 { on (release) { if (_global.P1limit >= _global.P1limitmax) { _global.command = 'limit'; tellTarget ('/menu') { play(); } } else { _global.command = 'attack'; tellTarget ('/menu') { play(); } } } } movieClip 1953 { } movieClip 1968 { frame 1 { stop(); } } button 1969 { on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } on (release) { _global.command = 'quake'; _global.magic = 'iceberg'; tellTarget ('/menu') { play(); } } } button 1970 { on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } on (release) { _global.command = 'quake'; _global.magic = 'quake'; tellTarget ('/menu') { play(); } } } button 1971 { on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } on (release) { _global.command = 'quake'; _global.magic = 'eruption'; tellTarget ('/menu') { play(); } } } button 1972 { on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } on (release) { _global.command = 'drain'; tellTarget ('/menu') { play(); } } } button 1973 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { _global.command = 'revenge'; tellTarget ('/menu') { play(); } } } button 1974 { on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } on (release) { _global.command = 'windslash'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 1975 { on (rollOver) { if (_global.help) { help.gotoAndStop(8); } } on (release) { _global.command = 'unleash'; tellTarget ('/menu') { play(); } } } button 1976 { on (rollOver) { if (_global.help) { help.gotoAndStop(9); } } on (release) { _global.command = 'magic'; _global.magic = 'seiken'; tellTarget ('/menu') { play(); } } } button 1977 { on (rollOver) { if (_global.help) { help.gotoAndStop(10); } } on (release) { _global.command = 'legend'; tellTarget ('/menu') { play(); } } } movieClip 1999 { frame 1 { if (_global.P1seal > 0) { gotoAndStop(7); } else { if (_global.P1MP >= 90) { stop(); } else { if (_global.P1MP >= 70) { gotoAndStop(2); } else { if (_global.P1MP >= 60) { gotoAndStop(3); } else { if (_global.P1MP >= 50) { gotoAndStop(4); } else { if (_global.P1MP >= 40) { gotoAndStop(5); } else { if (_global.P1MP >= 30) { gotoAndStop(6); } else { gotoAndStop(7); } } } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 2000 { frame 10 { stop(); } } movieClip 2010 { frame 1 { stop(); } } button 2011 { on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } on (release) { _global.command = 'magic'; _global.magic = 'airstrike'; tellTarget ('/menu') { play(); } } } button 2012 { on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } on (release) { _global.command = 'magic'; _global.magic = 'protect'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 2013 { on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } on (release) { _global.command = 'magic'; _global.magic = 'screamer'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 2014 { on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } on (release) { _global.command = 'magic'; _global.magic = 'temper'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 2015 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { _global.command = 'magic'; _global.magic = 'nolegs'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } button 2016 { on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } on (release) { _global.command = 'magic'; _global.magic = 'heavy'; tellTarget ('/menu') { gotoAndPlay('P11'); } } } movieClip 2037 { frame 1 { if (_global.P1seal > 0) { gotoAndStop(7); } else { if (_global.P1MP >= 100) { stop(); } else { if (_global.P1MP >= 75) { gotoAndStop(2); } else { if (_global.P1MP >= 50) { gotoAndStop(3); } else { if (_global.P1MP >= 25) { gotoAndStop(4); } else { if (_global.P1MP >= 15) { gotoAndStop(5); } else { if (_global.P1MP >= 5) { gotoAndStop(6); } else { gotoAndStop(7); } } } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 2038 { frame 10 { stop(); } } button 2040 { on (rollOver) { if (_global.help) { help.gotoAndStop(9); } } on (release) { if (_global.sword != 'swift') { _global.command = 'swap'; _global.magic = 'swift'; _global.P1atk2 = 1; _global.P1matk2 = 1; _global.P1def2 = 1; _global.P1mdef2 = 1; _global.P1acc = 1.3 + ac; _global.P1evade = 0.3 + ev; swordCounter(7); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2041 { on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } on (release) { if (_global.sword != 'stone') { _global.command = 'swap'; _global.magic = 'stone'; _global.P1atk2 = 1.2; _global.P1matk2 = 0.9; _global.P1def2 = 1.4; _global.P1mdef2 = 1.2; _global.P1acc = 0.9 + ac; _global.P1evade = -0.2 + ev; swordCounter(3); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2042 { on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } on (release) { if (_global.sword != 'blood') { _global.command = 'swap'; _global.magic = 'blood'; _global.P1atk2 = 1; _global.P1matk2 = 1; _global.P1def2 = 1.1; _global.P1mdef2 = 1.1; _global.P1acc = 1 + ac; _global.P1evade = 0.1 + ev; swordCounter(2); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2043 { on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } on (release) { if (_global.sword != 'cross') { _global.command = 'swap'; _global.magic = 'cross'; _global.P1atk2 = 0.7; _global.P1matk2 = 1.1; _global.P1def2 = 1; _global.P1mdef2 = 1; _global.P1acc = 1 + ac; _global.P1evade = 0.1 + ev; swordCounter(1); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2044 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { if (_global.sword != 'heaven') { _global.command = 'swap'; _global.magic = 'heaven'; _global.P1atk2 = 1.1; _global.P1matk2 = 1.1; _global.P1def2 = 1.1; _global.P1mdef2 = 1.1; _global.P1acc = 1 + ac; _global.P1evade = 0.1 + ev; swordCounter(0); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2045 { on (rollOver) { if (_global.help) { help.gotoAndStop(8); } } on (release) { if (_global.sword != 'blackfang') { _global.command = 'swap'; _global.magic = 'blackfang'; _global.P1atk2 = 1.1; _global.P1matk2 = 1; _global.P1def2 = 1.1; _global.P1mdef2 = 1; _global.P1acc = 1.1 + ac; _global.P1evade = 0.1 + ev; swordCounter(6); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2046 { on (rollOver) { if (_global.help) { help.gotoAndStop(10); } } on (release) { if (_global.sword != 'anarchy') { _global.command = 'swap'; _global.magic = 'anarchy'; _global.P1atk2 = 1.3; _global.P1matk2 = 1; _global.P1def2 = 1; _global.P1mdef2 = 1; _global.P1acc = 1 + ac; _global.P1evade = +ev; swordCounter(8); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2047 { on (rollOver) { if (_global.help) { help.gotoAndStop(11); } } on (release) { if (_global.sword != 'soul') { _global.command = 'swap'; _global.magic = 'soul'; _global.P1atk2 = 1.6; _global.P1matk2 = 0.7; _global.P1def2 = 0.7; _global.P1mdef2 = 0.7; _global.P1acc = 1 + ac; _global.P1evade = +ev; swordCounter(9); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2048 { on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } on (release) { if (_global.sword != 'blizzard') { _global.command = 'swap'; _global.magic = 'blizzard'; _global.P1atk2 = 1.3; _global.P1matk2 = 1.2; _global.P1def2 = 1.1; _global.P1mdef2 = 1.1; _global.P1acc = 0.9 + ac; _global.P1evade = -0.1 + ev; swordCounter(5); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2049 { on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } on (release) { if (_global.sword != 'inferno') { _global.command = 'swap'; _global.magic = 'inferno'; _global.P1atk2 = 1.1; _global.P1matk2 = 1.2; _global.P1def2 = 1; _global.P1mdef2 = 1.1; _global.P1acc = 1 + ac; _global.P1evade = 0.1 + ev; swordCounter(4); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } button 2050 { on (rollOver) { if (_global.help) { help.gotoAndStop(12); } } on (release) { if (_global.sword != 'razorback') { _global.command = 'swap'; _global.magic = 'razorback'; _global.P1atk2 = 1.2; _global.P1matk2 = 1.3; _global.P1def2 = 1; _global.P1mdef2 = 1; _global.P1acc = 0.9 + ac; _global.P1evade = +ev; swordCounter(10); tellTarget ('/menu') { gotoAndPlay('P11'); } } } } movieClip 2066 { frame 1 { stop(); } } movieClip 2078 { frame 1 { function swordCounter(X) { SC = 0; if (_root.swordCount[X] == 0) { _root.swordCount[X] = 1; trace(_root.swordCount); for (a in _root.swordCount) { SC += _root.swordCount[a]; } trace(SC); if (SC == 11) { _root.getMedal(8); } } } if (_global.P1skills[4][0]) { ac = 0.2; ev = 0.05; } else { ac = 0; ev = 0; } } frame 1 { swordList = ['heaven', 'cross', 'blood', 'stone', 'inferno', 'blizzard', 'blackfang', 'swift', 'anarchy', 'soul', 'razorback']; for (b in swordList) { pie = b * 1 + 2; if (_global.sword == swordList[b]) { gotoAndStop(pie); break; } } if (!_global.help) { help.gotoAndStop(13); } trace(_global.sword); stop(); } } movieClip 2079 { frame 10 { stop(); } } movieClip 2096 { frame 1 { stop(); } } button 2097 { on (release) { if (_root.itemz6 > 0) { _global.command = 'item'; _global.magic = 'atkpot'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } } button 2098 { on (release) { if (_root.itemz5 > 0) { _global.command = 'item'; _global.magic = 'ant'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } } button 2099 { on (release) { if (_root.itemz7 > 0) { _global.command = 'item'; _global.magic = 'magpot'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(8); } } } button 2100 { on (release) { if (_root.itemz8 > 0) { _global.command = 'item'; _global.magic = 'water'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(9); } } } button 2101 { on (release) { if (_root.itemz4 > 0) { _global.command = 'item'; _global.magic = 'maxether'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } } button 2102 { on (release) { if (_root.itemz3 > 0) { _global.command = 'item'; _global.magic = 'ether'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 2103 { on (release) { if (_root.itemz9 > 0) { _global.command = 'item2'; _global.magic = 'bob'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(10); } } } button 2104 { on (release) { if (_root.itemz2 > 0) { _global.command = 'item'; _global.magic = 'maxpot'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } } button 2105 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { if (_root.itemz1 > 0) { _global.command = 'item'; _global.magic = 'pot'; tellTarget ('/menu') { play(); } } } } button 2106 { on (release) { if (_root.itemz10 > 0) { _global.command = 'item2'; _global.magic = 'stunner'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(11); } } } button 2107 { on (release) { if (_root.itemz11 > 0) { _global.command = 'item2'; _global.magic = 'shuriken'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(12); } } } button 2108 { on (release) { if (_root.itemz12 > 0) { _global.command = 'item'; _global.magic = 'mist'; tellTarget ('/menu') { if (_global.user == 'P2') { gotoAndPlay('P22'); } else { gotoAndPlay('P11'); } } } } on (rollOver) { if (_global.help) { help.gotoAndStop(13); } } } button 2109 { on (release) { if (_root.itemz13 > 0) { _global.command = 'item'; _global.magic = 'mystery'; tellTarget ('/menu') { play(); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(14); } } } movieClip 2125 { frame 1 { if (!_global.help) { help.gotoAndStop(11); } } } movieClip 2126 { frame 10 { stop(); } } movieClip 2132 { frame 1 { stop(); } } button 2133 { on (release) { _global.command = 'defend'; tellTarget ('/menu') { if (_global.user == 'P2') { gotoAndPlay('P22'); } else { gotoAndPlay('P11'); } } } on (rollOver) { if (_global.help and _global.user == 'P1') { help.gotoAndStop(3); } if (_global.help and _global.user == 'P2') { help.gotoAndStop(2); } } } button 2134 { on (release) { tellTarget ('/menu') { if (_global.user == 'P2') { gotoAndPlay('P1'); } else { gotoAndPlay('P2'); } } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 2138 { on (release) { _global.command = 'defend'; tellTarget ('/menu') { if (_global.user == 'P2') { gotoAndPlay('P22'); } else { gotoAndPlay('P11'); } } } on (rollOver) { if (_global.help and _global.user == 'P1') { help.gotoAndStop(3); } if (_global.help and _global.user == 'P2') { help.gotoAndStop(2); } } } movieClip 2140 { frame 1 { if (_global.user == 'P1' and !_root.menu.takens[1] and !_global.P2freeze and !_global.P2stun) { stop(); } if (_global.user == 'P2' and !_root.menu.takens[0] and !_global.P1freeze and !_global.P1stun) { stop(); } } frame 2 { stop(); } } movieClip 2141 { frame 10 { stop(); } } movieClip 2142 { frame 1 { stop(); } frame 1 { glow._visible = false; if (_global.P1limit >= _global.P1limitmax) { glow._visible = true; } } } movieClip 2143 { frame 10 { stop(); } } movieClip 2146 { frame 9 { stop(); } } button 2148 { on (release) { tellTarget ('/menu') { prevFrame(); } } } movieClip 2150 { } button 2151 { on (release) { gotoAndStop('BM'); } } button 2152 { on (release) { gotoAndStop('WM'); } } button 2153 { on (release) { gotoAndStop('summon'); } } button 2154 { on (release) { gotoAndStop('item'); } } button 2155 { on (release) { if (_global.P2limit >= _global.P2limitmax) { _global.command = 'limit'; tellTarget ('/menu') { gotoAndPlay('P22'); } } else { _global.command = 'attack'; tellTarget ('/menu') { play(); } } } } button 2156 { on (release) { gotoAndStop('tactics'); } } movieClip 2169 { frame 1 { stop(); } } button 2170 { on (release) { _global.command = 'wmagic'; _global.magic = 'healmore'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } } button 2171 { on (release) { _global.command = 'wmagic'; _global.magic = 'heal'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } } button 2172 { on (release) { _global.command = 'wmagic'; _global.magic = 'revive'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } } button 2173 { on (release) { _global.command = 'wmagic'; _global.magic = 'judgement'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(8); } } } button 2174 { on (release) { _global.command = 'wmagic'; _global.magic = 'barrier'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 2175 { on (release) { _global.command = 'wmagic'; _global.magic = 'purify'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } } button 2176 { on (release) { _global.command = 'wmagic'; _global.magic = 'flare'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } } movieClip 2194 { frame 1 { if (_global.P2seal > 0) { gotoAndStop(7); } else { if (_global.P2MP >= 100) { stop(); } else { if (_global.P2MP >= 90) { gotoAndStop(2); } else { if (_global.P2MP >= 70) { gotoAndStop(3); } else { if (_global.P2MP >= 50) { gotoAndStop(4); } else { if (_global.P2MP >= 30) { gotoAndStop(5); } else { if (_global.P2MP >= 20) { gotoAndStop(6); } else { if (_global.P2MP >= 10) { gotoAndStop(7); } else { gotoAndStop(8); } } } } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 2195 { frame 10 { stop(); } } movieClip 2206 { frame 1 { stop(); } } button 2207 { on (release) { _global.command = 'bmagic'; _global.magic = 'thunderbolt'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } } button 2208 { on (release) { _global.command = 'bmagic'; _global.magic = 'toxic'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } } button 2209 { on (release) { _global.command = 'bmagic'; _global.magic = 'glacier'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 2210 { on (release) { _global.command = 'bmagic'; _global.magic = 'fireball'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } } button 2211 { on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } on (release) { _global.command = 'bmagic'; _global.magic = 'lucky'; tellTarget ('/menu') { play(); } } } button 2212 { on (release) { _global.command = 'bmagic'; _global.magic = 'syphon'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(7); } } } button 2213 { on (release) { _global.command = 'bmagic'; _global.magic = 'pulsar'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(8); } } } movieClip 2228 { frame 1 { if (_global.P2seal > 0) { gotoAndStop(5); } else { if (_global.P2MP >= 100) { stop(); } else { if (_global.P2MP >= 60) { gotoAndStop(2); } else { if (_global.P2MP >= 40) { gotoAndStop(3); } else { if (_global.P2MP >= 20) { gotoAndStop(4); } else { gotoAndStop(5); } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 2229 { frame 10 { stop(); } } movieClip 2237 { frame 1 { stop(); } } button 2238 { on (release) { _global.command = 'summon'; _global.magic = 'meow'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(5); } } } button 2239 { on (release) { _global.command = 'summon'; _global.magic = 'beholder'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(4); } } } button 2240 { on (release) { _global.command = 'summon'; _global.magic = 'scanbot'; tellTarget ('/menu') { play(); } } on (rollOver) { if (_global.help) { help.gotoAndStop(2); } } } button 2241 { on (rollOver) { if (_global.help) { help.gotoAndStop(3); } } on (release) { _global.command = 'summon'; _global.magic = 'slime'; tellTarget ('/menu') { gotoAndPlay('P22'); } } } button 2242 { on (release) { _global.command = 'summon'; _global.magic = 'ion'; tellTarget ('/menu') { gotoAndPlay('P22'); } } on (rollOver) { if (_global.help) { help.gotoAndStop(6); } } } movieClip 2256 { frame 1 { if (_global.P2seal > 0) { gotoAndStop(6); } else { if (_global.P2MP >= 200 and _global.ionEnable == true) { stop(); } else { if (_global.P2MP >= 100) { gotoAndStop(2); } else { if (_global.P2MP >= 70) { gotoAndStop(3); } else { if (_global.P2MP >= 50) { gotoAndStop(4); } else { if (_global.P2MP >= 30) { gotoAndStop(5); } else { gotoAndStop(6); } } } } } } if (!_global.help) { help.gotoAndStop(9); } } } movieClip 2257 { frame 10 { stop(); } } movieClip 2258 { frame 1 { stop(); } frame 1 { glow._visible = false; if (_global.P2limit >= _global.P2limitmax) { glow._visible = true; } } } movieClip 2259 { frame 10 { stop(); } } movieClip 2260 { frame 1 { function foesLive() { if (_root.live[3] or _root.live[4] or _root.live[5]) { return true; } else { return false; } } } frame 1 { function swaps() { options.swapDepths(topLayer); } } frame 1 { sound = new Sound(); } frame 1 { if (h == undefined) { h = 2; stop(); } } frame 2 { trace(_currentframe); } frame 4 { } frame 5 { _global.cure = 1700 * _global.P2matkB; _global.magic = 'pot'; if (_global.P2skills[9][0]) { _global.cure *= 1.5; } if (_global.P1regen > 0 and _root.live[1]) { _global.P1regen -= 1; stop(); _root.P1.gotoAndPlay('heal'); } if (_global.P2regen > 0 and _root.live[2]) { _global.P2regen -= 1; stop(); _root.P2.gotoAndPlay('heal'); } if (_global.P1autolife > 0) { _global.P1autolife -= 1; } if (_global.P2autolife > 0) { _global.P2autolife -= 1; } if (_global.P1stun > 0) { _global.P1stun -= 1; } if (_global.P2stun > 0) { _global.P2stun -= 1; } if (_global.P1seal > 0) { _global.P1seal -= 1; } if (_global.P2seal > 0) { _global.P2seal -= 1; } } frame 5 { trace(_currentframe); } frame 6 { if (_global.P1freeze) { _global.P1freeze -= 1; if (!_global.P1freeze) { ++_global.P1freeze; stop(); _root.t1(); _root.P1.gotoAndPlay('unfreeze'); } } if (_global.P2freeze) { _global.P2freeze -= 1; if (!_global.P2freeze) { ++_global.P2freeze; stop(); _root.t1(); _root.P2.gotoAndPlay('unfreeze'); } } if (_global.P1blind) { --_global.P1blind; } if (_global.P2blind) { --_global.P2blind; } } frame 7 { _global.atype = 'p'; if (_global.def1) { _global.P1evade -= 0.2; } _global.def1 = 0; _root.getAcc('nil', 3); _global.element = [4, 1]; _global.effect = 'nil'; if (_global.P1poison >= 1 and _root.live[1] == 1) { stop(); _global.T = 'P1'; _global.damage = 400 * _global.P1poison * _root.dif; _root.hurt(); } else { _global.P1poison = 0; } } frame 8 { if (_global.def2) { _global.P2evade -= 0.2; } _global.def2 = 0; _root.getAcc('nil', 3); _global.element = [4, 1]; _global.effect = 'nil'; if (_global.P2poison >= 1 and _root.live[2] == 1) { stop(); _global.T = 'P2'; _global.damage = 400 * _global.P2poison * _root.dif; _root.hurt(); } else { _global.P2poison = 0; } } frame 8 { trace(_currentframe); } frame 9 { takens = [0, 0]; } frame 9 { function statLimits() { if (1 > _global.P2def and _global.P2def > 0.999) { _global.P2def = 1; } if (1 > _global.P2mdef and _global.P2mdef > 0.999) { _global.P2mdef = 1; } if (1 > _global.P2atk and _global.P2atk > 0.999) { _global.P2atk = 1; } if (1 > _global.P2matk and _global.P2matk > 0.999) { _global.P2matk = 1; } if (1 > _global.P1def and _global.P1def > 0.999) { _global.P1def = 1; } if (1 > _global.P1mdef and _global.P1mdef > 0.999) { _global.P1mdef = 1; } if (1 > _global.P1atk and _global.P1atk > 0.999) { _global.P1atk = 1; } if (1 > _global.P1mat and _global.P1matk > 0.999) { _global.P1matk = 1; } if (_global.P2def > 1.7) { _global.P2def = 1.7; } if (_global.P2mdef > 1.7) { _global.P2mdef = 1.7; } if (_global.P2atk > 1.7) { _global.P2atk = 1.7; } if (_global.P2matk > 1.7) { _global.P2matk = 1.7; } if (_global.P1def > 1.7) { _global.P1def = 1.7; } if (_global.P1mdef > 1.7) { _global.P1mdef = 1.7; } if (_global.P1atk > 1.7) { _global.P1atk = 1.7; } if (_global.P1matk > 1.7) { _global.P1matk = 1.7; } } if (_global.P2skills[7][0] and !random(10)) { _global.P2autolife = 2; } if (!_global.P2skills[31][0]) { _global.P2skills[31][1] += 0.2; } if (_global.P1def < 0.99) { _global.P1def += 0.05; } if (_global.P1mdef < 0.99) { _global.P1mdef += 0.05; } if (_global.P1atk < 0.99) { _global.P1atk += 0.05; } if (_global.P1matk < 0.99) { _global.P1matk += 0.05; } if (_global.P1def > 1) { _global.P1def -= 0.05; } if (_global.P1mdef > 1) { _global.P1mdef -= 0.05; } if (_global.P1atk > 1) { _global.P1atk -= 0.05; } if (_global.P1matk > 1) { _global.P1matk -= 0.05; } if (_global.P2def < 0.99) { _global.P2def += 0.05; } if (_global.P2mdef < 0.99) { _global.P2mdef += 0.05; } if (_global.P2atk < 0.99) { _global.P2atk += 0.05; } if (_global.P2matk < 0.99) { _global.P2matk += 0.05; } if (_global.P2def > 1) { _global.P2def -= 0.05; } if (_global.P2mdef > 1) { _global.P2mdef -= 0.05; } if (_global.P2atk > 1) { _global.P2atk -= 0.05; } if (_global.P2matk > 1) { _global.P2matk -= 0.05; } statLimits(); } frame 10 { stop(); _global.element = [10, 1]; _global.effect = 'nil'; if (_root.live[1] == 0 or _global.P1stun or _global.P1freeze or _root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) { gotoAndPlay('P111'); } } frame 10 { _root.hideButtons(); _global.user = 'P1'; } frame 10 { trace('PLAYER 1 TURN START'); } frame 10 { _global.command = 'nil'; _global.magic = 'nil'; } frame 11 { stop(); if (_global.magic == 'heal' or _global.command == 'item') { _root.showButtons2(); } else { _root.showButtons(); } } frame 11 { if (_global.command == 'nil') { prevFrame(); } } frame 12 { takens[0] = 1; } frame 12 { _root.hideButtons(); stop(); } frame 12 { tellTarget ('/P1') { gotoAndPlay(_global.command); } } frame 13 { if (takens[1] or _global.P2freeze or _global.P2stun or !_root.live[2]) { gotoAndPlay('P222'); } } frame 14 { _global.command = 'nil'; _global.spell = 'nil'; } frame 15 { statLimits(); } frame 16 { stop(); _global.element = [10, 1]; _global.effect = 'nil'; if (_root.live[2] == 0 or _global.P2stun or _global.P2freeze or _root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) { gotoAndPlay('P222'); } _global.def2 = 0; } frame 16 { _global.user = 'P2'; _root.hideButtons(); } frame 16 { trace('PLAYER 2 TURN START'); } frame 16 { _global.command = 'nil'; _global.magic = 'nil'; } frame 17 { stop(); if (_global.magic == 'heal' or _global.magic == 'purify' or _global.magic == 'revive' or _global.command == 'item') { _root.showButtons2(); } else { _root.showButtons(); } } frame 17 { if (_global.command == 'nil') { prevFrame(); } } frame 18 { takens[1] = 1; } frame 18 { stop(); _root.hideButtons(); } frame 18 { tellTarget ('/P2') { gotoAndPlay(_global.command); } trace(_global.command); } frame 19 { _global.command = 'nil'; _global.spell = 'nil'; } frame 20 { if (!takens[0] and !_global.P1freeze and !_global.P1stun and _root.live[1] and (_root.live[3] or _root.live[4] or _root.live[5])) { gotoAndStop('P1'); } counterRate = 0; counterRate2 = 0; if (foesLive()) { if (_global.P1skills[13][0]) { counterRate = 1; } else { if (_global.P1skills[12][0]) { counterRate = 0.5; _global.P1skills[13][1] += 0.1; } else { _global.P1skills[12][1] += 0.15; } } if (_global.P2skills[25][0]) { counterRate2 = 0.6; } else { _global.P2skills[25][1] += 0.1; } } statLimits(); } frame 21 { _global.user = 'T1'; _global.element = [10, 1]; _global.effect = 'nil'; if (_root.live[3] and !_root.T1.stun and (_root.live[1] or _root.live[2])) { _root.T1.moveset(); stop(); tellTarget ('/T1') { enemystats(); } } if (_root.T1.stun) { _root.T1.stun -= 1; } if (_root.T1.blind) { _root.T1.blind -= 1; } if (_root.T1.seal) { _root.T1.seal -= 1; } _global.counterr = 0; _global.counterr2 = 0; } frame 21 { trace('ENEMY TURN START'); } frame 21 { trace(_currentframe); } frame 22 { _global.element = [10, 1]; _global.effect = 'nil'; if (Math.random() < counterRate and _root.live[1] and _global.counterr and !_global.P1stun and !_global.P1freeze) { stop(); _global.T = 'T1'; _global.command = 'attack'; _root.P1.gotoAndPlay('attack'); } } frame 23 { function P2counter() { if (Math.random() < counterRate2 and _root.live[2] and _global.counterr2 and !_global.P2freeze and !_global.P2stun and !_global.P2seal and _global.P2MP >= 20) { stop(); _global.command = 'bmagic'; _global.magic = 'lucky'; _root.P2.gotoAndPlay('bmagic'); } _global.counterr2 = 0; } _global.element = [10, 1]; _global.effect = 'nil'; _global.T = 'T1'; P2counter(); } frame 24 { _global.user = 'T2'; _global.element = [10, 1]; _global.effect = 'nil'; if (_root.live[4] and !_root.T2.stun and (_root.live[1] or _root.live[2])) { _root.T2.moveset(); stop(); tellTarget ('/T2') { enemystats(); } } if (_root.T2.stun) { _root.T2.stun -= 1; } if (_root.T2.blind) { _root.T2.blind -= 1; } if (_root.T2.seal) { _root.T2.seal -= 1; } _global.counterr = 0; } frame 25 { _global.element = [10, 1]; _global.effect = 'nil'; if (Math.random() < counterRate and _root.live[1] and _global.counterr and !_global.P1stun and !_global.P1freeze) { stop(); _global.T = 'T2'; _global.command = 'attack'; _root.P1.gotoAndPlay('attack'); } } frame 26 { _global.element = [10, 1]; _global.effect = 'nil'; _global.T = 'T2'; P2counter(); } frame 27 { _global.user = 'T3'; _global.element = [10, 1]; _global.effect = 'nil'; if (_root.live[5] == 1 and !_root.T3.stun and (_root.live[1] or _root.live[2])) { _root.T3.moveset(); stop(); tellTarget ('/T3') { enemystats(); } } if (_root.T3.stun) { _root.T3.stun -= 1; } if (_root.T3.blind) { _root.T3.blind -= 1; } if (_root.T3.seal) { _root.T3.seal -= 1; } _global.counterr = 0; } frame 27 { trace(_currentframe); } frame 28 { _global.element = [10, 1]; _global.effect = 'nil'; if (Math.random() < counterRate and _root.live[1] and _global.counterr and !_global.P1stun and !_global.P1freeze) { stop(); _global.T = 'T3'; _global.command = 'attack'; _root.P1.gotoAndPlay('attack'); } } frame 29 { _global.element = [10, 1]; _global.effect = 'nil'; _global.T = 'T3'; P2counter(); } frame 30 { _root.getAcc('nil', 3); _global.element = [4, 1]; _global.effect = 'nil'; if (_root.T1.poison > 0 and _root.live[3]) { stop(); _global.T = 'T1'; _global.damage = 1000 * _root.T1.poison; _root.hurt(); } if (_root.T2.poison > 0 and _root.live[4]) { stop(); _global.T = 'T2'; _global.damage = 1000 * _root.T2.poison; _root.hurt(); } if (_root.T3.poison > 0 and _root.live[5]) { stop(); _global.T = 'T3'; _global.damage = 1000 * _root.T3.poison; _root.hurt(); } } frame 31 { if (_root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) { trace('cheer'); stop(); if (_root.live[1]) { _root.P1.gotoAndPlay('cheer'); } if (_root.live[2]) { _root.P2.gotoAndPlay('cheer'); } if (!_root.live[1] and !_root.live[2]) { play(); } } } frame 32 { if (_root.live[1] == 0 and _root.live[2] == 0) { stop(); pause = function () { clearInterval(pause1); _root.fadeTo('gameover'); }; pause1 = setInterval(pause, 5000); } } frame 33 { if (_global.sword == 'stone') { _global.P1skills[26][1] += 0.4; } if (_global.sword == 'heaven') { _global.P1skills[2][1] += 0.4; } if (_global.sword == 'soul') { _global.P1skills[3][1] += 0.5; } if (_global.sword == 'blackfang') { _global.P1skills[25][1] += 0.4; } if (_global.sword == 'anarchy') { _global.P1skills[24][1] += 0.4; } if (_global.sword == 'inferno') { _global.P1skills[18][1] += 0.4; } if (_global.sword == 'blizzard') { _global.P1skills[20][1] += 0.3; } if (_global.sword == 'cross') { _global.P1skills[17][1] += 0.5; } if (_global.sword == 'swift') { _global.P1skills[4][1] += 0.5; } if (_global.sword == 'razorback') { _global.P1skills[36][1] += 0.4; } if (_global.sword == 'blood') { _global.P1skills[37][1] += 0.5; } } frame 34 { if (foesLive()) { if (_root.live[3] or _root.live[4] or _root.live[5]) { if (_global.P1skills[11][0] and Math.random() < 0.3) { stop(); _root.t1(); _root.randomT(); _root.spells.gotoAndPlay('airstrike'); _global.P1MP += 50; } } } } frame 35 { _global.command = 'nil'; _global.magic = 'nil'; if (!random(5) and _global.P2skills[23][0]) { _root.t1(); stop(); _root.summons.gotoAndPlay('slime'); } } frame 36 { _global.command = 'nil'; _global.magic = 'nil'; _global.user = 'nil'; _global.effect = 'nil'; if (_global.P1skills[7][0] and !random(5)) { stop(); _root.t1(); _root.summons.gotoAndPlay('nolegs'); } else { if (_global.P1skills[8][0] and !random(10) and foesLive()) { stop(); _root.t1(); _root.summons.gotoAndPlay('nolegs2'); } else { if (_global.P1skills[8][0] and !random(6) and foesLive()) { stop(); _root.t1(); _root.summons.gotoAndPlay('nolegs3'); } } } } frame 37 { _global.command = 'nil'; _global.magic = 'nil'; _global.effect = 'nil'; } } movieClip 2391 { frame 1 { gotoAndStop(_global.Text); } frame 16 { _root.itemz1 += 1; } frame 17 { _root.itemz2 += 1; } frame 18 { _root.itemz3 += 1; } frame 19 { _root.itemz4 += 1; } frame 20 { _root.itemz5 += 1; } frame 21 { _root.itemz8 += 1; } frame 22 { _root.itemz9 += 1; } frame 23 { _root.itemz6 += 1; } frame 24 { _root.itemz7 += 1; } frame 25 { _root.itemz10 += 1; } frame 26 { _root.itemz13 += 1; } frame 27 { _root.itemz11 += 1; } frame 28 { _root.itemz12 += 1; } } movieClip 2392 { frame 1 { stop(); } frame 1 { pie = false; } frame 2 { if (!pie) { _root.t1(); } } frame 9 { if (_global.txtspeed == 'fast') { gotoAndPlay(70); } } frame 120 { if (!pie) { _root.t2(); } } } movieClip 2394 { frame 41 { stop(); } } frame 30 { playerSpeech(29); } frame 30 { function X() { if (_global.T == 'P1') { return _root.coords[0]; } if (_global.T == 'P2') { return _root.coords[2]; } if (_global.T == 'T1') { return _root.coords[4]; } if (_global.T == 'T2') { return _root.coords[6]; } if (_global.T == 'T3') { return _root.coords[8]; } } function Y() { if (_global.T == 'P1') { return _root.coords[1]; } if (_global.T == 'P2') { return _root.coords[3]; } if (_global.T == 'T1') { return _root.coords[5]; } if (_global.T == 'T2') { return _root.coords[7]; } if (_global.T == 'T3') { return _root.coords[9]; } } _global.P1HP = 9999; _global.P1MP = 999; _global.P1HPmax = 9999; _global.P1MPmax = 999; _global.P1atk = 1; _global.P1atk2 = 1.1; _global.P1matk = 1; _global.P1matk2 = 1.1; _global.P1def = 1; _global.P1mdef = 1; _global.P1mdef2 = 1.1; _global.P1def2 = 1.1; _global.P1poison = 0; _global.P1seal = 0; _global.P1freeze = 0; _global.P1autolife = 0; _global.P1regen = 0; _global.P1stun = 0; _global.P1limit = 0; _global.P1blind = 0; _global.P1limitmax = 100; _global.P1acc = 1; _global.P1evade = 0.05; _global.P1atkB = 1; _global.P1matkB = 1; _global.P1defB = 1; _global.P1mdefB = 1; _global.P2elements = 1; _global.P1elements = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; _global.P2HP = 9999; _global.P2MP = 999; _global.P2HPmax = 9999; _global.P2MPmax = 999; _global.P2atk = 1; _global.P2matk = 1; _global.P2def = 1; _global.P2mdef = 1; _global.P2poison = 0; _global.P2seal = 0; _global.P2freeze = 0; _global.P2autolife = 0; _global.P2regen = 0; _global.P2stun = 0; _global.P2blind = 0; _global.P2limit = 0; _global.P2limitmax = 100; _global.P2acc = 1; _global.P2atkB = 1; _global.P2matkB = 1; _global.P2defB = 1; _global.P2mdefB = 1; _global.P2evade = 0.05; _global.damage = 0; _global.command = 0; _global.magic = 0; _global.atype = 0; _global.T = 0; _global.def1 = 0; _global.def2 = 0; _global.user = 'P1'; _global.kills = 0; coords = new Array(); coords = [180, 230, 60, 272, 530, 220, 560, 300, 0, 0]; T1.multi = 1; T1.ID = 1; T2.multi = 1; T2.ID = 2; } frame 31 { function itemGet() { b = random(2); if (b) { b = random(2) + 16; _global.Text = b; maintext.gotoAndPlay(1); } } ++waves; stop(); } frame 33 { stage = 2; } button 2397 { on (press) { menu.play(); } } frame 34 { playerSpeech(30); } frame 34 { function kittenWaves(M) { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 520, 190, 590, 250, 540, 305]; _root.menu.gotoAndPlay(1); T1.multi = M; T1.ID = 1; T2.multi = M; T2.ID = 2; T3.multi = M; T3.ID = 3; } kittenWaves(1.1); } frame 35 { stop(); } frame 37 { stage = 3; } movieClip 2401 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2405 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2409 { frame 1 { gotoAndStop(_parent._parent.monster); } } movieClip 2410 { } movieClip 2414 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2418 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2419 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 18 { symbols(); } } movieClip 2427 { frame 1 { _visible = false; } frame 2 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [1.6, 1.6, 1.6, 0.3, 0.3, 1, 1.2, 1, 1, 1, 1]; } frame 2 { _visible = true; } frame 3 { if (monster == 'moth') { HP = 21000 * multi * _root.EZmode; } else { HP = 15000 * multi * _root.EZmode; } atk = 0.8 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 4 { function moveset() { b = random(3); if (b == 2 and seal) { b = 0; } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('special2'); } if (b == 2) { gotoAndPlay('special'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy * 0.85 + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 5000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); trace(b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + 50 + random(50); (eval('_root.bob' + ID + b))._y = _y + 100 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 28 { stop(); q = 0; idle.monster = monster; } frame 48 { k(); _root.t2(); } frame 74 { k(); _root.t2(); } frame 75 { _root.live[2 + ID] = 0; } frame 113 { stop(); _root.t2(); } frame 114 { getXY(); _root.t1(); } frame 115 { run(X, Y); } frame 116 { run(X, Y); } frame 117 { run(X, Y); } frame 118 { run(X, Y); } frame 119 { run(X, Y); } frame 120 { run(X, Y); } frame 121 { run(X, Y); } frame 122 { _root.swap2(); } frame 122 { run(X, Y); } frame 123 { run(X, Y); } frame 124 { run(X, Y); } frame 125 { run(X, Y); } frame 126 { run(X, Y); } frame 127 { X = -X / 2; Y = -Y / 2; } frame 129 { _root.getAcc('foe', 1); _global.damage = 1700 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 134 { run(X, Y); } frame 135 { run(X, Y); } frame 136 { if (_global.T == 'P2') { _root.playerSpeech(34); } } frame 136 { run(X, Y); } frame 137 { run(X, Y); } frame 138 { run(X, Y); } frame 139 { run(X, Y); } frame 140 { run(X, Y); } frame 141 { _root.swap2(); } frame 141 { run(X, Y); } frame 142 { run(X, Y); } frame 143 { run(X, Y); } frame 144 { run(X, Y); } frame 145 { run(X, Y); } frame 146 { run(X, Y); } frame 147 { run(X, Y); } frame 148 { run(X, Y); } frame 149 { run(X, Y); } frame 150 { run(X, Y); } frame 151 { run(X, Y); } frame 152 { run(X, Y); } frame 153 { run(X, Y); } frame 154 { run(X, Y); } frame 155 { run(X, Y); } frame 156 { run(X, Y); } frame 157 { run(X, Y); } frame 158 { k(); _root.t2(); } frame 159 { _root.t1(); } frame 182 { _root.getAcc('foe', 1); _global.damage = 1500 * atk * atk2; _global.element = [2, 1]; _global.effect = ['defDown', 0.8, 0.2]; _global.atype = 'm'; _root.hurt(); } frame 197 { k(); _root.t2(); } frame 198 { if (monster == 'moth') { gotoAndPlay('attack2'); } _root.t1(); } frame 219 { _root.getAcc('foe', 1.1); _global.T = 'Pall'; _global.damage = 1500 * atk * atk2; _global.element = [4, 1]; _global.effect = ['blind', 0.2, 3]; _global.atype = 'm'; _root.hurt(); } frame 236 { k(); _root.t2(); } frame 237 { getXY(); } frame 238 { run(X, Y); } frame 239 { run(X, Y); } frame 240 { run(X, Y); } frame 241 { run(X, Y); } frame 242 { run(X, Y); } frame 243 { run(X, Y); } frame 244 { _root.swap2(); } frame 244 { run(X, Y); } frame 245 { run(X, Y); } frame 246 { run(X, Y); } frame 247 { run(X, Y); } frame 248 { run(X, Y); } frame 249 { run(X, Y); } frame 250 { X = -X / 2; Y = -Y / 2; } frame 252 { _root.getAcc('foe', 0.95); _global.damage = 900 * atk * atk2; _global.effect = ['poison', 0.1, 1]; _global.atype = 'p'; _root.hurt(); } frame 257 { _root.hurt(); } frame 267 { _root.hurt(); } frame 270 { run(X, Y); } frame 271 { run(X, Y); } frame 272 { run(X, Y); } frame 273 { run(X, Y); } frame 274 { run(X, Y); } frame 275 { run(X, Y); } frame 276 { run(X, Y); } frame 277 { run(X, Y); } frame 278 { run(X, Y); } frame 279 { run(X, Y); } frame 280 { run(X, Y); } frame 281 { run(X, Y); } frame 282 { _root.swap2(); } frame 282 { run(X, Y); } frame 283 { run(X, Y); } frame 284 { run(X, Y); } frame 285 { run(X, Y); } frame 286 { run(X, Y); } frame 287 { run(X, Y); } frame 288 { run(X, Y); } frame 289 { run(X, Y); } frame 290 { run(X, Y); } frame 291 { run(X, Y); } frame 292 { run(X, Y); } frame 293 { run(X, Y); } frame 294 { k(); _root.t2(); } frame 299 { if (_root.live[1]) { _root.playerSpeech(33); } } frame 314 { k(); _root.t2(); } } frame 38 { playerSpeech(31); } frame 38 { kittenWaves(1.3); T2.multi = 1; T2.ID = 2; T2.monster = 'bee'; } frame 39 { stop(); } frame 41 { stage = 4; } frame 41 { kittenWaves(1.5); } frame 42 { stop(); } frame 45 { stage = 5; } frame 45 { function itemGet() { _global.Text = 18; maintext.play(); } live[3] = 1; coords = [180, 230, 60, 272, 450, 250, 590, 250, 540, 305]; _root.menu.gotoAndPlay(1); T1.multi = 1; T1.ID = 1; } movieClip 2429 { } movieClip 2431 { } movieClip 2434 { } movieClip 2436 { } movieClip 2438 { } movieClip 2440 { } movieClip 2441 { } movieClip 2443 { } movieClip 2444 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 17 { symbols(); } } movieClip 2447 { } movieClip 2460 { frame 1 { poison = 0; blind = 0; seal = 0; stun = 0; monster = 'kart'; elements = [1.7, 1, 1, 1, 1.5, 1, 1, 1, 1, 1, 1]; } frame 1 { _visible = false; } frame 2 { _visible = true; } frame 3 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } HP = 60000 * multi * _root.EZmode; atk = 0.8 * _root.dif * multi; def = 1.1; matk = 0.9 * _root.dif * multi; mdef = 1; cat = random(5) + 2; HPmax = HP; } frame 4 { function moveset() { b = random(4); if ((b == 0 or b == 1) and seal) { b = 2; } if (_root.dif < 1.2 and b == 3) { b = 2; } _root.ranplay(); if (b == 0) { gotoAndPlay('special'); } if (b == 1) { gotoAndPlay('special2'); } if (b == 2) { gotoAndPlay('attack2'); } if (b == 3) { gotoAndPlay('attack'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'poison') { poison += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 8000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); trace(b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 100 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 1; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 36 { stop(); q = 0; idle.cat = cat; } frame 55 { k(); _root.t2(); } frame 56 { ranS = random(15); var sound = new Sound(); if (ranS == 1) { sound.attachSound('cat1'); } if (ranS == 2) { sound.attachSound('cat2'); } if (ranS == 3) { sound.attachSound('cat3'); } if (ranS == 4) { sound.attachSound('cat4'); } if (ranS == 5) { sound.attachSound('cat5'); } sound.start(0.1, 0); } frame 77 { k(); _root.t2(); } frame 78 { _root.live[2 + ID] = 0; } frame 88 { ranS = random(5) + 1; var sound = new Sound(); if (ranS == 1) { sound.attachSound('cat1'); } if (ranS == 2) { sound.attachSound('cat2'); } if (ranS == 3) { sound.attachSound('cat3'); } if (ranS == 4) { sound.attachSound('cat4'); } if (ranS == 5) { sound.attachSound('cat5'); } sound.start(0.1, 0); } frame 134 { stop(); _root.t2(); } frame 135 { _root.t1(); } frame 144 { _root.getAcc('foe', 0.95); _global.damage = 3500 * matk * matk2; _global.element = [9, 1]; _global.atype = 'm'; _root.hurt(); } frame 161 { k(); _root.t2(); } frame 162 { _root.t1(); } frame 183 { shake('small'); } frame 185 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.damage = 2600 * matk * matk2; _global.element = [9, 1]; _global.atype = 'm'; _root.hurt(); } frame 211 { k(); _root.t2(); } frame 212 { _root.t1(); } frame 227 { shake('small'); } frame 230 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.damage = 3600 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 240 { gotoAndPlay('intro'); _root.t2(); } frame 241 { _root.t1(); } frame 248 { _root.swap2(); } frame 253 { _root.getAcc('foe', 0.7); _global.damage = 4000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 258 { if (_root.dif == 1.4) { _root.getAcc('foe', 0.9); _global.damage = 2000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } } frame 262 { _root.swap2(); } frame 274 { k(); _root.t2(); } frame 293 { k(); _root.t2(); } } frame 46 { playerSpeech(32); } frame 46 { stop(); } frame 47 { _root.getMedal(1); } frame 48 { stop(); } movieClip 2463 { frame 1 { stop(); } } button 2464 { on (release) { P1bonus = 'magic'; P1bonuslight.gotoAndStop('magic'); } } button 2465 { on (release) { P1bonus = 'defence'; P1bonuslight.gotoAndStop('defence'); } } button 2466 { on (release) { P1bonus = 'mdefence'; P1bonuslight.gotoAndStop('mdefence'); } } button 2467 { on (release) { P1bonus = 'attack'; P1bonuslight.gotoAndStop('attack'); } } button 2468 { on (release) { P2bonus = 'magic'; P2bonuslight.gotoAndStop('magic'); } } button 2469 { on (release) { P2bonus = 'defence'; P2bonuslight.gotoAndStop('defence'); } } button 2470 { on (release) { P2bonus = 'mdefence'; P2bonuslight.gotoAndStop('mdefence'); } } button 2471 { on (release) { if (P1bonus != 'nil' and P2bonus != 'nil' and P1skill != 'nil' and P2skill != 'nil') { _parent.play(); if (P1bonus == 'attack') { _global.P1atkB += b1 / 100; ++_root.P1stats[0]; } if (P1bonus == 'defence') { _global.P1defB += b3 / 100; ++_root.P1stats[2]; } if (P1bonus == 'magic') { _global.P1matkB += b2 / 100; ++_root.P1stats[1]; } if (P1bonus == 'mdefence') { _global.P1mdefB += b4 / 100; ++_root.P1stats[3]; } if (P2bonus == 'defence') { _global.P2defB += b6 / 100; ++_root.P2stats[1]; } if (P2bonus == 'magic') { _global.P2matkB += b5 / 100; ++_root.P2stats[0]; } if (P2bonus == 'mdefence') { _global.P2mdefB += b7 / 100; ++_root.P2stats[2]; } _global.P1skills[P1skill][0] = 1; _parent.P1skill = P1skill; _global.P2skills[P2skill][0] = 1; _parent.P2skill = P2skill; } else { warning.play(); } } } button 2472 { on (release) { P1skill = skill1; P1bonuslight2.gotoAndStop('attack'); d1 = _global.P1skills[skill1][3]; } } button 2473 { on (release) { P1skill = skill2; P1bonuslight2.gotoAndStop('magic'); d1 = _global.P1skills[skill2][3]; } } button 2474 { on (release) { P1skill = skill3; P1bonuslight2.gotoAndStop('defence'); d1 = _global.P1skills[skill3][3]; } } button 2475 { on (release) { P2skill = skill4; P2bonuslight2.gotoAndStop('attack'); d2 = _global.P2skills[skill4][3]; } } button 2476 { on (release) { P2skill = skill5; P2bonuslight2.gotoAndStop('magic'); d2 = _global.P2skills[skill5][3]; } } button 2477 { on (release) { P2skill = skill6; P2bonuslight2.gotoAndStop('defence'); d2 = _global.P2skills[skill6][3]; } } movieClip 2501 { frame 1 { stop(); } } movieClip 2502 { frame 1 { function highestSkill() { high = -0.1; highS = 0; for (b in _global.P1skills) { if (_global.P1skills[b][1] > high and !_global.P1skills[b][0] and b != skill1 and b != skill2) { high = _global.P1skills[b][1]; highS = b; } } _global.P1skills[highS][1] /= 2; return highS; } function highestSkill2() { high = -0.1; highS = 0; for (b in _global.P2skills) { if (_global.P2skills[b][1] > high and !_global.P2skills[b][0] and b != skill4 and b != skill5) { high = _global.P2skills[b][1]; highS = b; } } _global.P2skills[highS][1] /= 2; return highS; } P1bonus = 'nil'; P2bonus = 'nil'; P1skill = 'nil'; P2skill = 'nil'; statlist = [10, 8, 7, 6, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; b1 = statlist[_root.P1stats[0]]; b2 = statlist[_root.P1stats[1]]; b3 = statlist[_root.P1stats[2]]; b4 = statlist[_root.P1stats[3]]; b5 = statlist[_root.P2stats[0]]; b6 = statlist[_root.P2stats[1]]; b7 = statlist[_root.P2stats[2]]; skill1 = 99; skill2 = 99; skill3 = 99; skill1 = highestSkill(); skill2 = highestSkill(); skill3 = highestSkill(); skill4 = 99; skill5 = 99; skill6 = 99; skill4 = highestSkill2(); skill5 = highestSkill2(); skill6 = highestSkill2(); s1 = _global.P1skills[skill1][2]; s2 = _global.P1skills[skill2][2]; s3 = _global.P1skills[skill3][2]; s4 = _global.P2skills[skill4][2]; s5 = _global.P2skills[skill5][2]; s6 = _global.P2skills[skill6][2]; } } movieClip 2504 { } movieClip 2505 { } movieClip 2508 { } movieClip 2511 { } movieClip 2512 { frame 1 { b = random(3); if (b == 2) { gotoAndPlay(2); } else { if (b == 1) { gotoAndPlay(26); } else { stop(); _visible = false; } } } frame 24 { gotoAndPlay(2); } frame 51 { gotoAndPlay(26); } } movieClip 2519 { } movieClip 2520 { frame 1 { if (random(5)) { _visible = false; } } frame 12 { gotoAndPlay(2); } } movieClip 2521 { frame 1 { stopAllSounds(); } frame 9 { stop(); } frame 12 { if (P1skill == 2) { _global.P1atkB += 0.04; _global.P1defB += 0.04; _global.P1mdefB += 0.04; _global.P1matkB += 0.04; } if (P1skill == 3) { _global.P1atkB += 0.08; } if (P1skill == 4) { _global.P1acc += 0.2; _global.P1evade += 0.05; } if (P1skill == 26) { _global.P1mdefB += 0.08; } if (P1skill == 37) { _global.P1defB += 0.08; } if (P1skill == 36) { _global.P1matkB += 0.08; } if (P1skill == 6) { _global.P1elements[7] -= 0.2; } if (P1skill == 18) { _global.P1elements[0] -= 0.1; _global.P1elements[6] -= 0.1; } if (P1skill == 19) { _global.P1elements[0] -= 0.1; _global.P1elements[6] -= 0.1; } if (P1skill == 20) { _global.P1elements[0] -= 0.1; _global.P1elements[6] -= 0.1; _global.P1elements[5] -= 0.1; _global.P1elements[2] -= 0.1; } if (P1skill == 21) { _global.P1elements[5] -= 0.1; _global.P1elements[6] -= 0.1; } if (P1skill == 22) { _global.P1elements[2]; } if (P1skill == 27) { _global.P1elements[3] -= 0.1; _global.P1elements[2] -= 0.1; } _global.SL1[_global.SC1] = P1skill; _global.SL2[_global.SC2] = P2skill; ++_global.SC1; ++_global.SC2; trace(_global.SL1); trace(_global.SL2); if (P2skill == 29) { _global.P2matkB += 0.09; } if (P2skill == 30) { _global.P2mdefB += 0.09; } if (P2skill == 31) { _global.P2evade += 0.04; _global.P2defB += 0.04; _global.P2mdefB += 0.04; _global.P2matkB += 0.04; } if (P2skill == 32) { _global.P2evade += 0.1; } if (P2skill == 33) { _global.P2acc += 0.2; } if (P2skill == 14 or P2skill == 15 or P2skill == 16) { _global.P2elements -= 0.1; } } frame 98 { stop(); _root.live[1] = 1; _root.live[2] = 1; if (!_global.P1HP) { _global.P1HP = 1; } if (!_global.P2HP) { _global.P2HP = 1; } _root.play(); } } frame 49 { stage = 6; } frame 49 { function itemGet() { if (random(2)) { _global.Text = 20; maintext.gotoAndPlay(1); } } live[3] = 1; live[4] = 1; coords = [180, 230, 60, 272, 510, 235, 595, 288, 540, 305]; T1.multi = 1; T1.ID = 1; T1.monster = 'bee'; T2.multi = 1; T2.ID = 2; T2.monster = 'bee'; } frame 49 { stopAllSounds(); } frame 50 { stop(); } frame 53 { stage = 7; } frame 53 { live[3] = 1; live[4] = 1; live[5] = 1; _root.menu.gotoAndPlay(1); T1.multi = 1; T1.ID = 1; T1.monster = 'moth'; T2.multi = 1; T2.ID = 2; T2.monster = 'bee'; T3.multi = 1; T3.ID = 3; T3.monster = 'moth'; } frame 54 { stop(); } frame 56 { stop(); } frame 57 { stage = 8; } frame 57 { function itemGet() { if (random(2)) { _global.Text = 25; maintext.gotoAndPlay(1); } else { _global.Text = 22; maintext.gotoAndPlay(1); } } live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 400, 220, 490, 300, 540, 280]; _root.menu.gotoAndPlay(1); T1.multi = 1; T1.ID = 1; T1.monster = 'sword'; T2.multi = 1; T2.ID = 2; T3.multi = 1; T3.ID = 3; T3.monster = 'shield'; } frame 57 { stopAllSounds(); } movieClip 2523 { frame 4 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [0.5, 1.5, 0.5, 0.5, 0.5, 1, 1, 1, 1, 1.5, 1]; } frame 5 { HP = 20000 * multi; atk = 1 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 6 { function moveset() { _root.ranplay(); if (monster == 'shield') { _root.T2.gotoAndPlay('attack4'); } else { if (_root.dif > 1) { b = random(2); } else { b = 0; } if (b == 0) { _root.T2.gotoAndPlay('attack'); } if (b == 1) { _root.T2.gotoAndPlay('attack2'); } } } function hit() { if (_root.T2.stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (Math.random() > hitP) { damage = 'Miss'; _root.T2.gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / _root.T2.def * _root.T2.def2); } else { damage = Math.round(damage / _root.T2.mdef * _root.T2.mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); HP -= damage; if (monster == 'sword') { if (HP <= 0) { HP = 0; _root.T2.gotoAndPlay('break2'); } else { _root.T2.gotoAndPlay('hitSword'); } } if (monster == 'shield') { if (HP <= 0) { HP = 0; _root.T2.gotoAndPlay('break'); } else { _root.T2.gotoAndPlay('hitShield'); } } } damageNo(); } trace(monster); } frame 7 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); trace(b + 100 * ID); (eval('_root.bob' + ID + b))._x = _root.coords[ID * 2 + 2] + random(50) - 250; (eval('_root.bob' + ID + b))._y = _root.coords[ID * 2 + 3] - 80 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 1; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 8 { stop(); } } movieClip 2527 { frame 1 { if (!_parent.sword) { _visible = false; } } } movieClip 2529 { frame 1 { if (!_parent.sword) { _visible = false; } } } movieClip 2532 { frame 1 { if (!_parent.sword) { _visible = false; } stop(); } } movieClip 2541 { frame 1 { stop(); } } movieClip 2544 { } movieClip 2547 { } movieClip 2552 { frame 1 { if (!_parent.shield) { _visible = false; } } } movieClip 2555 { frame 1 { if (!_parent.shield) { _visible = false; } } } movieClip 2556 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 28 { symbols(); } } movieClip 2565 { } movieClip 2571 { } movieClip 2574 { } movieClip 2586 { } movieClip 2607 { } movieClip 2612 { frame 1 { function gotoDie() { if (!HP) { gotoAndPlay('die'); } } } frame 1 { poison = 0; blind = 0; seal = 0; stun = 0; monster = 'guardian'; elements = [0.5, 1.5, 0.5, 0.5, 0.5, 1, 1, 1, 1, 1.5, 1]; } frame 1 { _visible = false; } frame 2 { function atkUp() { if (atk2 < 1.5 and _root.dif > 1) { atk2 += 0.25; } } function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } HP = 170000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; def = 2; matk = 1 * _root.dif * multi; mdef = 2; HPmax = HP; } frame 2 { _visible = true; } frame 3 { function moveset() { b = random(6); if (seal) { b = 0; } _root.ranplay(); if (b == 0) { gotoAndPlay('attack5'); } if (b == 1) { gotoAndPlay('attack3'); } if (b == 2) { gotoAndPlay('repair'); } if (b == 3) { gotoAndPlay('special'); } if (b == 4) { gotoAndPlay('attack3'); } if (b == 5) { gotoAndPlay('special'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (!q) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 3) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; _root.T3.stun += stun; _root.T1.stun += _root.T3.stun; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { if (atk2 > 1) { atk2 = 1; } if (matk2 > 1) { matk2 = 1; } if (def2 > 1) { def2 = 1; } if (mdef2 > 1) { mdef2 = 1; } } } HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 9000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 4 { shield = true; sword = true; } frame 4 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.8) { def2 = 0.8; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.8) { mdef2 = 0.8; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.8) { atk2 = 0.8; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.8) { matk2 = 0.8; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); trace(b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 100 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 1; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 62 { stop(); q = 0; idle.shield = shield; idle.sword = sword; } frame 81 { k(); _root.t2(); } frame 107 { k(); _root.t2(); } frame 108 { if (!q) { _root.t1(); q = 1; } } frame 109 { gotoDie(); } frame 129 { _root.t2(); k(); } frame 130 { if (!q) { _root.t1(); q = 1; } } frame 131 { gotoDie(); } frame 150 { _root.t2(); k(); } frame 151 { if (!q) { _root.t1(); q = 1; } _root.live[5] = 0; shield = false; shake('small'); } frame 152 { def = 1; mdef = 1; gotoDie(); } frame 163 { atkUp(); } frame 181 { k(); _root.t2(); } frame 181 { k(); } frame 182 { if (!q) { _root.t1(); q = 1; } _root.live[3] = 0; sword = false; shake('small'); } frame 183 { gotoDie(); } frame 196 { atkUp(); } frame 213 { k(); _root.t2(); } frame 214 { _root.live[3] = 0; _root.live[4] = 0; _root.live[5] = 0; } frame 214 { shake('big'); } frame 228 { if (_root.live[1]) { _root.playerSpeech(97); } } frame 243 { shake('small'); } frame 320 { stop(); _root.t2(); } frame 321 { _root.t1(); } frame 329 { _root.live[3] = 1; _root.live[5] = 1; _root.T1.HP = _root.T1.HPmax; _root.T3.HP = _root.T3.HPmax; def = 2; mdef = 2; } frame 333 { if (_root.dif == 1.4) { if (atk2 < 1.3) { atk2 += 0.25; } if (def2 < 1.3) { def2 += 0.25; } } } frame 338 { shield = true; sword = true; } frame 357 { if (_root.live[2]) { _root.playerSpeech(38); } } frame 364 { k(); _root.t2(); } frame 365 { _root.t1(); } frame 370 { getXY(); } frame 371 { run(X, Y); } frame 372 { run(X, Y); } frame 373 { run(X, Y); } frame 374 { run(X, Y); } frame 375 { run(X, Y); } frame 376 { run(X, Y); } frame 377 { _root.swap2(); } frame 377 { run(X, Y); } frame 378 { run(X, Y); } frame 379 { run(X, Y); } frame 380 { run(X, Y); } frame 381 { run(X, Y); } frame 382 { run(X, Y); } frame 383 { X = -X / 2; Y = -Y / 2; } frame 388 { _root.getAcc('foe', 1); _global.damage = 3000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 390 { run(X, Y); } frame 391 { run(X, Y); } frame 392 { run(X, Y); } frame 393 { run(X, Y); } frame 394 { run(X, Y); } frame 395 { run(X, Y); } frame 396 { run(X, Y); } frame 397 { run(X, Y); } frame 398 { run(X, Y); } frame 399 { run(X, Y); } frame 400 { run(X, Y); } frame 401 { _root.swap2(); } frame 401 { run(X, Y); } frame 402 { run(X, Y); } frame 403 { run(X, Y); } frame 404 { run(X, Y); } frame 405 { run(X, Y); } frame 406 { run(X, Y); } frame 407 { run(X, Y); } frame 408 { run(X, Y); } frame 409 { run(X, Y); } frame 410 { run(X, Y); } frame 411 { run(X, Y); } frame 412 { run(X, Y); } frame 413 { run(X, Y); } frame 414 { k(); _root.t2(); } frame 415 { _root.t1(); } frame 420 { getXY(); } frame 421 { run(X, Y); } frame 422 { run(X, Y); } frame 423 { run(X, Y); } frame 424 { run(X, Y); } frame 425 { _root.swap2(); } frame 425 { run(X, Y); } frame 426 { run(X, Y); } frame 427 { run(X, Y); } frame 428 { run(X, Y); } frame 429 { run(X, Y); } frame 430 { run(X, Y); } frame 431 { run(X, Y); } frame 432 { run(X, Y); } frame 433 { X = -X / 2; Y = -Y / 2; } frame 438 { if (_root.dif == 1.4) { _global.T = 'Pall'; } _root.getAcc('foe', 1); _global.damage = 5200 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 446 { run(X, Y); } frame 447 { run(X, Y); } frame 448 { run(X, Y); } frame 449 { run(X, Y); } frame 450 { run(X, Y); } frame 451 { run(X, Y); } frame 452 { run(X, Y); } frame 453 { run(X, Y); } frame 454 { run(X, Y); } frame 455 { run(X, Y); } frame 456 { _root.swap2(); } frame 456 { run(X, Y); } frame 457 { run(X, Y); } frame 458 { run(X, Y); } frame 459 { run(X, Y); } frame 460 { run(X, Y); } frame 461 { run(X, Y); } frame 462 { run(X, Y); } frame 463 { run(X, Y); } frame 464 { run(X, Y); } frame 465 { run(X, Y); } frame 466 { run(X, Y); } frame 467 { run(X, Y); } frame 468 { run(X, Y); } frame 469 { run(X, Y); } frame 470 { _root.t2(); } frame 470 { k(); } frame 471 { _root.t1(); } frame 479 { getXY(); } frame 480 { run(X, Y); } frame 481 { run(X, Y); } frame 482 { run(X, Y); } frame 483 { run(X, Y); } frame 484 { _root.swap2(); } frame 484 { run(X, Y); } frame 485 { run(X, Y); } frame 486 { run(X, Y); } frame 487 { run(X, Y); } frame 488 { run(X, Y); } frame 489 { run(X, Y); } frame 490 { run(X, Y); } frame 491 { run(X, Y); } frame 492 { X = -X / 2; Y = -Y / 2; } frame 496 { _root.getAcc('foe', 1); _global.element = [1, 1]; _global.effect = ['stun', 0.7, 2]; _global.damage = 2200 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 501 { run(X, Y); } frame 502 { run(X, Y); } frame 503 { run(X, Y); } frame 504 { run(X, Y); } frame 505 { run(X, Y); } frame 506 { run(X, Y); } frame 507 { run(X, Y); } frame 508 { run(X, Y); } frame 509 { run(X, Y); } frame 510 { run(X, Y); } frame 511 { run(X, Y); } frame 512 { _root.swap2(); } frame 512 { run(X, Y); } frame 513 { run(X, Y); } frame 514 { run(X, Y); } frame 515 { run(X, Y); } frame 516 { run(X, Y); } frame 517 { run(X, Y); } frame 518 { run(X, Y); } frame 519 { run(X, Y); } frame 520 { run(X, Y); } frame 521 { run(X, Y); } frame 522 { run(X, Y); } frame 523 { run(X, Y); } frame 524 { run(X, Y); } frame 525 { k(); _root.t2(); } frame 526 { _root.t1(); } frame 531 { getXY(); } frame 532 { run(X, Y); } frame 533 { run(X, Y); } frame 534 { run(X, Y); } frame 535 { run(X, Y); } frame 536 { run(X, Y); } frame 537 { run(X, Y); } frame 538 { _root.swap2(); } frame 538 { run(X, Y); } frame 539 { run(X, Y); } frame 540 { run(X, Y); } frame 541 { run(X, Y); } frame 542 { run(X, Y); } frame 543 { run(X, Y); } frame 544 { X = -X / 2; Y = -Y / 2; } frame 548 { _root.getAcc('foe', 1); _global.damage = 2200 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 557 { run(X, Y); } frame 558 { run(X, Y); } frame 559 { run(X, Y); } frame 560 { run(X, Y); } frame 561 { run(X, Y); } frame 562 { run(X, Y); } frame 563 { run(X, Y); } frame 564 { run(X, Y); } frame 565 { run(X, Y); } frame 566 { run(X, Y); } frame 567 { _root.swap2(); } frame 567 { run(X, Y); } frame 568 { run(X, Y); } frame 569 { run(X, Y); } frame 570 { run(X, Y); } frame 570 { if (_root.live[1]) { _root.playerSpeech(37); } } frame 571 { run(X, Y); } frame 572 { run(X, Y); } frame 573 { run(X, Y); } frame 574 { run(X, Y); } frame 575 { run(X, Y); } frame 576 { run(X, Y); } frame 577 { run(X, Y); } frame 578 { run(X, Y); } frame 579 { run(X, Y); } frame 580 { run(X, Y); } frame 581 { k(); _root.t2(); } frame 582 { _root.t1(); } frame 590 { _root.getAcc('foe', 0.9); _global.damage = 800 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 594 { _root.ranplay(); _root.hurt(); } frame 598 { _root.hurt(); } frame 602 { _root.ranplay(); _root.hurt(); } frame 606 { _root.ranplay(); _root.hurt(); } frame 610 { _root.ranplay(); _root.hurt(); } frame 614 { _root.ranplay(); _root.hurt(); } frame 618 { _root.ranplay(); _root.hurt(); } frame 623 { _root.ranplay(); _root.hurt(); } frame 635 { k(); _root.t2(); } frame 636 { _root.t1(); } frame 657 { _root.getAcc('foe', 1); _global.T = 'Pall'; _global.damage = 1400 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 657 { shake('small'); } frame 664 { _root.hurt(); } frame 665 { shake('small'); } frame 670 { _root.hurt(); } frame 672 { shake('small'); } frame 692 { k(); _root.t2(); } frame 713 { k(); _root.t2(); } } frame 58 { playerSpeech(35); } frame 58 { stop(); } frame 59 { _root.getMedal(2); } frame 60 { stop(); checkPoint = 1; } frame 61 { checkPoint = 1; } frame 61 { _global.ionEnable = true; } frame 61 { stop(); } movieClip 2617 { } button 2619 { on (release) { saveF = 'file4'; gotoAndStop(2); } } button 2620 { on (release) { saveF = 'file1'; gotoAndStop(2); } } button 2621 { on (release) { saveF = 'file5'; gotoAndStop(2); } } button 2622 { on (release) { saveF = 'file2'; gotoAndStop(2); } } button 2623 { on (release) { saveF = 'file6'; gotoAndStop(2); } } button 2624 { on (release) { saveF = 'file3'; gotoAndStop(2); } } button 2633 { on (release) { saveF = 'none'; gotoAndStop(2); } } button 2635 { on (release) { _parent.play(); _parent.saveF = saveF; } } movieClip 2636 { frame 1 { saveF = 'nil'; stop(); } frame 1 { function toDif(fff) { if (fff == 0.8) { return 'Easy'; } else { if (fff == 1) { return 'Norm'; } else { if (fff == 1.2) { return 'Hard'; } else { if (fff == 1.4) { return 'Epic'; } else { return '---'; } } } } } function showFiles() { k = 1; while (k < 7) { var v2 = SharedObject.getLocal('file' + k); prog = v2.data.checkPoint; dif2 = v2.data.difficulty; if (prog == 1) { prog = '33%'; } else { if (prog == 2) { prog = '66%'; } else { if (prog == 3) { prog = '100%'; } else { prog = '---'; } } } String = 'f' + k; this[String] = prog + '\n' + toDif(dif2); ++k; } } showFiles(); } } movieClip 2637 { frame 61 { stop(); } frame 64 { if (saveF != 'none') { _root.saveF = saveF; _root.saveFile(saveF); } } frame 69 { _root.play(); } } frame 62 { _global.money = 4500; } frame 62 { _global.P1HP = 9999; _global.P1MP = 999; _global.P2HP = 9999; _global.P2MP = 999; } frame 62 { stopAllSounds(); } frame 63 { defaultBuffs(); } frame 63 { stop(); cuts.gotoAndPlay('cuts2'); } frame 64 { if (dif == 0.8) { EZmode = 0.8; } else { EZmode = 1; } } frame 64 { MGT = 1; gotoAndStop('instructions2'); } frame 65 { stop(); } movieClip 2643 { } button 2644 { on (release) { if (_global.money >= 150) { _global.money -= 150; itemz1 += 1; } } } button 2645 { on (release) { if (itemz1 >= 1) { _global.money += 150; itemz1 -= 1; } } } button 2646 { on (release) { if (_global.money >= 350) { _global.money -= 350; itemz2 += 1; } } } button 2647 { on (release) { if (itemz2 >= 1) { _global.money += 350; itemz2 -= 1; } } } button 2648 { on (release) { if (_global.money >= 1000) { _global.money -= 1000; itemz3 += 1; } } } button 2649 { on (release) { if (itemz3 >= 1) { _global.money += 1000; itemz3 -= 1; } } } button 2650 { on (release) { if (_global.money >= 2200) { _global.money -= 2200; itemz4 += 1; } } } button 2651 { on (release) { if (itemz4 >= 1) { _global.money += 2200; itemz4 -= 1; } } } button 2652 { on (release) { if (_global.money >= 50) { _global.money -= 50; itemz5 += 1; } } } button 2653 { on (release) { if (itemz5 >= 1) { _global.money += 50; itemz5 -= 1; } } } button 2654 { on (release) { if (_global.money >= 1000) { _global.money -= 1000; itemz8 += 1; } } } button 2655 { on (release) { if (itemz8 >= 1) { _global.money += 1000; itemz8 -= 1; } } } button 2656 { on (release) { if (_global.money >= 150) { _global.money -= 150; itemz7 += 1; } } } button 2657 { on (release) { if (itemz7 >= 1) { _global.money += 150; itemz7 -= 1; } } } button 2658 { on (release) { if (_global.money >= 150) { _global.money -= 150; itemz6 += 1; } } } button 2659 { on (release) { if (itemz6 >= 1) { _global.money += 150; itemz6 -= 1; } } } button 2662 { on (release) { play(); } } button 2667 { on (release) { if (_global.money >= 400) { _global.money -= 400; itemz12 += 1; } } } button 2668 { on (release) { if (itemz12 >= 1) { _global.money += 400; itemz12 -= 1; } } } button 2670 { on (release) { if (_global.money >= 300) { _global.money -= 300; itemz10 += 1; } } } button 2671 { on (release) { if (itemz10 >= 1) { _global.money += 300; itemz10 -= 1; } } } button 2673 { on (release) { if (_global.money >= 300) { _global.money -= 300; itemz11 += 1; } } } button 2674 { on (release) { if (itemz11 >= 1) { _global.money += 300; itemz11 -= 1; } } } button 2676 { on (release) { if (_global.money >= 500) { _global.money -= 500; itemz9 += 1; } } } button 2677 { on (release) { if (itemz9 >= 1) { _global.money += 500; itemz9 -= 1; } } } movieClip 2705 { } frame 66 { stage = 9; _global.ionEnable = true; } frame 66 { function itemGet() { b = random(6); if (b == 1) { _global.Text = 21; maintext.gotoAndPlay(1); } if (b == 2) { _global.Text = 26; maintext.gotoAndPlay(1); } if (b == 3) { _global.Text = 28; maintext.gotoAndPlay(1); } } live = new Array(); live[1] = 1; live[2] = 1; live[3] = 1; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 520, 230, 610, 290, 540, 305]; T1.multi = 0.9; T1.ID = 1; T1.monster = 'red'; T2.multi = 0.9; T2.ID = 2; T2.monster = 'blue'; } frame 66 { hideButtons(); } frame 66 { stopAllSounds(); } movieClip 2710 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2713 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2716 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2717 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2720 { frame 1 { _visible = false; } frame 2 { _visible = true; } frame 3 { function moveset() { b = random(3); if (b == 2 and seal) { b = 0; } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack2'); } if (b == 2) { gotoAndPlay('magic'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (inflict) { if (_global.effect[0] == 'poison' and monster != 'red') { poison += _global.effect[2]; } if (_global.effect[0] == 'stun' and monster != 'blue') { stun += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 5000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 4 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); trace(b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + 50 + random(50); (eval('_root.bob' + ID + b))._y = _y + 100 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 4 { if (monster == 'red') { HP = 27000 * multi; } else { HP = 31000 * multi; } atk = 0.7 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 5 { poison = 0; blind = 0; seal = 0; stun = 0; if (monster == 'red') { elements = [0.5, 1.4, 1, 1, 0.5, 0.5, 1.6, 1, 1, 1, 1]; } else { elements = [0.5, 0.5, 1, 1.5, 0.5, 0.5, 1.5, 1, 1, 1, 1]; } } frame 29 { stop(); q = 0; idle.monster = monster; } frame 49 { k(); _root.t2(); } frame 78 { k(); _root.t2(); } frame 79 { _root.live[2 + ID] = 0; } frame 136 { stop(); _root.t2(); } frame 137 { _root.t1(); } frame 165 { if (monster == 'blue') { _root.getAcc('foe', 1.5); _global.damage = 1500 * atk * atk2; _global.element = [1, 1]; _global.effect = ['stun', 0.05, 2]; _global.atype = 'm'; _root.spells.gotoAndPlay('bolt'); } else { _root.getAcc('foe', 1.2); _global.damage = 2500 * atk * atk2; _global.element = [1, 1]; _global.effect = ['atkDown', 0.2, 0.2]; _global.atype = 'm'; _root.spells.gotoAndPlay('bubbles'); } } frame 172 { k(); } frame 173 { _root.t1(); } frame 176 { getXY(); } frame 177 { run(X, Y); } frame 178 { run(X, Y); } frame 179 { run(X, Y); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 183 { _root.swap2(); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { run(X, Y); } frame 188 { run(X, Y); } frame 189 { X = -X / 2; Y = -Y / 2; } frame 194 { _root.getAcc('foe', 1); _global.damage = 1700 * atk * atk2; _global.element = [1, 0.5]; _global.effect = ['stun', 0.05, 2]; _global.atype = 'p'; _root.hurt(); } frame 199 { run(X, Y); } frame 200 { run(X, Y); } frame 201 { run(X, Y); } frame 202 { run(X, Y); } frame 203 { run(X, Y); } frame 204 { run(X, Y); } frame 205 { run(X, Y); } frame 206 { if (_root.live[2] and _global.T == 'P2') { _root.playerSpeech(39); } } frame 206 { run(X, Y); } frame 207 { run(X, Y); } frame 208 { run(X, Y); } frame 209 { run(X, Y); } frame 210 { _root.swap2(); } frame 210 { run(X, Y); } frame 211 { run(X, Y); } frame 212 { run(X, Y); } frame 213 { run(X, Y); } frame 214 { run(X, Y); } frame 215 { run(X, Y); } frame 216 { run(X, Y); } frame 217 { run(X, Y); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 222 { run(X, Y); } frame 223 { k(); _root.t2(); } frame 224 { _root.t1(); } frame 227 { getXY(); } frame 228 { run(X, Y); } frame 229 { run(X, Y); } frame 230 { run(X, Y); } frame 231 { run(X, Y); } frame 232 { run(X, Y); } frame 233 { run(X, Y); } frame 234 { _root.swap2(); } frame 234 { run(X, Y); } frame 235 { run(X, Y); } frame 236 { run(X, Y); } frame 237 { run(X, Y); } frame 238 { run(X, Y); } frame 239 { run(X, Y); } frame 240 { X = -X / 2; Y = -Y / 2; } frame 247 { _root.getAcc('foe', 1); _global.damage = 2500 * atk * atk2; if (monster == 'red') { _global.element = [4, 0.5]; _global.effect = ['poison', 0.4, 1]; } else { _global.element = [1, 0.5]; _global.effect = ['stun', 0.2, 1]; } _global.atype = 'p'; _root.hurt(); } frame 250 { run(X, Y); } frame 251 { run(X, Y); } frame 252 { run(X, Y); } frame 253 { run(X, Y); } frame 254 { run(X, Y); } frame 255 { run(X, Y); } frame 256 { run(X, Y); } frame 257 { run(X, Y); } frame 258 { run(X, Y); } frame 259 { _root.swap2(); } frame 259 { run(X, Y); } frame 260 { run(X, Y); } frame 261 { run(X, Y); } frame 262 { run(X, Y); } frame 263 { run(X, Y); } frame 264 { run(X, Y); } frame 265 { run(X, Y); } frame 266 { run(X, Y); } frame 267 { run(X, Y); } frame 268 { run(X, Y); } frame 269 { run(X, Y); } frame 270 { run(X, Y); } frame 271 { run(X, Y); } frame 272 { run(X, Y); } frame 273 { run(X, Y); } frame 274 { k(); _root.t2(); } frame 296 { _root.t2(); k(); } } frame 67 { stop(); } frame 68 { } frame 70 { stage = 10; } frame 70 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 530, 210, 580, 250, 620, 300]; T1.multi = 1; T1.ID = 1; T1.monster = 'red'; T2.multi = 1; T2.ID = 2; T2.monster = 'blue'; T3.multi = 1; T3.ID = 3; T3.monster = 'red'; } frame 71 { stop(); } frame 74 { stage = 11; } frame 74 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 500, 200, 500, 260, 540, 305]; T1.multi = 1; T1.ID = 1; T1.monster = 'red'; T2.multi = 1; T2.ID = 2; T2.monster = 'ice'; T3.multi = 1; T3.ID = 3; T3.monster = 'blue'; } movieClip 2725 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2729 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2733 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2737 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2741 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2745 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2747 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2762 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2763 { frame 1 { _visible = false; } frame 2 { _visible = true; } frame 3 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } } frame 4 { poison = 0; blind = 0; seal = 0; stun = 0; if (monster == 'ice') { elements = [1.5, 0.5, 0.5, 1.5, 1, 0.5, 0.5, 1, 1, 1.5, 1]; } else { elements = [0.5, 0.5, 0.5, 1.5, 1, 1.5, 1.5, 1, 1, 1, 1]; } } frame 5 { HP = 62000 * multi * _root.EZmode; atk = 0.8 * _root.dif * multi; def = 1.1; matk = 1 * _root.dif * multi; mdef = 1.1; HPmax = HP; } frame 6 { function moveset() { if (seal) { b = random(3); } else { b = random(4); } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack2'); } if (b == 2) { gotoAndPlay('special2'); } if (b == 3) { gotoAndPlay('special'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy * 1.3 + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'poison') { poison += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { if (atk2 > 1) { atk2 = 1; } if (matk2 > 1) { matk2 = 1; } if (def2 > 1) { def2 = 1; } if (mdef2 > 1) { mdef2 = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (shield > 2) { def /= 2; mdef /= 2; } if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 10000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 7 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 220 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 40 { stop(); q = 0; idle.monster = monster; } frame 66 { k(); _root.t2(); } frame 91 { k(); _root.t2(); } frame 92 { _root.live[2 + ID] = 0; } frame 99 { if (_global.user == 'P1') { _root.playerSpeech(43); } } frame 140 { stop(); _root.t2(); } frame 141 { _root.t1(); } frame 145 { getXY(); } frame 146 { run(X, Y); } frame 147 { run(X, Y); } frame 148 { run(X, Y); } frame 149 { run(X, Y); } frame 150 { run(X, Y); } frame 151 { _root.swap2(); } frame 151 { run(X, Y); } frame 152 { run(X, Y); } frame 153 { run(X, Y); } frame 154 { run(X, Y); } frame 155 { run(X, Y); } frame 156 { run(X, Y); } frame 157 { run(X, Y); } frame 158 { X = -X / 2; Y = -Y / 2; } frame 160 { _root.getAcc('foe', 1); _global.damage = 3300 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 174 { run(X, Y); } frame 175 { run(X, Y); } frame 176 { run(X, Y); } frame 177 { run(X, Y); } frame 178 { run(X, Y); } frame 179 { run(X, Y); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 183 { run(X, Y); } frame 184 { _root.swap2(); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { run(X, Y); } frame 188 { run(X, Y); } frame 189 { run(X, Y); } frame 190 { run(X, Y); } frame 191 { run(X, Y); } frame 192 { run(X, Y); } frame 193 { run(X, Y); } frame 194 { run(X, Y); } frame 195 { run(X, Y); } frame 196 { run(X, Y); } frame 197 { run(X, Y); } frame 198 { k(); _root.t2(); } frame 199 { _root.t1(); } frame 220 { shake('small'); } frame 221 { _root.getAcc('foe', 1.5); _global.T = 'Pall'; _global.damage = 800 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 237 { shake('small'); } frame 238 { _root.hurt(); } frame 243 { k(); _root.t2(); } frame 244 { if (monster == 'fire') { gotoAndPlay('special3'); } _root.t1(); } frame 276 { _root.getAcc('foe', 0.9); _global.damage = 350 * matk * matk2; _global.effect = ['freeze', 0.02, 3]; _global.atype = 'm'; _root.hurt(); } frame 280 { _root.hurt(); } frame 284 { _root.hurt(); } frame 289 { _root.hurt(); } frame 293 { _root.hurt(); } frame 297 { _root.hurt(); } frame 301 { if (_root.dif == 1.4) { _global.effect = ['freeze', 0.8, 4]; } else { _global.effect = ['freeze', 0.5, 4]; } _root.hurt(); } frame 311 { k(); _root.t2(); } frame 312 { _root.t1(); } frame 322 { if (monster == 'ice') { def2 += 0.7; mdef2 += 0.7; } else { def2 += 0.3; mdef2 += 0.3; atk2 += 0.3; matk2 += 0.3; } if (def2 > 2) { def2 = 2; } if (mdef2 > 2) { mdef2 = 2; } if (atk2 > 2) { atk2 = 2; } if (matk2 > 2) { matk2 = 2; } } frame 322 { shake('small'); } frame 323 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.damage = 500 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 346 { if (_root.live[1]) { _root.playerSpeech(40); } } frame 349 { k(); _root.t2(); } frame 364 { _root.getAcc('foe', 0.9); _global.T = 'Pall'; _global.element = [0, 1]; _global.damage = 600 * matk * matk2; _global.atype = 'm'; } frame 378 { _root.hurt(); } frame 386 { _root.hurt(); } frame 393 { _root.hurt(); } frame 403 { _global.effect = ['mdefDown', 0.3, 0.2]; _root.hurt(); } frame 417 { k(); _root.t2(); } frame 438 { k(); _root.t2(); } } frame 75 { stop(); } frame 78 { stage = 12; } frame 78 { live[3] = 1; live[4] = 1; coords = [180, 230, 60, 272, 430, 210, 520, 290, 540, 305]; T1.multi = 1; T1.ID = 1; T1.monster = 'ice'; T2.multi = 1; T2.ID = 2; T2.monster = 'fire'; } frame 79 { stop(); } frame 81 { stop(); } frame 82 { stage = 13; } frame 82 { function itemGet() { b = random(3); if (b == 1) { _global.Text = 19; maintext.gotoAndPlay(1); } if (b == 2) { _global.Text = 26; maintext.gotoAndPlay(1); } if (b == 3) { _global.Text = 28; maintext.gotoAndPlay(1); } } live[3] = 1; live[4] = 1; coords = [180, 230, 60, 272, 450, 220, 530, 285, 540, 305]; T1.multi = 1; T1.ID = 1; T2.multi = 1; T2.ID = 2; } frame 82 { stopAllSounds(); } movieClip 2766 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2767 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2768 { frame 1 { _visible = false; } frame 2 { if (random(2)) { monster = 'iceball'; } else { monster = 'fireball'; } poison = 0; blind = 0; seal = 0; stun = 0; if (monster == 'iceball') { elements = [1.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 1.5, 1, 1.5, 1]; } else { elements = [0.5, 0.5, 0.5, 0.5, 0.5, 1.5, 1.5, 1, 1.5, 1, 1]; } } frame 2 { _visible = true; } frame 3 { HP = 33000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; matk = 1 * _root.dif * multi; if (monster == 'iceball') { def = 1; mdef = 1.2; } else { def = 1.2; mdef = 1; } HPmax = HP; } frame 4 { function moveset() { _root.ranplay(); gotoAndPlay('attack'); } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy * 0.8 + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 3500) { gotoAndPlay('hit'); } else { gotoAndPlay('hit'); } } } damageNo(); trace(_global.damage); trace(damage); trace(def); trace(mdef); trace(monster); } } frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 100 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; matk2 = 1; mdef2 = 1; def2 = 1; b = ID; q = 0; } frame 21 { idle.monster = monster; stop(); q = 0; } frame 40 { k(); _root.t2(); } frame 59 { k(); _root.t2(); } frame 60 { _root.live[2 + ID] = 0; } frame 73 { _root.shake('small'); } frame 91 { stop(); _root.t2(); } frame 92 { getXY(); _root.t1(); if (monster == 'fireball') { gotoAndPlay('special'); } } frame 93 { run(X, Y); } frame 94 { run(X, Y); } frame 95 { run(X, Y); } frame 96 { run(X, Y); } frame 97 { run(X, Y); } frame 98 { run(X, Y); } frame 99 { _root.swap2(); } frame 99 { run(X, Y); } frame 100 { run(X, Y); } frame 101 { run(X, Y); } frame 102 { run(X, Y); } frame 103 { run(X, Y); } frame 104 { run(X, Y); } frame 105 { X = -X / 2; Y = -Y / 2; } frame 106 { _root.getAcc('foe', 1); _global.element = [6, 0.5]; _global.damage = 2000 * atk * atk2; _global.effect = ['freeze', 0.1, 3]; if (_root.dif == 1.4) { _global.effect = ['freeze', 0.6, 3]; } _global.atype = 'p'; _root.hurt(); } frame 114 { run(X, Y); } frame 115 { run(X, Y); } frame 116 { run(X, Y); } frame 117 { run(X, Y); } frame 118 { run(X, Y); } frame 119 { run(X, Y); } frame 120 { run(X, Y); } frame 121 { run(X, Y); } frame 122 { run(X, Y); } frame 123 { run(X, Y); } frame 124 { run(X, Y); } frame 125 { _root.swap2(); } frame 125 { run(X, Y); } frame 126 { run(X, Y); } frame 127 { run(X, Y); } frame 128 { run(X, Y); } frame 129 { run(X, Y); } frame 130 { run(X, Y); } frame 131 { run(X, Y); } frame 132 { run(X, Y); } frame 133 { run(X, Y); } frame 134 { run(X, Y); } frame 135 { run(X, Y); } frame 136 { run(X, Y); } frame 137 { run(X, Y); } frame 138 { k(); _root.t2(); } frame 144 { _root.live[2 + ID] = 0; HP = 0; } frame 150 { _root.shake('big'); } frame 151 { _root.getAcc('foe', 1); _global.T = 'Pall'; _global.element = [9, 1]; _global.damage = 4000 * matk * matk2; if (_root.dif == 1.4) { _global.damage = 6000 * matk * matk2; } _global.atype = 'm'; _root.hurt(); } frame 179 { stop(); _root.t2(); } } movieClip 2770 { } movieClip 2772 { } movieClip 2774 { } movieClip 2776 { } movieClip 2778 { } movieClip 2782 { frame 1 { gotoAndStop(_parent.monster); } } movieClip 2784 { } movieClip 2786 { } movieClip 2788 { } movieClip 2791 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2797 { } movieClip 2799 { } movieClip 2801 { frame 1 { EC = 0; } frame 1 { _visible = false; } frame 2 { function getWeakness() { if (monster == 'icegolem') { elements = [1.5, 0.5, 0.5, 1.5, 0.5, 0.5, 0.5, 1.5, 1, 1.5, 1]; } else { elements = [0.5, 0.5, 0.5, 1, 1, 1.5, 1.5, 1, 1.5, 1.5, 1]; } if (monster == 'icegolem') { def = 1; mdef = 1.2; } else { def = 1.2; mdef = 1; } } if (random(2)) { monster = 'icegolem'; } else { monster = 'firegolem'; } poison = 0; blind = 0; seal = 0; stun = 0; getWeakness(); } frame 2 { _visible = true; } frame 3 { HP = 250000 * multi * _root.EZmode; atk = 0.9 * _root.dif * multi; matk = 1 * _root.dif * multi; HPmax = HP; } frame 4 { function moveset() { _root.ranplay(); b = random(2); if (EC > 1 and !seal) { b = 2; } else { ++EC; } if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack2'); } if (b == 2) { gotoAndPlay('magic'); EC = 0; } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy * 1.2 + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 3) { inflict = true; } if (inflict) { if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (shield > 2) { def /= 2; mdef /= 2; } if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 3500) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.8) { def2 = 0.8; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.8) { mdef2 = 0.8; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.8) { atk2 = 0.8; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.8) { matk2 = 0.8; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 150 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 100 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 67 { stop(); q = 0; idle.monster = monster; } frame 92 { k(); _root.t2(); } frame 119 { k(); _root.t2(); } frame 120 { _root.live[2 + ID] = 0; } frame 134 { if (_root.live[1]) { _root.playerSpeech(99); } } frame 134 { _root.shake('small'); } frame 177 { stop(); _root.t2(); } frame 178 { _root.t1(); } frame 182 { getXY(); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { run(X, Y); } frame 188 { _root.swap2(); } frame 188 { run(X, Y); } frame 189 { run(X, Y); } frame 190 { run(X, Y); } frame 191 { run(X, Y); } frame 192 { run(X, Y); } frame 193 { run(X, Y); } frame 194 { run(X, Y); } frame 195 { X = -X / 2; Y = -Y / 2; } frame 199 { _root.getAcc('foe', 1); _global.element = [0, 0.5]; _global.damage = 5500 * atk * atk2; if (_root.dif == 1.4) { _global.effect = ['mdefDown', 1, 0.3]; } else { _global.effect = ['mdefDown', 0.2, 0.2]; } _global.atype = 'p'; _root.hurt(); } frame 201 { _root.shake('small'); } frame 202 { run(X, Y); } frame 203 { run(X, Y); } frame 204 { run(X, Y); } frame 205 { run(X, Y); } frame 206 { run(X, Y); } frame 207 { run(X, Y); } frame 208 { run(X, Y); } frame 209 { run(X, Y); } frame 210 { run(X, Y); } frame 211 { _root.swap2(); } frame 211 { run(X, Y); } frame 212 { run(X, Y); } frame 213 { run(X, Y); } frame 214 { run(X, Y); } frame 215 { run(X, Y); } frame 216 { run(X, Y); } frame 217 { run(X, Y); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 222 { run(X, Y); } frame 223 { run(X, Y); } frame 224 { run(X, Y); } frame 225 { run(X, Y); } frame 226 { k(); _root.t2(); } frame 227 { _root.t1(); } frame 231 { getXY(); } frame 232 { run(X, Y); } frame 233 { run(X, Y); } frame 234 { run(X, Y); } frame 235 { run(X, Y); } frame 236 { _root.swap2(); } frame 236 { run(X, Y); } frame 237 { run(X, Y); } frame 238 { run(X, Y); } frame 239 { run(X, Y); } frame 240 { run(X, Y); } frame 241 { run(X, Y); } frame 242 { run(X, Y); } frame 243 { run(X, Y); } frame 244 { X = -X / 2; Y = -Y / 2; } frame 249 { _root.getAcc('foe', 1); _global.element = [6, 0.5]; _global.damage = 4900 * atk * atk2; if (_root.dif == 1.4) { _global.effect = ['defDown', 1, 0.3]; } else { _global.effect = ['defDown', 0.3, 0.2]; } _global.atype = 'p'; _root.hurt(); } frame 249 { _root.shake('big'); } frame 258 { _root.shake('small'); } frame 259 { run(X, Y); } frame 260 { run(X, Y); } frame 261 { run(X, Y); } frame 262 { run(X, Y); } frame 263 { run(X, Y); } frame 264 { run(X, Y); } frame 265 { run(X, Y); } frame 266 { run(X, Y); } frame 267 { run(X, Y); } frame 268 { run(X, Y); } frame 269 { run(X, Y); } frame 270 { run(X, Y); } frame 271 { _root.swap2(); } frame 271 { run(X, Y); } frame 272 { run(X, Y); } frame 273 { run(X, Y); } frame 274 { run(X, Y); } frame 275 { run(X, Y); } frame 276 { run(X, Y); } frame 277 { run(X, Y); } frame 278 { run(X, Y); } frame 279 { run(X, Y); } frame 280 { run(X, Y); } frame 281 { run(X, Y); } frame 282 { run(X, Y); } frame 283 { k(); _root.t2(); } frame 284 { _root.t1(); } frame 302 { if (monster == 'icegolem') { monster = 'firegolem'; } else { monster = 'icegolem'; } getWeakness(); } frame 310 { if (monster == 'icegolem') { _root.getAcc('foe', 1.5); _global.damage = 5000 * matk * matk2; _global.element = [6, 1]; _global.effect = ['freeze', 1, 3]; _global.atype = 'm'; _root.spells.gotoAndPlay('snow'); } else { _root.getAcc('foe', 1.4); _global.T = 'Pall'; _global.damage = 800 * matk * matk2; _global.element = [0, 1]; _global.atype = 'm'; _root.spells.gotoAndPlay('firerain'); } } frame 315 { if (_root.live[1]) { _root.playerSpeech(41); } } frame 320 { if (!_root.live[3]) { _root.live[3] = 1; _root.T1.gotoAndPlay('intro'); } } frame 324 { k(); } frame 344 { k(); _root.t2(); } } frame 83 { playerSpeech(42); } frame 83 { stop(); } frame 84 { _root.getMedal(3); } frame 85 { stop(); } frame 86 { stage = 14; } frame 86 { function itemGet() { b = random(7); if (b == 2) { _global.Text = 16; maintext.gotoAndPlay(1); } if (b == 2) { _global.Text = 16; maintext.gotoAndPlay(1); } if (b == 3) { _global.Text = 17; maintext.gotoAndPlay(1); } } live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 490, 210, 510, 270, 600, 300]; T1.multi = 1.5; T1.ID = 1; T1.monster = 'bee'; T2.multi = 1.1; T2.ID = 2; T2.monster = 'fire'; T3.multi = 1.5; T3.ID = 3; T3.monster = 'moth'; } frame 86 { stopAllSounds(); } frame 87 { stop(); } frame 90 { stage = 15; } frame 90 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 450, 210, 530, 260, 570, 315]; T1.multi = 1.2; T1.ID = 1; T1.monster = 'fire'; T2.multi = 1; T2.ID = 2; T3.multi = 1.6; T3.ID = 3; } movieClip 2808 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2809 { frame 1 { _visible = false; } frame 2 { _visible = true; } frame 3 { action = 'nil'; } frame 4 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } } frame 5 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [0.7, 0.5, 0.5, 0.7, 1.1, 1.5, 1.5, 1, 1, 1, 1]; } frame 6 { HP = 75000 * multi * _root.EZmode; atk = 0.8 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 7 { function moveset() { b = random(3); _root.ranplay(); if (b == 0) { action = 'attack'; } if (b == 1) { action = 'attack2'; } if (b == 2) { action = 'attack3'; } gotoAndPlay('hide'); } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy * 0.9300000000000001 + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'poison') { poison += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (shield > 2) { def /= 2; mdef /= 2; } if (HP <= 0) { HP = 0; action = 'nil'; gotoAndPlay('hide'); } else { if (damage > 8000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 8 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()); Y = -(_root.coords[ID * 2 + 3] - _root.Y()); } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + 50 + random(50); (eval('_root.bob' + ID + b))._y = _y + 200 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; monster = 'tail'; b = ID; q = 0; } frame 37 { if (action != 'nil') { _root.t2(); action = 'nil'; } } frame 39 { q = 0; stop(); } frame 63 { k(); _root.t2(); } frame 82 { k(); _root.t2(); } frame 113 { k(); _root.t2(); } frame 114 { if (action != 'nil') { _root.t1(); } else { _root.live[2 + ID] = 0; } } frame 155 { stop(); if (action != 'nil') { gotoAndPlay(action); } else { _root.t2(); } } frame 156 { _root.shake('small'); getXY(); run(X, Y); _root.swap2(); } frame 158 { _root.getAcc('foe', 1); _global.damage = 1800 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 170 { shake('small'); } frame 171 { _root.hurt(); } frame 176 { X = -X; Y = -Y; } frame 191 { gotoAndPlay('intro'); _root.swap2(); run(X, Y); } frame 193 { getXY(); run(X, Y); _root.swap2(); } frame 207 { _root.getAcc('foe', 1); _global.effect = ['stun', 0.3, 2]; _global.damage = 3200 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 222 { X = -X; Y = -Y; } frame 237 { gotoAndPlay('intro'); run(X, Y); _root.swap2(); } frame 238 { getXY(); run(X, Y); } frame 244 { _root.getAcc('foe', 1); _global.damage = 800 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 251 { _root.hurt(); } frame 259 { _root.hurt(); } frame 267 { _root.hurt(); } frame 275 { _root.hurt(); } frame 284 { _root.hurt(); } frame 294 { _root.hurt(); } frame 299 { X = -X; Y = -Y; } frame 310 { gotoAndPlay('intro'); run(X, Y); } } frame 91 { playerSpeech(44); } frame 91 { stop(); } frame 93 { stop(); } frame 94 { stage = 16; } frame 94 { function itemGet() { b = random(2); if (b == 0) { _global.Text = 18; maintext.gotoAndPlay(1); } if (b == 1) { _global.Text = 21; maintext.gotoAndPlay(1); } } live[3] = 1; live[4] = 1; coords = [180, 230, 60, 272, 490, 230, 470, 344, 570, 315]; T1.multi = 1; T1.ID = 1; T2.multi = 1.1; T2.ID = 2; } frame 94 { stopAllSounds(); } movieClip 2812 { } movieClip 2815 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2825 { frame 1 { _visible = false; } frame 2 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } } frame 2 { _visible = true; } frame 3 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [0.7, 0.5, 0.5, 0.7, 1.1, 1.5, 1.5, 1, 1, 1, 1]; } frame 4 { HP = 320000 * multi * _root.EZmode; atk = 1.2 * _root.dif * multi; def = 1; matk = 1.2 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 5 { function moveset() { _root.ranplay(); if (HP < HPmax / 3) { b = random(3) + 4; } else { if (HP < HPmax / 1.5) { b = random(4) + 1; } else { b = random(4); } } if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack2'); } if (b == 2) { gotoAndPlay('special'); } if (b == 3) { gotoAndPlay('special2'); } if (b == 4) { gotoAndPlay('special3'); } if (b == 5) { gotoAndPlay('special4'); } if (b == 6) { gotoAndPlay('special3'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; trace(_global.accuracy); if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 3) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { if (!random(3)) { stun += _global.effect[2]; } } if (_global.effect[0] == 'poison') { poison += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (shield > 2) { def /= 2; mdef /= 2; } if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 20000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 6 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.8) { def2 = 0.8; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.8) { mdef2 = 0.8; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.8) { atk2 = 0.8; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.8) { matk2 = 0.8; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 100 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; monster = 'sandworm'; b = ID; q = 0; } frame 7 { _root.shake('big'); } frame 25 { stop(); } frame 46 { k(); _root.t2(); } frame 74 { k(); _root.t2(); } frame 75 { _root.live[2 + ID] = 0; shake('small'); } frame 90 { shake('small'); } frame 95 { if (_root.live[1]) { _root.playerSpeech(49); } } frame 182 { stop(); _root.t2(); } frame 183 { _root.t1(); } frame 190 { getXY(); } frame 191 { run(X, Y); } frame 192 { run(X, Y); } frame 193 { run(X, Y); } frame 194 { run(X, Y); } frame 195 { run(X, Y); } frame 196 { _root.swap2(); } frame 196 { run(X, Y); } frame 197 { run(X, Y); } frame 198 { run(X, Y); } frame 199 { run(X, Y); } frame 200 { run(X, Y); } frame 201 { run(X, Y); } frame 202 { run(X, Y); } frame 203 { X = -X / 2; Y = -Y / 2; } frame 206 { _root.getAcc('foe', 1); _global.damage = 3800 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 217 { run(X, Y); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 222 { run(X, Y); } frame 223 { run(X, Y); } frame 224 { run(X, Y); } frame 225 { run(X, Y); } frame 226 { run(X, Y); } frame 227 { run(X, Y); } frame 228 { _root.swap2(); } frame 228 { run(X, Y); } frame 229 { run(X, Y); } frame 230 { run(X, Y); } frame 231 { run(X, Y); } frame 232 { run(X, Y); } frame 233 { run(X, Y); } frame 234 { run(X, Y); } frame 235 { run(X, Y); } frame 236 { run(X, Y); } frame 237 { run(X, Y); } frame 238 { run(X, Y); } frame 239 { run(X, Y); } frame 240 { run(X, Y); } frame 248 { k(); _root.t2(); } frame 249 { _root.t1(); } frame 256 { getXY(); } frame 257 { run(X, Y); } frame 258 { run(X, Y); } frame 259 { run(X, Y); } frame 260 { run(X, Y); } frame 261 { run(X, Y); } frame 262 { _root.swap2(); } frame 262 { run(X, Y); } frame 263 { run(X, Y); } frame 264 { run(X, Y); } frame 265 { run(X, Y); } frame 266 { run(X, Y); } frame 267 { run(X, Y); } frame 268 { run(X, Y); } frame 269 { X = -X / 2; Y = -Y / 2; } frame 275 { if (_global.T == 'P1') { _root.P1._visible = false; } else { _root.P2._visible = false; } } frame 275 { shake('small'); } frame 303 { _root.getAcc('foe', 1); _global.damage = 5000 * atk * atk2; _global.effect = ['defDown', 1.5, 0.3]; _global.atype = 'p'; _root.hurt(); } frame 303 { if (_global.T == 'P1') { _root.P1._visible = true; } else { _root.P2._visible = true; } } frame 307 { run(X, Y); } frame 308 { run(X, Y); } frame 309 { run(X, Y); } frame 310 { run(X, Y); } frame 311 { run(X, Y); } frame 312 { run(X, Y); } frame 313 { run(X, Y); } frame 314 { run(X, Y); } frame 315 { run(X, Y); } frame 316 { run(X, Y); } frame 317 { _root.swap2(); } frame 317 { run(X, Y); } frame 318 { run(X, Y); } frame 319 { run(X, Y); } frame 320 { run(X, Y); } frame 321 { run(X, Y); } frame 322 { run(X, Y); } frame 323 { run(X, Y); } frame 324 { run(X, Y); } frame 325 { run(X, Y); } frame 326 { run(X, Y); } frame 327 { run(X, Y); } frame 328 { run(X, Y); } frame 329 { run(X, Y); } frame 330 { run(X, Y); } frame 339 { k(); _root.t2(); } frame 340 { _root.t1(); } frame 353 { shake('small'); } frame 370 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.damage = 3000 * matk * matk2; _global.element = [2, 1]; _global.effect = ['matkDown', 1, 0.3]; _global.atype = 'm'; _root.hurt(); } frame 375 { k(); _root.t2(); } frame 376 { _root.t1(); } frame 389 { shake('small'); } frame 409 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.damage = 2000 * matk * matk2; _global.element = [3, 1]; _global.effect = ['blind', 0.5, 3]; _global.atype = 'm'; _root.hurt(); } frame 426 { k(); _root.t2(); } frame 427 { _root.t1(); } frame 433 { if (random(2) or _root.dif == 1.4) { if (!_root.live[4]) { _root.T2.gotoAndPlay('intro2'); _root.T2.HP = _root.T2.HPmax; _root.T2.action = 'nil'; _root.live[4] = 1; } } } frame 440 { shake('small'); } frame 457 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.damage = 3800 * matk * matk2; _global.element = [4, 1]; if (_root.dif == 1.4) { _global.effect = ['poison', 1, 5]; } else { _global.effect = ['poison', 0.6, 2]; } _global.atype = 'm'; _root.hurt(); } frame 484 { k(); _root.t2(); } frame 485 { if (_root.dif < 1.2) { gotoAndPlay('attack2'); } else { _root.t1(); } } frame 498 { shake('small'); } frame 507 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.damage = 1000 * matk * matk2; _global.element = [4, 1]; _global.effect = ['atkDown', 0.6, 0.3]; _global.atype = 'm'; _root.hurt(); } frame 511 { _global.effect = ['matkDown', 0.6, 0.3]; _root.hurt(); } frame 515 { _global.effect = ['defDown', 0.6, 0.3]; _root.hurt(); } frame 519 { _global.effect = ['mdefDown', 0.6, 0.3]; _root.hurt(); } frame 542 { k(); _root.t2(); } frame 564 { k(); _root.t2(); } } frame 95 { playerSpeech(45); } frame 95 { stop(); } frame 96 { _root.getMedal(4); } frame 97 { stop(); } frame 98 { checkPoint = 2; } frame 98 { stop(); } frame 99 { stopAllSounds(); } frame 100 { _global.money = 4500; } frame 100 { defaultBuffs(); } frame 100 { _global.P1HP = 9999; _global.P1MP = 999; _global.P2HP = 9999; _global.P2MP = 999; } frame 100 { stop(); cuts.gotoAndPlay('cuts3'); } frame 101 { if (dif == 0.8) { EZmode = 0.8; } else { EZmode = 1; } trace('dif: ' + dif); } frame 101 { MGT = 2; gotoAndStop('instructions2'); } frame 102 { stop(); } frame 103 { stage = 17; _global.ionEnable = true; } frame 103 { function itemGet() { b = random(4); if (b == 0) { _global.Text = 28; maintext.gotoAndPlay(1); } if (b == 1) { _global.Text = 24; maintext.gotoAndPlay(1); } } live = new Array(); live[1] = 1; live[2] = 1; live[3] = 1; live[4] = 1; live[5] = 0; coords = [180, 230, 60, 272, 500, 220, 600, 270, 600, 300]; T1.multi = 1; T1.ID = 1; T2.multi = 1.1; T2.ID = 2; } frame 103 { hideButtons(); } frame 103 { stopAllSounds(); } movieClip 2843 { } movieClip 2847 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.autolife > 0) { life._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2854 { frame 1 { _visible = false; } frame 2 { function shake(xx) { _root.shake.gotoAndPlay(xx); } } frame 2 { _visible = true; } frame 3 { poison = 0; blind = 0; seal = 0; stun = 0; autolife = 1; elements = [1.3, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 1.6, 0.5, 1, 1]; } frame 4 { HP = 50000 * multi * _root.EZmode; atk = 0.7 * _root.dif * multi; def = 1; matk = 0.8 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 5 { function moveset() { if (seal) { b = 0; } else { b = random(3); } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('special'); } if (b == 2) { gotoAndPlay('magic'); } if (_root.dif == 1.4 and !random(5)) { autolife = 1; } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1]) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'poison') { poison += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { autolife = 0; if (atk > 1) { atk = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (shield > 2) { def /= 2; mdef /= 2; } if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 3500) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 6 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 220 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 7 { monster = 'spirit'; } frame 27 { stop(); } frame 47 { k(); _root.t2(); } frame 67 { k(); _root.t2(); } frame 68 { _root.live[2 + ID] = 0; } frame 117 { if (!autolife) { stop(); _root.t2(); } } frame 119 { autolife = 0; } frame 120 { _root.live[2 + ID] = 1; HP = HPmax; } frame 128 { if (_root.live[1]) { _root.playerSpeech(50); } } frame 137 { k(); _root.t2(); } frame 138 { _root.t1(); } frame 154 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.element = [8, 1]; _global.effect = ['seal', 0.7, 3]; _global.damage = 2200 * matk * matk2; _global.atype = 'p'; _root.spells.gotoAndPlay('shine'); } frame 163 { k(); } frame 164 { _root.t1(); } frame 195 { _root.getAcc('foe', 1); _global.T = 'Pall'; _global.element = [8, 1]; _global.effect = ['atkDown', 0.5, 0.2]; _global.damage = 2300 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 198 { if (atk <= 1.2) { atk += 0.2; } } frame 210 { k(); _root.t2(); } frame 211 { _root.t1(); } frame 212 { getXY(); } frame 213 { run(X, Y); } frame 214 { run(X, Y); } frame 215 { run(X, Y); } frame 216 { run(X, Y); } frame 217 { _root.swaps2(); } frame 217 { run(X, Y); } frame 218 { run(X, Y); } frame 219 { run(X, Y); } frame 220 { run(X, Y); } frame 221 { run(X, Y); } frame 222 { run(X, Y); } frame 223 { run(X, Y); } frame 224 { run(X, Y); } frame 225 { X = -X / 2; Y = -Y / 2; } frame 229 { _root.getAcc('foe', 1); _global.element = [8, 0.5]; _global.damage = 1200 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 233 { _root.getAcc('foe', 1); _global.element = [8, 0.5]; _global.damage = 1300 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 237 { _root.getAcc('foe', 1); _global.element = [8, 0.5]; _global.damage = 1400 * atk * atk2; _global.effect = ['matkDown', 0.5, 0.2]; _global.atype = 'p'; _root.hurt(); } frame 240 { run(X, Y); } frame 241 { run(X, Y); } frame 242 { run(X, Y); } frame 243 { run(X, Y); } frame 244 { run(X, Y); } frame 245 { run(X, Y); } frame 246 { run(X, Y); } frame 247 { run(X, Y); } frame 248 { run(X, Y); } frame 249 { run(X, Y); } frame 250 { run(X, Y); } frame 251 { _root.swaps2(); } frame 251 { run(X, Y); } frame 252 { run(X, Y); } frame 253 { run(X, Y); } frame 254 { run(X, Y); } frame 255 { run(X, Y); } frame 256 { run(X, Y); } frame 257 { run(X, Y); } frame 258 { run(X, Y); } frame 259 { run(X, Y); } frame 260 { run(X, Y); } frame 261 { run(X, Y); } frame 262 { run(X, Y); } frame 263 { run(X, Y); } frame 268 { k(); _root.t2(); } frame 288 { k(); _root.t2(); } } frame 104 { stop(); } frame 107 { stage = 18; } frame 107 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 460, 205, 560, 245, 625, 290]; T1.multi = 1.1; T1.ID = 1; T2.multi = 1.7; T2.ID = 2; T2.monster = 'moth'; T3.multi = 1.1; T3.ID = 3; } frame 108 { stop(); } frame 110 { stop(); } frame 111 { stage = 19; } frame 111 { function itemGet() { b = random(2); if (b == 0) { _global.Text = 21; maintext.gotoAndPlay(1); } if (b == 1) { _global.Text = 18; maintext.gotoAndPlay(1); } } live[3] = 1; live[4] = 1; coords = [180, 230, 60, 272, 480, 255, 430, 305, 625, 290]; T1.multi = 1; T1.ID = 1; T2.multi = 1; T2.ID = 2; } frame 111 { stopAllSounds(); } movieClip 2856 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.autolife > 0) { life._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2860 { } movieClip 2862 { frame 1 { _visible = false; } frame 2 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } } frame 2 { _visible = true; } frame 3 { poison = 0; blind = 0; seal = 0; stun = 0; autolife = 1; elements = [1.7, 1, 1, 1, 0.5, 1, 1, 0.5, 1.6, 1, 1]; } frame 4 { HP = 200000 * multi * _root.EZmode; atk = 0.8 * _root.dif * multi; def = 1; matk = 0.9 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 5 { function moveset() { if (seal) { b = random(3); } else { b = random(8); } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack2'); } if (b == 2) { gotoAndPlay('attack3'); } if (b == 3) { gotoAndPlay('magic'); magic = 'darkflare'; } if (b == 4) { gotoAndPlay('magic'); magic = 'death'; } if (b == 5) { gotoAndPlay('magic'); magic = 'haunt'; } if (b == 6) { gotoAndPlay('magic'); magic = 'thedead'; } if (b == 7) { gotoAndPlay('magic'); magic = 'revive'; } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 3) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { autolife = 0; if (atk > 1) { atk = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (shield > 2) { def /= 2; mdef /= 2; } if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 22000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 6 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.8) { def2 = 0.8; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.8) { mdef2 = 0.8; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.8) { atk2 = 0.8; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.8) { matk2 = 0.8; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 220 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 7 { monster = 'hydra'; } frame 38 { stop(); } frame 57 { k(); _root.t2(); } frame 81 { k(); _root.t2(); } frame 82 { _root.live[2 + ID] = 0; } frame 96 { shake('small'); } frame 119 { if (_root.live[3] or _root.live[4]) { stop(); _root.t2(); } else { _root.T1.gotoAndPlay('die2'); _root.T2.gotoAndPlay('die2'); } } frame 120 { gotoAndPlay('revive'); } frame 127 { _root.playerSpeech(57); } frame 161 { stop(); _root.t2(); } frame 162 { _root.live[2 + ID] = 1; HP = HPmax; mdef2 = 1; def2 = 1; matk2 = 1; atk2 = 1; stun = 0; poison = 0; blind = 0; seal = 0; } frame 246 { _root.playerSpeech(55); } frame 262 { k(); _root.t2(); } frame 263 { _root.t1(); } frame 270 { getXY(); } frame 271 { run(X, Y); } frame 272 { run(X, Y); } frame 273 { run(X, Y); } frame 274 { run(X, Y); } frame 275 { run(X, Y); } frame 276 { run(X, Y); } frame 277 { X = -X / 2; Y = -Y / 2; } frame 280 { _root.getAcc('foe', 1); _global.effect = ['defDown', 0.5, 0.2]; _global.damage = 4000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 282 { run(X, Y); } frame 283 { run(X, Y); } frame 284 { run(X, Y); } frame 285 { run(X, Y); } frame 285 { if (_root.live[1] and _global.T == 'P1') { _root.playerSpeech(100); } } frame 286 { run(X, Y); } frame 287 { run(X, Y); } frame 288 { run(X, Y); } frame 289 { run(X, Y); } frame 290 { run(X, Y); } frame 291 { run(X, Y); } frame 292 { run(X, Y); } frame 293 { run(X, Y); } frame 294 { k(); _root.t2(); } frame 295 { _root.t1(); } frame 302 { getXY(); } frame 303 { run(X, Y); } frame 304 { run(X, Y); } frame 305 { run(X, Y); } frame 306 { run(X, Y); } frame 307 { run(X, Y); } frame 308 { run(X, Y); } frame 309 { X = -X / 2; Y = -Y / 2; } frame 312 { _root.getAcc('foe', 1); _global.damage = 2000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 320 { _root.hurt(); } frame 320 { if (_root.dif == 1.4 and random(3)) { gotoAndPlay('loop'); } } frame 327 { _root.hurt(); } frame 328 { run(X, Y); } frame 329 { run(X, Y); } frame 330 { run(X, Y); } frame 331 { run(X, Y); } frame 332 { run(X, Y); } frame 333 { run(X, Y); } frame 334 { run(X, Y); } frame 335 { run(X, Y); } frame 336 { run(X, Y); } frame 337 { run(X, Y); } frame 338 { run(X, Y); } frame 339 { run(X, Y); } frame 340 { k(); _root.t2(); } frame 341 { _root.t1(); } frame 342 { _root.spells.gotoAndPlay('tail'); } frame 347 { _root.getAcc('foe', 0.6); _global.damage = 8000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 347 { shake('small'); } frame 365 { k(); _root.t2(); } frame 366 { _root.t1(); } frame 389 { if (magic == 'haunt' and _root.dif < 1.2) { magic = 'darkflare'; } if (magic == 'revive' and _root.live[3] and _root.live[4]) { magic = 'death'; } if (magic == 'death') { _root.getAcc('foe', 0.4); if (_root.dif == 1.4) { _root.getAcc('foe', 1.2); } _global.damage = 99999999; _global.atype = 'm'; } if (magic == 'darkflare') { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.element = [7, 1]; _global.effect = ['seal', 0.3, 3]; _global.damage = 3000 * matk * matk2; _global.atype = 'm'; } if (magic == 'thedead') { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.element = [4, 0.5]; _global.effect = ['poison', 0.5, 1]; _global.damage = 2600 * matk * matk2; _global.atype = 'm'; } if (magic == 'haunt') { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.element = [7, 1]; _global.damage = 800 * matk * matk2; _global.atype = 'm'; } if (magic == 'revive') { _root.T1.play(); _root.T2.play(); if (_root.dif == 1.4) { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.damage = 2500 * matk * matk2; _global.atype = 'm'; } } if (magic != 'revive') { _root.spells.gotoAndPlay(magic); } shake('small'); } frame 414 { k(); } frame 436 { k(); _root.t2(); } } frame 112 { playerSpeech(52); } frame 112 { stop(); } frame 113 { _root.getMedal(5); } frame 114 { stop(); } frame 115 { stage = 20; } frame 115 { function itemGet() { b = random(4); if (b == 0) { _global.Text = 17; maintext.gotoAndPlay(1); } if (b == 1) { _global.Text = 18; maintext.gotoAndPlay(1); } } live[3] = 1; live[4] = 1; coords = [180, 230, 60, 272, 470, 245, 540, 315, 625, 290]; T1.multi = 1; T1.ID = 1; T2.multi = 1; T2.ID = 2; } frame 115 { stopAllSounds(); } movieClip 2868 { } movieClip 2869 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.autolife > 0) { life._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2870 { } movieClip 2898 { } movieClip 2906 { frame 1 { _visible = false; } frame 2 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } } frame 2 { _visible = true; } frame 3 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [0.7, 1.7, 1.2, 0.3, 0.3, 1, 1.2, 0.5, 1, 1.5, 1]; } frame 4 { HP = 70000 * multi * _root.EZmode; atk = 0.9 * _root.dif * multi; def = 1.1; matk = 0.8 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 5 { function moveset() { if (seal) { b = 2; } else { b = random(4); } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('special'); } if (b == 2) { gotoAndPlay('special2'); } if (b == 3) { gotoAndPlay('special3'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy * 0.9 + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 2) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { autolife = 0; if (atk > 1) { atk = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 10000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 6 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 220 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 7 { monster = 'flybot'; } frame 32 { stop(); } frame 53 { k(); _root.t2(); } frame 84 { k(); _root.t2(); } frame 85 { _root.live[2 + ID] = 0; } frame 101 { if (_global.user == 'P1') { _root.playerSpeech(70); } } frame 137 { stop(); _root.t2(); } frame 138 { _root.t1(); } frame 141 { getXY(); } frame 142 { run(X, Y); } frame 143 { run(X, Y); } frame 144 { run(X, Y); } frame 145 { run(X, Y); } frame 146 { run(X, Y); } frame 147 { run(X, Y); } frame 148 { run(X, Y); } frame 149 { run(X, Y); } frame 150 { run(X, Y); } frame 151 { run(X, Y); } frame 152 { run(X, Y); } frame 153 { run(X, Y); } frame 154 { X = -X / 2; Y = -Y / 2; } frame 156 { _root.getAcc('foe', 1); _global.damage = 2700 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 160 { _root.hurt(); } frame 164 { _global.effect = ['defDown', 0.5, 0.2]; _root.hurt(); } frame 167 { run(X, Y); } frame 168 { run(X, Y); } frame 169 { run(X, Y); } frame 170 { if (_root.live[1] and _global.T == 'P2') { _root.playerSpeech(65); } } frame 170 { run(X, Y); } frame 171 { run(X, Y); } frame 172 { run(X, Y); } frame 173 { run(X, Y); } frame 174 { run(X, Y); } frame 175 { run(X, Y); } frame 176 { run(X, Y); } frame 177 { run(X, Y); } frame 178 { run(X, Y); } frame 179 { run(X, Y); } frame 180 { run(X, Y); } frame 181 { run(X, Y); } frame 182 { run(X, Y); } frame 183 { run(X, Y); } frame 184 { run(X, Y); } frame 185 { run(X, Y); } frame 186 { run(X, Y); } frame 187 { run(X, Y); } frame 188 { run(X, Y); } frame 189 { run(X, Y); } frame 190 { run(X, Y); } frame 191 { k(); _root.t2(); } frame 192 { _root.t1(); } frame 220 { _root.getAcc('foe', 1.2); _global.element = [9, 1]; _global.T = 'Pall'; _global.damage = 2900 * matk * matk2; _global.atype = 'm'; _root.hurt(); shake('small'); } frame 236 { k(); _root.t2(); } frame 256 { k(); _root.t2(); } frame 257 { _root.t1(); } frame 276 { _root.getAcc('foe', 1); _global.damage = 1000 * matk * matk2; 'mdefDown'; 0.6; _global.effect[0.25]; _global.atype = 'm'; _root.hurt(); } frame 280 { 'matkDown'; 0.6; _global.effect[0.25]; _root.hurt(); } frame 291 { k(); _root.t2(); } frame 292 { _root.t1(); } frame 316 { _root.getAcc('foe', 0.8); _global.T = 'Pall'; _global.damage = 3500 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 336 { k(); _root.t2(); } } frame 116 { playerSpeech(56); } frame 116 { stop(); } frame 119 { stage = 21; } frame 119 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 450, 240, 490, 280, 550, 340]; T1.multi = 1; T1.ID = 1; T2.multi = 1; T2.ID = 2; T3.multi = 1; T3.ID = 3; } frame 120 { stop(); } frame 122 { stop(); } frame 123 { stopAllSounds(); } frame 124 { stop(); cuts.gotoAndPlay('cuts4'); } frame 125 { stage = 22; } frame 125 { live[3] = 0; live[4] = 0; live[5] = 1; coords = [180, 230, 60, 272, 370, 290, 600, 270, 370, 290]; T3.multi = 1; T3.ID = 3; } movieClip 2910 { } movieClip 2911 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 16 { symbols(); } } movieClip 2927 { } movieClip 2933 { } movieClip 2948 { } movieClip 2952 { frame 1 { function k() { gotoAndStop('stand'); } topoff = false; } frame 1 { introT = false; } frame 1 { function shake(X) { tellTarget ('/shake') { gotoAndPlay(X); } } } frame 1 { _visible = false; } frame 2 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [0.7, 1.7, 0.7, 1.6, 0.3, 1, 1.4, 1, 1, 1.6, 1]; } frame 2 { _visible = true; } frame 3 { HP = 200000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 4 { function moveset() { b = random(3); if (_root.dif > 1) { b = random(4); } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack2'); } if (b == 2) { gotoAndPlay('special'); } if (b == 3) { gotoAndPlay('special2'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy * 3 + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 2) { inflict = true; } if (inflict) { if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('break'); } else { if (damage > 10000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 5 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.8) { def2 = 0.8; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.8) { mdef2 = 0.8; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.8) { atk2 = 0.8; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.8) { matk2 = 0.8; } } function defUp(X) { def2 += X; if (def2 > 1.5) { def2 = 1.5; } } function mdefUp(X) { mdef2 += X; if (mdef2 > 1.5) { mdef2 = 1.5; } } function atkUp(X) { atk2 += X; if (atk2 > 1.5) { atk2 = 1.5; } } function matkUp(X) { matk2 += X; if (matk2 > 1.5) { matk2 = 1.5; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 220 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 6 { monster = 'tankTop'; } frame 13 { _root.shake('small'); } frame 22 { _root.shake('small'); } frame 27 { if (_root.live[1]) { _root.playerSpeech(105); } } frame 35 { if (introT) { introT = false; _root.t2(); } } frame 38 { stop(); q = 0; } frame 38 { stop(); idle.topoff = topoff; } frame 57 { k(); _root.t2(); } frame 63 { if (_root.live[2] and random(3)) { _root.playerSpeech(113); } } frame 77 { _root.t2(); k(); } frame 80 { if (_root.live[2]) { _root.playerSpeech(110); } } frame 98 { k(); _root.t2(); } frame 99 { _root.t1(); } frame 105 { shake('small'); } frame 112 { shake('big'); } frame 113 { _root.getAcc('foe', 1); _global.T = 'Pall'; _global.damage = 4700 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 132 { gotoAndPlay('intro'); introT = true; } frame 133 { _root.t1(); } frame 141 { _root.getAcc('foe', 1); _global.damage = 200 * atk * atk2; _global.atype = 'p'; _global.T = 'Pall'; _root.hurt(); } frame 144 { _root.hurt(); } frame 147 { _root.hurt(); } frame 150 { _root.hurt(); } frame 153 { _root.hurt(); } frame 156 { _root.hurt(); } frame 159 { _root.hurt(); } frame 162 { _root.hurt(); } frame 165 { _root.hurt(); } frame 168 { _root.hurt(); } frame 171 { _root.hurt(); } frame 174 { _root.hurt(); } frame 176 { k(); _root.t2(); } frame 177 { _root.t1(); } frame 181 { _root.getAcc('foe', 0.8); _global.element = [9, 1]; _global.damage = 10000 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 202 { k(); _root.t2(); } frame 203 { _root.t1(); } frame 215 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.element = [0, 1]; _global.damage = 2200 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 219 { _root.hurt(); } frame 223 { _global.effect = ['defDown', 0.8, 0.25]; _root.hurt(); } frame 230 { k(); _root.t2(); } frame 231 { shake('small'); _root.live[5] = 0; } frame 246 { shake('small'); } frame 263 { turretCounter = 0; } frame 264 { HP = 1200000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 265 { function moveset() { spawnRate = 6; if (HP < HPmax * 3 / 4) { spawnRate = 5; } if (HP < HPmax / 2) { spawnRate = 4; } if (HP < HPmax / 4) { spawnRate = 3; } b = random(3); if (_root.dif > 1) { b = random(4); } if (_root.live[4] or _root.live[3]) { b = random(2); } if (!_root.live[4] and !_root.live[3] and turretCounter >= spawnRate and random(2) and _root.dif > 1) { turretCounter = 0; b = 4; _root.T2.spawnTurret('nuke'); _root.T1.spawnTurret('nuke'); } else { if (!_root.live[4] and turretCounter >= spawnRate) { turretCounter = 0; b = 4; _root.T2.spawnTurret('random'); } else { if (!_root.live[3] and turretCounter >= spawnRate) { turretCounter = 0; b = 4; _root.T1.spawnTurret('random'); } } } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack'); } if (b == 2) { gotoAndPlay('attack2'); } if (b == 3) { gotoAndPlay('attack3'); } if (b == 4) { } ++turretCounter; trace('tank attack pattern'); trace('b: ' + b); } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy * 1.5 + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 2) { inflict = true; } if (inflict) { if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 10000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 266 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.8) { def2 = 0.8; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.8) { mdef2 = 0.8; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.8) { atk2 = 0.8; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.8) { matk2 = 0.8; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x + random(50); (eval('_root.bob' + ID + b))._y = _y + 220 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 267 { monster = 'tank'; } frame 278 { topoff = true; } frame 279 { k(); _root.t2(); } frame 280 { shake('small'); _root.t1(); } frame 288 { shake('small'); } frame 328 { _root.getAcc('foe', 1); _global.T = 'Pall'; _global.damage = 7000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 328 { shake('big'); } frame 376 { gotoAndPlay('intro'); introT = true; } frame 377 { shake('small'); _root.live[5] = 0; _root.live[4] = 0; _root.live[3] = 0; } frame 389 { shake('small'); } frame 392 { _root.T2.gotoAndStop(1); _root.T1.gotoAndStop(1); } frame 402 { shake('small'); } frame 420 { shake('big'); } frame 432 { shake('big'); } frame 442 { shake('big'); } frame 453 { shake('big'); } frame 470 { _root.t1(); } frame 474 { _root.getMedal(6); } frame 519 { shake('small'); } frame 551 { } frame 563 { shake('small'); } frame 769 { stop(); _root.fadeTo('ending'); } } frame 126 { stop(); } frame 129 { live[3] = 1; live[4] = 1; live[5] = 1; coords = [180, 230, 60, 272, 370, 290, 370, 290, 370, 290]; T1.multi = 1; T1.ID = 1; T2.multi = 1; T2.ID = 2; T3.multi = 1; T3.ID = 3; } movieClip 2957 { frame 1 { function symbols() { a1._visible = false; b1._visible = false; c1._visible = false; d1._visible = false; a2._visible = false; b2._visible = false; c2._visible = false; d2._visible = false; po._visible = false; se._visible = false; stun._visible = false; life._visible = false; regen._visible = false; blind._visible = false; if (_parent.atk2 < 1) { a2._visible = true; a2._alpha = -(_parent.atk2 - 1) * 300; } if (_parent.def2 < 1) { b2._visible = true; b2._alpha = -(_parent.def2 - 1) * 300; } if (_parent.matk2 < 1) { c2._visible = true; c2._alpha = -(_parent.matk2 - 1) * 300; } if (_parent.mdef2 < 1) { d2._visible = true; d2._alpha = -(_parent.mdef2 - 1) * 300; } if (_parent.atk2 > 1) { a1._visible = true; a1._alpha = (_parent.atk2 - 1) * 300; } if (_parent.def2 > 1) { b1._visible = true; b1._alpha = (_parent.def2 - 1) * 300; } if (_parent.matk2 > 1) { c1._visible = true; c1._alpha = (_parent.matk2 - 1) * 300; } if (_parent.mdef2 > 1) { d1._visible = true; d1._alpha = (_parent.mdef2 - 1) * 300; } if (_parent.poison > 0) { po._visible = true; } if (_parent.seal > 0) { se._visible = true; } if (_parent.stun > 0) { stun._visible = true; } if (_parent.blind == 1) { blind._visible = true; blind._alpha = 50; } else { if (_parent.blind > 1) { blind._visible = true; blind._alpha = 100; } } } symbols(); } frame 21 { symbols(); } } movieClip 2967 { frame 1 { gotoAndStop(random(18) + 2); } } movieClip 2980 { frame 1 { gotoAndStop(_parent._parent.talk); } } movieClip 2981 { frame 11 { stop(); } } movieClip 2982 { } movieClip 3000 { frame 1 { stop(); } } movieClip 3003 { frame 1 { cc = _parent.countDown; } } movieClip 3008 { } movieClip 3012 { } movieClip 3015 { } movieClip 3022 { frame 1 { function spawnTurret(type) { typeList = ['nuke', 'lazor', 'cooler', 'dish', 'nazi']; if (type == 'random') { if (_root.T1.monster == 'nazi' or _root.T2.monster == 'nazi') { type = typeList[random(4)]; } else { type = typeList[random(5)]; } } trace(type); if (type == 'nazi') { gotoAndPlay('intro'); } if (type == 'dish') { gotoAndPlay('intro2'); } if (type == 'nuke') { gotoAndPlay('intro3'); } if (type == 'lazor') { gotoAndPlay('intro4'); } if (type == 'cooler') { gotoAndPlay('intro5'); } _root.live[2 + ID] = 1; } function damageNo() { _root.dam.duplicateMovieClip('bob' + ID + b, b + 100 * ID); (eval('_root.bob' + ID + b))._x = _x - 250 + random(50); (eval('_root.bob' + ID + b))._y = _y + 80 + random(50); (eval('_root.bob' + ID + b)).damage = damage; b += 3; } } frame 1 { _visible = false; } frame 2 { stop(); } frame 2 { _visible = true; } frame 3 { _root.t1(); } frame 3 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [1.5, 1, 1, 0.7, 1.7, 1, 1, 1, 1.5, 1, 1]; } frame 4 { HP = 90000 * multi * _root.EZmode; atk = 0.8 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 5 { function moveset() { b = random(3); if (_root.dif > 1 and !seal) { b = random(4); } _root.ranplay(); if (b == 0) { gotoAndPlay('attack'); } if (b == 1) { gotoAndPlay('attack2'); } if (b == 2) { gotoAndPlay('attack2'); } if (b == 3) { gotoAndPlay('special'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] * 0.6666666666666666) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'poison') { poison += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'blind') { blind += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { if (atk2 > 1) { atk2 = 1; } if (matk2 > 1) { matk2 = 1; } if (def2 > 1) { def2 = 1; } if (mdef2 > 1) { mdef2 = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage / 2; _root.T3.HP -= damage; if (HP <= 0) { HP = 0; gotoAndPlay('die'); } else { if (damage > 10000) { gotoAndPlay('hit2'); } else { gotoAndPlay('hit'); } } } damageNo(); } } frame 6 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 7 { monster = 'nazi'; } frame 26 { _root.t2(); } frame 27 { stop(); q = 0; } frame 46 { k(); _root.t2(); } frame 65 { k(); _root.t2(); } frame 85 { k(); _root.t2(); } frame 86 { _root.live[2 + ID] = 0; } frame 103 { if (_root.live[1]) { _root.playerSpeech(108); } } frame 105 { if (_root.dif > 1) { _root.T3.atkUp(_root.dif - 1); _root.T3.defUp(_root.dif - 1); } } frame 109 { stop(); _root.t2(); } frame 110 { _root.t1(); } frame 120 { _root.getAcc('foe', 1.2); _global.damage = 3400 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 137 { k(); _root.t2(); } frame 138 { _root.t1(); } frame 174 { talk = random(6) + 2; trace('talk: ' + talk); } frame 178 { _root.getAcc('foe', 1); _global.damage = 1000 * atk * atk2; _global.atype = 'p'; _root.hurt(); } frame 184 { _root.hurt(); } frame 190 { _root.hurt(); } frame 196 { _root.hurt(); } frame 202 { _root.hurt(); } frame 207 { _root.hurt(); } frame 222 { k(); _root.t2(); } frame 223 { _root.t1(); } frame 223 { _global.item = 'bob'; } frame 241 { _root.getAcc('foe', 1.2); _global.damage = 4000 * matk; _global.atype = 'm'; _root.spells.gotoAndPlay('bob'); } frame 249 { k(); } frame 250 { _root.t1(); } frame 282 { _root.summons.gotoAndPlay('ion'); } frame 286 { k(); } frame 288 { _root.t1(); } frame 289 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [0.5, 1.8, 1, 0.7, 0.5, 1, 1, 1, 1, 1.5, 1]; } frame 290 { HP = 110000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 291 { function moveset() { b = random(3); if (seal) { b = 0; } _root.ranplay(); if (b == 0) { gotoAndPlay('special4'); } if (b == 1) { gotoAndPlay('special3'); } if (b == 2) { gotoAndPlay('special2'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade2'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 2) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'seal') { seal += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { if (atk2 > 1) { atk2 = 1; } if (matk2 > 1) { matk2 = 1; } if (def2 > 1) { def2 = 1; } if (mdef2 > 1) { mdef2 = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; _root.T3.HP -= damage / 2; if (HP <= 0) { HP = 0; gotoAndPlay('die2'); } else { if (damage > 10000) { gotoAndPlay('hit4'); } else { gotoAndPlay('hit3'); } } } damageNo(); } } frame 292 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 293 { monster = 'dish'; } frame 311 { _root.t2(); } frame 312 { stop(); q = 0; } frame 331 { gotoAndStop('stand2'); _root.t2(); } frame 349 { gotoAndStop('stand2'); _root.t2(); } frame 369 { gotoAndStop('stand2'); _root.t2(); } frame 370 { _root.live[2 + ID] = 0; } frame 386 { if (_root.dif > 1) { _root.T3.mdefUp(_root.dif - 1); } } frame 388 { if (_root.live[1]) { _root.playerSpeech(109); } } frame 397 { stop(); _root.t2(); } frame 398 { _root.t1(); } frame 440 { _root.getAcc('foe', 1.5); _global.T = 'Pall'; _global.effect = ['seal', 0.7, 2]; _global.damage = 700 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 449 { gotoAndStop('stand2'); _root.t2(); } frame 450 { _root.t1(); } frame 470 { if (_root.dif == 1.4) { _root.getAcc('foe', 1.5); _global.T = 'Pall'; b = random(2); if (b == 0) { _global.effect = ['atkDown', 0.8, 0.4]; } if (b == 1) { _global.effect = ['matkDown', 0.8, 0.4]; } _global.damage = 1500 * matk * matk2; _global.atype = 'm'; _root.hurt(); } } frame 474 { _root.getAcc('foe', 1.5); _global.T = 'Pall'; b = random(4); if (b == 0) { _global.effect = ['mdefDown', 0.8, 0.4]; } if (b == 1) { _global.effect = ['defDown', 0.8, 0.4]; } if (b == 2) { _global.effect = ['atkDown', 0.8, 0.4]; } if (b == 3) { _global.effect = ['matkDown', 0.8, 0.4]; } _global.damage = 1500 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 481 { gotoAndStop('stand2'); _root.t2(); } frame 482 { _root.t1(); } frame 510 { _root.getAcc('foe', 1.5); _global.element = [1, 1]; _global.damage = 800 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 513 { _root.hurt(); } frame 517 { _root.hurt(); } frame 521 { _root.hurt(); } frame 525 { _root.hurt(); } frame 527 { if (_root.dif == 1.4 and random(2)) { gotoAndPlay('special4loop'); } } frame 537 { gotoAndStop('stand2'); _root.t2(); } frame 539 { _root.t1(); } frame 540 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [0.5, 1.8, 1, 0.7, 0.5, 1, 1, 1, 1, 1.5, 1]; } frame 541 { HP = 90000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 542 { function moveset() { if (!countDown) { gotoAndPlay('launch'); } else { gotoAndPlay('idle'); } --countDown; } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade3'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 2) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { if (atk2 > 1) { atk2 = 1; } if (matk2 > 1) { matk2 = 1; } if (def2 > 1) { def2 = 1; } if (mdef2 > 1) { mdef2 = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; _root.T3.HP -= damage / 2; if (HP <= 0) { HP = 0; gotoAndPlay('die3'); } else { if (damage > 10000) { gotoAndPlay('hit6'); } else { gotoAndPlay('hit5'); } } } damageNo(); } } frame 543 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 544 { monster = 'nuke'; } frame 545 { if (_root.dif == 0.8) { countDown = 4; } if (_root.dif == 1) { countDown = 3; } if (_root.dif == 1.2) { countDown = 2; } if (_root.dif == 1.4) { countDown = 1; } } frame 556 { if (_root.live[1]) { _root.playerSpeech(104); } } frame 563 { _root.t2(); } frame 564 { stop(); q = 0; } frame 577 { gotoAndStop('stand3'); _root.t2(); } frame 594 { gotoAndStop('stand3'); _root.t2(); } frame 612 { _root.t1(); } frame 623 { if (_root.live[2]) { _root.playerSpeech(111); } } frame 636 { _root.t2(); gotoAndStop('stand3'); } frame 655 { gotoAndStop('stand3'); _root.t2(); } frame 656 { _root.live[2 + ID] = 0; } frame 666 { if (_root.dif > 1) { _root.T3.atkUp(_root.dif - 1); _root.T3.matkUp(_root.dif - 1); } } frame 673 { stop(); _root.t2(); } frame 674 { _root.t1(); _root.live[2 + ID] = 0; } frame 689 { shake('small'); } frame 702 { _root.getAcc('foe', 2); _global.T = 'Pall'; _global.damage = 13000 * matk * matk2; _global.atype = 'm'; } frame 711 { stop(); _root.spells.gotoAndPlay('nuke'); } frame 712 { _root.t1(); } frame 713 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [0.5, 1.8, 1, 0.7, 0.5, 1, 1, 1, 1, 1.5, 1]; } frame 714 { HP = 140000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 715 { function moveset() { b = random(3); if (beamCharge) { b = 3; } _root.ranplay(); if (b == 0) { gotoAndPlay('special5'); } if (b == 1) { gotoAndPlay('special5'); } if (b == 2) { gotoAndPlay('special6'); } if (b == 3) { gotoAndPlay('special7'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade4'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 3) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { if (atk2 > 1) { atk2 = 1; } if (matk2 > 1) { matk2 = 1; } if (def2 > 1) { def2 = 1; } if (mdef2 > 1) { mdef2 = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; _root.T3.HP -= damage / 2; if (HP <= 0) { HP = 0; gotoAndPlay('die4'); } else { if (damage > 10000) { gotoAndPlay('hit8'); } else { gotoAndPlay('hit7'); } } } damageNo(); } } frame 716 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 717 { monster = 'lazor'; } frame 719 { beamCharge = false; } frame 738 { _root.t2(); } frame 739 { stop(); q = 0; } frame 757 { gotoAndStop('stand4'); _root.t2(); } frame 776 { gotoAndStop('stand4'); _root.t2(); } frame 795 { gotoAndStop('stand4'); _root.t2(); } frame 796 { _root.live[2 + ID] = 0; } frame 807 { if (_root.live[2]) { _root.playerSpeech(112); } } frame 811 { if (_root.dif > 1) { _root.T3.atkUp(_root.dif - 1); } } frame 820 { stop(); _root.t2(); } frame 821 { _root.t1(); } frame 856 { _root.getAcc('foe', 1); _global.T = 'Pall'; _global.damage = 800 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 859 { _root.hurt(); } frame 862 { _global.effect = ['stun', 0.2, 2]; _root.hurt(); } frame 865 { gotoAndStop('stand4'); _root.t2(); } frame 866 { _root.t1(); } frame 900 { shake('small'); } frame 903 { beamCharge = true; } frame 907 { if (_root.live[1]) { _root.playerSpeech(106); } } frame 913 { gotoAndStop('stand4'); _root.t2(); } frame 915 { shake('big'); _root.t1(); } frame 917 { _root.getAcc('foe', 1); _global.damage = 12000 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 928 { shake('small'); } frame 941 { beamCharge = false; } frame 953 { gotoAndStop('stand4'); _root.t2(); } frame 955 { _root.t1(); } frame 956 { poison = 0; blind = 0; seal = 0; stun = 0; elements = [1.9, 1.8, 1, 0.7, 0.5, 1, 1, 1, 1, 1.5, 1]; } frame 957 { HP = 160000 * multi * _root.EZmode; atk = 1 * _root.dif * multi; def = 1; matk = 1 * _root.dif * multi; mdef = 1; HPmax = HP; } frame 958 { function moveset() { b = random(3); _root.ranplay(); if (b == 0) { gotoAndPlay('special8'); } if (b == 1) { gotoAndPlay('special9'); } if (b == 2) { gotoAndPlay('special10'); } } function hit() { if (stun) { stunE = 1; } else { stunE = 0; } hitP = _global.accuracy + stunE; if (q == 0) { _root.t1(); q = 1; } if (Math.random() > hitP) { damage = 'Miss'; gotoAndPlay('evade5'); } else { if (_global.atype == 'p') { damage = Math.round(damage / def * def2); } else { damage = Math.round(damage / mdef * mdef2); } elementbonus = damage * _global.element[1] * elements[_global.element[0]]; damage *= 1 - _global.element[1]; damage += elementbonus; damage = Math.round(damage); inflict = false; if (Math.random() < _global.effect[1] / 3) { inflict = true; } if (inflict) { if (_global.effect[0] == 'stun') { stun += _global.effect[2]; } if (_global.effect[0] == 'atkDown') { atkDown(_global.effect[2]); } if (_global.effect[0] == 'defDown') { defDown(_global.effect[2]); } if (_global.effect[0] == 'mdefDown') { mdefDown(_global.effect[2]); } if (_global.effect[0] == 'debuff') { if (atk2 > 1) { atk2 = 1; } if (matk2 > 1) { matk2 = 1; } if (def2 > 1) { def2 = 1; } if (mdef2 > 1) { mdef2 = 1; } } if (_global.effect[0] == 'matkDown') { matkDown(_global.effect[2]); } } HP -= damage; _root.T3.HP -= damage / 2; if (HP <= 0) { HP = 0; gotoAndPlay('die5'); } else { if (damage > 10000) { gotoAndPlay('hit10'); } else { gotoAndPlay('hit9'); } } } damageNo(); } } frame 959 { function enemystats() { if (def2 < 1) { def2 += 0.05; } if (mdef2 < 1) { mdef2 += 0.05; } if (atk2 < 1) { atk2 += 0.05; } if (matk2 < 1) { matk2 += 0.05; } } function defDown(X) { def2 -= X; if (def2 < 0.6) { def2 = 0.6; } } function mdefDown(X) { mdef2 -= X; if (mdef2 < 0.6) { mdef2 = 0.6; } } function atkDown(X) { atk2 -= X; if (atk2 < 0.6) { atk2 = 0.6; } } function matkDown(X) { matk2 -= X; if (matk2 < 0.6) { matk2 = 0.6; } } function k() { gotoAndPlay('stand'); q = 0; } function run(X, Y) { this._x += X; this._y += Y; } function getXY() { X = -(_root.coords[ID * 2 + 2] - 80 - _root.X()) / 12; Y = -(_root.coords[ID * 2 + 3] - _root.Y()) / 12; } atk2 = 1; def2 = 1; mdef2 = 1; matk2 = 1; b = ID; q = 0; } frame 960 { monster = 'cooler'; } frame 975 { _root.t2(); } frame 976 { stop(); q = 0; } frame 991 { gotoAndStop('stand5'); _root.t2(); } frame 1011 { gotoAndStop('stand5'); _root.t2(); } frame 1030 { gotoAndStop('stand5'); _root.t2(); } frame 1031 { _root.live[2 + ID] = 0; } frame 1044 { if (_root.dif > 1) { _root.T3.mdefUp(_root.dif - 1); _root.T3.defUp(_root.dif - 1); } } frame 1054 { stop(); _root.t2(); } frame 1055 { _root.t1(); } frame 1070 { _root.getAcc('foe', 1.5); _global.T = 'Pall'; _global.effect = ['freeze', 0.3, 2]; if (_root.dif == 1.4) { _global.effect = ['freeze', 1, 2]; } _global.damage = 800 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 1074 { _root.hurt(); } frame 1078 { _root.hurt(); } frame 1092 { gotoAndStop('stand5'); _root.t2(); } frame 1093 { _root.t1(); } frame 1110 { _root.getAcc('foe', 1.2); _global.T = 'Pall'; _global.effect = ['poison', 0.6, 1]; if (_root.dif == 1.4) { _global.effect = ['poison', 1, 2]; } _global.damage = 1000 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 1114 { _root.hurt(); } frame 1118 { _root.hurt(); } frame 1123 { if (_root.live[2]) { _root.playerSpeech(107); } } frame 1130 { gotoAndStop('stand5'); _root.t2(); } frame 1131 { _root.t1(); } frame 1140 { _root.getAcc('foe', 1.1); _global.effect = ['freeze', 1, 3]; _global.damage = 5000 * matk * matk2; _global.atype = 'm'; _root.hurt(); } frame 1182 { gotoAndStop('stand5'); _root.t2(); } } frame 130 { T1.spawnTurret('lazor'); T2.spawnTurret('nazi'); } frame 131 { stop(); } frame 132 { stop(); cuts.gotoAndPlay('cuts5'); } frame 132 { stopAllSounds(); } frame 143 { stop(); } movieClip 3024 { } movieClip 3027 { } movieClip 3044 { frame 1 { gotoAndStop(_root.stage + 1); } } movieClip 3045 { frame 390 { stop(); stopAllSounds(); _root.fadeTo('mainmenu'); } }




http://swfchan.com/21/100571/info.shtml
Created: 21/3 -2019 05:29:33 Last modified: 21/3 -2019 05:29:33 Server time: 26/04 -2024 17:19:23