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

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

newgrounds-rumble.swf

This is the info page for
Flash #113826

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


ActionScript [AS1/AS2]
Combined Code
movieClip 98 lobbedSpider { } movieClip 110 energyShot { } movieClip 128 explosionTM { } movieClip 152 { } movieClip 159 { } movieClip 161 { } movieClip 162 castleFG { } movieClip 164 fastBullet { } movieClip 166 { } movieClip 168 { frame 9 { gotoAndPlay(random(15) + 10); } } movieClip 176 { frame 7 { do { pupFrame = _parent.poss[random(_parent.poss.length)]; } while (pupFrame == 9 && !_root.preserveData.unlockOrbiter || pupFrame == 11 && !_root.preserveData.unlockRegeneration); _parent.gotoAndStop(pupFrame); } } movieClip 185 { frame 12 { _parent.gotoAndStop(1); } } movieClip 187 { frame 12 { stop(); } } movieClip 196 { } movieClip 204 { } movieClip 207 pickup { frame 1 { stop(); } frame 3 { timeWaited = 0; _root.playSoundOnce('pickup', 'pickupSound'); } frame 4 { standardWait = 90; } frame 5 { standardWait = 60; } frame 6 { standardWait = 100; } frame 7 { standardWait = 150; } frame 8 { standardWait = 125; } frame 9 { standardWait = 175; } frame 10 { standardWait = 110; } frame 11 { standardWait = 85; } frame 12 { standardWait = 150; } frame 13 { standardWait = 200; } } movieClip 212 bg2 { } movieClip 220 { } movieClip 222 bg3 { instance of movieClip 220 { onClipEvent (load) { gotoAndPlay(78); } } instance of movieClip 220 { onClipEvent (load) { gotoAndPlay(104); } } instance of movieClip 220 { onClipEvent (load) { gotoAndPlay(52); } } instance of movieClip 220 { onClipEvent (load) { gotoAndPlay(26); } } instance of movieClip 220 { onClipEvent (load) { gotoAndPlay(78); } } instance of movieClip 220 { onClipEvent (load) { gotoAndPlay(104); } } instance of movieClip 220 { onClipEvent (load) { gotoAndPlay(52); } } instance of movieClip 220 { onClipEvent (load) { gotoAndPlay(26); } } } movieClip 229 { frame 1 { stop(); } } movieClip 230 bg4 { } movieClip 234 { } movieClip 236 { } movieClip 241 { } movieClip 242 bg5 { instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } instance of movieClip 234 { onClipEvent (load) { gotoAndPlay(random(_totalframes) + 1); } } } movieClip 250 { } movieClip 253 schoolFG { } movieClip 254 bg6 { instance of movieClip 250 { onClipEvent (load) { gotoAndPlay(35); } } instance of movieClip 250 { onClipEvent (load) { gotoAndPlay(46); } } instance of movieClip 250 { onClipEvent (load) { gotoAndPlay(35); } } instance of movieClip 250 { onClipEvent (load) { gotoAndPlay(46); } } } // unknown tag 88 length 85 // unknown tag 88 length 76 movieClip 262 { frame 1 { if (_currentframe == 1) { gotoAndPlay(1 + random(40) + random(2) * 210); } } frame 206 { if (_currentframe == 64) { gotoAndPlay(1 + random(50) + random(2) * 210); } } } movieClip 263 { frame 1 { if (_currentframe == 1) { gotoAndPlay(1 + random(50) + random(2) * 210); } } frame 204 { if (_currentframe == 64) { gotoAndPlay(1 + random(50) + random(2) * 210); } } } movieClip 266 bg7 { } movieClip 272 { } movieClip 276 { } movieClip 280 { } movieClip 281 bg8 { } movieClip 285 tankMissile { } movieClip 287 bg9 { } movieClip 290 bg10 { } movieClip 295 { frame 10 { if (_currentframe == 10) { stop(); } } } movieClip 296 { instance jr1 of movieClip 295 { onClipEvent (enterFrame) { if (_root.char1.charIn._currentframe == 3 || _root.char1.charIn._currentframe == 6) { if (_root.char1.charIn.spriteIn._currentframe == 2) { this.gotoAndPlay(1); this._x = _root.char1._x; this._y = _root.char1._y; } } } onClipEvent (load) { gotoAndStop(this._totalframes); } } instance jr2 of movieClip 295 { onClipEvent (enterFrame) { if (_root.char2.charIn._currentframe == 3 || _root.char2.charIn._currentframe == 6) { if (_root.char2.charIn.spriteIn._currentframe == 2) { this.gotoAndPlay(1); this._x = _root.char2._x; this._y = _root.char2._y; } } } onClipEvent (load) { gotoAndStop(this._totalframes); } } instance jr3 of movieClip 295 { onClipEvent (enterFrame) { if (_root.char3.charIn._currentframe == 3 || _root.char3.charIn._currentframe == 6) { if (_root.char3.charIn.spriteIn._currentframe == 2) { this.gotoAndPlay(1); this._x = _root.char3._x; this._y = _root.char3._y; } } } onClipEvent (load) { gotoAndStop(this._totalframes); } } instance jr4 of movieClip 295 { onClipEvent (enterFrame) { if (_root.char4.charIn._currentframe == 3 || _root.char4.charIn._currentframe == 6) { if (_root.char4.charIn.spriteIn._currentframe == 2) { this.gotoAndPlay(1); this._x = _root.char4._x; this._y = _root.char4._y; } } } onClipEvent (load) { gotoAndStop(this._totalframes); } } } movieClip 297 bg11 { } movieClip 302 { } movieClip 305 { } movieClip 308 { frame 6 { gotoAndPlay(1); } } // unknown tag 88 length 153 movieClip 326 { } movieClip 340 { } movieClip 342 bg12 { instance fallPiece of movieClip 340 { onClipEvent (enterFrame) { if (_root.paused) { stop(); } else { if (_currentframe == 1) { i = 1; while (i <= _root.numChars) { if (_root['char' + i].hp < _root['char' + i].maxhp / 2) { gotoAndPlay(2); return undefined; } ++i; } } else { if (_currentframe == _totalframes) { stop(); } else { if (_root.aCounter % 2 == 0 && _currentframe >= 148) { _root.screenShake = 10; } play(); } if (_currentframe == 150) { _root.part100.vend.gotoAndPlay(2); i = 1; while (i <= _root.numChars) { if (_root['char' + i].dSeg == 2) { _root['char' + i]._y -= 10; _root['char' + i].ySpeed = -4; _root['char' + i].xSpeed /= 2; _root['char' + i].dSeg = -1; } ++i; } _root.seg1.segIn.gotoAndStop(2); _root.seg2.segIn.gotoAndStop(2); } } } } onClipEvent (load) { stop(); } } } movieClip 343 bgs { } movieClip 346 landMine { } movieClip 349 { } movieClip 358 { } movieClip 369 oldExplosion { frame 22 { stop(); } } movieClip 370 orbiter { } movieClip 372 shine { } movieClip 374 columnizer { } movieClip 375 { } movieClip 376 { } movieClip 378 warpIn { } movieClip 380 pagodaHelper { } movieClip 391 { } movieClip 392 pointValue { frame 1 { if (this.pointValue >= 10) { tens.gotoAndStop(Math.floor(this.pointValue / 10)); ones.gotoAndStop(Math.round((this.pointValue - 1) % 10) + 1); } else { tens.gotoAndStop(11); ones._x -= ones._width / 2; ones.gotoAndStop(Math.round(this.pointValue)); } if (this.pointValue >= 5) { this._xscale = 100 + (this.pointValue - 5); } else { this._xscale = 50 + this.pointValue * 10; } this._yscale = this._xscale; } } movieClip 404 { } movieClip 405 comboCounter { } movieClip 407 blockStamina { } movieClip 413 { } movieClip 422 { } movieClip 428 { } movieClip 430 { } movieClip 432 { } movieClip 434 { } movieClip 435 { } movieClip 436 { } movieClip 438 { } movieClip 440 { } movieClip 443 { } movieClip 445 { } movieClip 446 { } movieClip 448 { } movieClip 450 { } movieClip 452 { } movieClip 454 { } movieClip 456 { } movieClip 458 { } movieClip 460 { } movieClip 462 { } movieClip 464 { } movieClip 466 { } movieClip 472 { } movieClip 476 { } movieClip 478 { } movieClip 480 { } movieClip 482 { } movieClip 484 { } movieClip 485 { } movieClip 487 { } movieClip 492 { } movieClip 494 { } movieClip 496 { frame 1 { stop(); } } movieClip 498 { } movieClip 500 { } movieClip 502 { frame 1 { stop(); } } movieClip 503 { } movieClip 505 { } movieClip 507 { } movieClip 509 { } movieClip 511 { } movieClip 513 { } movieClip 515 { frame 1 { stop(); } } movieClip 517 { } movieClip 519 { } movieClip 521 { } movieClip 523 { } movieClip 525 { } movieClip 527 { } movieClip 529 { } movieClip 531 { } movieClip 533 { } movieClip 535 { } movieClip 537 { } movieClip 539 { } movieClip 541 { } movieClip 543 { } movieClip 545 { } movieClip 547 { frame 1 { stop(); } } movieClip 549 { } movieClip 551 { } movieClip 552 { } movieClip 555 { } movieClip 557 { } movieClip 559 { } movieClip 561 { } movieClip 562 { frame 1 { stop(); } } movieClip 563 { frame 1 { stop(); } } movieClip 564 { } movieClip 565 { } movieClip 567 { } movieClip 568 { } movieClip 569 { } movieClip 570 { } movieClip 572 { } movieClip 574 { } movieClip 576 { } movieClip 578 { } movieClip 581 { } movieClip 582 { } // unknown tag 88 length 69 // unknown tag 88 length 143 // unknown tag 88 length 138 movieClip 596 { } // unknown tag 88 length 69 button 602 { on (press) { ++_root.levelID; _root.gotoAndStop(13); } } // unknown tag 88 length 69 button 605 { on (press) { _root.gotoAndStop(13); } } button 607 { on (press) { _root.attachMovie('endingReport', 'endingReport', 16002); _root.endingReport._alpha = 0; _root.endingReport.gotoAndStop(_root.charSelect[1]); _root.earnedGG = _root.preserveData.difficulty * 200; _root.preserveData.groundsGold += _root.earnedGG; _root.endingReport.onEnterFrame = function () { if (this._alpha < 100) { this._alpha += 5; } else { this.earnedGGText.text = _root.earnedGG; this.bannerText.text = _root.preserveData.pname + ' is King of the Portal!'; } }; _root.battleReport.onEnterFrame = function () { this._alpha -= 5; if (this._alpha <= 0) { this.removeMovieClip(); } }; charCount = 1; while (charCount <= _root.numChars) { _root.battleReport['char' + charCount].charNameText.text = ''; _root.battleReport['char' + charCount].killsText.text = ''; _root.battleReport['char' + charCount].dmgDealtText.text = ''; _root.battleReport['char' + charCount].dmgTakenText.text = ''; _root.battleReport['char' + charCount].survivalTimeText.text = ''; ++charCount; } _root.preserveData.levelID = 0; _root.levelID = 0; gotoAndStop(4); } } button 609 { on (press) { _root.preserveData.skipSurvivalIntro = true; _root.playMode = 6; _root.preserveData.playMode = 6; _root.gotoAndStop(13); } } movieClip 611 { } button 612 { on (press) { _root.playMode = undefined; _root.preserveData.playMode = undefined; _root.gotoAndStop(13); } } movieClip 615 { } movieClip 616 battleReport { } movieClip 620 flickeringLight { } movieClip 622 { } movieClip 623 knives { } movieClip 625 hominidBlast { } movieClip 627 blimp { } movieClip 628 castleClip { } movieClip 630 bg1 { } movieClip 633 { frame 23 { stop(); } } movieClip 635 madnessFG { instance vend of movieClip 633 { onClipEvent (load) { stop(); } } } movieClip 642 jesus { } movieClip 644 lungingSpider { } movieClip 665 jumpDust { } movieClip 671 hominidFlare { } movieClip 685 bigExplosion { } movieClip 694 { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (150 % 511) * true; if (!'') { } else {} return ; } var  = 365 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 515) {  += 324; true; } if ( == 40) { for (;;) {  += 462; if ( != 636) break;  -= 595; // An attempt to read a value from empty stack if (undefined) break; continue;  += 778; if ( == 994) {  -= 492; } if ( != 664) break;  -= 574; // An attempt to read a value from empty stack if ( == 362) {  += 302; } if ( == 94) {  += 899; }  += 134;  -= 78; var eval( != 502) = true;  += 796;  += 778;  += 785;  -= 725;  -= 809;  -= 863;  += 10;  -= 553;  -= 89;  -= 808; } !undefined ::: eval(!undefined); ''; } } } } } } } } } } } } } } } } } } } } } } } } } } } movieClip 696 { frame 10 { stop(); } } movieClip 698 { frame 37 { _parent.setGotoFrame('done'); stop(); } } movieClip 700 { } movieClip 702 NewgroundsAPIAsset_Medal_Icon_Placeholder { } movieClip 710 NewgroundsAPIAsset_Medal_Popup { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1566 % 511) * true; if (!'') { } else {} return ; } var  = 681 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 714) {  -= 515; true; } if ( == 713) { for (;;) {  -= 438; // An attempt to read a value from empty stack if (!undefined) { break; }  += 658; if ( != 275) break;  += 658; if ( == 698) {  -= 552; } if ( != 177) break;  += 11; if ( == 488) {  -= 342; } if ( == 146) {  += 628; }  -= 45;  += 658;  -= 597; var  =  == 533;  -= 133; // An attempt to read a value from empty stack  += 334;  -= 789;  -= 144; } eval(undefined); } } } } } } } } } } } } } } } } } } } frame 2 { medal.attachIcon(icon); } frame 10 { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1306 % 511) * true; if (!'') { } else {} return ; } var  = -37 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 247) {  -= 199; true; } if ( != 552) break; for (;;) {  += 444; if ( == 402) {  += 238; // An attempt to read a value from empty stack !undefined; } if ( == 119) {  += 410; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; } if ( == 260) {  += 736; } if ( == 640) {  += 105; break; } if ( == 617) {  += 107; }  += 49;  -= 128;  -= 877;  += 194;  += 455;  -= 724;  -= 321; } } } } } } } } } } } } } } } } } }  != 48; ''; 1; ; } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 716 NewgroundsAPIAsset_Login_Warning { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2405 % 511) * true; if (!'') { } else {} return ; } var  = 627 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 988) {  -= 678; true; } if ( != 367) break; for (;;) {  -= 23; if ( == 122) {  += 12; // An attempt to read a value from empty stack var eval(undefined) = true; } if ( == 310) {  += 571; if (!true) { break; }  += 61; } if ( == 465) {  += 306; } if ( == 771) {  -= 360; } if ( == 529) {  -= 439; }  += 261;  += 121;  += 61;  -= 575;  -= 185;  -= 100;  -= 52;  -= 76;  += 4;  += 32;  -= 77;  += 244;  += 215;  -= 335;  -= 172;  -= 937;  += 470; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } true;  != 432; true; ''; 1; eval(!''); } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 719 NewgroundsAPIAsset_Connection_Error { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1027 % 511) * true; if (!'') { } else {} return ; } var  = 41 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 46) {  += 172; true; } if ( != 5) break; for (;;) {  += 466; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; if ( == 990) {  -= 8; } if ( == 799) {  -= 633; } if ( == 867) {  -= 595; } if ( == 152) {  -= 141; break; }  += 467; if ( != 218) goto 596; label 596:  -= 86;  += 415;  -= 462;  += 723;  += 92;  -= 581;  -= 267;  -= 93;  -= 61;  -= 86;  += 383;  += 595;  -= 772;  += 598;  -= 5;  -= 563;  -= 941;  += 643; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } true; ''; 1; !; true; } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 721 { } movieClip 723 { } movieClip 725 { } movieClip 727 { } movieClip 729 { } movieClip 731 { } movieClip 733 { } movieClip 735 { } movieClip 737 { } movieClip 739 { } movieClip 740 NewgroundsAPIAsset_big_popup_background { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2030 % 511) * true; if (!'') { } else {} return ; } var  = 367 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 864) {  -= 294; true; } if ( == 820) { for (;;) {  -= 389; if ( == 636) {  -= 82; // An attempt to read a value from empty stack if (!undefined) { goto 290; }  += 266; label 290: } if ( == 554) {  += 266; } if ( == 154) {  += 482; // An attempt to read a value from empty stack !undefined; } if ( != 141) break;  += 596; if ( != 304) goto 574;  -= 150; // An attempt to read a value from empty stack label 574:  -= 333;  -= 431;  -= 429;  -= 716;  += 419; var eval( != 637) = '';  -= 362;  -= 423;  += 491;  += 883;  -= 355;  += 693;  -= 601; } eval(undefined); ''; 1; true; } } } } } } } } } } } } } } } } } } } } } } } } } } } button 744 { on (release) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (202 % 511) * true; if (!'') { } else {} return ; } var  = 329 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 531) {  -= 20; true; } if ( == 21) { for (;;) {  += 520; // An attempt to read a value from empty stack if (!undefined) { break; }  -= 518; if ( != 405) break;  -= 384; // An attempt to read a value from empty stack if ( == 23) {  += 559; } if ( == 541) {  -= 518; } if ( != 55) break;  += 493; if ( != 324) goto 542;  += 315; label 542:  += 204;  -= 11; var  =  != 548;  -= 279;  += 634;  -= 234;  -= 582;  -= 232;  -= 610;  -= 417;  -= 545;  += 344;  += 33; } eval(!undefined); ''; 1; true; } } } } } } } } } } } } } } } } } } } } } } } } } } } button 751 { on (release) { getURL(official_version_url, '_blank'); } } movieClip 753 NewgroundsAsset_New_Version_Available { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1856 % 511) * true; if (!'') { } else {} return ; } var  = 24 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 347) {  += 46; true; } if ( == 187) { for (;;) {  -= 67; // An attempt to read a value from empty stack if ( != 524) break;  += 441; if (!undefined) break; continue;  -= 776; if ( == 981) {  -= 820; } if ( != 90) break;  += 273; // An attempt to read a value from empty stack if (!undefined) { continue; }  -= 362;  -= 237;  -= 776;  += 160;  -= 189;  += 256; var eval(eval( != 424)) = '';  -= 460;  -= 362;  += 299;  -= 400;  += 874;  += 424;  -= 283;  += 121;  += 184;  += 196;  -= 232;  += 567;  += 347;  -= 887; } true; true; ''; 1; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } button 754 { on (release) { getURL(official_version_url, '_blank'); } } movieClip 758 NewgroundsAsset_Illegal_Host { frame 1 { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (533 % 511) * true; if (!'') { } else {} return ; } var  = 487 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 509) {  -= 473; true; } if ( != 704) break; for (;;) {  -= 166; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; if ( == 144) {  += 104; // An attempt to read a value from empty stack !undefined; } if ( == 560) {  -= 391; } if ( != 36) break;  += 955; // An attempt to read a value from empty stack if (undefined) goto 378; continue; label 378:  -= 561; if ( == 991) {  -= 561; } if ( == 430) {  -= 261; }  += 280;  += 306;  += 535;  -= 144;  -= 250;  -= 265;  -= 569; } } } } } } } } } } } } } } } } } }  != 248; ''; eval(1); ''; } } movieClip 759 NewgroundsAPI_Connector { #initclip Object.registerClass('NewgroundsAPI_Connector', com.Newgrounds.APIConnector); #endinitclip frame 20 { _visible = false; } } frame 1 { Stage.showMenu = false; stop(); getPercentLoaded = com.Newgrounds.NewgroundsAPI.getPercentLoaded(); _global.unlockMedal = function (medal_name) { var v3 = com.Newgrounds.NewgroundsAPI.getMedal(medal_name); v3.unlock(); _root.medalTime = 100; }; } movieClip 775 { } // unknown tag 88 length 70 button 804 { on (release) { _root.preserveData.mechanics = 1; _root.preserveData.enableCam = false; csHighlight1._visible = true; csHighlight2._visible = false; csHighlight3._visible = false; } } button 805 { on (release) { _root.preserveData.mechanics = 2; _root.preserveData.enableCam = true; csHighlight1._visible = false; csHighlight2._visible = true; csHighlight3._visible = false; } } button 806 { on (release) { _root.preserveData.mechanics = 3; _root.preserveData.enableCam = true; csHighlight1._visible = false; csHighlight2._visible = false; csHighlight3._visible = true; } } movieClip 807 { } button 832 { on (press) { if (_parent._currentframe == 1) { _root.preserveData.pname = _parent.nameText.text; _root.preserveData.saveAll(); } _root.gotoAndPlay(15); } } movieClip 835 { } movieClip 836 { frame 1 { stop(); } } button 841 { on (press) { getURL('http://www.newgrounds.com/awards.html?page=games', '_blank'); } } movieClip 842 { frame 1 { nameText.restrict = 'A-Z a-z 0-9'; stop(); } instance of movieClip 775 { onClipEvent (enterFrame) { _xscale = 100 * (_root.getBytesLoaded() / _root.getBytesTotal()); } } instance csHighlight3 of movieClip 807 { onClipEvent (load) { _visible = false; } } instance csHighlight1 of movieClip 807 { onClipEvent (load) { _visible = false; } } instance of movieClip 836 { onClipEvent (enterFrame) { percent_loaded = _root.getPercentLoaded(); if (percent_loaded >= 100) { this.gotoAndStop(2); } } } instance of movieClip 836 { onClipEvent (enterFrame) { if (_root.getBytesLoaded() >= _root.getBytesTotal()) { this.gotoAndStop(2); } } } } movieClip 844 { } instance of movieClip 844 { onClipEvent (load) { this.swapDepths(99999919); } } movieClip 846 { } instance preserveData of movieClip 846 { onClipEvent (load) { function setDefaults() { this.curSong = 0; this.enableBGM = true; this.enableSFX = true; this.enableCam = true; this.mechanics = 3; this.difficulty = 2; this.groundsGold = 250; this.matchesWon = 0; this.matchesLost = 0; this.longCombo = 0; this.damageCombo = 0; this.survivalRecords = new Array(); this.survivalRecords = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.survivalBest = 0; this.trainingCompleted = false; this.challengeCompleted = new Array(); this.challengeCompleted = [false, false, false, false, false, false, false, false, false, false, false, false, false]; this.storyCompleted = new Array(); this.storyCompleted = [false, false, false, false, false, false, false, false, false, false, false, false, false]; this.customKeys = [0, [-2, -1, -3, -4, 97, 115, 100], [-2, -1, -3, -4, 106, 107, 108, 0], [100, 97, 119, 115, 102, 103, 104, 0], [49, 50, 51, 52, 53, 54, 55], [122, 120, 99, 118, 98, 110, 109]]; this.numPlayers = 1; this.unlockPiconjo = false; this.unlockConvict = false; this.unlockJunkyard = false; this.unlockPaddedCell = false; this.unlockTrainingRoom = false; this.unlockOrbiter = false; this.unlockRegeneration = false; this.unlockSurvivalMode = false; } function playSong(songID) { this.storedSong = songID; if (songID == 0 || !this.enableBGM) { stopAllSounds(); this.curSong = 0; return undefined; } if (this.curSong != songID) { stopAllSounds(); this.curSong = songID; this.bgm.attachSound('bgm' + songID); this.bgm.start(0, 9999); } } function saveAll() { _root.saveFile.data.enableBGM = this.enableBGM; _root.saveFile.data.enableSFX = this.enableSFX; _root.saveFile.data.enableCam = this.enableCam; _root.saveFile.data.mechanics = this.mechanics; _root.saveFile.data.difficulty = this.difficulty; _root.saveFile.data.pname = this.pname; _root.saveFile.data.groundsGold = this.groundsGold; _root.saveFile.data.matchesWon = this.matchesWon; _root.saveFile.data.matchesLost = this.matchesLost; _root.saveFile.data.longCombo = this.longCombo; _root.saveFile.data.damageCombo = this.damageCombo; _root.saveFile.data.survivalRecords = this.survivalRecords; _root.saveFile.data.survivalBest = this.survivalBest; _root.saveFile.data.trainingCompleted = this.trainingCompleted; _root.saveFile.data.storyCompleted = this.storyCompleted; _root.saveFile.data.challengeCompleted = this.challengeCompleted; _root.saveFile.data.customKeys = this.customKeys; _root.saveFile.data.unlockPiconjo = this.unlockPiconjo; _root.saveFile.data.unlockConvict = this.unlockConvict; _root.saveFile.data.unlockTrainingRoom = this.unlockTrainingRoom; _root.saveFile.data.unlockJunkyard = this.unlockJunkyard; _root.saveFile.data.unlockPaddedCell = this.unlockPaddedCell; _root.saveFile.data.unlockOrbiter = this.unlockOrbiter; _root.saveFile.data.unlockRegeneration = this.unlockRegeneration; _root.saveFile.data.unlockSurvivalMode = this.unlockSurvivalMode; _root.saveFile.flush(); } function loadAll() { this.enableBGM = _root.saveFile.data.enableBGM; this.enableSFX = _root.saveFile.data.enableSFX; this.enableCam = _root.saveFile.data.enableCam; this.mechanics = _root.saveFile.data.mechanics; this.difficulty = _root.saveFile.data.difficulty; this.pname = _root.saveFile.data.pname; this.groundsGold = _root.saveFile.data.groundsGold; this.matchesWon = _root.saveFile.data.matchesWon; this.matchesLost = _root.saveFile.data.matchesLost; this.longCombo = _root.saveFile.data.longCombo; this.damageCombo = _root.saveFile.data.damageCombo; this.survivalRecords = _root.saveFile.data.survivalRecords; this.survivalBest = _root.saveFile.data.survivalBest; this.trainingCompleted = _root.saveFile.data.trainingCompleted; this.storyCompleted = _root.saveFile.data.storyCompleted; this.challengeCompleted = _root.saveFile.data.challengeCompleted; this.customKeys = _root.saveFile.data.customKeys; this.unlockPiconjo = _root.saveFile.data.unlockPiconjo; this.unlockConvict = _root.saveFile.data.unlockConvict; this.unlockTrainingRoom = _root.saveFile.data.unlockTrainingRoom; this.unlockJunkyard = _root.saveFile.data.unlockJunkyard; this.unlockPaddedCell = _root.saveFile.data.unlockPaddedCell; this.unlockOrbiter = _root.saveFile.data.unlockOrbiter; this.unlockRegeneration = _root.saveFile.data.unlockRegeneration; this.unlockSurvivalMode = _root.saveFile.data.unlockSurvivalMode; if (this.customKeys.length <= 4) { this.customKeys[4] = [49, 50, 51, 52, 53, 54, 55]; this.customKeys[5] = [122, 120, 99, 118, 98, 110, 109]; } else { if (this.survivalRecords.length < 14) { this.survivalRecords.push(0); this.survivalRecords.push(0); this.survivalRecords.push(0); } } _root.saveFile.flush(); } this.setDefaults(); this.bgm = new Sound(); _root.saveFile = SharedObject.getLocal('saveFile', '/'); if (_root.saveFile.data.pname != undefined) { this.loadAll(); _root.preloader.gotoAndStop(2); } this.restartTraining = false; } } instance of movieClip 759 NewgroundsAPI_Connector { onClipEvent (construct) { encryption_key = 'Nwe8Z8d4xePxhCfTDsE6bMxLvVIaf6Td'; movie_id = '8182'; movie_version = ''; debug = false; } } movieClip 760 __Packages.com.Newgrounds.BaseN { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1587 % 511) * true; if (!'') { } else {} return ; } var  = 358 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( != 412) break;  -= 385; if ( == 808) { for (;;) {  -= 584; if ( == 363) {  += 445; if (true) break; goto 290;  -= 584; label 290: } if ( == 27) {  += 857; if (!true) { break; }  -= 750; } if ( == 495) {  -= 324; }  -= 381;  -= 750;  += 111;  -= 478;  += 284;  += 380;  += 515;  += 118;  += 125;  += 503;  -= 453; var  = 1;  -= 86;  += 182;  -= 685; } } } } } } } } } } } } } } } } } } } } } } } } } true; #endinitclip } movieClip 761 __Packages.com.Newgrounds.NewgroundsAPIError { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1263 % 511) * true; if (!'') { } else {} return ; } var  = 141 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 327; continue; if ( != 504) break; for (;;) {  -= 34; if ( == 860) {  += 135; } if ( != 299) break;  += 119; if ( == 830) {  += 30; } if ( != 418) goto 1040;  += 115; label 1040: if ( == 533) {  -= 29; var  = 1; }  += 127;  += 335;  += 318;  -= 369;  -= 240;  -= 102;  -= 995; } } } } } } } } } } } } } } } } } }  != 382; true; ''; ''; 1; eval( == 805); #endinitclip } movieClip 762 __Packages.com.Newgrounds.NewgroundsAPI { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1568 % 511) * true; if (!'') { } else {} return ; } var  = 527 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { while ( == 562) {  += 134; continue; if ( == 181) { for (;;) {  += 392; if ( != 255) break;  += 248; } else { if (!eval(true)) { }  -= 138; if ( == 173) {  += 350; } if ( == 523) {  += 387; } if ( == 436) {  += 35; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; } if ( == 910) {  -= 655; true; }  += 838;  -= 271;  -= 290;  += 215;  -= 523;  -= 138;  += 605;  += 342;  -= 102;  -= 465;  += 736;  -= 957; } } } } } } } } } } } } } } } } } } } } } } } } } true; #endinitclip } movieClip 765 __Packages.com.Newgrounds.NewgroundsAPISaveFile { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1260 % 511) * true; if (!'') { } else {} return ; } var  = 47 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 157; continue; if ( == 116) { for (;;) {  += 337; } else {  += 110; if ( == 762) { if (!true) { }  -= 155; } if ( == 717) {  -= 669; } if ( == 381) {  += 417; } if ( == 335) {  += 109; } if ( == 453) {  += 309; }  -= 155;  -= 334;  += 33;  -= 52;  += 140;  += 397;  += 75; var  = 1;  += 72;  -= 71;  -= 76;  += 84;  -= 798; } } } } } } } } } } } } } } } } } } } } } } } } }  != 285; true; #endinitclip } movieClip 763 __Packages.com.Newgrounds.ImageScanner { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2180 % 511) * true; if (!'') { } else {} return ; } var  = 25 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 161) {  -= 53; true; } if ( == 460) { for (;;) {  -= 61; // An attempt to read a value from empty stack if (!undefined) { goto 235; }  -= 190; label 235: if ( == 105) {  += 685; ''; } if ( == 188) {  += 272; // An attempt to read a value from empty stack !undefined; } if ( == 817) {  -= 814; } if ( == 87) {  += 18; // An attempt to read a value from empty stack // An attempt to read a value from empty stack var eval(undefined) = undefined; }  += 785;  -= 417;  -= 190;  += 337;  -= 31;  += 317;  -= 49;  += 613;  -= 602;  -= 155;  -= 54;  -= 253;  += 144;  -= 127;  += 221;  -= 157;  -= 440;  -= 766; }  != 108; eval(true); ''; 1; true; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } #endinitclip } movieClip 686 __Packages.com.Newgrounds.APIConnector { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1136 % 511) * true; if (!'') { } else {} return ; } var  = 123 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( == 237) {  += 533; true; } if ( == 770) { for (;;) {  += 137; // An attempt to read a value from empty stack if (!undefined) { goto 235; }  -= 269; label 235: if ( != 227) break;  += 405; if ( == 907) {  -= 269; } if ( == 421) {  += 54; } if ( == 159) {  += 68; } if ( == 176) {  += 666; }  += 958;  += 73;  += 24;  -= 140;  -= 567;  += 341; var eval( == 12) = '';  -= 497;  += 312;  -= 237;  -= 645;  += 146;  += 169;  -= 573;  -= 526;  += 543;  -= 658;  += 204; } eval(true); true; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } #endinitclip } movieClip 764 __Packages.com.Newgrounds.JSON { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2441 % 511) * true; if (!'') { } else {} return ; } var  = -368 + (); for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { if ( != 29) break;  += 228; if ( != 671) break; for (;;) {  -= 150; if ( == 251) {  += 362; } if ( == 871) {  -= 602; if (!true) { break; }  += 14; } if ( == 312) {  -= 26; }  += 257; if ( == 109) { } else {  += 318; }  -= 798;  += 449;  += 318;  += 14;  += 489;  -= 398;  -= 206; // An attempt to read a value from empty stack var eval(undefined) = eval(true);  += 603;  -= 204;  += 585;  -= 185;  += 355;  += 292;  -= 143;  += 716;  -= 175;  -= 504;  -= 521; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } ''; ''; 1; !true; true; #endinitclip } movieClip 766 __Packages.com.Newgrounds.NewgroundsAPIMedal { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (560 % 511) * true; if (!'') { } else {} return ; } var  = 514 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 420; continue; if ( == 35) { for (;;) {  += 115; if ( != 825) break;  -= 342; if ( == 690) {  -= 314; } if ( != 986) break;  -= 765; if ( == 355) {  -= 101; } if ( == 366) {  += 459; } if ( != 733) goto 578;  -= 583; label 578:  += 479;  -= 313;  += 9;  += 849;  += 502;  += 333;  -= 207;  -= 145;  += 374;  -= 95;  -= 396;  -= 8;  += 532;  -= 97;  -= 522;  += 2;  += 398; var  = 1;  += 436;  -= 151;  -= 20;  -= 586; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 563; true; #endinitclip } movieClip 767 __Packages.com.Newgrounds.RC4 { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (1666 % 511) * true; if (!'') { } else {} return ; } var  = -36 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 356; continue; if ( == 998) { for (;;) {  -= 213; if ( != 132) break;  += 797; if ( == 40) {  += 325; } if ( != 813) break;  += 185; if ( == 453) {  -= 304; break; }  -= 329; if ( != 833) goto 537; label 537:  += 185;  -= 283; var  = !1;  += 118;  -= 488;  -= 109;  += 309;  += 40;  -= 501;  -= 609;  += 468;  += 185;  -= 39;  -= 429; } } } } } } } } } } } } } } } } } } } } } } } } }  != 97; true; #endinitclip } movieClip 768 __Packages.com.Newgrounds.MD5 { #initclip for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { Unknown action: 0xfc function () {  = (2001 % 511) * true; if (!'') { } else {} return ; } var  = -297 + (); // An attempt to read a value from empty stack while (!undefined) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) { for (;;) {  += 699; continue; if ( == 806) { for (;;) {  -= 423; if ( == 253) {  += 378; } if ( == 870) {  -= 39; if (!true) { } else {  -= 552; } } if ( != 950) break;  -= 697; if (!true) { continue; }  += 378;  += 123;  -= 629;  += 68;  -= 61;  += 705;  += 129;  -= 112;  += 380;  -= 69;  -= 405;  -= 337;  += 319;  += 770; var eval(1) = true;  += 271;  -= 902;  -= 192;  += 182;  -= 370;  -= 552; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }  != 171; true; #endinitclip } frame 2 { function playSoundOnce(chan, spec) { if (!_root.preserveData.enableSFX) { return undefined; } if (!_root[chan + 'Sound']) { _root[chan + 'Sound'] = new Sound(); } _root[chan + 'Sound'].attachSound(spec); _root[chan + 'Sound'].start(0, 0); } } frame 2 { function routineMedalCheck() { scomp = 0; i = 1; while (i <= 13) { if (_root.preserveData.storyCompleted[i]) { ++scomp; } ++i; } ccomp = 0; i = 1; while (i <= 12) { if (_root.preserveData.challengeCompleted[i]) { ++ccomp; } ++i; } gcomp = scomp * 3 + ccomp * 2 + _root.preserveData.unlockPiconjo * 5 + _root.preserveData.unlockConvict * 5 + _root.preserveData.unlockSurvivalMode * 6 + _root.preserveData.unlockPaddedCell * 4 + _root.preserveData.unlockJunkyard * 4 + _root.preserveData.unlockRegeneration * 4 + _root.preserveData.unlockOrbiter * 4 + _root.preserveData.unlockTrainingRoom * 4 + _root.preserveData.trainingCompleted * 4; if (!_root.preserveData.storyMedal && scomp >= 12) { _root.preserveData.storyMedal = true; unlockMedal('The Eventuallyending Story'); } if (!_root.preserveData.challengeMedal && ccomp >= 12) { _root.preserveData.challengeMedal = true; unlockMedal('Diplomatically Challenged'); } if (!_root.preserveData.completeMedal && gcomp >= 100) { _root.preserveData.completeMedal = true; unlockMedal('Transgressive Compulsive'); } if (!_root.preserveData.goldMedal && _root.preserveData.groundsGold >= 5000) { _root.preserveData.goldMedal = true; unlockMedal('Wall Street Brawler'); } } routineMedalCheck(); if (_root.preserveData.mechanics > 1) { _quality = 'HIGH'; } else { if (_quality == 'LOW') { _quality = 'MEDIUM'; } } _root.preserveData.numPlayers = 1; _root.preserveData.playSong(6); stop(); charNames = new Array(); charNames = ['', 'Alloy', 'Pico', 'P-Bot', 'Nene', 'S\'asshole', 'Salad Fingers', 'Piconjo', 'Tankman', 'A. Hominid', 'Convict', 'Hank', 'Henchman', 'Fancy Pants']; charSelect = new Array(); teamSelect = new Array(); _root.preserveData.saveAll(); } movieClip 874 { frame 7 { stop(); } } button 876 { on (release) { gotoAndStop(46); _root.playSoundOnce('menu', 'hit2'); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); } } movieClip 881 { frame 7 { stop(); } } button 883 { on (release) { _root.playSoundOnce('menu', 'hit2'); _root.gotoAndStop(7); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); gotoAndStop(45); } } movieClip 888 { frame 7 { stop(); } } button 890 { on (release) { _root.playSoundOnce('menu', 'hit2'); _root.gotoAndStop(5); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); gotoAndStop(45); } } movieClip 895 { frame 7 { stop(); } } button 897 { on (release) { _root.playSoundOnce('menu', 'hit2'); _root.gotoAndStop(6); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); gotoAndStop(45); } } movieClip 902 { frame 7 { stop(); } } button 904 { on (release) { _root.playSoundOnce('menu', 'hit2'); getURL('http://www.newgrounds.com', '_blank'); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); gotoAndStop(45); } } button 906 { on (release) { _root.gotoAndStop(7); } on (rollOver) { gotoAndStop(45); } } button 907 { on (release) { _root.gotoAndStop(5); } on (rollOver) { gotoAndStop(45); } } button 908 { on (release) { _root.gotoAndStop(6); } on (rollOver) { gotoAndStop(45); } } button 909 { on (release) { getURL('http://www.newgrounds.com', '_blank'); } on (rollOver) { gotoAndStop(45); } } button 932 { on (release) { _root.playSoundOnce('menu', 'miss2'); _root.playMode = 1; _root.preserveData.playMode = 1; _root.gotoAndStop(9); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); } } button 935 { on (release) { _root.playSoundOnce('menu', 'miss2'); _root.playMode = 2; _root.preserveData.playMode = 2; _root.gotoAndStop(10); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); } } button 938 { on (release) { _root.playSoundOnce('menu', 'miss2'); _root.playMode = 3; _root.preserveData.playMode = 3; _root.gotoAndStop(8); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); } } button 941 { on (release) { _root.playSoundOnce('menu', 'miss2'); _root.playMode = 5; _root.preserveData.playMode = 5; _root.gotoAndStop(11); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); } } button 945 { on (release) { _root.playSoundOnce('menu', 'miss2'); _root.playMode = 4; _root.preserveData.playMode = 4; _root.gotoAndStop(12); } on (rollOver) { _root.playSoundOnce('menu', 'miss1'); } } movieClip 946 { } movieClip 947 { frame 22 { stop(); } instance of movieClip 946 { onClipEvent (load) { if (_root.preserveData.unlockSurvivalMode) { gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 948 { frame 7 { _root.playSoundOnce('menu', 'hit2'); } frame 15 { _root.playSoundOnce('menu', 'metalHit'); } frame 26 { _root.playSoundOnce('menu', 'bulletSound'); } frame 29 { _root.playSoundOnce('menu', 'bulletSound'); } frame 31 { _root.playSoundOnce('menu', 'bulletSound'); } frame 33 { _root.playSoundOnce('menu', 'bulletSound'); } frame 35 { _root.playSoundOnce('menu', 'bulletSound'); } frame 37 { _root.playSoundOnce('menu', 'bulletSound'); } frame 39 { _root.playSoundOnce('menu', 'bulletSound'); } frame 41 { _root.playSoundOnce('menu', 'bulletSound'); } frame 45 { stop(); } frame 46 { stop(); } } movieClip 976 { } movieClip 977 { } movieClip 987 { } movieClip 990 { } movieClip 992 { } movieClip 996 { } movieClip 1000 { } movieClip 1003 { } movieClip 1010 { } movieClip 1028 { } movieClip 1031 { } movieClip 1055 { } movieClip 1079 { } movieClip 1091 { } movieClip 1112 { } movieClip 1131 { } movieClip 1144 { } movieClip 1151 { } movieClip 1154 { } movieClip 1169 { } movieClip 1170 { } movieClip 1172 { } movieClip 1173 { instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.rageMode > 18 && random(4) == 0) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.rageMode > 18 && random(4) == 0) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.rageMode > 18) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.rageMode > 18 && random(4) == 0) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (outward) { _rotation = _rotation + 8; _alpha = _alpha + 3; _xscale = _xscale + 5; _yscale = _yscale + 5; if (_xscale > 100) { outward = false; } } else { if (_xscale < 10) { if (random(15) == 0) { outward = true; _x = random(40) - 20; _y = random(40); } } else { _rotation = _rotation + 5; _alpha = _alpha - 3; _xscale = _xscale - 5; _yscale = _yscale - 5; } } } onClipEvent (load) { outward = false; } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.rageMode > 18) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.regen > 18 && random(4) == 0) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.regen > 18 && random(4) == 0) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.regen > 18) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } instance of movieClip 1172 { onClipEvent (enterFrame) { if (_alpha < 20 && _parent._parent.regen > 18 && random(4) == 0) { _alpha = 80; _x = random(40) - 20; _y = random(40); } else { _y = _y - (_parent._parent.ySpeed / 2 + 3); _alpha = _alpha - 3; } } } } movieClip 1190 { frame 51 { gotoAndPlay(1); } } movieClip 1205 { frame 51 { gotoAndPlay(1); } } movieClip 1218 { } movieClip 1230 { } movieClip 1232 { } movieClip 1233 { } movieClip 1247 { } movieClip 1250 { } movieClip 1253 { } movieClip 1261 { } movieClip 1265 { } movieClip 1267 { } movieClip 1268 { } movieClip 1282 { } movieClip 1283 { } movieClip 1284 { } movieClip 1291 { frame 3 { stop(); } } movieClip 1334 { } movieClip 1358 { } movieClip 1374 { } movieClip 1386 { } movieClip 1402 { } movieClip 1441 { } movieClip 1442 { } movieClip 1449 { } movieClip 1452 { } movieClip 1456 { } movieClip 1457 { } movieClip 1464 { } movieClip 1486 { } movieClip 1487 { } movieClip 1494 { } movieClip 1496 { } movieClip 1497 { } movieClip 1501 { } movieClip 1502 { } movieClip 1512 { } movieClip 1515 { } movieClip 1539 { frame 22 { stop(); } } movieClip 1543 { } movieClip 1550 { } movieClip 1551 { } movieClip 1553 { } movieClip 1559 { } movieClip 1578 { } movieClip 1579 { } movieClip 1583 { } movieClip 1596 { } movieClip 1601 { } movieClip 1620 { } movieClip 1621 { } movieClip 1622 { } movieClip 1623 { } movieClip 1630 { } movieClip 1631 { } movieClip 1643 { } movieClip 1645 { } movieClip 1648 { } movieClip 1652 { } movieClip 1656 { } movieClip 1658 { } movieClip 1661 { } movieClip 1674 { } movieClip 1676 { } movieClip 1704 { } movieClip 1732 { } movieClip 1776 { } movieClip 1806 { } movieClip 1809 { } movieClip 1862 { } movieClip 1885 { } movieClip 1886 { } movieClip 1905 { } movieClip 1910 { } movieClip 1917 { } movieClip 1935 { } movieClip 1936 { } movieClip 1937 { } movieClip 1948 { } movieClip 1949 { } movieClip 1950 { } movieClip 1964 { } movieClip 2002 { } movieClip 2005 { } movieClip 2045 { } movieClip 2073 { } movieClip 2075 { } movieClip 2104 { } movieClip 2141 { } movieClip 2143 { } movieClip 2171 { } movieClip 2172 { } movieClip 2174 { } movieClip 2176 { } movieClip 2178 { } movieClip 2180 { } movieClip 2182 { } movieClip 2184 { } movieClip 2186 { } movieClip 2188 { } movieClip 2190 { } movieClip 2192 { } movieClip 2199 { } movieClip 2200 { } movieClip 2221 { } movieClip 2255 { } movieClip 2257 { } movieClip 2266 { } movieClip 2268 { } movieClip 2270 { } movieClip 2272 { } movieClip 2279 { } movieClip 2281 { } movieClip 2283 { } movieClip 2289 { } movieClip 2293 { } movieClip 2299 { } movieClip 2300 { } movieClip 2302 { } movieClip 2311 { } movieClip 2315 { } movieClip 2322 { } movieClip 2328 { } movieClip 2330 { } movieClip 2332 { } movieClip 2356 { } movieClip 2386 { } movieClip 2389 { } movieClip 2407 { } movieClip 2408 { } movieClip 2433 { } movieClip 2481 { } movieClip 2488 { } movieClip 2493 { } movieClip 2494 { } movieClip 2495 { } movieClip 2497 { } movieClip 2499 { } movieClip 2501 { } movieClip 2503 { } movieClip 2505 { } movieClip 2507 { } movieClip 2509 { } movieClip 2511 { } movieClip 2513 { } movieClip 2514 { } movieClip 2516 { } movieClip 2518 { } movieClip 2520 { } movieClip 2522 { } movieClip 2524 { } movieClip 2525 { } movieClip 2527 { } movieClip 2529 { } movieClip 2531 { } movieClip 2532 { } movieClip 2534 { } movieClip 2536 { } movieClip 2538 { } movieClip 2539 { } movieClip 2542 { } movieClip 2544 { } movieClip 2546 { } movieClip 2548 { } movieClip 2550 { } movieClip 2556 { } movieClip 2560 { } movieClip 2561 { } movieClip 2563 { } movieClip 2564 { } movieClip 2566 { } movieClip 2567 { } movieClip 2568 { } movieClip 2569 { } movieClip 2570 { } movieClip 2572 { } movieClip 2574 { } movieClip 2576 { } movieClip 2578 { } movieClip 2580 { } movieClip 2582 { } movieClip 2584 { } movieClip 2586 { } movieClip 2588 { } movieClip 2589 { } movieClip 2591 { } movieClip 2594 { } movieClip 2597 { } movieClip 2608 { } movieClip 2615 { } movieClip 2617 { } movieClip 2623 { } movieClip 2625 { } movieClip 2627 { } movieClip 2631 { } movieClip 2634 { } movieClip 2636 { } movieClip 2639 { } movieClip 2641 { } movieClip 2644 { } movieClip 2646 { } movieClip 2650 { } movieClip 2652 { } movieClip 2655 { } movieClip 2663 { } movieClip 2665 { } movieClip 2679 { } movieClip 2680 { } movieClip 2682 { } movieClip 2686 { } movieClip 2687 { } movieClip 2692 { } movieClip 2693 { } movieClip 2695 { } movieClip 2697 { } movieClip 2698 { } movieClip 2701 { } movieClip 2703 { } movieClip 2704 { } movieClip 2709 { } movieClip 2710 { } movieClip 2712 { } movieClip 2715 { } movieClip 2717 { } movieClip 2719 { } movieClip 2722 { } movieClip 2724 { } movieClip 2726 { } movieClip 2728 { } movieClip 2729 { } movieClip 2733 { } movieClip 2743 { } movieClip 2745 { } movieClip 2749 { } movieClip 2750 { } movieClip 2754 { } movieClip 2755 { } movieClip 2757 { } movieClip 2759 { } movieClip 2772 { } movieClip 2773 { } movieClip 2775 { } movieClip 2776 { } movieClip 2778 { } movieClip 2779 { } movieClip 2781 { } movieClip 2786 { } movieClip 2787 { } movieClip 2788 { } movieClip 2789 { } movieClip 2791 { } movieClip 2793 { } movieClip 2795 { } movieClip 2796 { } movieClip 2797 { } movieClip 2799 { } movieClip 2800 { } movieClip 2802 { } movieClip 2805 { } movieClip 2813 { } movieClip 2814 { } movieClip 2815 { } movieClip 2817 { } movieClip 2818 { } movieClip 2820 { } movieClip 2821 { } movieClip 2822 { } movieClip 2825 { } movieClip 2839 { } movieClip 2841 { } movieClip 2842 { } movieClip 2845 { } movieClip 2851 { } movieClip 2852 { frame 4 { stop(); } } movieClip 2855 { } movieClip 2856 { } movieClip 2857 { } movieClip 2858 { } movieClip 2861 { } movieClip 2862 { } movieClip 2864 { } movieClip 2866 { } movieClip 2868 { } movieClip 2869 { } movieClip 2871 { } movieClip 2872 { } movieClip 2873 { } movieClip 2875 { } movieClip 2877 { } movieClip 2878 { } movieClip 2880 { } movieClip 2882 { } movieClip 2884 { } movieClip 2886 { } movieClip 2888 { } movieClip 2899 { } movieClip 2900 { } movieClip 2902 { } movieClip 2904 { } movieClip 2906 { } movieClip 2908 { } movieClip 2909 { } movieClip 2910 { } movieClip 2912 { } movieClip 2919 { } movieClip 2920 { } movieClip 2921 { } movieClip 2930 { } movieClip 2939 { } movieClip 2943 { } movieClip 2949 { } movieClip 2957 { } movieClip 2961 { } movieClip 2962 { } movieClip 2970 { } movieClip 2990 { } movieClip 2992 { } movieClip 2993 { } movieClip 3009 { } movieClip 3031 { } movieClip 3040 { } movieClip 3050 { } movieClip 3068 { } movieClip 3070 { } movieClip 3071 { } movieClip 3090 { } movieClip 3093 { } movieClip 3094 { } movieClip 3097 { } movieClip 3099 { } movieClip 3100 { } movieClip 3102 { } movieClip 3104 { } movieClip 3106 { } movieClip 3108 { } movieClip 3111 { } movieClip 3116 { } movieClip 3120 { } movieClip 3122 { } movieClip 3123 { } movieClip 3124 { } movieClip 3127 { } movieClip 3130 { } movieClip 3131 { } movieClip 3132 { } movieClip 3134 { } movieClip 3137 { } movieClip 3143 { } movieClip 3144 { } movieClip 3149 { } movieClip 3150 { } movieClip 3151 { } movieClip 3154 { } movieClip 3156 { } movieClip 3157 { } movieClip 3163 { } movieClip 3164 { } movieClip 3166 { } movieClip 3174 { } movieClip 3176 { } movieClip 3177 { } movieClip 3184 { } movieClip 3185 { } movieClip 3186 { } movieClip 3187 { } movieClip 3188 { } movieClip 3189 { } movieClip 3191 { } movieClip 3192 { } movieClip 3196 { } movieClip 3198 { } movieClip 3199 { } movieClip 3200 { } movieClip 3201 { } movieClip 3202 { } movieClip 3204 { } movieClip 3206 { } movieClip 3207 { } movieClip 3209 { } movieClip 3212 { } movieClip 3213 { } movieClip 3214 { } movieClip 3216 { } movieClip 3218 { } movieClip 3220 { } movieClip 3221 { } movieClip 3227 { } movieClip 3228 { } movieClip 3229 { } movieClip 3231 { } movieClip 3253 { } movieClip 3284 { } movieClip 3293 { } movieClip 3304 { } movieClip 3309 { } movieClip 3322 { } movieClip 3363 { } movieClip 3367 { } movieClip 3448 { } movieClip 3491 { } movieClip 3556 { } movieClip 3603 { } movieClip 3634 { frame 9 { gotoAndPlay(1); } } movieClip 3644 { } movieClip 3790 { } movieClip 3809 { } movieClip 3810 { instance spriteIn of movieClip 3253 { onClipEvent (load) { playIt = 1; maxFrames = _totalframes; } onClipEvent (enterFrame) { if (_currentframe + playIt > maxFrames) { playIt = -1; } else { if (_currentframe + playIt == 0) { playIt = 1; } } gotoAndStop(_currentframe + playIt); } } instance spriteIn of movieClip 3363 { onClipEvent (load) { playIt = 1; maxFrames = _totalframes; } onClipEvent (enterFrame) { if (_currentframe + playIt > maxFrames) { playIt = -1; } else { if (_currentframe + playIt == 0) { playIt = 1; } } gotoAndStop(_currentframe + playIt); } } } movieClip 3811 characters { } instance of movieClip 3811 characters { onClipEvent (load) { this.unloadMovie(); } } button 3820 { on (release) { if (newAccountName.text == 'INVALID NAME' || newAccountName.text == '' || newAccountName.text == 'TYPE YOUR NAME') { newAccountName.text = 'INVALID NAME'; } else { _root.preserveData.pname = newAccountName.text; gotoAndStop(1); } } } movieClip 3821 { } instance of movieClip 3821 { onClipEvent (load) { if (_root.preserveData.pname == '') { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } frame 3 { function loadStoryMatch() { teamSelect[2] = 2; teamSelect[3] = 0; teamSelect[4] = 0; if (charSelect[1] == 1) { if (levelID == 0) { arenaSelect = 3; charSelect[2] = 3; battleTitle = '1 of 4 : Red Is the New Color of Envy'; battleComments = 'P-Bot wants to get his hands on Alloy\'s suit, but a doubly powerful P-Bot could become a real tyrant to Newgrounds. Power him down.'; } else { if (levelID == 1) { arenaSelect = 5; charSelect[2] = 5; battleTitle = '2 of 4 : So That\'s Where He Got His Name'; battleComments = 'A lone samurai is rampaging through Newgrounds with little explanation as to why. Stop him before he does any more damage.'; } else { if (levelID == 2) { arenaSelect = 9; charSelect[2] = 8; teamSelect[2] = 1; charSelect[3] = 7; teamSelect[3] = 2; charSelect[4] = 6; teamSelect[4] = 2; battleTitle = '3 of 4 : Alloy Pitches In'; battleComments = 'Piconjo and Salad Fingers have poor Tankman backed into a corner. It\'s Alloy\'s civic duty to help turn the tide in his fight.'; } else { if (levelID == 3) { arenaSelect = 2; charSelect[2] = 9; battleTitle = 'FINAL : Space Invaders'; battleComments = 'A genuine alien. It\'s a stretch, but maybe he\'d have some answers about where Alloy\'s suit came from, even if he has to beat them out.'; } } } } } else { if (charSelect[1] == 2) { if (levelID == 0) { arenaSelect = 1; charSelect[2] = 9; battleTitle = '1 of 4 : Worlds Collide'; battleComments = 'Who\'s never wondered who would win in a fight between Pico and Alien Hominid? Guess we\'ll see.'; } else { if (levelID == 1) { arenaSelect = 3; teamSelect[2] = 1; charSelect[2] = 8; teamSelect[3] = 2; charSelect[3] = 1; teamSelect[4] = 2; charSelect[4] = 3; battleTitle = '2 of 4 : Skins Against Scraps'; battleComments = 'Seems the two robots have reverted to their \'destroy all humans\' assembly. Team up with Tankman to take them down.'; } else { if (levelID == 2) { arenaSelect = 6; charSelect[2] = 4; teamSelect[2] = 1; charSelect[3] = 10; teamSelect[3] = 2; battleTitle = '3 of 4 : Pico V.S. Convict'; battleComments = 'A recreation of the original battle, Pico and Nene face Convict in the school.'; } else { if (levelID == 3) { arenaSelect = 4; charSelect[2] = 7; battleTitle = 'FINAL : Good and Evil'; battleComments = 'Born from everything evil about Pico and Newgrounds alike, Piconjo seeks to overthrow Pico and claim his throne.'; } } } } } else { if (charSelect[1] == 3) { if (levelID == 0) { arenaSelect = 1; charSelect[2] = 7; battleTitle = '1 of 4 : Blam Or Protect'; battleComments = 'Piconjo is trying to sneak some more spam submissions through the portal. Blam this piece of crap!'; } else { if (levelID == 1) { arenaSelect = 3; teamSelect[2] = 1; charSelect[2] = 2; teamSelect[3] = 2; charSelect[3] = 3; battleTitle = '2 of 4 : PBot 2.0'; battleComments = 'From corners unknown, a newer, shinier, and deadlier robot has emerged in P-Bot\'s image. Pico will help to keep retro in style.'; } else { if (levelID == 2) { arenaSelect = 5; charSelect[2] = 5; battleTitle = '3 of 4 : The Long Arm of the Law'; battleComments = 'P-Bot has grown tired of Samurai Asshole\'s vigilante justice so he\'ll be solving the problem with a little police brutality.'; } else { if (levelID == 3) { arenaSelect = 9; charSelect[2] = 8; battleTitle = 'FINAL : Civil Disobedience'; battleComments = 'For too long, Tankman has wrecklessly torn through the streets of Newgrounds on his high and mighty tank. Step in and restore civility.'; } } } } } else { if (charSelect[1] == 4) { if (levelID == 0) { arenaSelect = 10; charSelect[2] = 6; battleTitle = '1 of 4 : Touchy Feely'; battleComments = 'Some creepy pervert has stumbled into Newgrounds with a strange \'touching\' habit. Despite popular belief, Nene will not let just anyone get their hands on her.'; } else { if (levelID == 1) { arenaSelect = 5; charSelect[2] = 5; battleTitle = '2 of 4 : The Biggest Stick Wins'; battleComments = 'Samurai Asshole seems to fancy himself an untouchable warrior behind that flimsy sword. Nene will cut down his ego a few bars with her two razor-edged friends.'; } else { if (levelID == 2) { arenaSelect = 6; charSelect[2] = 2; teamSelect[2] = 1; charSelect[3] = 10; teamSelect[3] = 2; battleTitle = '3 of 4 : I think Nene Was There Too'; battleComments = 'It\'s time to view the notorious defeat of Convict from another perspective. Was Pico the real hero?'; } else { if (levelID == 3) { arenaSelect = 2; charSelect[2] = 2; battleTitle = 'FINAL : A Female President in 2008'; battleComments = 'When word hit the public that Nene was the true captor of Convict, Pico felt he had no choice but to show that Nene\'s power could not match his.'; } } } } } else { if (charSelect[1] == 5) { if (levelID == 0) { arenaSelect = 4; charSelect[2] = 7; battleTitle = '1 of 4 : To Do:'; battleComments = 'Samurai has a long list of people who might have destroyed his village. The obvious first is the insidious villain, Piconjo.'; } else { if (levelID == 1) { arenaSelect = 3; charSelect[2] = 1; battleTitle = '2 of 4 : Rumble in the Scrapyard'; battleComments = 'Who else could have had the power to ruin an entire society? Apparently there\'s a boy who\'s attained great strength from an alien-robotic suit.'; } else { if (levelID == 2) { arenaSelect = 5; charSelect[2] = 2; battleTitle = '3 of 4 : Returning to the Scene'; battleComments = 'Much to his surprise, Pico has shown up in the samurai\'s land and is wreaking havoc. But Pico is a hero, why would he have razed Asshole\'s village?'; } else { if (levelID == 3) { arenaSelect = 10; charSelect[2] = 2; teamSelect[2] = 1; charSelect[3] = 10; teamSelect[3] = 2; battleTitle = 'FINAL : The Man Behind the Curtain'; battleComments = 'The plot thickens as the real Pico finds Asshole and explains to him that he\'s been framed by the shapeshifter, Convict. Team up to punish his deception.'; } } } } } else { if (charSelect[1] == 6) { if (levelID == 0) { arenaSelect = 3; charSelect[2] = 1; battleTitle = '1 of 4 : Mother Never Taught Him to Share'; battleComments = 'Mr. Fingers has found a boy with a peculiar toy - some sort of robut suit. But he\'s not being very kind about giving Salad a turn with it.'; } else { if (levelID == 1) { arenaSelect = 5; charSelect[2] = 5; battleTitle = '2 of 4 : Hostile Reception'; battleComments = 'Salad Fingers was only looking for some nettles to please his fingers when he stumbled across the nasty curator of a japanese garden.'; } else { if (levelID == 2) { arenaSelect = 2; charSelect[2] = 9; battleTitle = '3 of 4 : Friend From Out of Town'; battleComments = 'When a flying auto crashed in a local town, Salad Fingers thought he might be able to make a new friend, but this strange critter seems threatened by him.'; } else { if (levelID == 3) { arenaSelect = 1; charSelect[2] = 3; battleTitle = 'FINAL : Hello, Curious Stranger'; battleComments = 'So many points and bumps and hidden surprises. This P-Bot would make a pleasurable addition to Salad Fingers\' home. He won\'t go easily though.'; } } } } } else { if (charSelect[1] == 7) { if (levelID == 0) { arenaSelect = 1; charSelect[2] = 3; battleTitle = '1 of 4 : The Bird in the Bush'; battleComments = 'Before Piconjo can begin toppling Newgrounds\' figureheads, he must first eliminate NG\'s guardian, P-Bot, who would eventually interfere anyway.'; } else { if (levelID == 1) { arenaSelect = 9; charSelect[2] = 4; teamSelect[2] = 2; charSelect[3] = 8; teamSelect[3] = 2; battleTitle = '2 of 4 : Where the Enemy Sleeps'; battleComments = 'Piconjo has become aware of a sordid affair between Tankman and Nene. Seems like the perfect chance to remove two nuissances at once.'; } else { if (levelID == 2) { arenaSelect = 7; charSelect[2] = 1; battleTitle = '3 of 4 : There, Behind the Frito-Lays'; battleComments = 'Apparently some new hero has a suit with incredible powers. Might be best to catch him off-guard, at the store.'; } else { if (levelID == 3) { arenaSelect = 8; charSelect[2] = 9; teamSelect[2] = 2; charSelect[3] = 2; teamSelect[3] = 2; battleTitle = 'FINAL : The End of Newgrounds'; battleComments = 'So here they are, the two most renowned goody-two-shoes in Newgrounds. We\'ll see how easy it is to knock them off their high horses.'; } } } } } else { if (charSelect[1] == 8) { if (levelID == 0) { arenaSelect = 11; charSelect[2] = 1; battleTitle = '1 of 4 : Virtual Brutality'; battleComments = 'If Tankman is gonna be the one to take out the menace Piconjo, he\'ll need to train hard. The virtual training begins with a hologram of local powerhouse, Alloy.'; } else { if (levelID == 1) { arenaSelect = 5; charSelect[2] = 5; battleTitle = '2 of 4 : A Fork in the Warpath'; battleComments = 'It seems Tankman\'s training will have to be put on hold. Samurai Asshole is on a reckless rampage and needs to be subdued.'; } else { if (levelID == 2) { arenaSelect = 2; charSelect[2] = 9; teamSelect[2] = 2; charSelect[3] = 6; teamSelect[3] = 2; battleTitle = '3 of 4 : Field Duty'; battleComments = 'Now a chance for some hands-on training. A potentially threatening alien creature has touched down in Newgrounds, and is under the guard of a lunatic who seems to have befriended him.'; } else { if (levelID == 3) { arenaSelect = 4; charSelect[2] = 7; battleTitle = 'FINAL : Ground Zero'; battleComments = 'It all comes down to this. One kill, and Tankman\'s sway within Newgrounds will surpass even Pico\'s. Hope he didn\'t smoke away all of his training.'; } } } } } else { if (charSelect[1] == 9) { if (levelID == 0) { arenaSelect = 2; charSelect[2] = 6; battleTitle = '1 of 4 : Crash Site'; battleComments = 'Just steps out of Alien Hominid\'s ship, a local lifeform has descended upon him. No time to be an ambassador.'; } else { if (levelID == 1) { arenaSelect = 8; charSelect[2] = 1; battleTitle = '2 of 4 : Spare Parts'; battleComments = 'Alien Hominid has managed to track down someone with a suit bearing technology as sophisticated as his crashed ship\'s. Maybe he could break it down for parts.'; } else { if (levelID == 2) { arenaSelect = 7; charSelect[2] = 4; battleTitle = '3 of 4 : My Stereotype of Girl'; battleComments = 'Managing to translate bits and pieces of a human language, Alien Hominid has discovered a stigma that the narrow-eyed ones might have the technology to repair his ship.'; } else { if (levelID == 3) { arenaSelect = 5; charSelect[2] = 5; battleTitle = 'FINAL : Quoth the samurai, ARGH'; battleComments = 'At wits end, the hominid has decided to take out a rampaging threat in order to get on the side of anyone who might be able to help him.'; } } } } } else { if (charSelect[1] == 10) { if (levelID == 0) { arenaSelect = 9; charSelect[2] = 8; battleTitle = '1 of 4 : Identity Theft'; battleComments = 'The first step in Convict\'s elaborate plan to crumble Newgrounds is to collect the form of a trusted figure in the area. Tankman will do.'; } else { if (levelID == 1) { arenaSelect = 3; charSelect[2] = 3; teamSelect[2] = 2; charSelect[3] = 1; teamSelect[3] = 2; battleTitle = '2 of 4 : Ass Compactor'; battleComments = 'Trying to take a discrete route through a junkyard, Convict is flanked by two robotic pests. Maybe if he\'s sneaky, he can lure them under the trash compactor and save some time.'; } else { if (levelID == 2) { arenaSelect = 4; charSelect[2] = 7; battleTitle = '3 of 4 : Passing the Torch'; battleComments = 'Piconjo has found out about Convict\'s warpath and is not interested in sharing the glory of toppling Newgrounds. He\'ll kill to preserve his role.'; } else { if (levelID == 3) { arenaSelect = 10; charSelect[2] = 2; teamSelect[2] = 2; charSelect[3] = 4; teamSelect[3] = 2; charSelect[4] = 5; teamSelect[4] = 2; battleTitle = 'FINAL : No Prisoner'; battleComments = 'It took three people to get Convict into a padded cell, but will they be able to keep him there? Here\'s doubting it. (Inexperienced players beware, this is easily the toughest predefined battle in NGR)'; } } } } } else { if (charSelect[1] == 11) { if (levelID == 0) { arenaSelect = 6; charSelect[2] = 2; battleTitle = '1 of 4 : The Red Carpet'; battleComments = 'Not long after Hank wakes up, he\'s greated by two uzis to the back of his head, courtesy of one of NG\'s local heroes. They\'re awfully nice guns, though. Hank might want to borrow them...'; } else { if (levelID == 1) { arenaSelect = 10; charSelect[2] = 4; battleTitle = '2 of 4 : Sadness Avenger'; battleComments = 'Whoops. Seems Pico was quite beloved in this area, particular by the spicy tart known as Nene. Maybe Hank can squeeze some information out of this one, and find a way back to Nevada.'; } else { if (levelID == 2) { arenaSelect = 1; charSelect[2] = 3; battleTitle = '3 of 4 : No Place Like Home'; battleComments = 'With a gun to the temple, Nene finally revealed a place called The Portal, capable of transporting people anywhere in the Flash world. Now Hank\'s only way home is guarded by the burly P-Bot.'; } else { if (levelID == 3) { henchKills = 0; arenaSelect = 12; charSelect[2] = 12; teamSelect[2] = 2; charSelect[3] = 12; teamSelect[3] = 2; charSelect[4] = 12; teamSelect[4] = 2; battleTitle = 'WTF of 4 : Welcome Back'; battleComments = 'In Hank\'s absence, the henchmen were able to consolidate their numbers and organize a Hell of an ambush. Try to survive a gauntlet of faceless aggressors.'; } } } } } else { if (charSelect[1] == 13) { if (levelID == 0) { arenaSelect = 1; charSelect[2] = 5; battleTitle = '1 of 4 : Ambush\'d'; battleComments = 'Not three steps through the portal, Fancy Pants Man found himself on the business end of a samurai sword. Seems unlikely that Samurai Asshole forged the invite, but he\'s an enemy all the same.'; } else { if (levelID == 1) { arenaSelect = 9; charSelect[2] = 3; battleTitle = '2 of 4 : Disassembly Line'; battleComments = 'It hardly seemed unplanned that Fancy Pants Man fell in the path of an enraged samurai. Someone was behind this, and Fancy will keep fighting until that fiend has no choice but to show his face and fight.'; } else { if (levelID == 2) { arenaSelect = 12; charSelect[2] = 11; teamSelect[2] = 2; battleTitle = '3 of 4 : We Don\'t Take Kindly'; battleComments = 'Having haxxed into the memory files of the immobilized P-Bot, Fancy learns that he was lured here by the ruling figures of NG. So against wholesome, non-violent gaming, they are, that they seek to kill anyone who embodies it.'; } else { if (levelID == 3) { arenaSelect = 6; charSelect[2] = 7; teamSelect[2] = 1; charSelect[3] = 2; teamSelect[3] = 2; charSelect[4] = 4; teamSelect[4] = 2; battleTitle = '4 of 4 : An Unlikely Friend'; battleComments = 'Now only the orchestraters of the scheme stand in the way. Odds once stacked against Fancy Pants turn when Piconjo joins his side. Seems that the dark villain spent much of his childhood as a carefree stickman, and understands Fancy\'s plight.'; } } } } } } } } } } } } } } } } loadMatch(); paused = true; attachMovie('preambleReport', 'battleReport', 16001); charCount = 1; while (charCount <= numChars) { battleReport['char' + charCount]._x += (4 - numChars) * 55; battleReport['char' + charCount].portrait.gotoAndStop(_root.charSelect[charCount]); battleReport['char' + charCount].charNameText.text = _root.charNames[_root.charSelect[charCount]]; ++charCount; } battleReport.bannerText.text = battleTitle; battleReport.commentsText.text = battleComments; battleReport.tipsText.text = getRandomTip(); charCount; while (charCount <= 4) { battleReport['char' + charCount].unloadMovie(); ++charCount; } } function playSoundOnce(chan, spec) { if (!_root.preserveData.enableSFX) { return undefined; } if (!_root[chan + 'Sound']) { _root[chan + 'Sound'] = new Sound(); } _root[chan + 'Sound'].attachSound(spec); _root[chan + 'Sound'].start(0, 0); } soundArray = new Array(); soundArray = ['', 'exploSound', 'miss1', 'miss2', 'miss3', 'mortarSound', 'smallExploSound', 'cock', 'chomp', 'mGun3', 'shotgun', 'metalHit', 'bulletSound', 'chainsaw', 'scrape', 'samurai-grunt1', 'samurai-grunt2', 'samurai-grunt3', 'heavyBullet', 'alienBlast', 'bubble', 'landingEarthen', 'smallAlienBlast', 'drawSword', 'hydraulic', 'hydraulicBuild', 'hahPBot', 'hahPBotAlt', 'spring', 'plasma', 'deathPBot', 'deathPico', 'piconjo-grunt1', 'piconjo-grunt2', 'piconjo-grunt3', 'piconjo-death', 'tankman-death', 'nene-grunt1', 'nene-grunt2', 'nene-grunt3', 'nene-death', 'alloy-grunt1', 'alloy-grunt2', 'alloy-grunt3', 'alloy-death', 'salad-grunt1', 'salad-grunt2', 'salad-grunt3', 'salad-death', 'hubert', 'convict-death', 'samurai-death', 'jumpSound', 'morphSound', 'beepSound', 'tankLoop']; } frame 3 { function behave() { if (!_root.paused) { this.cf = this.charIn._currentframe; if (this.charIn._currentframe != 9) { if (this.AIcontrolled) { this.behaveAI(); this.cf = this.charIn._currentframe; } else { this.kd = _root.customKeyDown(this.id, 6); this.ka = _root.customKeyDown(this.id, 4); this.kw = _root.customKeyDown(this.id, 7); this.ks = _root.customKeyDown(this.id, 5); this.r = _root.customKeyDown(this.id, 0); this.l = _root.customKeyDown(this.id, 1); this.u = _root.customKeyDown(this.id, 2); this.d = _root.customKeyDown(this.id, 3); if (this.ks && this.freshS) { this.lastPressed = 'ks'; } if (this.kd && this.freshD) { this.lastPressed = 'kd'; } if (!this.ks) { this.freshS = true; } if (!this.kd) { this.freshD = true; } } if (this.ks) { this.mostRecentKS = 0; } else { ++this.mostRecentKS; } if (this.kd) { this.mostRecentKD = 0; } else { ++this.mostRecentKD; } if (this.ka && this.lastA == -1) { this.lastA = _root.matchDuration; } else { if (!this.ka) { this.lastLastA = this.lastA; this.lastA = -1; } } if (this.cullInput > 0) { if (this.dSeg > 0) { this.cullInput = 0; } this.l = false; this.r = false; --this.cullInput; } if (this.cf == 4 || this.cf == 22 || this.cf == 23 || this.cf == 10 || this.cf == 25 && this.charIn.spriteIn._currentframe >= this.proJF && this.proJF > 0 || this.cf == 25 && this.charIn.spriteIn._currentframe >= this.proJD && this.proJD > 0) { if (this.l && this.xSpeed > -8 && this.cf != 10) { --this.xSpeed; } else { if (this.r && this.xSpeed < 8 && this.cf != 10) { ++this.xSpeed; } else { this.xSpeed /= 1.02; } } if (this.ySpeed < -8 && !this.u || this.ySpeed <= -this.jumpSpeed) { this.ySpeed /= 1.08; } if (!this.locomoteX(this.xSpeed, false)) { this.xSpeed *= -0.3; } this.locomoteY(this.ySpeed, false); if (this.charIn._currentframe == 8 || this.charIn._currentframe == 10) { this.ySpeed += 0.65; this.xSpeed /= 1.4; } else { ++this.ySpeed; } if (this.ySpeed < 0) { if (this._y < -20) { this.ySpeed /= 1.2; } else { if (this._y < 50) { this.ySpeed /= 1.1; } } } if (this.heavy > 0 && this.ySpeed >= 0) { this.ySpeed += this.ySpeed / 5; } } else { if (this.cf != 3 && !(this.cf == 25 && this.charIn.spriteIn._currentframe >= this.proJF && this.proJF > 0)) { if (Math.abs(this.xSpeed) < 0.3) { this.xSpeed = 0; } else { this.locomoteX(this.xSpeed); this.xSpeed /= 1.35; } if (this.unobstructed(0, 2, this.dSeg)) { this.fGrnd = 1; while (this.fGrnd < 5) { if (!_root['seg' + this.lastGroundSeg].hitTest(this._x, this._y + this.fGrnd, true) && _root['seg' + this.lastGroundSeg].hitTest(this._x, this._y + this.fGrnd + 1, true)) { this._y += this.fGrnd; break; } if (!_root['seg' + this.lastGroundSeg].hitTest(this._x, this._y - this.fGrnd, true) && _root['seg' + this.lastGroundSeg].hitTest(this._x, this._y - this.fGrnd + 1, true)) { this._y -= this.fGrnd; break; } ++this.fGrnd; } if (this.fGrnd >= 5) { if (this.r) { this.xSpeed = this.moveSpeed / 2.3; } else { if (this.l) { this.xSpeed = -this.moveSpeed / 2.3; } else {} } if (this.destText == 'seg' && _root['seg' + this.destID].enY > _root['seg' + this.lastGroundSeg].enY) { this.locomoteY(10); } this.goto(4, 2, true); this.cf = 4; } } } } } if (this.cf == 9 || this.hp <= 0) { if (!this.unobstructed(0, 2, this.dSeg)) { this.charIn.gotoAndStop(9); } } else { if (this.cf <= 2) { if (this.u) { if (this.r) { this.xSpeed = this.moveSpeed; this._xscale = Math.abs(this._xscale); } else { if (this.l) { this.xSpeed = -this.moveSpeed; this._xscale = -Math.abs(this._xscale); } else { this.xSpeed = 0; } } _root.createPart(38, this._x, this._y, 100, 0, 0, _root.playOnceParticle); _root['part' + _root.recentPart]._rotation = this.xSpeed * 2; this.ySpeed = -this.jumpSpeed; this.goto(3, 1, true); _root.playSoundOnce('launchLand', 'launching' + _root['seg' + this.dSeg].soundType); _root.playSoundOnce('launchLand2', 'jumpSound'); } else { if (this.d) { this.goto(7, 1, true); } else { if (this.ks) { if (this.freshS) { this.lastPressed = ''; this.freshS = false; this.goto(20, 1, true); } } else { if (this.kd) { if (this.proPickup > 0) { if (this.charIn._currentframe != 25) { this.goto(25, this.proSF, true); } } else { if (this.maxhp > 60 && _root['lb' + this.id].pummelBar._currentframe - _root['lb' + this.id]._currentframe > _root['lb' + this.id]._totalframes / 5 && this.rageMode <= 0) { this.setState(2); } else { if (this.freshD) { this.lastPressed = ''; this.freshD = false; this.goto(21, 1, true); } } } } else { if (this.ka) { this.goto(5, 1, true); } else { if (this.r) { this.charIn.gotoAndStop(2); this.curPlaying = true; this._xscale = Math.abs(this._xscale); this.locomoteX(this.moveSpeed, false); } else { if (this.l) { this.charIn.gotoAndStop(2); this.curPlaying = true; this._xscale = -Math.abs(this._xscale); this.locomoteX(-this.moveSpeed, false); } else { if (this.charIn._currentframe != 25) { this.charIn.gotoAndStop(1); this.curPlaying = true; } } } } } } } } } else { if (this.cf == 4) { if (this.xSpeed > 0) { this._xscale = Math.abs(this._xscale); } else { if (this.xSpeed < 0) { this._xscale = -Math.abs(this._xscale); } } if (this.ks) { if (this.freshS) { this.lastPressed = ''; this.freshS = false; if (this.r) { this._xscale = Math.abs(this._xscale); } if (this.l) { this._xscale = -Math.abs(this._xscale); } this.goto(22, 1, true); } } else { if (this.kd) { if (this.proPickup > 0 && this.proJF != 0) { this.goto(25, this.proJF, true); } else { if (this.maxhp > 60 && _root['lb' + this.id].pummelBar._currentframe - _root['lb' + this.id]._currentframe > _root['lb' + this.id]._totalframes / 5 && this.rageMode <= 0) { this.setState(2); } else { if (this.freshD) { this.lastPressed = ''; this.freshD = false; if (this.r) { this._xscale = Math.abs(this._xscale); } if (this.l) { this._xscale = -Math.abs(this._xscale); } this.goto(23, 1, true); } } } } } } else { if (this.cf >= 20) { if (this.cf != 25) { this.checkForHits(this.id, this.cf); if (this.lastPressed == 'ks' && this.freshS && this.mostRecentKS <= 3) { this.chQuick = 0; while (this.chQuick < Math.floor(this.quickCombo[this.cf - 20].length / 3)) { if (Math.abs(this.quickCombo[this.cf - 20][this.chQuick * 3]) == this.charIn.spriteIn._currentframe && (this.lastStrikeHit || this.quickCombo[this.cf - 20][this.chQuick * 3] > 0)) { this.lastPressed = ''; this.freshS = false; this.goto(this.quickCombo[this.cf - 20][1 + this.chQuick * 3], this.quickCombo[this.cf - 20][2 + this.chQuick * 3], true); } ++this.chQuick; } } else { if (this.lastPressed == 'kd' && this.freshD && this.mostRecentKD <= 3) { this.chFierce = 0; while (this.chFierce < Math.floor(this.fierceCombo[this.cf - 20].length / 3)) { if (Math.abs(this.fierceCombo[this.cf - 20][this.chFierce * 3]) == this.charIn.spriteIn._currentframe && (this.lastStrikeHit || this.fierceCombo[this.cf - 20][this.chFierce * 3] > 0)) { this.lastPressed = ''; this.freshD = false; this.goto(this.fierceCombo[this.cf - 20][1 + this.chFierce * 3], this.fierceCombo[this.cf - 20][2 + this.chFierce * 3], true); } ++this.chFierce; } } } } else { if (this.charIn._currentframe != 25) { this.findProjectileFrame(); } if (this._currentframe <= 2) { this.proPickup -= 1; if (_root.ir(this.charIn.spriteIn._currentframe, this.proSF, this.proSF + 3)) { _root.createPro(this._currentframe, this._x + this._xscale, this._y - 24, this._xscale, this._xscale * (1 + (Math.random() - 0.5)), random(3) - 1); } else { if (_root.ir(this.charIn.spriteIn._currentframe, this.proSU, this.proSU + 3)) { _root.createPro(this._currentframe, this._x, this._y - 60, 100, (1 + Math.random()) * _root.signOf(this._xscale), -75 - random(50)); _root['pro' + (_root.proIter - 1)].owner = this.id; } else { if (_root.ir(this.charIn.spriteIn._currentframe, this.proJF, this.proJF + 3)) { _root.createPro(this._currentframe, this._x + this._xscale, this._y - 24, this._xscale, this._xscale * (1 + (Math.random() - 0.5)), random(3) - 1); } else { if (_root.ir(this.charIn.spriteIn._currentframe, this.proJD, this.proJD + 3)) { _root.createPro(this._currentframe, this._x, this._y + 10, 100, (1 + Math.random()) * _root.signOf(this._xscale), 75 + random(50)); _root['pro' + (_root.proIter - 1)].owner = this.id; } else { if (_root.ir(this.charIn.spriteIn._currentframe, this.proJU, this.proJU + 3)) { _root.createPro(this._currentframe, this._x, this._y - 60, 100, (1 + Math.random()) * _root.signOf(this._xscale), -75 - random(50)); _root['pro' + (_root.proIter - 1)].owner = this.id; } } } } } } else { if (this._currentframe == 3) { if (this.charIn.spriteIn._currentframe == 2) { this.proPickup -= 4; _root.createPro(7, this._x + this._xscale / 3, this._y - 42, this._xscale, this._xscale / 3, -1); _root['pro' + (_root.proIter - 1)].owner = this.id; } else { if (this.charIn.spriteIn._currentframe == 10) { this.proPickup -= 4; _root.createPro(7, this._x + this._xscale / 3, this._y - 50, this._xscale, this._xscale / 3, -1); _root['pro' + (_root.proIter - 1)].owner = this.id; } } } else { if (this._currentframe == 4) { if (this.charIn.spriteIn._currentframe == 8) { this.proPickup -= 3; _root.createPro(5, this._x + this._xscale / 3, this._y - 30, this._xscale, this._xscale / 3, -1); _root['pro' + (_root.proIter - 1)].owner = this.id; } else { if (this.charIn.spriteIn._currentframe == 21) { this.proPickup -= 3; _root.createPro(5, this._x + this._xscale / 3, this._y - 47, this._xscale, this._xscale / 3, -1); _root['pro' + (_root.proIter - 1)].owner = this.id; } } } else { if (this._currentframe == 5) { if (this.charIn.spriteIn._currentframe == 14) { _root.createPart(33, this._x + this._xscale / 2, this._y - 50, this._xscale / 4, 0, 0, _root.playOnceParticle); _root.createPro(8, this._x + this._xscale / 2, this._y - 50, this._xscale, this._xscale, -1); _root['pro' + (_root.proIter - 1)].owner = this.id; } else { if (this.charIn.spriteIn._currentframe == 36) { _root.createPart(33, this._x + this._xscale / 2, this._y - 52, this._xscale / 4, 0, 0, _root.playOnceParticle); _root.createPro(8, this._x + this._xscale / 2, this._y - 52, this._xscale, this._xscale, -1); _root['pro' + (_root.proIter - 1)].owner = this.id; } } } else { if (this._currentframe == 6) { if (this.charIn.spriteIn._currentframe >= 7 && this.charIn.spriteIn._currentframe % 3 == 0) { this.proPickup -= 2; this.scrib = 1; while (this.scrib <= _root.numChars) { if (this.scrib != this.id && Math.abs(this._x + this._xscale / 2 - _root['char' + this.scrib]._x) < 100 && Math.abs(this._y - 50 - (_root['char' + this.scrib]._y - 30)) < 60) { _root.takeHit(this.scrib, 3, this._xscale / 40, -3, 2); } ++this.scrib; } delete this.scrib; } } else { if (this._currentframe == 7) { if (this.charIn.spriteIn._currentframe == 21) { _root.createPart(33, this._x + this._xscale / 2, this._y - 43, this._xscale, 0, 0, _root.playOnceParticle); this.multib = 1; while (this.multib <= 6) { _root.createPro(9, this._x + this._xscale / 3, this._y - 43, this._xscale, this._xscale / 2.3, random(8) + 1 - random(2) * 9); _root['pro' + (_root.proIter - 1)].owner = this.id; if (this._xscale < 0) { _root['pro' + (_root.proIter - 1)]._rotation = 180 - _root['pro' + (_root.proIter - 1)]._rotation; } ++this.multib; } } } else { if (this._currentframe == 8) { this.proPickup = 0; if (this.l) { this._xscale = -Math.abs(this._xscale); } else { if (this.r) { this._xscale = Math.abs(this._xscale); } } if (!this.locomoteX(this._xscale / 10)) { this._xscale *= -1; } if (this.charIn.spriteIn._currentframe == 2) { _root.playSoundOnce('char' + this.id, 'spawnSound'); } else { if (this.charIn.spriteIn._currentframe >= 3 && this.charIn.spriteIn._currentframe % 5 == 0) { this.scrib = 1; while (this.scrib <= _root.numChars) { if (this.scrib != this.id && _root['char' + this.scrib].hurtFrames <= 0 && this.hitTest(_root['char' + this.scrib]._x, _root['char' + this.scrib]._y - 30, true)) { if (!_root.preserveData.numPlayers >= 2) { _root.pauseFor = 4; } _root.takeHit(this.scrib, 8, 25, -15, 10); _root.playSoundOnce('char' + this.id, 'hit2'); _root.createPart(23, _root['char' + this.scrib]._x, _root['char' + this.scrib]._y, this._xscale, this._xscale / 10, 0, _root.playOnceParticle); } ++this.scrib; } delete this.scrib; } } } else { if (this._currentframe == 9) { if (this.charIn.spriteIn._currentframe == 2) { _root.createPart(32, this._x + this._xscale / 3, this._y - 20, this._xscale / 4, 0, 0, _root.playOnceParticle); _root.createPro(6, this._x + this._xscale / 4, this._y - 20, 100, this._xscale / 4, 1); _root['pro' + (_root.proIter - 1)].owner = this.id; } else { if (this.charIn.spriteIn._currentframe == 9) { _root.createPart(32, this._x, this._y - 20, 25, 0, 0, _root.playOnceParticle); _root['part' + _root.recentPart]._rotation -= 90; _root.createPro(6, this._x - this._xscale / 7, this._y - 40, 100, 1, -20); _root['pro' + (_root.proIter - 1)].owner = this.id; } else { if (this.charIn.spriteIn._currentframe == 14) { _root.createPart(32, this._x + this._xscale / 3, this._y - 20, this._xscale / 4, 0, 0, _root.playOnceParticle); _root.createPro(6, this._x + this._xscale / 4, this._y - 50, 100, this._xscale / 4, 1); _root['pro' + (_root.proIter - 1)].owner = this.id; } else { if (this.charIn.spriteIn._currentframe == 20) { _root.createPart(32, this._x, this._y - 20, 25, 0, 0, _root.playOnceParticle); _root['part' + _root.recentPart]._rotation += 90; _root.createPro(6, this._x, this._y, 100, 1, 20); _root['pro' + (_root.proIter - 1)].owner = this.id; } } } } } else { if (this._currentframe == 11 || this._currentframe == 12) { this.proPickup -= 1; if (this.charIn.spriteIn._currentframe == 2) { _root.createPro(11, this._x + this._xscale, this._y - 24, this._xscale, this._xscale * (1 + (Math.random() - 0.5)), random(3) - 1); _root['pro' + (_root.proIter - 1)].owner = this.id; _root.playSoundOnce('bullet', 'bulletSound'); } else { if (this.charIn.spriteIn._currentframe == 10) { _root.createPro(10, this._x, this._y - 40, 100, this._xscale * (1 + (Math.random() - 0.5)), 1); _root['pro' + (_root.proIter - 1)].owner = this.id; _root.playSoundOnce('bullet', 'bulletSound'); } } } else { if (this._currentframe == 13) { this.proPickup -= 1; if (this.charIn.spriteIn._currentframe == 14) { _root.createPart(42, this._x + 28 * (this._xscale / 100), this._y - 39, this._xscale, 0, 0, _root.lobbedSpiderParticle); _root['part' + _root.recentPart].owner = this.id; _root['part' + _root.recentPart]._rotation = 0; _root['part' + _root.recentPart].forcedXS = 6 * (this._xscale / 100); _root['part' + _root.recentPart].forcedYS = -8; } } } } } } } } } } } } } else { if (this.cf == 7) { if (this.ks) { this.lastPressed = ''; this.freshS = false; this.goto(24, this.cqStart, true); } else { if (this.kd) { this.lastPressed = ''; this.freshD = false; this.goto(24, this.cfStart, true); } else { if (this.ka) { this.goto(5, 1, true); } else { if (!this.d) { this.goto(1, 1, true); } } } } } else { if (this.cf == 8 || this.cf == 10) { --this.hurtFrames; if (this.hurtFrames <= 0) { this.goto(1, 1, true); } } else { if (this.cf == 5) { if (!this.ka) { this.goto(7, 1, false); } } } } } } } } if (this.frameActions[this.charIn._currentframe] != 0) { this.chFrAct = 0; while (this.chFrAct < Math.floor(this.frameActions[this.charIn._currentframe].length / 4)) { if (this.charIn.spriteIn._currentframe == this.frameActions[this.charIn._currentframe][+(this.chFrAct * 4)]) { if (this.frameActions[this.charIn._currentframe][1 + this.chFrAct * 4] == 0) { this.charIn.spriteIn.stop(); this.curPlaying = false; } else { if (this.frameActions[this.charIn._currentframe][1 + this.chFrAct * 4] > 0) { this.goto(this.frameActions[this.charIn._currentframe][1 + this.chFrAct * 4], this.frameActions[this.charIn._currentframe][2 + this.chFrAct * 4], this.frameActions[this.charIn._currentframe][3 + this.chFrAct * 4]); } else { if (this.frameActions[this.charIn._currentframe][1 + this.chFrAct * 4] < 0) { this.frmAct(this.frameActions[this.charIn._currentframe][1 + this.chFrAct * 4], this.frameActions[this.charIn._currentframe][2 + this.chFrAct * 4], this.frameActions[this.charIn._currentframe][3 + this.chFrAct * 4]); } } } } ++this.chFrAct; } } if (this.dSeg != -1 && this.dSeg != undefined) { this.parryCount = 0; if (this.curComboID > 0 && _root['part' + this.curComboID].airCombo) { _root['part' + this.curComboID].behave = _root.comboCounterParticle; this.curComboID = 0; } this.curComboID = 0; this.lastGroundSeg = this.dSeg; this.segBehave = _root['seg' + this.dSeg].behave; } else { delete this.segBehave; } this.segBehave(); if (Math.abs(this.charIn._x - this.ciBirthX) < 0.01 || this.charIn._currentframe != 5) { this.charIn._x = this.ciBirthX; } else { this.charIn._x = this.ciBirthX + (this.ciBirthX - this.charIn._x) * 0.3; } if (this.hp > 0) { this.survivalTime = _root.matchDuration; } if (this.proPickup > 0) { --this.proPickup; } if (this.rageMode > 0) { --this.rageMode; if (this.rageMode <= 0) { this.setState(1); } else { if (this.rageMode <= 40) { this.charIn.col.setTransform({'rb': Math.ceil(4.5 * this.rageMode), 'gb': 0, 'bb': 0}); } } } if (this.invincibility > 0) { --this.invincibility; if (this.invincibility <= 0) { this.setState(1); } else { if (this.invincibility <= 40) { this.charIn.col.setTransform({'rb': Math.ceil(4.25 * this.invincibility), 'gb': Math.ceil(3.125 * this.invincibility), 'bb': 0}); } } } if (this.landMine > 0) { --this.landMine; if ((this.landMine - 1) % 60 == 0) { _root.createPart(1, this._x, this._y, 100, 0, -10, _root.landMineParticle); _root['part' + _root.recentPart]._rotation = 0; _root['part' + _root.recentPart].owner = this.id; } } if (this.regen > 0) { --this.regen; if (this.regen <= 0) { this.setState(1); } else { if (this.regen <= 40) { this.charIn.col.setTransform({'rb': 0, 'gb': Math.ceil(4 * this.regen), 'bb': 0}); } else { if (this.hp > 0 && (this.hp > this.maxhp / 1.7 && this.regen % 5 == 0 || this.hp < this.maxhp / 1.7 && this.regen % 3 == 0)) { ++this.hp; this.registerDamage(); } } } } if (this.heavy > 0) { --this.heavy; if (this.heavy <= 0) { this.setState(1); } else { if (this.heavy >= 230) { this.charIn.col.setTransform({'rb': (this.heavy - 230) * 5, 'gb': (this.heavy - 230) * 5, 'bb': (this.heavy - 230) * 5}); } else { if (this.heavy <= 25 && this.heavy > 20) { this._xscale = _root.signOf(this._xscale) * this.nativeXScale * 1.8 + _root.signOf(this._xscale) * Math.pow(25 - this.heavy, 2); this._yscale = this.nativeYScale * 1.8 + Math.pow(25 - this.heavy, 2); } else { if (this.heavy <= 20) { this._xscale = _root.signOf(this._xscale) * this.nativeXScale + _root.signOf(this._xscale) * this.heavy * 2.5; this._yscale = Math.abs(this._xscale) - 5; } } } } } if (this.justBlocked > 0 && this.transformTime == undefined) { --this.justBlocked; this.col.setTransform({'rb': 0, 'gb': 0, 'bb': this.justBlocked * 35}); } if (this.lifeline > 0) { --this.lifeline; if (this.lifeline <= 0) { _root.createPart(6, this._x, this._y - 40, 100, 0, 0, _root.playOnceParticle); this.removeMovieClip(); } } if (this.transformTime != undefined && this.hp > 0) { --this.transformTime; if (this.transformTime <= 0) { _root.createPart(28, this._x, this._y - 40, 100, 0, 0, _root.followPlayOnceParticle); _root['part' + _root.recentPart].owner = this.id; _root.playSoundOnce('char' + this.id, 'transformSound'); if (this._currentframe == 10) { this.newForm = 10; while (this.newForm == 10) { this.newForm = random(13) + 1; } _root.loadCharacter(this.newForm, this.id, !this.AIcontrolled); delete this.newForm; } else { _root.loadCharacter(10, this.id, !this.AIcontrolled); } } } if (this.sinceLastHit < 100) { ++this.sinceLastHit; } if (_root['lb' + this.id]._currentframe < _root['lb' + this.id].pummelBar._currentframe) { if (this.sinceLastHit >= 30) { _root['lb' + this.id].pummelBar.prevFrame(); } } else { if (_root['lb' + this.id]._currentframe > _root['lb' + this.id].pummelBar._currentframe) { _root['lb' + this.id].pummelBar.gotoAndStop(_root['lb' + this.id]._currentframe); } } if (_root['bs' + this.id]._currentframe > this.blockStamina / 10 || _root['bs' + this.id]._currentframe >= 31) { _root['bs' + this.id].stop(); } if (this.blockStamina < 300) { ++this.blockStamina; } if (blockStamina % 10 == 0) { _root['bs' + this.id].gotoAndStop(Math.ceil(this.blockStamina / 10) + 1); } if (this._y > 700) { if (this.hp > 30) { this.hp -= 30; } else { this.hp = 1; } ++this.pitfalls; if (this.pitfalls >= 3 && this.team != _root.char1.team && _root.preserveData.playMode != 4 && !_root.preserveData.wileMedal && this.AIcontrolled) { _root.preserveData.wileMedal = true; unlockMedal('Wile E. Ways'); } this.registerDamage(); this.goToSpawn = _root.getMostRemoteSpawn(this.team); this._x = _root.spawnPoints[this.goToSpawn][0]; this._y = _root.spawnPoints[this.goToSpawn][1]; this.cullInput = 30; _root.playSoundOnce('char' + this.id, 'spawnSound'); _root.createPart(5, this._x, this._y - 20 + random(10), 100, 0, -2, _root.floatParticle); _root.createPart(5, this._x, this._y - 20 + random(10), 100, 3, -2, _root.floatParticle); _root.createPart(5, this._x, this._y - 20 + random(10), 100, -3, -2, _root.floatParticle); _root.createPart(5, this._x, this._y - 20 + random(10), 100, 2, -2, _root.floatParticle); _root.createPart(5, this._x, this._y - 20 + random(10), 100, -2, -2, _root.floatParticle); _root.createPart(5, this._x - 5 + random(10), this._y - 32, 100, 2.5, -1, _root.floatParticle); _root.createPart(5, this._x - 5 + random(10), this._y - 32, 100, -2.5, -1, _root.floatParticle); _root.createPart(5, this._x - 5 + random(10), this._y - 32, 100, 2.5, -1, _root.floatParticle); _root.createPart(5, this._x - 5 + random(10), this._y - 32, 100, -2.5, -1, _root.floatParticle); this.xSpeed = 0; this.ySpeed = -5; } } } function findProjectileFrame() { if (this.unobstructed(0, 2, this.dSeg)) { if (this.u && this.proJU != 0) { this.goto(25, this.proJU, true); } else { if (this.d && this.proJD != 0) { this.goto(25, this.proJD, true); } else { if (this.proJF != 0) { this.goto(25, this.proJF, true); } else { this.goto(23, 1, true); } } } } else { if (!this.unobstructed(0, 2, this.dSeg)) { if (this.u && this.proSU != 0) { this.goto(25, this.proSU, true); } else { if (!this.u || this.proSU == 0) { this.goto(25, this.proSF, true); } } } } } function customKeyDown(charID, actionID) { if (_root.preserveData.numPlayers > 1) { ++charID; } keyID = _root.preserveData.customKeys[charID][actionID]; if (keyID >= 0) { return Key.isDown(keyID) || keyID >= 97 && keyID <= 122 && Key.isDown(keyID - 32); return false; } if (keyID == -1 && Key.isDown(37)) { return true; return false; } if (keyID == -2 && Key.isDown(39)) { return true; return false; } if (keyID == -3 && Key.isDown(38)) { return true; return false; } if (keyID == -4 && Key.isDown(40)) { return true; return false; } if (keyID == -5 && Key.isDown(16)) { return true; return false; } if (keyID == -6 && Key.isDown(17)) { return true; return false; } if (keyID == -7 && Key.isDown(18)) { return true; return false; } if (keyID == -8 && Key.isDown(20)) { return true; return false; } if (keyID == -9 && Key.isDown(9)) { return true; return false; } if (keyID == -10 && Key.isDown(46)) { return true; return false; } if (keyID == -11 && Key.isDown(45)) { return true; return false; } if (keyID == -12 && Key.isDown(36)) { return true; return false; } if (keyID == -13 && Key.isDown(35)) { return true; return false; } if (keyID == -14 && Key.isDown(34)) { return true; return false; } if (keyID == -15 && Key.isDown(33)) { return true; } return false; } function hitPro(sx, sy, stype) { this.hChar = 1; while (this.hChar <= _root.numChars) { if (_root['char' + this.hChar].hp > 0 && _root['char' + this.hChar].hitTest(sx, sy, true)) { return this.hChar; } ++this.hChar; } return 99; } function registerDamage() { if (this.hp > this.maxhp) { this.hp = this.maxhp; } if (this.hp <= 0 && this.charIn._currentframe != 9 && !this.unobstructed(0, 2, this.dSeg)) { _root.pauseFor = 20; this.goto(9, 1, true); this.setState(0); _root['lb' + this.id].gotoAndStop(1); } else { if (this.hp > 0) { _root['lb' + this.id].gotoAndStop(Math.floor(200 * (this.hp / this.maxhp)) + 1); } else { _root['lb' + this.id].gotoAndStop(1); } } _root['lb' + this.id].head.gotoAndStop(this._currentframe); } function takeHit(thid, thdmg, frcX, frcY, frms) { if (_root['char' + thid].invincibility > 0 || _root['char' + thid].hp <= 0) { return undefined; } this.sinceLastHit = 0; if (_root['char' + thid].hurtFrames < frms) { _root['char' + thid].hurtFrames = frms; } _root['char' + thid].hp -= thdmg; _root['char' + thid].dmgTaken += thdmg; if (thdmg > 0) { _root.createPart(16, _root['char' + thid]._x, _root['char' + thid]._y - _root.numBetween(_root['char' + thid]._height, 50, 80 * (1 + (_root['char' + thid].heavy > 0) * 0.4)) - 10, 100, 0, 0, _root.pointValueParticle); _root['part' + _root.recentPart]._rotation = 1; _root['part' + _root.recentPart].pointValue = thdmg; } else {} _root['char' + thid].xSpeed += frcX; _root['char' + thid].ySpeed += frcY; if (_root['char' + thid].hurtFrames >= 1) { if (frcY < -2) { _root['char' + thid].goto(10, 1, true); _root['char' + thid].registerDamage(); return undefined; } _root['char' + thid].goto(8, 1, true); } _root['char' + thid].registerDamage(); return undefined; } function locomoteX(inc, forced) { if (this._currentframe == 6) { if (this.charIn._currentframe == 2 && (this.charIn.spriteIn._currentframe > 23 && this.charIn.spriteIn._currentframe < 30 || this.charIn.spriteIn._currentframe < 7)) { return undefined; } } if (forced) { return false; } if (this.dSeg == -1 && this.unobstructed(inc, 0, true) && this.ySpeed < -2) { this._x += inc; return true; return false; } this.ilocox = Math.abs(Math.ceil(inc)); while (this.ilocox >= -Math.abs(Math.ceil(inc))) { if (this.unobstructed(inc, this.ilocox, true) && (!this.unobstructed(inc, this.ilocox + 2) || this.ilocox <= 0)) { this._x += inc; this._y += this.ilocox; if (_root.highMechanics) { if (!this.unobstructed(0, 2, 0) && this.ySpeed > 0 && (this.charIn._currentframe == 4 || this.charIn._currentframe == 22 || this.charIn._currentframe == 23)) { this.xSpeed /= 3.5; this.goto(1, 1, true); this.ySpeed = 0; } } return true; } this.ilocox -= 2; } return false; } function locomoteY(inc, forced) { if (this.unobstructed(0, inc, this.dSeg)) { this._y += inc; return true; return false; } if (inc < 0) { this.ySpeed = Math.abs(this.ySpeed / 2); return false; } this.ilocoy = Math.ceil(inc); while (this.ilocoy >= 0) { if (this.unobstructed(0, this.ilocoy, this.dSeg)) { this._y += this.ilocoy; if (this.ySpeed > 16) { _root.createPart(26, this._x, this._y, 40, 2, 0, _root.playOnceParticle); _root.createPart(26, this._x, this._y, -40, -2, 0, _root.playOnceParticle); this.xSpeed /= 2.5; this.goto(6, 1, true); if (this.heavy > 20) { _root.playSoundOnce('heavyStomp', 'heavyStomp'); _root.screenShake += 10; this.launchChars = 0; while (this.launchChars <= _root.numChars) { if (_root['char' + this.launchChars].hp > 0 && _root['char' + this.launchChars].dSeg > 0 && this.launchChars != this.id && _root['char' + this.launchChars].heavy < 20) { _root['char' + this.launchChars].ySpeed = -this.ySpeed / 2; _root['char' + this.launchChars].locomoteY(-15); } ++this.launchChars; } } else { _root.playSoundOnce('launchLand', 'landing' + _root['seg' + this.dSeg].soundType); } } else { this.xSpeed /= 3.5; this.goto(1, 1, true); _root.playSoundOnce('launchLand', 'landing' + _root['seg' + this.dSeg].soundType); } this.ySpeed = 0; return true; } this.ilocoy -= 2; } return false; } function unobstructed(incX, incY, dependSeg) { this.cf2 = this.charIn._currentframe; this.unobs = 1; while (this.unobs <= _root.numSegs) { if (_root['seg' + this.unobs].hitTest(this._x + incX, this._y + incY, true) && (!_root['seg' + this.unobs].hitTest(this._x, this._y, true) || this.unobs == 1)) { if (this.ySpeed >= -2) { if (!_root['seg' + this.dSeg].hitTest(this._x, this._y + 3, true)) { this.dSeg = this.unobs; } return false; } if (this.unobs == 1) { return false; } } ++this.unobs; } this.dSeg = -1; return true; } function setState(stateID) { if (this.lockState && this.stateID != 4) { return undefined; } if (this.stateID > 1) { this.setState(1); } if (stateID == 0) { this.setState(1); this.orbiter = 0; this.landMine = 0; } else { if (stateID == 1) { if (this.rageMode > 0) { this.rageMode = 0; this.rage.gotoAndStop(3); this.charIn.col.setTransform({'rb': 0, 'gb': 0, 'bb': 0}); } if (this.invicibility > 0) { this.invincibility = 0; this.rage.gotoAndStop(3); this.charIn.col.setTransform({'rb': 0, 'gb': 0, 'bb': 0}); } if (this.regeneration > 0) { this.regeneration = 0; this.rage.gotoAndStop(3); this.charIn.col.setTransform({'rb': 0, 'gb': 0, 'bb': 0}); } } else { if (stateID == 2) { this.rageMode = 250; this.rage.gotoAndStop(2); this.charIn.col.setTransform({'rb': 180, 'gb': 0, 'bb': 0}); } else { if (stateID == 3) { this.invincibility = 250; this.charIn.col.setTransform({'rb': 170, 'gb': 125, 'bb': 10}); this.rage.gotoAndStop(4); } else { if (stateID == 4) { this.orbiter = 500; _root.createPart(2, this._x, this._y - 40, 100, 0, 0, _root.orbiterParticle); _root['part' + _root.recentPart]._rotation -= 120; _root['part' + _root.recentPart].owner = this.id; _root.createPart(2, this._x, this._y - 40, 100, 0, 0, _root.orbiterParticle); _root['part' + _root.recentPart]._rotation += 120; _root['part' + _root.recentPart].owner = this.id; _root.createPart(2, this._x, this._y - 40, 100, 0, 0, _root.orbiterParticle); _root['part' + _root.recentPart].owner = this.id; } else { if (stateID == 5) { this.regen = 250; this.charIn.col.setTransform({'rb': 0, 'gb': 160, 'bb': 0}); this.rage.gotoAndStop(6); } else { if (stateID == 6) { this.heavy = 250; this._xscale = _root.signOf(this._xscale) * this.nativeXScale * 1.8; this._yscale = this.nativeYScale * 1.8; _root.createPart(5, this._x + 14, this._y - 46, 100, 2, -5, _root.playOnceParticle); _root.createPart(5, this._x - 12, this._y - 46, 100, -2, -5, _root.playOnceParticle); _root.createPart(5, this._x + 14, this._y - 46, 100, 2, 5, _root.playOnceParticle); _root.createPart(5, this._x - 12, this._y - 46, 100, -2, 5, _root.playOnceParticle); _root.createPart(5, this._x + 18, this._y - 46, 100, 6, 0, _root.playOnceParticle); _root.createPart(5, this._x - 16, this._y - 46, 100, -6, 0, _root.playOnceParticle); } } } } } } } } function goto(f1, f2, autop) { this.lastStrikeHit = false; if (this.charIn._currentframe == 9) { return undefined; } if (this.hurtFrames <= 0) { this.curPlaying = autop; this.charIn.gotoAndStop(f1); if (f2 > this.charIn.spriteIn._totalframes) { this.charIn.spriteIn.gotoAndStop(this.charIn.spriteIn._totalframes); } else { this.charIn.spriteIn.gotoAndStop(f2); } if (autop) { this.charIn.spriteIn.play(); } } else { if ((this.unobstructed(0, 2, this.dSeg) || this.ySpeed < 0) && this.charIn._currentframe != 10) { this.curPlaying = true; this.charIn.gotoAndStop(10); this.charIn.spriteIn.gotoAndPlay(1); } else { if (this.charIn._currentframe != 8) { this.curPlaying = true; this.charIn.gotoAndStop(8); this.charIn.spriteIn.gotoAndPlay(1); } } } this.cf = this.charIn._currentframe; } function checkForHits(charID, charFrame) { this.checkForHits = _root.checkForHits2; } function frmAct(id, param1, param2) { if (id == -5) { this.xSpeed += param1 * _root.signOf(this._xscale); } else { if (id == -6) { this.ySpeed += param1; } else { if (id == -7) { if (!param2) { this.xSpeed = (Math.abs(this._xscale) / this._xscale) * param1; } else { this.xSpeed = param1; } } else { if (id == -8) { this.ySpeed = param1; } else { if (id == -9) { this.locomoteX(param1); } else { if (id == -10) { this.locomoteY(param1); } else { if (id == -11) { if (this.curPlaying) { this.stop(); this.curPlaying = false; this.cats = 1; while (this.cats <= _root.teams.length + 1) { if (_root.checkForWin(this.cats)) { _root.win(this.cats); } ++this.cats; } } } else { if (id == -12) { if (!this.kd || this.proPickup <= 0) { this.goto(4, 1, true); } else { this.findProjectileFrame(); } } else { if (id == -13) { if (!this.kd || this.proPickup <= 0) { this.goto(1, 1, true); } else { this.findProjectileFrame(); } } else { if (id == -14) { _root.createPart(25, this._x + (Math.floor(param1 / 10) * 10 + 6) * (this._xscale / 100), this._y - (param1 % 10) * 10 * (Math.abs(this._xscale) / 100) - 8, 40, 0, 0, _root.playOnceParticle); } else { if (id == -15) { _root.playSoundOnce('char' + this.id, _root.soundArray[param1]); } } } } } } } } } } } } function behaveAI() { this.behaveAI = _root.behaveAI2; } function updateDest() { this.sep = this._x - (_root.segPoints[this.destID][0] + _root.segPoints[this.destID][2]) / 2; this.lift = this._y - (_root.segPoints[this.destID][1] + _root.segPoints[this.destID][3]) / 2; this.wid = Math.abs(_root.segPoints[this.destID][0] - _root.segPoints[this.destID][2]); } function chooseNextSeg() { if (this.dSeg == -1) { return undefined; } if (this.ultDestText == 'seg') { if (!_root.member(this.destID, _root.paths[this.dSeg][this.ultDestID])) { if (_root.paths[this.dSeg][this.ultDestID].length > 0) { this.destID = _root.paths[this.dSeg][this.ultDestID][random(_root.paths[this.dSeg][this.ultDestID].length)]; } else { this.destID = _root.paths[this.dSeg][this.ultDestID]; } } } else { if (this.ultDestText == 'char' && this.dSeg != -1 && _root['char' + this.ultDestID].dSeg != -1) { if (!_root.member(this.destID, _root.paths[this.dSeg][_root['char' + this.ultDestID].dSeg])) { if (_root.paths[this.dSeg][_root['char' + this.ultDestID].dSeg].length > 0) { this.destID = _root.paths[this.dSeg][_root['char' + this.ultDestID].dSeg][random(_root.paths[this.dSeg][_root['char' + this.ultDestID].dSeg].length)]; } else { this.destID = _root.paths[this.dSeg][_root['char' + this.ultDestID].dSeg]; } } } else { if (this.ultDestText == 'pickup') { if (!_root.member(this.destID, _root.paths[this.dSeg][_root['pu' + this.ultDestID].dSeg])) { this.destText = 'seg'; if (_root.paths[this.lastGroundSeg][_root['pu' + this.ultDestID].dSeg].length > 0) { this.destID = _root.paths[this.lastGroundSeg][_root['pu' + this.ultDestID].dSeg][random(_root.paths[this.lastGroundSeg][_root['pu' + this.ultDestID].dSeg].length)]; } else { this.destID = _root.paths[this.dSeg][_root['pu' + this.ultDestID].dSeg]; } } } } } } function within() { return this._x > _root.segPoints[this.destID][0] && this._x < _root.segPoints[this.destID][2]; } function withinSeg(segID, distance) { return this._x > _root.segPoints[segID][0] - distance && this._x < _root.segPoints[segID][2] + distance; } function findDSegFor(charID) { fseg = 1; while (fseg <= _root.numSegs) { if (_root['seg' + fseg].hitTest(_root['char' + charID]._x, _root['char' + charID]._y + 2, true) && !_root['seg' + fseg].hitTest(_root['char' + charID]._x, _root['char' + charID]._y, true) && _root['char' + charID].ySpeed > 0) { return fseg; } ++fseg; } return -1; } function newDestChar(charID, calledFrom) { bailAfter10 = 0; while (bailAfter10 < 10) { newAttempt = random(_root.numChars) + 1; if (!(_root['char' + charID].ultDestText == 'char' && newAttempt == _root['char' + charID].ultDestID) && _root['char' + newAttempt].hp > 0 && _root['char' + newAttempt].team != _root['char' + charID].team) { _root['char' + charID].ultDestText = 'char'; _root['char' + charID].ultDestID = newAttempt; return newAttempt; } ++bailAfter10; } return 0; } function member(num, arr) { if (arr.length > 0) { for (srch in arr) { if (arr[srch] == num) { return true; } } return false; } if (num == arr) { return true; } return false; } function deleteMe(dhandle) { if (_root.dhandle != undefined && _root.dhandle != _root) { _root.dhandle.swapDepths(14888); _root.dhandle.unloadMovie(); _root.dhandle.removeMovieClip(); loadMovie('', _root.dhandle); removeMovieClip(_root.dhandle); if (_root.dhandle == undefined) { } } } function createPro(id, sx, sy, xsc, xs, ys) { _root.attachMovie(_root.proData[id][0], 'pro' + _root.proIter, _root.proIter + 9999); _root['pro' + _root.proIter]._x = sx; _root['pro' + _root.proIter]._y = sy; _root['pro' + _root.proIter]._xscale = xsc; _root['pro' + _root.proIter].xSpeed = xs; _root['pro' + _root.proIter].ySpeed = ys; _root['pro' + _root.proIter]._rotation = -180 - Math.atan2(ys, -Math.abs(xs)) * 57.3; _root['pro' + _root.proIter].damage = _root.proData[id][1]; _root['pro' + _root.proIter].forceX = _root.proData[id][2]; _root['pro' + _root.proIter].forceY = _root.proData[id][3]; _root['pro' + _root.proIter].hurtFrames = _root.proData[id][4]; _root['pro' + _root.proIter].impactClip = _root.proData[id][5]; _root['pro' + _root.proIter].impactClipBlocked = _root.proData[id][6]; _root.pros.push(_root.proIter); ++_root.proIter; } function createPart(id, sx, sy, xsc, xs, ys, func) { _root.attachMovie(_root.partData[id][0], 'part' + _root.partIter, _root.partIter); _root['part' + _root.partIter].id = _root.partIter; _root['part' + _root.partIter]._x = sx; _root['part' + _root.partIter]._y = sy; _root['part' + _root.partIter]._xscale = xsc; _root['part' + _root.partIter]._yscale = Math.abs(xsc); _root['part' + _root.partIter].xSpeed = xs; _root['part' + _root.partIter].ySpeed = ys; if (Math.abs(xs) > 0 || Math.abs(ys) > 0) { _root['part' + _root.partIter]._rotation = -180 - Math.atan2(ys, -Math.abs(xs)) * 57.3; } _root['part' + _root.partIter].gravity = _root.partData[id][1]; _root['part' + _root.partIter].bounce = _root.partData[id][2]; _root['part' + _root.partIter].behave = func; _root['part' + _root.partIter].arrayID = _root.partIter; _root.parts.push(_root.partIter); _root.recentPart = _root.partIter; do { ++_root.partIter; if (_root.partIter > 600) { _root.partIter = 100; } } while (_root.member(_root.partIter, _root.parts)); } function locomotePro(incX, incY, id, owner) { this.factor = 1; if (Math.abs(incX) > 5 && Math.abs(incX) > Math.abs(incY)) { this.factor = incX / 5; } else { if (Math.abs(incY) > 5 && Math.abs(incY) > Math.abs(incX)) { this.factor = incY / 5; } } if (this.factor == 0) { this.factor = 0.1; } this.subIncX = incX / Math.abs(this.factor); this.subIncY = incY / Math.abs(this.factor); this.incdY = 0; this.incd = 0; while (Math.abs(this.incd) <= Math.abs(incX)) { if (Math.abs(this.subIncX) < 0.5 && Math.abs(this.subIncY) < 0.5) { return undefined; } this.incdY += this.subIncY; vict = _root.hitPro(_root['pro' + id]._x + this.incd, _root['pro' + id]._y + this.incdY, 1); this.victAlive = _root['char' + vict].hp > 0; if (vict < 10 && vict != _root['pro' + id].owner) { if (_root['char' + vict].invincibility > 0) { } else { _root.playSoundOnce('hit' + vict, 'entryWound'); takeHit(vict, _root['pro' + id].damage, _root['pro' + id].forceX * _root.signOf(_root['pro' + id].xSpeed), _root['pro' + id].forceY, _root['pro' + id].hurtFrames); if (!_root.preserveData.meatMedal && this.victAlive && _root['char' + vict].hp <= 0 && _root['pro' + id].owner != 0 && _root['char' + _root['pro' + id].owner].team != _root.char1.team && _root['char' + _root['pro' + id].owner].team == _root['char' + vict].team) { unlockMedal('Meat Shield'); _root.preserveData.meatMedal = true; } } if (_root['pro' + id].impactClip != 0) { impactX = (_root['pro' + id]._x + this.incd + _root['char' + vict]._x) / 2; impactY = (_root['pro' + id]._y + this.incdY + random(10) + _root['char' + vict]._y - 30) / 2; if (_root['pro' + id].impactClip == 3) { _root.createPart(_root['pro' + id].impactClip, impactX, impactY, 60, 0, 0, _root.explosionParticle); _root.playSoundOnce('explo', 'exploSound'); } else { _root.createPart(_root['pro' + id].impactClip, impactX, impactY, -_root['pro' + id]._xscale, 0, 0, _root.playOnceParticle); _root['part' + _root.recentPart]._rotation = _root['pro' + id]._rotation + 15 - random(30); } _root['part' + _root.recentPart]._yscale -= 200 * random(2); } for (prs in _root.pros) { if (_root.pros[prs] == id) { _root.pros.splice(prs, 1); } } _root['pro' + id].removeMovieClip(); break; } this.proHitSeg = 1; while (this.proHitSeg <= _root.numSegs) { if (_root['seg' + this.proHitSeg].hitTest(_root['pro' + id]._x + this.incd, _root['pro' + id]._y + this.incdY, true)) { if (_root['pro' + id].impactClipBlocked != 0) { _root.createPart(_root['pro' + id].impactClipBlocked, _root['pro' + id]._x + this.incd - 30, _root['pro' + id]._y + this.incdY, 100, 0, 0, _root.playOnceParticle); } for (prs in _root.pros) { if (_root.pros[prs] == id) { _root.pros.splice(prs, 1); } } _root['pro' + id].removeMovieClip(); return undefined; } ++this.proHitSeg; } this.incd += this.subIncX; } if (Math.abs(this.incd) >= Math.abs(incX)) { _root['pro' + id]._x += incX; _root['pro' + id]._y += incY; } } function locomotePart(incX, incY, id, owner) { traX = 0; while (Math.abs(traX) < Math.abs(incX)) { if (!unob2(_root['part' + id]._x + traX, _root['part' + id]._y)) { _root['part' + id].xSpeed *= -0.8; break; } traX += 2 * _root.signOf(incX); } if (Math.abs(traX) > 0) { _root['part' + id]._x += traX - 1; } delete traX; traY = 0; while (Math.abs(traY) < Math.abs(incY)) { if (!unob2(_root['part' + id]._x, _root['part' + id]._y + traY)) { if (incY < 0) { _root['part' + id].ySpeed = Math.abs(_root['part' + id].ySpeed) * 0.8; } else { _root['part' + id].xSpeed = 0; _root['part' + id].ySpeed = 0; _root['part' + id].gravity = 0; } break; } traY += 2 * _root.signOf(incY); } if (Math.abs(traY) > 0) { _root['part' + id]._y += traY - 1; } delete traY; } function unob2(anX, aY) { searchSegs = 1; while (searchSegs <= _root.numSegs) { if (_root['seg' + searchSegs].hitTest(anX, aY, true)) { return false; } ++searchSegs; } return true; } function removePart(arrID) { --_root.parti; for (findPart in parts) { if (_root['part' + parts[findPart]].arrayID == arrID) { parts.splice(findPart, 1); return undefined; } } } function dynamicCreate(textHandle, libraryLinkage, amtToCreate, numStart, depthStart) { dc = numStart; while (dc < numStart + amtToCreate) { _root.attachMovie(libraryLinkage, textHandle + (numStart + dc - 1), depthStart + dc - 1); ++dc; } delete dc; } function dynamicDestroy(textHandle, amtToDestroy, numStart) { dd = numStart; while (dd < numStart + amtToDestroy) { _root['textHandle' + (numStart + dd - 1)].removeMovieClip(); ++dd; } delete dd; } function getMostRemoteSpawn(teamID) { highestCombined = 0; highestCombinedID = 1; sps = 1; while (sps < spawnPoints.length) { lowestCombined = 9999; lowestCombinedID = 1; allOpps = 0; while (allOpps < _root['char' + teams[teamID][0]].opponents.length) { currentCombined = Math.abs(spawnPoints[sps][0] - _root['char' + _root['char' + teams[teamID][0]].opponents[allOpps]]._x) + Math.abs(spawnPoints[sps][1] - _root['char' + _root['char' + teams[teamID][0]].opponents[allOpps]]._y); if (currentCombined < lowestCombined) { lowestCombined = currentCombined; } ++allOpps; } if (lowestCombined > highestCombined) { highestCombined = lowestCombined; highestCombinedID = sps; } ++sps; } return highestCombinedID; } function addToTeam(charID, teamID) { if (teams[teamID] == undefined) { teams[teamID] = new Array(); } teams[teamID].push(charID); _root['char' + charID].team = teamID; otherTeams = 1; while (otherTeams <= teams.length) { if (otherTeams != teamID) { otherTeams2 = 0; while (otherTeams2 < teams[otherTeams].length) { _root['char' + charID].opponents.push(teams[otherTeams][otherTeams2]); _root['char' + teams[otherTeams][otherTeams2]].opponents.push(charID); ++otherTeams2; } } ++otherTeams; } } function survivalReport() { _root.attachMovie('survivalReport', 'survReport', 11097); _root.survReport._y = 80; _root.survReport.killsText.text = _root.survivalKills; if (_root.survivalKills >= 5 && _root.preserveData.difficulty >= 3 && !_root.preserveData.horrorMedal) { _root.preserveData.horrorMedal = true; unlockMedal('Survival Horror'); } if (_root.survivalKills > _root.preserveData.survivalBest) { _root.preserveData.survivalBest = _root.survivalKills; } else { _root.survReport.overallRec._visible = false; } _root.survReport.overallRecText.text = _root.preserveData.survivalBest; if (_root.survivalKills > _root.preserveData.survivalRecords[_root.charSelect[1]]) { _root.earnedGG = (_root.survivalKills - preserveData.survivalRecords[_root.charSelect[1]]) * 25; if (root.earnedGG < 0) { _root.earnedGG = 0; } _root.preserveData.groundsGold += _root.earnedGG; _root.survReport.earnedGGText.text = _root.earnedGG; _root.preserveData.survivalRecords[_root.charSelect[1]] = _root.survivalKills; } else { _root.survReport.characterRec._visible = false; _root.survReport.earnedGGText.text = 0; } _root.survReport.characterRecText.text = _root.preserveData.survivalRecords[_root.charSelect[1]]; surr = 1; while (surr <= 13) { _root.survReport['kills' + surr + 'Text'].text = Math.floor((_root.survivalKills - 1) / 12) + (_root.survivalKills % 12 >= surr) + (_root.survivalKills == 0); _root.survReport['port' + surr].gotoAndStop(surr); ++surr; } _root.routineMedalCheck(); } function checkForWin(teamID) { _root.routineMedalCheck(); if (_root.matchDuration < 300 || _root.preserveData.playMode == 5) { return undefined; } allts = 1; while (allts <= _root.numChars) { if (_root['char' + allts].team != teamID && _root['char' + allts]._alpha >= 99 && (_root['char' + allts].hp > 0 || _root['char' + allts].curPlaying || _root['char' + allts].charIn._currentframe != 9) || _root.winningTeam != 0) { return false; } ++allts; } if (_root.preserveData.playMode == 1 && _root.charSelect[1] == 11 && _root.levelID == 3) { if (_root.char1.hp <= 0) { _root.winningTeam = 2; return true; } else { if (_root.henchKills >= _root.preserveData.difficulty * 10 - 6) { _root.winningTeam = 1; return true; } else { _root.henchKills += 3; _root.char1.hp += 20; _root.char1.registerDamage(); _root.playSoundOnce('explo', 'smallExploSound'); threes = 2; while (threes <= 4) { _root.createPart(3, _root['char' + threes]._x, _root['char' + threes]._y, 100, 0, 0, _root.playOnceParticle); _root['char' + threes].firstLoad = true; _root['char' + threes].transformTime = undefined; _root.loadCharacter(12, threes, false); _root['char' + threes].xSpeed = 0; _root['char' + threes].ySpeed = 0; _root['char' + threes].hurtFrames = 0; _root['char' + threes].cullInput = 30; _root['char' + threes].registerDamage(); ++threes; } return false; } } return true; } if (_root.preserveData.playMode == 4) { if (_root.char1.hp <= 0) { _root.pauseAll(); _root.pauseFor = 0; _root.paused = true; _root.winningTeam = 2; _root.survivalReport(); } else { _root.char1.hp += 40 / (1 + _root.survivalKills / 10); _root.char1.registerDamage(); _root.playSoundOnce('explo', 'smallExploSound'); _root.createPart(3, _root.char2._x, _root.char2._y, 100, 0, 0, _root.playOnceParticle); ++_root.survivalKills; ++_root.recentSpawnChar; if (_root.recentSpawnChar == 12) { _root.recentSpawnChar = 13; } if (_root.recentSpawnChar == 14) { _root.recentSpawnChar = 1; } _root.char2.firstLoad = true; _root.char2.transformTime = undefined; _root.loadCharacter(_root.recentSpawnChar, 2, false); _root.char2.xSpeed = 0; _root.char2.ySpeed = 0; _root.char2.hurtFrames = 0; _root.char2.cullInput = 30; _root.char2.registerDamage(); } return false; } return true; } function win(winTeamID) { delete checkForWin; if (_root.playerPickups > 1 && !_root.preserveData.hoarderMedal && _root.AICharacterExists()) { } if (_root.char5) { _root.createPart(6, _root.char5._x, _root.char5._y - 40, 100, 0, 0, _root.playOnceParticle); _root.char5.removeMovieClip(); } winningTeam = winTeamID; if (winningTeam == _root.char1.team) { ++_root.preserveData.matchesWon; if (_root.char1._currentframe == 12 && _root.char1.transformTime == undefined && !_root.preserveData.henchMedal && _root.AICharacterExists()) { unlockMedal('15 Minutes of Fame'); _root.preserveData.henchMedal = true; } } else { ++_root.preserveData.matchesLost; } pauseAll(); paused = true; _root.qualityUp(); attachMovie('battleReport', 'battleReport', 16001); charCount = 1; while (charCount <= numChars) { battleReport['char' + charCount]._x += (4 - numChars) * 55; battleReport['char' + charCount].portrait.gotoAndStop(_root.charSelect[charCount]); battleReport['char' + charCount].charNameText.text = _root.charNames[_root.charSelect[charCount]]; battleReport['char' + charCount].killsText.text = _root['char' + charCount].kills; battleReport['char' + charCount].dmgDealtText.text = _root['char' + charCount].dmgDealt; battleReport['char' + charCount].dmgTakenText.text = _root['char' + charCount].dmgTaken; battleReport['char' + charCount].survivalTimeText.text = Math.floor(_root['char' + charCount].survivalTime / 1440) + 'm ' + Math.floor(_root['char' + charCount].survivalTime / 24) % 60 + 's'; ++charCount; } charCount; while (charCount <= 4) { battleReport['char' + charCount].unloadMovie(); ++charCount; } if (_root.playMode == 1) { if (winningTeam == _root.char1.team) { battleReport.banner.text = _root.preserveData.pname + ' passes judgement'; if (_root.levelID >= 3) { if (_root.char1.transformTime == undefined) { _root.preserveData.storyCompleted[_root.char1._currentframe] = true; } else { _root.preserveData.storyCompleted[10] = true; } battleReport.button1.gotoAndStop(3); battleReport.button2.gotoAndStop(3); } else { battleReport.button1.gotoAndStop(1); battleReport.button2.gotoAndStop(1); } } else { battleReport.banner.text = _root.preserveData.pname + ' gets blammed'; battleReport.button1.gotoAndStop(2); battleReport.button2.gotoAndStop(2); } } else { if (_root.playMode == 3) { if (winningTeam == _root.char1.team) { if (!_root.preserveData.challengeCompleted[_root.preserveData.challengeID]) { _root.preserveData.groundsGold += 150; _root.preserveData.challengeCompleted[_root.preserveData.challengeID] = true; } else { _root.preserveData.groundsGold += 30; } battleReport.banner.text = 'Challenge completed!'; battleReport.button1.gotoAndStop(2); battleReport.button2.gotoAndStop(5); } else { battleReport.banner.text = 'Challenge failed'; battleReport.button1.gotoAndStop(2); battleReport.button2.gotoAndStop(2); } } else { if (_root.playMode == 2) { if (winningTeam == 1) { bnstr = 'Your'; } else { bnstr = 'Enemy'; } battleReport.banner.text = bnstr + ' team wins daily feature'; delete bnstr; battleReport.button1.gotoAndStop(2); battleReport.button2.gotoAndStop(2); } } } _root.routineMedalCheck(); } function ir(num, n1, n2) { if (num >= n1 && num <= n2) { return true; } else { return false; } } function numBetween(num, n1, n2) { if (num < n1) { return n1; } else { if (num > n2) { return n2; } else { return num; } } } function signOf(nm) { if (nm == 0) { return 1; } else { return Math.abs(nm) / nm; } } function setFactors(cID, factr) { _root['char' + cID].maxFactor = factr; setf1 = 0; while (setf1 <= 4) { setf2 = 0; while (setf2 <= _root['char' + cID].hitFrames[setf1].length) { _root['char' + cID].hitFrames[setf1][setf2][5] = factr; ++setf2; } ++setf1; } delete setf1; delete setf2; } function adjustFactors(cID, factr) { setf1 = 0; while (setf1 <= 4) { setf2 = 0; while (setf2 <= _root['char' + cID].hitFrames[setf1].length) { if (_root['char' + cID].hitFrames[setf1][setf2][5] + factr < _root['char' + cID].maxFactor) { _root['char' + cID].hitFrames[setf1][setf2][5] += factr; } else { _root['char' + cID].hitFrames[setf1][setf2][5] = _root['char' + cID].maxFactor; } ++setf2; } ++setf1; } delete setf1; delete setf2; } function initializeAI(clipID) { _root['char' + clipID].behaveAI = _root.behaveAI; _root['char' + clipID].AIcontrolled = true; _root['char' + clipID].agg = 10 + 30 * _root.preserveData.difficulty; _root['char' + clipID].intel = 35 + 20 * _root.preserveData.difficulty; _root['char' + clipID].fear = 35; _root['char' + clipID].wander = 0; _root['char' + clipID].damageLead = 0; _root['char' + clipID].ultDestText = 'seg'; _root['char' + clipID].ultDestID = 1; _root['char' + clipID].aerialAttack = false; _root['char' + clipID].latelyX = _root['char' + clipID]._x; _root['char' + clipID].latelyY = _root['char' + clipID]._y; _root['char' + clipID].boredom = 0; _root['char' + clipID].voluntaryWait = 0; } function loadCharacter(charID, clipID, human) { if (_root['char' + clipID] == undefined) { ++_root.numChars; _root.attachMovie('characters', 'char' + clipID, clipID); _root['char' + clipID].firstLoad = true; } _root['char' + clipID].gotoAndStop(charID); _root['char' + clipID].charIn.gotoAndStop(4); _root['char' + clipID].charIn.spriteIn.stop(); _root['char' + clipID].charIn.col = new Color(_root['char' + clipID].charIn); _root['char' + clipID].col = new Color(_root['char' + clipID]); _root['char' + clipID].curPlaying = true; _root['char' + clipID].parryCount = 0; if (_root['char' + clipID].transformTime != undefined) { _root['char' + clipID].transformTime = 250 + random(250); } if (_root['char' + clipID].firstLoad) { _root['char' + clipID].id = clipID; _root['char' + clipID].prevSeg = -1; _root['char' + clipID].opponents = new Array(); _root['char' + clipID]._x = _root.spawnPoints[clipID][0]; _root['char' + clipID]._y = _root.spawnPoints[clipID][1]; _root['char' + clipID].cullInput = 50; _root['char' + clipID].mostRecentKS = 0; _root['char' + clipID].mostRecentKD = 0; _root['char' + clipID].lastStrikeHit = false; _root['char' + clipID].lastLastA = 0; _root['char' + clipID].lastA = -1; _root['char' + clipID].heavy = 0; _root['char' + clipID].pitfalls = 0; _root['char' + clipID].invincibility = 0; _root['char' + clipID].justBlocked = 0; _root['char' + clipID].rage.gotoAndStop(3); _root['char' + clipID].nativeXScale = 100; _root['char' + clipID].nativeYScale = 100; _root['char' + clipID].xSpeed = 0; _root['char' + clipID].ySpeed = 0; _root['char' + clipID].dSeg = 0; _root['char' + clipID].freshS = true; _root['char' + clipID].freshD = true; _root['char' + clipID].lastPressed = ''; _root['char' + clipID].hurtFrames = 0; _root['char' + clipID].frameActions = new Array(); _root['char' + clipID].quickCombo = new Array(); _root['char' + clipID].fierceCombo = new Array(); _root['char' + clipID].hitFrames = new Array(); _root['char' + clipID].behave = _root.behave; _root['char' + clipID].locomoteX = _root.locomoteX; _root['char' + clipID].locomoteY = _root.locomoteY; _root['char' + clipID].unobstructed = _root.unobstructed; _root['char' + clipID].goto = _root.goto; _root['char' + clipID].setState = _root.setState; _root['char' + clipID].frmAct = _root.frmAct; _root['char' + clipID].checkForHits = _root.checkForHits; _root['char' + clipID].updateDest = _root.updateDest; _root['char' + clipID].chooseNextSeg = _root.chooseNextSeg; _root['char' + clipID].within = _root.within; _root['char' + clipID].withinSeg = _root.withinSeg; _root['char' + clipID].findProjectileFrame = _root.findProjectileFrame; _root['char' + clipID].registerDamage = _root.registerDamage; if (!human) { _root['char' + clipID].AIcontrolled = true; _root['char' + clipID].AIcounter = 0; initializeAI(clipID); } _root['char' + clipID].onEnterFrame = function () { this.behave(); }; _root['char' + clipID].curComboID = 0; _root['char' + clipID].dmgDealt = 0; _root['char' + clipID].dmgTaken = 0; _root['char' + clipID].survivalTime = 0; _root['char' + clipID].kills = 0; _root['char' + clipID].lastDSeg = -1; } else { if (_root['char' + clipID].rageMode > 0) { _root['char' + clipID].rem = _root['char' + clipID].rageMode; _root['char' + clipID].setState(2); _root['char' + clipID].rageMode = _root['char' + clipID].rem; } else { if (_root['char' + clipID].invincibility > 0) { _root['char' + clipID].rem = _root['char' + clipID].invicibility; _root['char' + clipID].setState(3); _root['char' + clipID].invicibility = _root['char' + clipID].rem; } else { if (_root['char' + clipID].regeneration > 0) { _root['char' + clipID].rem = _root['char' + clipID].regeneration; _root['char' + clipID].setState(5); _root['char' + clipID].regeneration = _root['char' + clipID].rem; } } } } _root['char' + clipID].ciBirthX = _root['char' + clipID].charIn._x; _root['char' + clipID].idealDistance = 50; _root['char' + clipID].blockStamina = 300; _root['bs' + clipID].gotoAndStop(_root['bs' + clipID]._totalframes); if (charID == 1) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 22; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 5; _root['char' + clipID].proJD = 9; _root['char' + clipID].proJF = 13; _root['char' + clipID].proJU = 17; _root['char' + clipID].impactOffsetX = 0; _root['char' + clipID].impactOffsetY = -30; _root['char' + clipID].moveSpeed = 8; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 2; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 370; _root['char' + clipID].maxhp = 370; } _root['char' + clipID].idealDistance = 50; _root['char' + clipID].frameActions = [0, 0, 0, [3, 4, 1, true], [4, 0, 0, false], [3, 0, 0, false], [4, 1, 1, true], 0, 0, [23, -11, 0, true, 23, 0, 0, false, 5, -15, 44, true], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [9, 1, 1, true, 17, 1, 1, true, 26, 1, 1, true, 29, -5, 1.5, false, 36, 1, 1, true, 28, -15, 42, true], [3, -5, 1.5, false, 15, 1, 1, true, 18, -5, 1.5, false, 24, 1, 1, true, 27, -5, 2.5, false, 36, 1, 1, true, 39, -5, 1.5, false, 56, 1, 1, true, 5, -15, 42, true, 17, -15, 42, true, 28, -15, 42, true, 43, -15, 43, true], [11, 4, 1, false, 19, 4, 1, false, 3, -15, 41, false, 13, -15, 13, true], [1, -6, -6, false, 15, 4, 1, false, 17, -5, 5, false, 17, -6, -2, false, 26, 4, 1, false, 28, -7, 9, false, 28, -8, 2, false, 36, 4, 1, false, 2, -15, 43, true, 3, -15, 3, true, 7, -15, 3, true, 11, -15, 3, true, 18, -15, 13, true, 30, -15, 41, true], [11, 7, 1, false, 21, 7, 1, false, 33, 7, 1, false, 55, 7, 1, false, 3, -15, 42, true, 23, -15, 43, true, 40, -15, 41, true, 35, -15, 4, true], [4, -13, 0, true, 8, -13, 0, true, 12, -12, 0, true, 16, -12, 0, true, 20, -12, 0, true, 2, -15, 12, true, 6, -15, 12, true, 10, -15, 12, true, 14, -15, 12, true, 18, -15, 12, true]]; _root['char' + clipID].quickCombo = [[8, 20, 10, 16, 20, 18, 25, 20, 27], 0, [10, 22, 12, 18, 22, 1], 0, 0]; _root['char' + clipID].fierceCombo = [[35, 21, 37], [14, 21, 16, 23, 21, 25, 35, 21, 37, 55, 21, 57], [18, 23, 16], [14, 23, 16, 25, 23, 27], [10, 24, 12, 32, 24, 34, 53, 24, 35], []]; _root['char' + clipID].hitFrames = [[[3, 3, 8, 2, 0], [11, 3, 8, 2, 0], [19, 3, 12, 2, -5, 100, 'hit2'], [30, 5, 20, 3, -20, 100, 'hit2']], [[7, 4, 11, 2, 0, 100, 'hit2'], [18, 4, 12, 2, 0, 100, 'hit2'], [30, 6, 14, 2, 0, 100, 'hit2'], [44, 20, 16, 2, -55, 100, 'hit3']], [[4, 3, 12, 1, 0, 100, 'hit1'], [13, 4, 16, 4, 0, 100, 'hit2']], [[3, 2, 2, -1, -3], [5, 2, 2, 1, -3], [7, 2, 2, -1, -3], [9, 2, 3, 3, -3], [11, 2, 3, 8, -5], [19, 6, 19, 10, -15, 100, 'hit2'], [30, 5, 24, 10, -5, 100, 'hit3']], [[4, 3, 7, 2, 0], [17, 5, 14, 2, 0, 100, 'swordHit'], [25, 4, 9, 2, 0, 100, 'hit2'], [43, 3, 17, 3, -3, 100, 'hit1']], []]; } else { if (charID == 2) { _root['char' + clipID].cqStart = 35; _root['char' + clipID].cfStart = 1; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 9; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = -100; _root['char' + clipID].impactOffsetY = -100; _root['char' + clipID].moveSpeed = 8; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 2; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 380; _root['char' + clipID].maxhp = 380; } _root['char' + clipID].idealDistance = 40; _root['char' + clipID].frameActions = [0, 0, 0, [3, 4, 1, true], [4, 0, 0, false], [6, 0, 0, false], [4, 1, 1, true], 0, 0, [60, -11, 0, true, 60, 0, 0, false, 2, -15, 31, true], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [9, 1, 1, true, 22, 1, 1, true, 33, 1, 1, true, 44, 1, 1, true], [12, 1, 1, true, 23, 1, 1, true, 42, 1, 1, true], [8, 4, 1, false, 14, 4, 1, false, 21, 4, 1, false], [11, 4, 1, false, 22, 4, 1, false, 30, 4, 1, false], [13, 7, 1, false, 24, 7, 1, false, 34, 7, 1, false, 43, 7, 1, false, 56, 7, 1, false, 70, 7, 1, false], [3, -13, 0, true, 11, -12, 0, true, 2, -15, 12, true, 10, -15, 12, true]]; _root['char' + clipID].quickCombo = [[8, 20, 10, 21, 20, 23, 32, 20, 34, 43, 20, 23], 0, [7, 22, 9, 13, 22, 15], 0, [42, 24, 44, 55, 24, 57, 69, 24, 44]]; _root['char' + clipID].fierceCombo = [0, [11, 21, 13, 22, 21, 24], 0, [10, 23, 12, 21, 23, 23, 29, 23, 23], [12, 24, 14, 23, 24, 25], []]; _root['char' + clipID].hitFrames = [[[3, 3, 9, 2, 0, 100, 'hit1'], [14, 3, 10, 2, 0, 100, 'hit1'], [26, 3, 9, 20, -10, 100, 'hit2'], [38, 5, 9, 3, 0, 100, 'hit2']], [[6, 7, 11, 0, 0, 100, 'hit1'], [17, 7, 13, 0, 0, 100, 'hit1'], [30, 9, 16, 25, -35, 100, 'hit3']], [[2, 4, 10, 1, -2, 100, 'hit1'], [9, 6, 13, 2, -4, 100, 'hit2'], [17, 4, 16, 8, -5, 100, 'hit1']], [[4, 4, 16, 1, -10, 100, 'hit1'], [15, 3, 18, 0, -6, 100, 'hit2'], [25, 3, 14, 20, -3, 100, 'hit3']], [[8, 3, 12, 0, 0, 100, 'hit2'], [18, 5, 16, -2, 0, 100, 'hit2'], [29, 6, 18, 4, -50, 100, 'hit3'], [38, 3, 5, 2, -20, 100, 'hit2'], [47, 3, 7, -2, 0, 100, 'hit1'], [53, 3, 7, 2, 0, 100, 'hit1'], [64, 3, 7, 0, 0, 100, 'hit1'], [66, 3, 10, 15, -18, 100, 'hit1']], []]; } else { if (charID == 3) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 20; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 9; _root['char' + clipID].proJU = 0; _root['char' + clipID].moveSpeed = 8; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 3; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 266; _root['char' + clipID].maxhp = 266; } _root['char' + clipID].idealDistance = 75; _root['char' + clipID].frameActions = [0, 0, 0, [3, 4, 1, true], 0, [3, 0, 0, false], [3, 1, 1, true], [11, 7, 4, true], 0, [35, -11, 0, true, 35, 0, 0, false, 1, -15, 30, true, 17, -15, 1, true], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [11, 1, 1, true, 23, 1, 1, true, 30, 1, 1, true, 4, -5, 2, false, 24, -5, 4, false, 2, -15, 24, true, 17, -15, 11, true, 25, -15, 26, true], [9, 1, 1, true, 30, 1, 1, true, 43, 1, 1, true, 11, -15, 25, true, 33, -15, 13, true], [11, 4, 1, true, 23, 4, 1, true, 3, -5, 2, true, 16, -5, 4, true, 13, -15, 24, true], [12, 4, 1, true, 22, 4, 1, true, 31, 4, 1, true, 39, 4, 1, true, 5, -5, 3, false, 5, -6, -4, false, 14, -5, 4, false, 17, -6, -4, false, 23, -7, 0, false, 24, -15, 3, true, 31, -15, 3, true], [11, 7, 4, true, 19, 7, 4, true, 31, 7, 4, true, 47, 7, 4, true, 76, 7, 4, true, 5, -5, 3, true, 13, -5, 3, true, 20, -5, -4, true, 37, -5, 5, true, 59, -5, -8, true, 21, -15, 25, true, 39, -15, 11, true, 59, -15, 28, true], [8, -13, 0, true, 16, -12, 0, true, 2, -15, 29, true, 11, -15, 29, true]]; _root['char' + clipID].quickCombo = [[10, 20, 12, 22, 20, 24], 0, [10, 22, 12, 22, 22, 1], 0, [10, 24, 12, 22, 24, 1], 0]; _root['char' + clipID].fierceCombo = [0, [8, 21, 10, 29, 21, 31, 42, 21, 31], 0, [11, 23, 13, 21, 23, 23, 30, 23, 32, 38, 23, 23], [30, 24, 32, 46, 24, 48], []]; _root['char' + clipID].hitFrames = [[[4, 3, 6, 2, 0], [15, 3, 4, 2, 0], [17, 4, 9, 2, -5], [26, 10, 15, 1, -50]], [[5, 5, 11, 2, 0, 100, 'hit2'], [21, 8, 15, 4, 0, 100, 'hit3'], [34, 1, 1, 0, 0], [35, 1, 1, 0, 0], [36, 1, 1, 0, 0], [37, 1, 8, 40, -10, 100, 'hit1']], [[3, 3, 10, 0, -3], [16, 5, 15, 15, 0]], [[4, 6, 4, -2, -3, 100, 'hit2'], [17, 7, 14, 1, -35, 100, 'swordHit'], [28, 3, 6, 0, -5, 100, 'whip'], [35, 6, 13, 10, -20, 100, 'whip']], [[5, 3, 7, 2, 0], [13, 4, 12, 3, 0], [24, 4, 10, -2, 0], [26, 1, 2, 1, 0], [27, 1, 2, 1, 0], [28, 6, 2, 1, 0], [39, 9, 12, 0, -10, 100, 'swordHit'], [58, 5, 20, 60, -5, 100, 'hit3']], []]; } else { if (charID == 4) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 25; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 14; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = -100; _root['char' + clipID].impactOffsetY = -100; _root['char' + clipID].moveSpeed = 8; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 3; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 320; _root['char' + clipID].maxhp = 320; } _root['char' + clipID].idealDistance = 40; _root['char' + clipID].frameActions = [0, 0, 0, [2, 4, 1, true], [2, 0, 0, false], [3, 0, 0, false], [4, 1, 1, true], 0, 0, [18, -11, 0, true, 18, 0, 0, false, 2, -15, 40, true], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [7, 1, 1, true, 17, 1, 1, true, 30, 1, 1, true, 43, 1, 1, true, 19, -15, 37, true, 32, -15, 39, true], [12, 1, 1, true, 26, 1, 1, true, 44, 1, 1, true, 4, -5, 5, true, 16, -5, 3, true, 25, 8, true, 3, -15, 39, true, 15, -15, 38, true, 30, -15, 38, true], [16, 4, 2, false, 29, 4, 2, false, 40, 4, 2, false, 50, 4, 2, false, 62, 4, 2, false, 75, 4, 2, false, 31, -15, 39, true, 41, -15, 39, true, 52, -15, 39, true, 63, -15, 37, true], [17, 4, 2, false, 24, 4, 2, false, 37, 4, 2, false], [14, 7, 1, true, 24, 7, 1, true, 33, 7, 1, true, 45, 7, 1, true, 58, 7, 1, true, 66, -6, -10, true, 66, -5, 10, true, 66, -10, -5, true, 66, 23, 38, true, 39, -15, 39, true, 48, -15, 38, true, 63, -15, 37, true], [13, -13, 0, true, 26, -12, 0, true, 7, -15, 23, true, 20, -15, 23, true]]; _root['char' + clipID].quickCombo = [[6, 20, 8, 16, 20, 18, 29, 20, 31], 0, [15, 22, 17, 28, 22, 30, 39, 22, 41, 49, 22, 51, 61, 22, 63], 0, [13, 24, 15, 22, 24, 3, 57, 24, 49]]; _root['char' + clipID].fierceCombo = [0, [11, 21, 13, 25, 21, 27], [70, 22, 30], [16, 23, 18, 23, 23, 25], [32, 24, 34, 44, 24, 46, 57, 24, 59], []]; _root['char' + clipID].hitFrames = [[[3, 3, 8, 2, 0, 100, 'hit1'], [10, 6, 10, 6, 0, 100, 'hit2'], [22, 4, 12, 0, 0], [23, 4, 4, 0, -30], [33, 8, 14, 20, 0, 100, 'hit3']], [[5, 6, 10, 2, -25, 100, 'hit2'], [17, 8, 12, 2, 0, 100, 'hit1'], [32, 10, 14, 5, -60, 100, 'hit3']], [[8, 2, 3, 2, -1, 100, 'hit1'], [10, 2, 3, 2, -1, 100, 'hit1'], [12, 5, 3, 2, -1, 100, 'hit1'], [20, 2, 3, 2, -1, 100, 'hit1'], [22, 2, 3, 2, -1, 100, 'hit1'], [24, 5, 5, 2, -1, 100, 'hit1'], [32, 4, 5, 2, -1], [42, 4, 6, 2, -1], [53, 4, 7, 2, -1], [64, 4, 8, 2, -1, 100, 'hit3']], [[10, 8, 18, 2, -8], [18, 9, 18, 2, -8], [26, 10, 18, 2, -8], [38, 10, 15, 4, -4], [40, 10, 15, 10, -8]], [[6, 6, 8, 0, 0], [19, 6, 8, 0, 0], [29, 6, 11, 2, -10], [41, 9, 5, 20, -10], [52, 6, 8, 4, -6]], []]; } else { if (charID == 5) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 32; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 29; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = -100; _root['char' + clipID].impactOffsetY = -100; _root['char' + clipID].moveSpeed = 8; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 4; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 230; _root['char' + clipID].maxhp = 230; } _root['char' + clipID].idealDistance = 60; _root['char' + clipID].frameActions = [0, 0, 0, [3, 4, 1, true], [1, 0, 0, false], [7, 0, 0, false], [4, 1, 1, true], 0, 0, [28, -11, 0, true, 28, 0, 0, false, 2, -15, 51, true], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [8, 1, 1, true, 21, 1, 1, true, 39, 1, 1, true, 31, -5, 5, true], [11, 1, 1, true, 23, 1, 1, true, 41, 1, 1, true, 4, -5, 4, true, 16, -5, 4, true, 3, -15, 15, true, 15, -15, 16, true, 31, -15, 17, true], [9, 4, 1, false, 14, 4, 1, false, 27, 4, 1, false, 2, -6, -3, true, 11, -6, -2, true, 2, -15, 15, true, 11, -15, 16, true], [11, 4, 1, false, 26, 4, 1, false, 37, 4, 1, false, 44, 4, 1, false, 5, -6, -2, true, 20, -6, -4, true, 33, -5, 2, true, 33, -6, -2, true, 40, -5, 2, true, 40, -6, -2, true], [9, 7, 1, true, 18, 7, 1, true, 31, 7, 1, true, 44, 7, 1, true, 54, 7, 1, true, 66, 7, 1, true, 74, 7, 1, true, 11, -15, 16, true, 21, -15, 16, true, 33, -15, 17, true, 49, -15, 15, true], [28, -13, 0, true, 49, -12, 0, false, 14, -15, 18, true, 36, -15, 18, true]]; _root['char' + clipID].quickCombo = [[7, 20, 9, 20, 20, 22], 0, [8, 22, 10, 13, 22, 15], 0, [8, 24, 10, 17, 24, 19]]; _root['char' + clipID].fierceCombo = [0, [10, 21, 12, 22, 21, 24], 0, [10, 23, 12, 25, 23, 27, 36, 23, 38, 43, 23, 38], [43, 24, 45, 53, 24, 55, 65, 24, 67, 73, 24, 67], []]; _root['char' + clipID].hitFrames = [[[2, 3, 6, 2, 0, 100, 'swordHit'], [14, 8, 10, 0, -40, 100, 'hit2'], [25, 6, 8, -8, -20, 100, 'hit1'], [31, 5, 10, 18, -8, 100, 'hit3']], [[4, 5, 10, 2, 0, 100, 'swordHit'], [16, 5, 12, 2, 0, 100, 'swordHit'], [32, 8, 5, -5, -5, 100, 'hit3'], [33, 8, 14, 4, -60, 100, 'hit1']], [[2, 5, 9, 1, -14, 100, 'hit2'], [11, 6, 12, 1, -4, 100, 'hit1'], [21, 4, 16, 14, -5, 100, 'hit2']], [[5, 6, 8, 1, -6, 100, 'swordHit'], [20, 8, 6, 0, -24, 100, 'hit3'], [33, 5, 5, 5, -10, 100, 'swordHit'], [40, 5, 5, 5, -10, 100, 'hit2']], [[2, 3, 5, 1, 0, 100, 'hit1'], [11, 4, 7, 0, 0, 100, 'hit1'], [23, 4, 8, 3, -10, 100, 'hit2'], [34, 6, 5, 2, 0, 100, 'swordHit'], [48, 3, 10, 0, -40, 100, 'swordHit'], [63, 5, 7, 10, -15, 100, 'hit2'], [68, 5, 7, -10, -15, 100, 'hit2'], [72, 5, 7, 10, -15, 100, 'hit2']], []]; } else { if (charID == 6) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 42; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 0; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = -100; _root['char' + clipID].impactOffsetY = -100; _root['char' + clipID].moveSpeed = 5; _root['char' + clipID].jumpSpeed = 17; _root['char' + clipID].shieldSoftness = 5; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 310; _root['char' + clipID].maxhp = 310; } _root['char' + clipID].idealDistance = 73; _root['char' + clipID].frameActions = [0, 0, 0, [3, 4, 1, true], [14, 0, 0, false], [5, 0, 0, false], [9, 1, 1, true], 0, 0, [2, -15, 48, true, 43, -11, 0, true, 43, 0, 0, false], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [11, 1, 1, true, 27, 1, 1, true, 40, 1, 1, true, 18, -5, 4, true, 2, -15, 45, true, 15, -15, 46, true], [16, 1, 1, true, 32, 1, 1, true, 49, 1, 1, true, 56, 1, 1, true, 4, -5, 4, true, 16, -5, 4, true, 2, -15, 46, true, 37, -15, 47, true], [14, 4, 1, false, 22, 4, 1, false, 45, 4, 1, false, 6, -6, -3, true, 26, -5, 6, true, 26, -6, -5, true, 3, -15, 45, true], [14, 4, 1, false, 29, 4, 1, false, 45, 4, 1, false, 5, -6, -5, true, 19, -6, -5, true, 32, -6, -5, true, 40, -5, 5, true, 16, -15, 45, true, 32, -15, 47, true], [13, 7, 1, true, 26, 7, 1, true, 41, 7, 1, true, 58, 7, 1, true, 68, 7, 1, true, 87, 7, 1, true, 15, -15, 47, true, 28, -15, 46, true, 46, -15, 45, true, 60, -15, 45, true, 71, -15, 46, true], [42, -13, 0, true, 5, -15, 49, true]]; _root['char' + clipID].quickCombo = [[10, 20, 12, 26, 20, 28], 0, [13, 22, 15, 21, 22, 23], 0, [12, 24, 14, 25, 24, 27]]; _root['char' + clipID].fierceCombo = [0, [15, 21, 17, 31, 21, 33, 48, 21, 50, 53, 21, 50], 0, [13, 23, 15, 28, 23, 30], [57, 24, 59, 67, 24, 69], []]; _root['char' + clipID].hitFrames = [[[4, 3, 8, 2, 0], [17, 6, 11, 5, -10], [30, 6, 11, 0, -40]], [[8, 5, 12, 2, 0, 100, 'hit2'], [19, 5, 13, 2, 0, 100, 'hit2'], [43, 8, 16, 6, -4, 100, 'hit3'], [51, 8, 7, 2, -3, 100, 'hit1']], [[6, 5, 10, 2, -10, 100, 'hit2'], [16, 6, 14, 2, -7, 100, 'hit2'], [28, 3, 4, 3, -3, 100, 'hit1'], [32, 3, 4, 3, -3, 100, 'hit1'], [36, 3, 5, 3, -3, 100, 'hit1'], [40, 3, 5, 3, -3, 100, 'hit1'], [44, 3, 6, 3, -3, 100, 'hit1']], [[5, 5, 10, 2, -10, 100, 'hit1'], [19, 8, 14, 2, -13, 100, 'metalHit'], [35, 5, 22, 16, -6, 100, 'hit3']], [[5, 5, 7, 2, -10, 100, 'hit1'], [16, 5, 12, 0, -10, 100, 'hit1'], [32, 9, 15, 12, -7, 100, 'hit3'], [49, 6, 8, 0, -20], [60, 3, 10, 0, 35], [74, 5, 10, 13, -10]], []]; } else { if (charID == 7) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 41; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 0; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = -100; _root['char' + clipID].impactOffsetY = -100; _root['char' + clipID].moveSpeed = 5; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 3; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 390; _root['char' + clipID].maxhp = 390; } _root['char' + clipID].idealDistance = 55; _root['char' + clipID].frameActions = [0, 0, [8, -15, 14, true], [3, 4, 1, true], [10, 0, 0, false], [8, 0, 0, false, 3, -15, 12, true], [7, 1, 1, true], 0, [6, 0, 0, false], [33, -11, 0, true, 33, 0, 0, false, 2, -15, 35, true], [7, 0, 0, false], 0, 0, 0, 0, 0, 0, 0, 0, 0, [13, 1, 1, true, 29, 1, 1, true, 41, 1, 1, true, 18, -5, 7, true, 35, -5, 4, true, 16, -15, 33, true, 31, -15, 34, true], [12, 1, 1, true, 45, 1, 1, true, 56, 1, 1, true, 80, 1, 1, true, 70, -5, 8, true, 6, -15, 32, true, 17, -15, 33, true, 34, -15, 11, true, 47, -15, 34, true, 50, -15, 11, true, 54, -15, 14, true, 58, -15, 33, true], [9, 4, 8, true, 20, 4, 8, true, 32, 4, 8, true, 5, -5, 4, true, 16, -5, 4, true, 27, -5, 5, true, 27, -6, -5, true], [11, 4, 8, true, 22, 4, 8, true, 32, 4, 8, true, 47, 4, 8, true, 6, -6, -4, true, 17, -6, -4, true, 28, -6, -10, true, 37, -6, -5, true, 37, -5, 5, true, 2, -15, 32, true, 13, -15, 32, true, 24, -15, 34, true, 37, -15, 3, true, 41, -15, 3, true, 45, -15, 3, true], [12, 7, 1, true, 22, 7, 1, true, 40, 7, 1, true, 58, 7, 1, true, 75, 7, 1, true, 92, 7, 1, true, 106, 7, 1, true, 42, -15, 33, true, 44, -15, 14, true, 60, -15, 33, true, 62, -15, 14, true, 77, -15, 32, true, 94, -15, 34, true], [29, 1, 1, true, 3, -15, 3, true, 10, -15, 7, true, 28, -15, 10, true]]; _root['char' + clipID].quickCombo = [[12, 20, 14, 28, 20, 30], 0, [8, 22, 10, 19, 22, 21], 0, [12, 24, 14, 21, 24, 23]]; _root['char' + clipID].fierceCombo = [0, [11, 21, 13, 44, 21, 46, 55, 21, 57], 0, [10, 23, 12, 21, 23, 23, 31, 23, 33], [57, 24, 59, 74, 24, 76, 91, 24, 93], []]; _root['char' + clipID].hitFrames = [[[4, 6, 8, 0, -10, 100, 'hit1'], [18, 9, 10, 0, 0, 100, 'hit1'], [35, 8, 16, 20, -15, 100, 'hit3']], [[7, 13, 10, 0, 0, 100, 'hit2'], [28, 9, 14, 2, -40, 100, 'swordHit'], [50, 8, 22, 0, 30, 100, 'swordHit'], [68, 8, 16, 28, -20, 100, 'hit3']], [[5, 5, 11, 2, -6, 100, 'hit1'], [16, 5, 16, 2, -8, 100, 'hit2'], [27, 3, 14, 10, -3, 100, 'hit3']], [[3, 5, 11, 2, -6, 100, 'hit1'], [14, 8, 14, 2, -6, 100, 'hit1'], [25, 5, 17, 8, -15, 100, 'hit2'], [37, 5, 8, 3, -1, 100, 'swordHit'], [40, 5, 12, 0, -10, 100, 'swordHit'], [42, 5, 12, 4, -5, 100, 'swordHit']], [[4, 5, 8, 0, -10, 100, 'hit2'], [15, 9, 12, 0, 10, 100, 'hit1'], [26, 9, 18, 16, -12, 100, 'hit3'], [45, 6, 10, 0, -20, 100, 'swordHit'], [52, 6, 12, 0, -20, 100, 'hit1'], [64, 6, 16, 0, -20, 100, 'swordHit'], [78, 12, 20, 0, -40, 100, 'hit2'], [99, 10, 28, 20, -15, 100, 'hit3']], []]; } else { if (charID == 8) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 56; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 0; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = -100; _root['char' + clipID].impactOffsetY = -100; _root['char' + clipID].moveSpeed = 8; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 2; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 300; _root['char' + clipID].maxhp = 300; } _root['char' + clipID].idealDistance = 59; _root['char' + clipID].frameActions = [0, 0, 0, [3, 4, 1, true], [5, 0, 0, false], [3, 0, 0, false], [4, 1, 1, true], 0, [3, 0, 0, false], [2, -15, 36, true, 35, -11, 0, true, 35, 0, 0, false], [3, 0, 0, false], 0, 0, 0, 0, 0, 0, 0, 0, 0, [11, 1, 1, true, 20, 1, 1, true, 28, 1, 1, true], [10, 1, 1, true, 25, 1, 1, true, 65, 1, 1, true, 8, -14, 41, false, 23, -14, 41, false, 9, -15, 6, true, 24, -15, 6, true, 32, -15, 9, true, 40, -15, 9, true, 48, -15, 9, true, 56, -15, 9, true], [11, 4, 5, false, 22, 4, 5, false, 35, 4, 5, false, 29, -5, -8, true, 29, -6, -6, true, 29, -14, 45, false, 29, -15, 6, true], [11, 4, 5, false, 32, 4, 5, false, 53, 4, 5, false, 14, -6, -6, true, 19, -6, -6, true, 44, -5, -9, false, 22, -14, 64, false, 39, -14, 54, false, 44, -14, 54, false, 5, -15, 10, true, 15, -15, 5, true, 22, -15, 6, true], [13, 7, 1, true, 28, 7, 1, true, 55, 7, 1, true, 74, 7, 1, true, 92, 7, 1, true, 125, 7, 1, true, 35, -14, 40, false, 69, -14, 70, false, 87, -14, 73, false, 106, -14, 75, false, 31, -15, 54, true, 35, -15, 6, true, 63, -15, 5, true, 69, -15, 6, true, 80, -15, 5, true, 87, -15, 6, true, 96, -15, 5, true, 106, -15, 6, true], [113, 1, 1, true, 2, -15, 55, true, 30, -15, 55, true, 61, -15, 55, true]]; _root['char' + clipID].quickCombo = [[10, 20, 12, 19, 20, 21], 0, [10, 22, 12, 21, 22, 23], 0, [12, 24, 14, 27, 24, 29]]; _root['char' + clipID].fierceCombo = [0, [10, 21, 12, -24, 21, 26], 0, [10, 23, 12, 31, 23, 33], [73, 24, 75, 91, 24, 93], []]; _root['char' + clipID].hitFrames = [[[5, 3, 6, 0, 0, 100, 'hit1'], [14, 3, 10, 0, 0, 100, 'hit1'], [23, 8, 15, 10, -10, 100, 'hit2']], [[9, 8, 14, 0, -10, 100, 'hit2'], [24, 8, 14, 0, -30, 100, 'hit2'], [32, 1, 2, 4, -2], [36, 1, 2, 4, -2], [40, 1, 2, 4, -2], [44, 1, 2, 4, -2], [48, 1, 2, 4, -2], [52, 1, 2, 4, -2], [56, 1, 2, 4, -2], [60, 1, 2, 4, -2], [64, 1, 2, 4, -2]], [[5, 4, 10, 0, -12, 100, 'hit1'], [16, 4, 13, 2, -4, 100, 'hit1'], [29, 6, 16, 20, -6, 100, 'hit2']], [[6, 5, 10, 10, -6, 100, 'hit2'], [22, 7, 17, 2, -12, 100, 'hit2'], [39, 5, 16, 4, -11, 100, 'hit2'], [44, 8, 16, 15, -11, 100, 'hit2']], [[6, 8, 6, 0, -3, 100, 'hit1'], [17, 9, 12, 0, -30, 100, 'hit2'], [35, 9, 22, 16, -19, 100, 'hit2'], [69, 7, 14, 0, -30, 100, 'hit2'], [87, 8, 18, 0, -20, 100, 'hit2'], [106, 10, 18, 17, -20, 100, 'hit3']], []]; } else { if (charID == 9) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 33; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 7; _root['char' + clipID].proJD = 19; _root['char' + clipID].proJF = 13; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = 0; _root['char' + clipID].impactOffsetY = -30; _root['char' + clipID].moveSpeed = 8; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 3; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 300; _root['char' + clipID].maxhp = 300; } _root['char' + clipID].idealDistance = 50; _root['char' + clipID].frameActions = [0, 0, 0, [3, 4, 1, true], [7, 0, 0, false], [2, -15, 20, true, 5, 0, 0, false], [4, 1, 1, true], 0, [9, 0, 0, false], [23, -11, 0, true, 23, 0, 0, false], [9, 0, 0, false], 0, 0, 0, 0, 0, 0, 0, 0, 0, [9, 1, 1, true, 19, 1, 1, true, 32, 1, 1, true, 9, -5, 7, true, 23, -5, 11, true, 20, -15, 8, true], [12, 1, 1, true, 26, 1, 1, true, 53, 1, 1, true, 39, -5, -20, true, 22, -14, 66, false, 2, -15, 8, true, 22, -15, 6, true, 37, -15, 19, true], [9, 4, 6, false, 20, 4, 6, false, 31, 4, 6, false, 3, -6, -4, true, 13, -6, -4, true, 23, -6, -4, true], [13, 4, 6, false, 24, 4, 6, false, 81, 4, 6, false, 5, -6, -3, true, 5, -5, 6, true, 19, -6, -7, true, 19, -5, 4, true, 33, -15, 22, true, 37, -15, 22, true, 41, -15, 22, true, 45, -15, 22, true, 49, -15, 22, true, 53, -15, 22, true, 57, -15, 22, true, 61, -15, 22, true, 65, -15, 22, true, 69, -15, 22, true, 73, -15, 22, true, 77, -15, 22, true], [9, 7, 1, true, 17, 7, 1, true, 32, 7, 1, true, 47, 7, 1, true, 52, -5, 7, true, 57, 7, 1, true, 72, 7, 1, true, 19, -15, 8, true], [6, -13, 0, false, 12, -13, 0, false, 18, -12, 0, false, 24, -12, 0, false, 2, -15, 19, true, 8, -15, 19, true, 14, -15, 19, true, 20, -15, 19, true]]; _root['char' + clipID].quickCombo = [[8, 20, 10, 18, 20, 20], 0, [8, 22, 10, 19, 22, 21], 0, [8, 24, 10, 16, 24, 18], []]; _root['char' + clipID].fierceCombo = [0, [11, 21, 13, 25, 21, 27], 0, [12, 23, 14, 23, 23, 25], [46, 24, 48, 56, 24, 58], []]; _root['char' + clipID].hitFrames = [[[4, 3, 6, 2, -10, 100, 'swordHit'], [13, 3, 8, 5, -30, 100, 'swordHit'], [24, 3, 12, 14, -8]], [[4, 5, 9, 2, -16], [22, 10, 17, 2, 0], [39, 6, 15, 16, -8]], [[4, 3, 7, 1, -4], [14, 4, 11, 1, -4], [24, 4, 15, 1, -4, 100, 'swordHit']], [[5, 6, 12, 1, -5], [19, 5, 12, 0, -10], [33, 2, 2, 2, -2], [37, 2, 2, 2, -2], [41, 2, 2, 2, -2], [45, 2, 2, 2, -2], [49, 2, 2, 2, -2], [53, 2, 2, 2, -2], [57, 2, 2, 2, -2], [61, 2, 2, 2, -2], [65, 2, 2, 2, -2], [69, 2, 2, 2, -2], [73, 2, 2, 2, -2], [77, 2, 2, 2, -2]], [[3, 2, 6, 2, -6, 100, 'swordHit'], [12, 3, 11, 2, -10], [22, 6, 16, 8, -10], [41, 10, 8, -16, -16, 100, 'hit1'], [52, 3, 18, 0, -13, 100, 'hit2'], [64, 3, 20, 18, -9, 100, 'hit3']], []]; } else { if (charID > 10) { _root.loadCharacterB(charID, clipID, human); } else { _root['char' + clipID].transformTime = 200 + random(150); this.col.setTransform({'rb': -50, 'gb': -50, 'bb': -50}); _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 13; _root['char' + clipID].proSF = 0; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 0; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = 0; _root['char' + clipID].impactOffsetY = -30; _root['char' + clipID].moveSpeed = 8; _root['char' + clipID].jumpSpeed = 15; _root['char' + clipID].shieldSoftness = 3; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 380; _root['char' + clipID].maxhp = 380; } _root['char' + clipID].frameActions = [0, 0, 0, [3, 4, 1, true], 0, [6, 0, 0, false], [6, 1, 1, true], 0, [4, 0, 0, false], [40, -11, 0, true, 40, 0, 0, false, 2, -15, 50, true], [4, 0, 0, false], 0, 0, 0, 0, 0, 0, 0, 0, 0, [16, 1, 1, true, 29, 1, 1, true, 21, -15, 53, true], [22, 1, 1, true, 38, 1, 1, true, 27, -15, 53, true, 28, -15, 21, true], [10, 4, 1, true], [16, 4, 1, true], [12, 7, 1, true, 41, 7, 1, true, 14, -7, 15, false, 17, -7, 12, false, 21, -7, 7, false, 25, -7, 7, false, 29, -7, 7, false, 33, -7, 7, false, 37, -7, 7, false, 16, -15, 13, true], [1, 21, 1, true, 2, 21, 1, true]]; _root['char' + clipID].quickCombo = [[15, 20, 17], 0, 0, 0, 0]; _root['char' + clipID].fierceCombo = [0, [21, 21, 23], 0, 0, 0, []]; _root['char' + clipID].hitFrames = [[[7, 8, 13, 0, -30], [23, 3, 11, 15, -10]], [[8, 6, 15, 2, -30], [15, 4, 12, 2, 20], [30, 10, 24, 15, -20]], [[7, 3, 13, 5, 4]], [[10, 2, 18, 9, 4]], [[8, 3, 13, 2, 0], [17, 5, 8, 8, -5], [21, 3, 5, 8, -5], [25, 3, 5, 8, -5], [29, 3, 5, 8, -5], [33, 3, 5, 8, -5], [37, 3, 5, 8, -5]], []]; } } } } } } } } } } if (!_root['char' + clipID].heavy > 0) { _root['char' + clipID]._xscale = _root['char' + clipID].nativeXScale * (Math.abs(_root['char' + clipID]._xscale) / _root['char' + clipID]._xscale); _root['char' + clipID]._yscale = _root['char' + clipID].nativeYScale; } _root['char' + clipID].jumpSpeed += localGravityBoost; _root['char' + clipID].firstLoad = false; setFactors(clipID, 100); } function loadCharacterB(charID, clipID, human) { if (charID == 11) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 41; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 6; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = 0; _root['char' + clipID].impactOffsetY = -30; _root['char' + clipID].moveSpeed = 5; _root['char' + clipID].jumpSpeed = 16; _root['char' + clipID].shieldSoftness = 4; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 350; _root['char' + clipID].maxhp = 350; } _root['char' + clipID].idealDistance = 70; _root['char' + clipID].frameActions = [0, 0, 0, [4, 4, 1, true], [12, 0, 0, false], [5, 0, 0, false, 10, 0, 0, false], [6, 1, 1, true], [5, 0, 0, false], [7, 0, 0, false], [2, -5, -10, true, 26, -11, 0, true, 26, 0, 0, false], [10, 0, 0, false], 0, 0, 0, 0, 0, 0, 0, 0, 0, [10, 1, 1, true, 19, 1, 1, true, 31, 1, 1, true, 40, 1, 1, true, 2, -5, 5, true, 24, -15, 12, true, 36, -15, 12, true], [15, 1, 1, true, 42, 1, 1, true, 63, 1, 1, true, 8, -15, 12, true, 11, -15, 12, true, 25, -15, 12, true, 29, -15, 12, true, 48, -15, 12, true, 51, -15, 12, true, 54, -15, 12, true, 57, -15, 12, true, 60, -15, 12, true], [8, 4, 12, false, 23, 4, 12, false, 45, 4, 12, false, 53, 4, 12, false, 3, -5, 4, true, 3, -6, -4, true, 26, -6, -7, true, 18, -15, 12, true, 36, -15, 12, true, 39, -15, 12, true], [12, 4, 6, false, 25, 4, 6, false, 49, 4, 6, false, 28, -6, -7, true, 9, -15, 12, true, 20, -15, 12, true, 22, -15, 12, true, 28, -15, 12, true, 32, -15, 12, true, 34, -15, 12, true, 36, -15, 12, true, 38, -15, 12, true, 40, -15, 12, true, 42, -15, 12, true, 44, -15, 12, true, 46, -15, 12, true], [7, 7, 1, true, 19, 7, 1, true, 31, 7, 1, true, 40, 7, 1, true, 55, 7, 1, true, 77, 7, 1, true, 88, 7, 1, true, 103, 7, 1, true, 79, -5, -9, true, 18, -15, 12, true, 36, -15, 12, true, 39, -15, 12, true, 11, -15, 12, true, 24, -15, 12, true, 36, -15, 12, true, 47, -15, 12, true, 50, -15, 12, true, 63, -15, 12, true, 66, -15, 12, true, 80, -15, 12, true, 84, -15, 12, true, 93, -15, 12, true, 101, -15, 12, true], [5, -13, 0, false, 14, -13, 0, false, 2, -15, 12, true, 10, -15, 12, true]]; _root['char' + clipID].quickCombo = [[9, 20, 11, 18, 20, 20, 30, 20, 32], 0, [7, 22, 9, 22, 22, 24, 42, 22, 36], 0, [6, 24, 8, 18, 24, 20, 30, 24, 32], []]; _root['char' + clipID].fierceCombo = [0, [14, 21, 16, 41, 21, 43], 0, [11, 23, 13, 24, 23, 26, 48, 23, 34], [54, 24, 56, 76, 24, 78, 87, 24, 89, 102, 24, 89], []]; _root['char' + clipID].hitFrames = [[[3, 3, 5, 2, 0, 100, 'hit2'], [12, 5, 7, 2, -30, 100, 'hit3'], [24, 5, 10, 4, 0, 100, 'hit1'], [36, 5, 10, 4, -8, 100, 'hit1']], [[8, 2, 6, 2, 0, 100, 'hit1'], [11, 4, 6, 2, 0, 100, 'hit1'], [25, 2, 9, 3, 0, 100, 'hit1'], [29, 4, 9, 3, 0, 100, 'hit1'], [48, 2, 3, 2, -2], [51, 2, 3, 2, -2], [54, 2, 3, 2, -2], [57, 2, 3, 2, -2], [60, 2, 3, 2, -2]], [[4, 5, 6, 6, -4], [18, 6, 11, 2, -2], [27, 7, 6, 9, -3], [36, 2, 6, 1, -4], [39, 2, 6, 1, -4]], [[9, 6, 10, 3, -6], [20, 1, 8, 3, -5], [22, 5, 8, 4, -4], [28, 5, 11, 2, -2], [32, 1, 2, 0, 0], [34, 1, 2, 0, 0], [36, 1, 2, 0, 0], [38, 1, 2, 0, 0], [40, 1, 2, 0, 0], [42, 1, 2, 0, 0], [44, 1, 2, 0, 0], [46, 1, 2, 0, 0]], [[3, 4, 4, 0, -22], [11, 5, 6, 5, -30], [12, 5, 7, -4, 0], [24, 4, 8, -3, 0], [25, 4, 8, 3, 0], [36, 4, 9, -4, -3], [37, 4, 9, 4, -3], [47, 1, 6, -3, 0], [48, 5, 10, 3, 0], [50, 1, 6, -3, 0], [51, 5, 10, 3, 0], [63, 1, 7, -3, 0], [64, 5, 11, 3, 0], [66, 1, 7, -3, 0], [67, 5, 11, 3, 0], [80, 2, 8, -4, 0], [84, 5, 8, -1, 0], [93, 4, 9, 0, -2], [101, 4, 9, 0, -2]], []]; } else { if (charID == 13) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 50; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 0; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = 0; _root['char' + clipID].impactOffsetY = -30; _root['char' + clipID].moveSpeed = 7; _root['char' + clipID].jumpSpeed = 17; _root['char' + clipID].shieldSoftness = 2; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 360; _root['char' + clipID].maxhp = 360; } _root['char' + clipID].idealDistance = 70; _root['char' + clipID].frameActions = [0, 0, 0, [5, 4, 1, true], [10, 4, 3, true], [3, 0, 0, false], [7, 1, 1, true], 0, [5, 0, 0, false], [93, -11, 0, true, 93, 0, 0, false], [5, 0, 0, false], 0, 0, 0, 0, 0, 0, 0, 0, 0, [8, 1, 1, true, 15, 1, 1, true, 22, 1, 1, true, 42, 1, 1, true, 27, -5, 12, true], [23, 1, 1, true, 38, 1, 1, true, 72, 1, 1, true, 25, -5, 4, true, 40, -5, 18, true], [8, 4, 3, true, 25, 4, 3, true], [39, 4, 3, true, 57, 23, 46, true, 6, -6, -3, true, 8, -6, -3, true, 10, -6, -3, true, 12, -6, -3, true, 14, -6, -3, true, 17, -5, 7, true], [12, 7, 1, true, 23, 7, 1, true, 36, 7, 1, true, 48, -6, -10, true, 48, -5, 5, true, 48, -10, -5, true, 48, 23, 40, true, 63, 7, 1, true, 86, 7, 1, true], [25, 1, 1, true]]; _root['char' + clipID].quickCombo = [[7, 20, 9, 14, 20, 16, 21, 20, 23], 0, [7, 22, 9, 24, 22, 3], 0, [11, 24, 13, 22, 24, 24, 35, 24, 37], []]; _root['char' + clipID].fierceCombo = [0, [22, 21, 24, 37, 21, 39], 0, [26, 23, 17, 57, 23, 40], [62, 24, 64], []]; _root['char' + clipID].hitFrames = [[[3, 3, 5, 1, 0, 100, 'hit1'], [10, 5, 8, 1, 0, 100, 'hit1'], [18, 5, 12, 2, -5, 100, 'hit1'], [27, 8, 19, 18, -7, 100, 'hit2']], [[10, 7, 9, 3, 0], [14, 7, 5, 0, 0], [25, 13, 13, 1, 0], [44, 9, 25, 6, -14]], [[4, 5, 12, 3, -3], [17, 5, 15, 3, -3]], [[17, 1, 5, -1, 1], [19, 1, 5, -2, 1], [21, 1, 5, -1, 1], [24, 1, 4, -2, 1], [27, 1, 5, -1, 1], [41, 3, 6, 0, 0], [44, 2, 3, 0, 0], [47, 3, 3, 0, 0], [50, 2, 4, 0, 0], [53, 2, 4, 0, 0], [56, 2, 4, 0, 0]], [[5, 4, 5, 0, 0], [15, 6, 7, 0, -3], [27, 2, 10, 2, -1], [30, 1, 2, 2, -1], [33, 7, 2, 2, -1], [46, 10, 2, 3, -25], [54, 7, 12, 5, -25], [68, 4, 19, 3, -5]], []]; } else { if (charID == 12) { _root['char' + clipID].cqStart = 1; _root['char' + clipID].cfStart = 41; _root['char' + clipID].proSF = 1; _root['char' + clipID].proSU = 0; _root['char' + clipID].proJD = 0; _root['char' + clipID].proJF = 6; _root['char' + clipID].proJU = 0; _root['char' + clipID].impactOffsetX = 0; _root['char' + clipID].impactOffsetY = -30; _root['char' + clipID].moveSpeed = 5; _root['char' + clipID].jumpSpeed = 16; _root['char' + clipID].shieldSoftness = 5; if (_root['char' + clipID].firstLoad) { _root['char' + clipID].hp = 40; _root['char' + clipID].maxhp = 40; } _root['char' + clipID].idealDistance = 70; _root['char' + clipID].frameActions = [0, 0, 0, [4, 4, 1, true], [12, 0, 0, false], [3, 0, 0, false], [6, 1, 1, true], [5, 0, 0, false], [7, 0, 0, false], [2, -5, -10, true, 26, -11, 0, true, 26, 0, 0, false], [10, 0, 0, false], 0, 0, 0, 0, 0, 0, 0, 0, 0, [10, 1, 1, true, 19, 1, 1, true, 31, 1, 1, true, 40, 1, 1, true, 2, -5, 5, true, 24, -15, 12, true, 36, -15, 12, true], [15, 1, 1, true, 42, 1, 1, true, 63, 1, 1, true, 8, -15, 12, true, 11, -15, 12, true, 25, -15, 12, true, 29, -15, 12, true, 48, -15, 12, true, 51, -15, 12, true, 54, -15, 12, true, 57, -15, 12, true, 60, -15, 12, true], [8, 4, 12, false, 23, 4, 12, false, 45, 4, 12, false, 53, 4, 12, false, 3, -5, 4, true, 3, -6, -4, true, 26, -6, -7, true, 18, -15, 12, true, 36, -15, 12, true, 39, -15, 12, true], [12, 4, 6, false, 25, 4, 6, false, 49, 4, 6, false, 28, -6, -7, true, 9, -15, 12, true, 20, -15, 12, true, 22, -15, 12, true, 28, -15, 12, true, 32, -15, 12, true, 34, -15, 12, true, 36, -15, 12, true, 38, -15, 12, true, 40, -15, 12, true, 42, -15, 12, true, 44, -15, 12, true, 46, -15, 12, true], [7, 7, 1, true, 19, 7, 1, true, 31, 7, 1, true, 40, 7, 1, true, 55, 7, 1, true, 77, 7, 1, true, 88, 7, 1, true, 103, 7, 1, true, 79, -5, -9, true, 18, -15, 12, true, 36, -15, 12, true, 39, -15, 12, true, 11, -15, 12, true, 24, -15, 12, true, 36, -15, 12, true, 47, -15, 12, true, 50, -15, 12, true, 63, -15, 12, true, 66, -15, 12, true, 80, -15, 12, true, 84, -15, 12, true, 93, -15, 12, true, 101, -15, 12, true], [5, -13, 0, false, 14, -13, 0, false, 2, -15, 12, true, 10, -15, 12, true]]; _root['char' + clipID].quickCombo = [[9, 20, 11, 18, 20, 20, 30, 20, 32], 0, [7, 22, 9, 22, 22, 24, 42, 22, 36], 0, [6, 24, 8, 18, 24, 20, 30, 24, 32], []]; _root['char' + clipID].fierceCombo = [0, [14, 21, 16, 41, 21, 43], 0, [11, 23, 13, 24, 23, 26, 48, 23, 34], [54, 24, 56, 76, 24, 78, 87, 24, 89, 102, 24, 89], []]; _root['char' + clipID].hitFrames = [[[3, 3, 2, 2, 0, 100, 'hit2'], [12, 5, 3, 2, -30, 100, 'hit3'], [24, 5, 5, 4, 0, 100, 'hit1'], [36, 5, 5, 4, -8, 100, 'hit1']], [[8, 2, 3, 2, 0, 100, 'hit1'], [11, 4, 3, 2, 0, 100, 'hit1'], [25, 2, 4, 3, 0, 100, 'hit1'], [29, 4, 4, 3, 0, 100, 'hit1'], [48, 2, 1, 2, -2], [51, 2, 1, 2, -2], [54, 2, 1, 2, -2], [57, 2, 1, 2, -2], [60, 2, 1, 2, -2]], [[4, 5, 3, 6, -4], [18, 6, 5, 2, -2], [27, 7, 3, 9, -3], [36, 2, 3, 1, -4], [39, 2, 3, 1, -4]], [[9, 6, 5, 3, -6], [20, 1, 4, 3, -5], [22, 5, 4, 4, -4], [28, 5, 5, 2, -2], [32, 1, 1, 0, 0], [34, 1, 1, 0, 0], [36, 1, 1, 0, 0], [38, 1, 1, 0, 0], [40, 1, 1, 0, 0], [42, 1, 1, 0, 0], [44, 1, 1, 0, 0], [46, 1, 1, 0, 0]], [[3, 4, 2, 0, -22], [11, 5, 3, 5, -30], [12, 5, 3, -4, 0], [24, 4, 4, -3, 0], [25, 4, 4, 3, 0], [36, 4, 4, -4, -3], [37, 4, 4, 4, -3], [47, 1, 3, -3, 0], [48, 5, 5, 3, 0], [50, 1, 3, -3, 0], [51, 5, 5, 3, 0], [63, 1, 3, -3, 0], [64, 5, 5, 3, 0], [66, 1, 3, -3, 0], [67, 5, 5, 3, 0], [80, 2, 4, -4, 0], [84, 5, 4, -1, 0], [93, 4, 4, 0, -2], [101, 4, 4, 0, -2]], []]; } } } } function comboCounterParticle() { if (this.wait == undefined) { this.wait = 20; this.forcedYSpeed = -10; } --this.wait; if (this.wait < 0) { this.forcedYSpeed += 2; this._y += this.forcedYSpeed; } if (this.wait <= -10) { this._alpha -= 10; } if (this._alpha <= 10) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } } function setComboCounter(comboid, camt) { if (camt > 99) { return undefined; } camt = Math.ceil(camt); _root['part' + comboid].digit1.gotoAndStop(camt % 10 + 1); if (camt < 10) { _root['part' + comboid].digit2.gotoAndStop(11); } else { _root['part' + comboid].digit2.gotoAndStop(Math.floor(camt / 10) + 1); } _root['part' + comboid]._xscale = 100 + camt; _root['part' + comboid]._yscale = 100 + camt * 1.4; } function lobbedSpiderParticle() { this.forcedYS += 2; this._y += this.forcedYS; this._x += this.forcedXS; this.lob = 1; while (this.lob <= _root.numSegs) { if (this.forcedYS > 0 && _root['seg' + this.lob].hitTest(this._x, this._y, true) && !_root['seg' + this.lob].hitTest(this._x, this._y - this.forcedYS - 3, true)) { this.lunge = 1; while (this.lunge <= _root.numChars) { if (_root['char' + this.owner].team != _root['char' + this.lunge].team && _root['char' + this.lunge]._y < this._y + 65) { _root.createPart(43, this._x, this._y, _root.signOf(_root['char' + this.lunge]._x - this._x) * 100, 0, 0, _root.lungingSpiderParticle); _root['part' + _root.recentPart].owner = this.owner; _root['part' + _root.recentPart]._rotation = 0; _root['part' + _root.recentPart].forcedYS = -random(11) - 10; _root['part' + _root.recentPart].forcedXS = _root.signOf(_root['char' + this.lunge]._x - this._x) * 15; _root.playSoundOnce('whoosh', 'miss1'); _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); this.behave = undefined; return undefined; } ++this.lunge; } } ++this.lob; } } function lungingSpiderParticle() { if (this.hasHit == undefined) { this.hasHit = false; } this.forcedYS += 2; this._y += this.forcedYS; this._x += this.forcedXS; if (this.hasHit) { return undefined; } this.lunge = 1; while (this.lunge <= _root.numChars) { if (_root['char' + this.owner].team != _root['char' + this.lunge].team && _root['char' + this.lunge].hitTest(this)) { _root.playSoundOnce('smack', 'hit1'); _root.takeHit(this.lunge, 16, this._xscale / 20, this.forcedYS / 3, 10); this.hasHit = true; } ++this.lunge; } } function landMineParticle() { if (this.countdown == undefined) { this.countdown = 50; } if (!_root.paused && this._currentframe % 2 == 0) { --this.countdown; if (this.countdown % 20 == 0) { _root.playSoundOnce('beep', 'beepSound'); } this.det = 1; while (this.det <= _root.numChars) { if (this.countdown <= 0 || _root['char' + this.det].team != _root['char' + this.owner].team && this.hitTest(_root['char' + this.det]) && this._currentframe < 6) { _root.playSoundOnce('explosion', 'exploSound'); _root.createPart(3, this._x, this._y, 40, 0, 0, _root.explosionParticle); _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); this.behave = undefined; return undefined; } ++this.det; } } } function explosionParticle() { if (this._currentframe == 3) { this.ilm = 1; while (this.ilm <= _root.numChars) { if (this.hitTest(_root['char' + this.ilm])) { _root.takeHit(this.ilm, 20, _root.signOf(this._x - _root['char' + this.ilm]._x) * 8, -10, 8); } ++this.ilm; } } if (this._currentframe >= this._totalframes) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } } function floatParticle() { if (!_root.paused) { this.ySpeed /= 1.8; this.xSpeed /= 2.2; this._x += this.xSpeed; this._y += this.ySpeed; } if (this._currentframe >= this._totalframes) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } } function orbiterParticle() { if (!_root.paused) { if (this.countdown == undefined) { this.countdown = 0; } ++this.countdown; if (this._currentframe >= this._totalframes || this.countdown > 170) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } else { if (this._currentframe == 7) { this.gotoAndPlay(1); } else { if (this._currentframe <= 7) { this.orbit = 1; while (this.orbit <= _root.numChars) { if (_root['char' + this.owner].team != _root['char' + this.orbit].team && this.hitTest(_root['char' + this.orbit]) && _root['char' + this.orbit].hp > 0) { _root.playSoundOnce('explosion', 'orbiterExploSound'); _root.takeHit(this.orbit, 15, _root.signOf(_root['char' + this.owner]._x - _root['char' + this.orbit]._x) * 8, -4, 4); this.gotoAndPlay(7); this._xscale = 100; this._yscale = 100; } ++this.orbit; } this._rotation += 15; this._x = _root['char' + this.owner]._x; this._y = _root['char' + this.owner]._y - 40; } } } } } function compactorParticle() { if (this._currentframe == 5) { this.chs = 1; while (this.chs <= _root.numChars) { if (this.hitTest(_root['char' + this.chs]._x, _root['char' + this.chs]._y, true)) { if (_root['char' + this.chs]._visible && _root['char' + this.chs].team != _root.char1.team) { ++_root.pancakes; if (_root.pancakes >= 2 && !_root.preserveData.pancakeMedal) { unlockMedal('People Pancakes'); _root.preserveData.pancakeMedal = true; } } _root['char' + this.chs]._visible = false; _root['char' + this.chs]._x = 200; _root['char' + this.chs]._y = 100; _root['char' + this.chs].hp = 0; _root.createPart(27, 285, 400, -100, -2, 2, _root.playOnceParticle); _root.createPart(27, 369, 400, 100, 2, -2, _root.playOnceParticle); } ++this.chs; } } } function playOnceParticle() { if (this._currentframe >= this._totalframes) { this._visible = false; _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } } function followPlayOnceParticle() { if (this._currentframe >= this._totalframes) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } else { this._x = _root['char' + this.owner]._x; this._y = _root['char' + this.owner]._y - 40; } } function columnizerParticle() { this.cz = 1; while (this.cz <= _root.numChars) { if (_root.globalCounter % 4 == 0) { if (this.hitTest(_root['char' + this.cz]._x, _root['char' + this.cz]._y, true)) { _root['char' + this.cz].xSpeed /= 5; } } if (_root.nbg.flipflap.hitTest(_root['char' + this.cz]._x, _root['char' + this.cz]._y + 20 + _root['char' + this.cz].ySpeed * 3, true) && _root['char' + this.cz].ySpeed < -5 && (_root.nbg.flipflap._currentframe == 1 || _root.nbg.flipflap._currentframe >= _root.nbg.flipflap._totalframes - 1)) { _root.nbg.flipflap.gotoAndPlay(2); } ++this.cz; } } function pagodaHelperParticle() { if (_root.globalCounter % 3 == 0) { this.cz = 1; while (this.cz <= _root.numChars) { if (this.hitTest(_root['char' + this.cz]._x, _root['char' + this.cz]._y, true)) { if (_root['char' + this.cz]._x < 35) { _root['char' + this.cz].xSpeed = -4; } else { _root['char' + this.cz].ySpeed = Math.abs(_root['char' + this.cz].ySpeed); } } if (_root.seg1.hitTest(_root['char' + this.cz]._x, _root['char' + this.cz]._y, true)) { if (_root['char' + this.cz]._x < 50) { _root['char' + this.cz].xSpeed = Math.abs(_root['char' + this.cz].xSpeed) + 1; } else { if (_root['char' + this.cz]._x > 622) { _root['char' + this.cz].xSpeed = -Math.abs(_root['char' + this.cz].xSpeed) - 1; } } } ++this.cz; } } } function storeHelperParticle() { this.chb = 1; while (this.chb <= _root.numChars) { if (_root['char' + this.chb].charIn._currentframe == 4 && _root['char' + this.chb].ySpeed < -_root['char' + this.chb].jumpSpeed + 5 && _root['char' + this.chb]._x < 360 && _root['char' + this.chb]._y > 140) { _root['char' + this.chb].ySpeed -= 0.5; } ++this.chb; } } function madnessHelper() { mh = 1; while (mh <= _root.numChars) { if (_root['char' + mh]._y > 211 && _root['char' + mh]._y < 260) { _root['char' + mh].ySpeed = Math.abs(_root['char' + mh].ySpeed); } ++mh; } } function pointValueParticle() { if (this.forcedYSpeed == undefined) { this.forcedYSpeed = -10; this.rotSpeed = 120; } if (this._rotation < 358) { this._rotation += this.rotSpeed; this.rotSpeed /= 1.5; } ++this.forcedYSpeed; this._y += this.forcedYSpeed; if (this._y > 500) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } } function randomExplosionsParticle() { if (this.counter == undefined) { this.counter = 0; this.exploding = false; } ++this.counter; if (this.counter > 200 && random(30) == 0) { this.exploding = true; this.counter = 0; } if (this.exploding && this.counter % 12 == 0) { _root.createPart(3, 100 + random(450), 135 + random(255), 40, 0, 0, _root.explosionParticle); if (random(2) == 0) { this.exploding = false; } } } function trainingParticle() { if (this.actionDelay == undefined) { this.actionDelay = 0; } if (this.hitTest(_root.char1)) { this._alpha = 40; } else { this._alpha = 100; } --this.actionDelay; if (this.actionDelay >= 0) { this.col.setTransform({'rb': this.actionDelay * 3, 'gb': this.actionDelay * 3, 'bb': this.actionDelay * 3}); return undefined; } if (this.step == 1) { if (Key.isDown(32)) { _root.nextTrainingStep(); this.adviceText.text = 'First, try running around. Use the left and right arrow keys (default) to run around the platform.'; this.instructionText.text = 'Run to both key points (default left and right arrow keys).'; _root.nbg.jumpRings.jr2.onEnterFrame = function () { this.play(); }; _root.nbg.jumpRings.jr2._x = 486; _root.nbg.jumpRings.jr2._y = 385; } } else { if (this.step == 2) { if (_root.nbg.jumpRings.jr2.hitTest(_root.char1._x, _root.char1._y, false) && _root.nbg.jumpRings.jr2._currentframe == 3) { _root.nextTrainingStep(); _root.nbg.jumpRings.jr2._x = 122; _root.nbg.jumpRings.jr2._y = 385; } } else { if (this.step == 3) { if (_root.nbg.jumpRings.jr2.hitTest(_root.char1._x, _root.char1._y, false) && _root.nbg.jumpRings.jr2._currentframe == 3) { _root.nextTrainingStep(); _root.nbg.jumpRings.jr2._y = 800; this.adviceText.text = 'Next, try jumping. If you tap the jump button (default up arrow), you\'ll make a short jump. If you hold it, you\'ll get a longer jump. Jumping will allow you to launch some juggling combos and reach higher areas.'; this.instructionText.text = 'Jump (default press or hold up arrow).'; } } else { if (this.step == 4) { if (_root.char1.ySpeed > 8 && _root.char1.dSeg == -1) { _root.nextTrainingStep(); this.adviceText.text = 'Press the down arrow (default) to duck. Ducking will help you avoid attacks, and also allow you to throw some lower sweeping attacks.'; this.instructionText.text = 'Duck (default hold down arrow).'; } } else { if (this.step == 5) { if (_root.char1.charIn._currentframe == 7) { _root.nextTrainingStep(); this.adviceText.text = 'Press the S key (default) while standing or running to throw a quick attack. Quick attacks value speed over power, so they\'re better for breaking an enemy\'s combo or getting the first strike.'; this.instructionText.text = 'Launch a quick attack (default S).'; } } else { if (this.step == 6) { if (_root.char1.charIn._currentframe == 20) { _root.nextTrainingStep(); this.adviceText.text = 'Press the D key (default) while standing or running to throw a fierce attack. Fierce attacks are slower, but pack more damage.'; this.instructionText.text = 'Launch a fierce attack (default D).'; } } else { if (this.step == 7) { if (_root.char1.charIn._currentframe == 21) { _root.nextTrainingStep(); this.adviceText.text = 'By releasing and repressing the attack button just before a move ends, you can create a combo attack. Try doing a fierce combo with this timing.'; this.instructionText.text = 'Do a 3-hit fierce combo (default D, D, D).'; } } else { if (this.step == 8) { if (_root.char1.charIn._currentframe == 21 && _root.char1.charIn.spriteIn._currentframe == 30) { _root.nextTrainingStep(); this.adviceText.text = 'Nice! You can also do quick and fierce attacks and combos in the air. This is a great way to juggle your opponent. Try jumping and doing a quick attack in the air.'; this.instructionText.text = 'Do an aerial quick attack (default up arrow and press S).'; } } else { if (this.step == 9) { if (_root.char1.charIn._currentframe == 22) { _root.nextTrainingStep(); this.adviceText.text = 'Your last moves are crouch attacks. These allow you to be on the offensive while keeping a low profile. Crouch attacks can be chained into combos just as well.'; this.instructionText.text = 'Do a crouching attack (default hold down arrow and press S or D).'; } } else { if (this.step == 10) { if (_root.char1.charIn._currentframe == 24) { _root.nextTrainingStep(); this.adviceText.text = 'When you collect a projectile pickup, it will temporarily replace your fierce attack. Projectile attacks allow you to do damage from a safe distance. Try out Alloy\'s minigun.'; this.instructionText.text = 'Fire off a few rounds (default D key, with projectile pickup).'; _root.char1.proPickup = 9999999; } } else { if (this.step == 11) { if (_root.proIter >= 140) { _root.nextTrainingStep(); this.adviceText.text = 'Since the best offense is always a good defense, you have the choice to block attacks. If you take enough hits on end while blocking, however, your shield will become ineffective.'; this.instructionText.text = 'Block (default A key)'; _root.char1.proPickup = 0; } } else { if (this.step == 12) { if (_root.char1.charIn._currentframe == 5) { _root.nextTrainingStep(); this.adviceText.text = 'The last thing we\'ll take a look at is your HUD. The colored bar on the top left is your health. Try to keep it above empty, eh?'; this.instructionText.text = 'Press SPACE to continue.'; } } else { if (this.step == 13) { if (Key.isDown(32)) { _root.nextTrainingStep(); this.adviceText.text = 'The shield icon underneath your health bar shows your blocking stamina. Its redness shows how worn down your guard is. The shield turns black if your guard has been broken.'; this.instructionText.text = 'Press SPACE to continue.'; } } else { if (this.step == 14) { if (Key.isDown(32)) { _root.nextTrainingStep(); if (_root.preserveData.trainingCompleted) { this.adviceText.text = 'Hope that was a good refresher. Particularly because you don\'t get the Grounds Gold bonus anytime after the first.'; this.instructionText.text = 'Press SPACE to quit the tutorial.'; } else { if (_root.preserveData.pname == '') { this.adviceText.text = 'That\'s all you\'ll need to know for now. For completing this tutorial, you\'d normally earn a bonus of 100 Grounds Gold, but you\'ll need to create an account to start collecting.'; this.instructionText.text = 'Press SPACE to quit the tutorial. Create an account in the upper-right corner of the main menu.'; } else { this.adviceText.text = 'That\'s all you\'ll need to know for now. For completing this tutorial, you\'ve earned yourself 100 Grounds Gold, to be used in unlocking new features and content.'; this.instructionText.text = 'Press SPACE to quit the tutorial.'; _root.preserveData.groundsGold += 100; _root.preserveData.trainingCompleted = true; _root.routineMedalCheck(); } } } } else { if (this.step == 15) { if (Key.isDown(32)) { _root.gotoAndStop(13); } } } } } } } } } } } } } } } } } function nextTrainingStep() { if (_root.part100.actionDelay <= 0) { ++_root.part100.step; _root.part100.actionDelay = 33; _root.preserveData.restartTraining = false; } } function healthDeclineParticle() { if (_root.aCounter % 5 == 0) { _root.takeHit(1, 1, 0, 0, 0); } } function surviveTwoMinsParticle() { if (_root.matchDuration >= 2858) { _root.winningTeam = 1; _root.win(1); } } function randomMissilesParticle() { if (_root.matchDuration % 500 == 0) { _root.playSoundOnce('explosion', 'mortarSound'); this.rndMiss = 1; while (this.rndMiss <= 3) { _root.bg['miss' + this.rndMiss]._x = random(550) + 50; _root.bg['miss' + this.rndMiss]._y = 350; _root.bg['miss' + this.rndMiss].onEnterFrame = function () { this._y -= 6; if (this._y < -100) { this.onEnterFrame = null; } }; ++this.rndMiss; } } else { if (_root.matchDuration > 150 && (_root.matchDuration - 120) % 500 == 0) { this.rndMiss = 1; while (this.rndMiss <= 3) { _root.createPro(4, _root.bg['miss' + this.rndMiss]._x, 1, 100, 1, 22); _root['pro' + (_root.proIter - 1)].owner = 0; ++this.rndMiss; } } } } function hallucinationParticle() { if (!_root.paused) { if ((_root.matchDuration - 1) % 400 == 0) { this.side = 42 + random(357); if (random(3) == 0) { _root.playSoundOnce('level', 'morphSound'); if (this.side < 178) { _root.createPart(37, 297, 204, 100, 0, 0, _root.handParticle); } else { _root.createPart(37, 367, 204, -100, 0, 0, _root.handParticle); } } else { if (random(2) == 0) { _root.playSoundOnce('level', 'drawSword'); _root.createPart(36, this.side, 369, 100, 0, 0, _root.spikesParticle); } else { _root.playSoundOnce('level', 'morphSound'); if (this.side < 178) { _root.createPart(35, 68, 30, 100, 0, 0, _root.faceParticle); } else { _root.createPart(35, 595, 30, -100, 0, 0, _root.faceParticle); } } } } } } function faceParticle() { if (this._currentframe == 11) { this.i = 1; while (this.i <= _root.numChars) { if (this.hitCore.hitTest(_root['char' + this.i]._x, _root['char' + this.i]._y, true)) { _root.takeHit(this.i, 3, 0, 0, 13); } ++this.i; } } if (this._currentframe >= this._totalframes) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } } function spikesParticle() { if (this._currentframe == 5) { this.i = 1; while (this.i <= _root.numChars) { if (this.hitCore.hitTest(_root['char' + this.i]._x, _root['char' + this.i]._y, true)) { _root.playSoundOnce('level', 'hit2'); _root.takeHit(this.i, 16, -10, 0, 5); } ++this.i; } } if (this._currentframe >= this._totalframes) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } } function handParticle() { if (this._currentframe == 5) { this.i = 1; while (this.i <= _root.numChars) { if (this.hitCore.hitTest(_root['char' + this.i]._x, _root['char' + this.i]._y, true)) { _root.playSoundOnce('level', 'hit2'); _root.takeHit(this.i, 14, -this._xscale / 20, 0, 4); } ++this.i; } } if (this._currentframe >= this._totalframes) { _root.removePart(this.arrayID); this.removeMovieClip(); _root.deleteMe('part' + this.id); } } function comboWaitParticle() { if (_root['char' + this.owner].curComboID != this.id) { this.behave = _root.comboCounterParticle; } } function jesusParticle() { if (this._currentframe == 1) { this.stop(); if (random(160) == 1) { this.gotoAndPlay(2); } } else { if (this._currentframe == 51) { this.stop(); if (_root.nbg.fallPiece._currentframe == _root.nbg.fallPiece._totalframes && random(120) == 1) { this.gotoAndPlay(52); } else { if (random(240) == 1) { this.gotoAndPlay(2); } } } } if (this._currentframe == 36) { _root.createPro(10, 524, 73, 100, -32, 20); _root['pro' + (_root.proIter - 1)]._rotation = 180 - _root['pro' + (_root.proIter - 1)]._rotation; _root.playSoundOnce('bullet', 'bulletSound'); } else { if (this._currentframe == 68) { _root.createPro(10, 573, 309, 100, -44, 20); _root['pro' + (_root.proIter - 1)]._rotation = 180 - _root['pro' + (_root.proIter - 1)]._rotation; _root.playSoundOnce('bullet', 'bulletSound'); } } } function createPickup(sentDSeg, sentX, sentY) { ++numPickups; _root.attachMovie('pickup', 'pu' + numPickups, 800 + numPickups); _root['pu' + numPickups]._x = sentX; _root['pu' + numPickups]._y = sentY; _root['pu' + numPickups].poss = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; _root['pu' + numPickups].waitFactor = 1; _root['pu' + numPickups].standardWait = 50; _root['pu' + numPickups].timeWaited = 0; _root['pu' + numPickups].dSeg = sentDSeg; } function createSegs(segStart, segEnd) { numSegs = segEnd - segStart + 1; dynamicCreate('seg', 'segs', numSegs, 1, 14000); lv = segStart; while (lv <= segEnd) { _root['seg' + (lv - segStart + 1)].gotoAndStop(lv); _root['seg' + (lv - segStart + 1)].soundType = 'Normal'; _root['seg' + (lv - segStart + 1)]._x = 33; _root['seg' + (lv - segStart + 1)]._y = 265.45; _root['seg' + (lv - segStart + 1)]._alpha = 0; ++lv; } } function loadLevel(id) { if (id > 0) { localGravityBoost = 0; _root.attachMovie('bg' + id, 'nbg', -1); nbg.gotoAndStop(id); _root.arenaSelect = id; _root.playerPickups = 0; } if (id == 1) { if (_root.playMode == 4) { _root.preserveData.playSong(random(5) + 1); } else { _root.preserveData.playSong(5); } createPickup(3, 336, 183); if (_root.playMode == 4) { _root['pu' + numPickups].poss = [4, 4, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 12, 13, 13]; } else { _root['pu' + numPickups].poss = [4, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; } spawnPoints = [[], [55, 190], [595, 190], [194, 355], [422, 362], [336, 150]]; createSegs(1, 4); _root.seg1.enX = 295; _root.seg1.enY = 378; _root.seg1.wid = 350; _root.seg2.enX = 60; _root.seg2.enY = 260; _root.seg2.wid = 100; _root.seg3.enX = 337; _root.seg3.enY = 180; _root.seg3.wid = 110; _root.seg4.enX = 600; _root.seg4.enY = 263; _root.seg4.wid = 100; segPoints = [0, [69, 385, 510, 391], [8, 246, 75, 265], [278, 183, 393, 183], [583, 272, 642, 254]]; paths = [0, [0, 1, 2, [2, 4], 4], [0, 1, 2, 3, [1, 3]], [0, [1, 2, 4], 2, 3, 4], [0, 1, [1, 3], 3, 4]]; localGravityBoost = 3; } else { if (id == 2) { _root.preserveData.playSong(5); createPickup(2, 106, 304); _root['pu' + numPickups].poss = [4, 4, 5, 6, 7, 9, 10, 11, 12, 13]; spawnPoints = [[], [158, 182], [422, 420], [508, 189], [114, 420]]; createSegs(40, 43); _root.seg1.enX = 273; _root.seg1.enY = 420; _root.seg1.wid = 650; _root.seg2.enX = 106; _root.seg2.enY = 304; _root.seg2.wid = 128; _root.seg3.enX = 158; _root.seg3.enY = 182; _root.seg3.wid = 253; _root.seg4.enX = 508; _root.seg4.enY = 189; _root.seg4.wid = 122; segPoints = [0, [0, 420, 650, 420], [47, 304, 175, 304], [29, 182, 282, 182], [450, 173, 572, 175]]; paths = [0, [0, 1, 2, 2, 2], [0, 1, 2, 3, 3], [0, 1, 1, 3, 4], [0, 1, 1, 3, 4]]; _root.seg4.behave = _root.blimpSeg; _root.seg4.onEnterFrame = _root.blimpOEF; _root.seg4.desiredY = 265; localGravityBoost = 2; _root.createPart(34, 333.1, -60.3, 100, 0, 0, null); } else { if (id == 3) { _root.preserveData.playSong(1); createPickup(1, 325, 412); spawnPoints = [[], [74, 274], [581, 274], [325, 190], [90, 274]]; createSegs(9, 12); _root.seg1.enX = 325; _root.seg1.enY = 400; _root.seg1.wid = 600; _root.seg2.enX = 82; _root.seg2.enY = 274; _root.seg2.wid = 60; _root.seg3.enX = 335; _root.seg3.enY = 180; _root.seg3.wid = 285; _root.seg4.enX = 572; _root.seg4.enY = 274; _root.seg4.wid = 60; segPoints = [0, [60, 340, 590, 340], [32, 280, 95, 278], [167, 192, 478, 192], [555, 278, 623, 280]]; paths = [0, [0, 1, 2, [2, 4], 4], [0, 1, 2, 3, [1, 3]], [0, [1, 2, 4], 2, 3, 4], [0, 1, [1, 3], 3, 4]]; seg1.behave = conveyorCentring; _root.createPart(9, 327, 312, 100, 0, 0, _root.compactorParticle); _root.pancakes = 0; } else { if (id == 4) { _root.preserveData.playSong(4); createPickup(1, 330, 438); spawnPoints = [[], [228, 415], [432, 415], [328, 153], [170, 152]]; createSegs(13, 17); _root.seg1.enX = 330; _root.seg1.enY = 434; _root.seg1.wid = 615; _root.seg2.enX = 102; _root.seg2.enY = 440; _root.seg2.wid = 40; _root.seg3.enX = 285; _root.seg3.enY = 154; _root.seg3.wid = 485; _root.seg4.enX = 630; _root.seg4.enY = 80; _root.seg4.wid = 45; _root.seg5.enX = 28; _root.seg5.enY = 419; _root.seg5.wid = 80; segPoints = [0, [127, 407, 659, 422], [74, 413, 129, 413], [41, 148, 528, 148], [575, 148, 614, 148], [-8, 422, 73, 407]]; paths = [0, [0, 1, 2, 2, 2, 5], [0, 1, 2, 2, 2, 5], [0, 5, 5, 3, 4, 5], [0, 1, 1, 3, 4, [1, 3]], [0, 1, 2, 2, 2, 5]]; seg2.behave = springBoardVertical; _root.createPart(10, 327, 145, 100, 0, 0, NULL); _root.createPart(11, 325, 225, 100, 0, 0, _root.columnizerParticle); localGravityBoost = -4; } else { if (id == 5) { _root.preserveData.playSong(3); createPickup(2, 149, 142); _root.pu2.poss = [4, 6, 7, 9, 11, 12, 13]; createPickup(1, 573, 409); pu2.waitFactor = 2; _root.pu2.poss = [4, 5, 6, 10, 12]; spawnPoints = [[], [445, 78], [460, 367], [230, 331], [149, 142]]; createSegs(18, 21); _root.seg1.enX = 324; _root.seg1.enY = 385; _root.seg1.wid = 540; _root.seg2.enX = 149; _root.seg2.enY = 139; _root.seg2.wid = 235; _root.seg3.enX = 442; _root.seg3.enY = 86; _root.seg3.wid = 170; _root.seg4.enX = 148; _root.seg4.enY = 385; _root.seg4.wid = 70; segPoints = [0, [60, 336, 616, 394], [38, 170, 268, 170], [375, 107, 528, 110], [123, 381, 184, 381]]; paths = [0, [0, 1, 4, 4, 4], [0, 1, 2, 3, 1], [0, 1, 2, 3, 1], [0, 4, 4, 4, 4]]; seg3.behave = pagodaBranchSeg; seg3.soundType = 'Earthen'; seg1.behave = pagodaMain; seg1.soundType = 'Earthen'; _root.createPart(12, 0, 0, 100, 0, 0, NULL); _root.createPart(14, 20, 20, 100, 0, 0, pagodaHelperParticle); _root.createPart(15, 345, 68, 100, 0, 0, NULL); localGravityBoost = -2; } else { if (id == 6) { _root.preserveData.playSong(2); createPickup(2, 560, 188); spawnPoints = [[], [112, 353], [265, 346], [430, 281], [549, 363]]; createSegs(22, 23); _root.seg1.enX = 330; _root.seg1.enY = 334; _root.seg1.wid = 590; _root.seg2.enX = 421; _root.seg2.enY = 281; _root.seg2.wid = 70; _root.seg3.enX = 550; _root.seg3.enY = 280; _root.seg3.wid = 160; segPoints = [0, [24, 358, 583, 369], [476, 191, 643, 177]]; paths = [0, [0, 1, 2], [0, 1, 2]]; _root.createPart(17, -11, 247, 100, 0, 0, NULL); localGravityBoost = 3; } else { if (id == 7) { _root.preserveData.playSong(3); createPickup(4, 443, 108); _root.pu1.poss = [4, 4, 5, 6, 7, 8, 9, 11, 12]; spawnPoints = [[], [219, 372], [471, 372], [147, 225], [591, 267]]; createSegs(24, 28); _root.seg1.enX = 345; _root.seg1.enY = 368; _root.seg1.wid = 490; _root.seg2.enX = 153; _root.seg2.enY = 231; _root.seg2.wid = 195; _root.seg3.enX = 189; _root.seg3.enY = 108; _root.seg3.wid = 155; _root.seg4.enX = 446; _root.seg4.enY = 108; _root.seg4.wid = 155; _root.seg5.enX = 597; _root.seg5.enY = 281; _root.seg5.wid = 36; segPoints = [0, [65, 372, 552, 372], [65, 234, 242, 234], [124, 108, 264, 108], [374, 108, 515, 108], [576, 283, 613, 283]]; paths = [0, [0, 1, 2, 2, 2, 5], [0, 1, 2, 3, 3, [1, 3]], [0, 1, 2, 3, 4, [1, 4]], [0, 1, [1, 3], 3, 4, 5], [0, 1, 1, 1, 1, 5]]; _root.createPart(19, -35.5, 482.5, 100, 0, 0, _root.storeHelperParticle); } else { if (id == 8) { _root.preserveData.playSong(1); createPickup(4, 327, 168); _root.pu1.poss = [4, 4, 5, 6, 7, 8, 9, 11, 12]; spawnPoints = [[], [188, 160], [86, 363], [372, 363], [589, 363]]; createSegs(29, 32); _root.seg1.enX = 283; _root.seg1.enY = 363; _root.seg1.wid = 440; _root.seg2.enX = 600; _root.seg2.enY = 363; _root.seg2.wid = 49; _root.seg3.enX = 506; _root.seg3.enY = 282; _root.seg3.wid = 76; _root.seg4.enX = 265; _root.seg4.enY = 168; _root.seg4.wid = 235; segPoints = [0, [10, 363, 480, 363], [565, 363, 614, 363], [463, 282, 547, 282], [133, 168, 391, 168]]; paths = [0, [0, 1, 2, 3, 3], [0, 1, 2, 3, 3], [0, 1, 2, 3, 4], [0, 3, [2, 3], 3, 4]]; _root.createPart(22, 329, 380, 100, 0, 0, null); if (_root.preserveData.mechanics == 1) { _root.part100.stop(); } localGravityBoost = 3; } else { if (id == 9) { _root.preserveData.playSong(2); createPickup(2, 155, 239); _root.pu1.poss = [4, 4, 5, 6, 7, 8, 9, 10, 11, 12]; _root.pu1.waitFactor = 2; _root.pu1.standardWait = 120; createPickup(4, 570, 103); _root.pu2.poss = [4, 4, 4, 5, 6, 7, 8, 9, 11, 12]; _root.pu2.waitFactor = 2; _root.pu2.standardWait = 70; spawnPoints = [[], [105, 356], [573, 95], [573, 335], [278, 214]]; createSegs(34, 39); _root.seg1.enX = 440; _root.seg1.enY = 387; _root.seg1.wid = 450; _root.seg2.enX = 145; _root.seg2.enY = 237; _root.seg2.wid = 339; _root.seg3.enX = 577; _root.seg3.enY = 222; _root.seg3.wid = 96; _root.seg4.enX = 572; _root.seg4.enY = 102; _root.seg4.wid = 112; _root.seg5.enX = 37; _root.seg5.enY = 324; _root.seg5.wid = 66; _root.seg6.enX = 584; _root.seg6.enY = 356; _root.seg6.wid = 103; segPoints = [0, [77, 341, 630, 350], [0, 244, 345, 210], [531, 223, 627, 223], [514, 103, 626, 103], [0, 324, 66, 339], [540, 361, 643, 360]]; paths = [0, [0, 1, 5, 6, [5, 6], 5, 6], [0, 1, 2, 1, 4, 1, 1], [0, 1, 2, 3, 4, 1, 1], [0, [1, 2], 2, 1, 4, 1, [1, 2]], [0, 1, 2, 1, 2, 5, 1], [0, 1, 1, 3, 3, 1, 6]]; _root.createPart(30, 0, 0, 100, 0, 0, _root.randomMissilesParticle); localGravityBoost = 3; } else { if (id == 10) { _root.preserveData.playSong(4); createPickup(1, 324, 408); _root.pu1.poss = [4, 4, 5, 6, 7, 8, 9, 11, 12]; _root.pu1.waitFactor = 0.65; spawnPoints = [[], [100, 403], [380, 403], [520, 403], [250, 403]]; createSegs(44, 44); _root.seg1.enX = 322; _root.seg1.enY = 403; _root.seg1.wid = 650; segPoints = [0, [80, 403, 565, 403]]; paths = [0, [0, 1]]; _root.createPart(5, -50, -50, 10, 0, 0, _root.hallucinationParticle); localGravityBoost = 3; } else { if (id == 11) { _root.preserveData.playSong(0); spawnPoints = [[], [124, 390], [517, 390], [266, 390], [390, 390]]; createSegs(33, 33); _root.seg1.enX = 327; _root.seg1.enY = 396; _root.seg1.wid = 440; segPoints = [0, [80, 396, 572, 396]]; paths = [0, [0, 1]]; localGravityBoost = 4; } else { if (id == 12) { _root.preserveData.playSong(2); createPickup(1, 327, 412); _root.pu1.poss = [4, 4, 4, 5, 6, 7, 8, 9, 10, 11, 13]; spawnPoints = [[], [123, 401], [274, 134], [425, 407], [580, 134]]; createSegs(45, 49); _root.seg1.enX = 340; _root.seg1.enY = 412; _root.seg1.wid = 450; _root.seg2.enX = 522; _root.seg2.enY = 412; _root.seg2.wid = 150; _root.seg3.enX = 3; _root.seg3.enY = 412; _root.seg3.wid = 47; _root.seg4.enX = 32; _root.seg4.enY = 240; _root.seg4.wid = 65; _root.seg5.enX = 272; _root.seg5.enY = 178; _root.seg5.wid = 587; _root.seg3.behave = function () { this._x = 80; this._y = 164; this._xscale = Math.abs(this._xscale); this.ySpeed = -4; this.xSpeed = 12; this.cullInput = 30; this.dSeg = -1; if (this.AIcontrolled && this.ultDestText == 'char' && _root['char' + this.ultDestID]._y > 218) { this.cullInput += 40 + random(40); } }; _root.seg4.behave = function () { this._x = 10; this._y = 378; this._xscale = Math.abs(this._xscale); this.ySpeed = -5; this.xSpeed = 13; this.cullInput = 30; this.dSeg = -1; if (this.AIcontrolled && this.ultDestText == 'char' && _root['char' + this.ultDestID]._y < 218) { this.cullInput += 40 + random(40); } }; seg1.behave = function () { if (this._y < 155) { this._y -= 10; this.dSeg = -1; this.xSpeed = -10; this.ySpeed = -6; this.cullInput = 18; } }; segPoints = [0, [26, 412, 476, 412], [450, 412, 600, 412], [-21, 412, 26, 412], [6, 178, 71, 178], [40, 178, 649, 178]]; paths = [0, [0, 1, 2, 3, 3, 3], [0, 1, 2, 3, 3, 3], [0, 1, 1, 3, 3, 3], [0, 4, 4, 4, 4, 5], [0, 4, 4, 4, 4, 5]]; _root.createPart(40, -10, 59, 100, 0, 0, _root.madnessHelper); _root.createPart(41, 0, 0, 100, 0, 0, _root.jesusParticle); _root['part' + _root.recentPart].vend.stop(); localGravity = -3; } else { if (id == 0) { pu1.poss = new Array(); pu2.poss = new Array(); pu3.poss = new Array(); pu4.poss = new Array(); paths = new Array(); segPoints = new Array(); spawnPoints = new Array(); } } } } } } } } } } } } } } function pauseAll() { i = 1; while (i <= numChars) { _root['char' + i].charIn.spriteIn.stop(); ++i; } if (_root.char5) { _root.char5.charIn.spriteIn.stop(); } for (i in parts) { _root['part' + parts[i]].stop(); } } function unpauseAll() { pauseMenu._visible = false; paused = false; pauseDelay = 6; pauseFor = 0; i = 1; while (i <= numChars) { if (_root['char' + i].curPlaying) { _root['char' + i].charIn.spriteIn.play(); } ++i; } if (_root.char5) { if (_root.char5.curPlaying) { _root.char5.charIn.spriteIn.play(); } } for (i in parts) { _root['part' + parts[i]].play(); } } function conveyorCentring() { if (this._x < 305) { this.locomoteX(2.3); } else { if (this._x > 345) { this.locomoteX(-2.3); } } } function springBoardVertical() { this.ySpeed = -38; this.xSpeed = 0; this._y -= 40; _root.playSoundOnce('launchLand', 'miss3'); } function pagodaMain() { if (Math.abs(this._x - 153) < 15) { _root.playSoundOnce('teleport', 'teleportSound'); this._x = 455; this._y = 94; _root.createPart(13, 149, 334, 100, 0, 0, _root.playOnceParticle); _root.createPart(5, 459, 34, 100, 2, -5, _root.playOnceParticle); _root.createPart(5, 433, 34, 100, -2, -5, _root.playOnceParticle); _root.createPart(5, 459, 34, 100, 2, 5, _root.playOnceParticle); _root.createPart(5, 433, 34, 100, -2, 5, _root.playOnceParticle); _root.createPart(5, 463, 34, 100, 6, 0, _root.playOnceParticle); _root.createPart(5, 429, 34, 100, -6, 0, _root.playOnceParticle); } else { if (this._x > 622) { this.xSpeed -= 15; this.ySpeed -= 9; this._x -= 15; } } } function pagodaBranchSeg() { if (this.charIn._currentframe == 2) { if (_root.aCounter % 6 == 0) { _root.playSoundOnce('branch', 'leaf' + (random(2) + 1)); } _root.part102.branchIn.nextFrame(); } else { if (this.charIn._currentframe == 3) { _root.part102.branchIn.gotoAndPlay(1); } } } function blimpSeg() { if (_root.aCounter % 4 == 0) { _root.seg4.desiredY = 265; this.blimp = 1; while (this.blimp <= _root.numChars) { if (_root['char' + this.blimp].dSeg == 4) { _root.seg4.desiredY += 16; } ++this.blimp; } } } function blimpOEF() { if (!_root.paused) { if (this.ySpeed == undefined) { this.ySpeed = 0; _root.seg4.desiredY = 265; } if (this._y > this.desiredY && this.ySpeed > -2) { this.ySpeed -= 0.1; } else { if (this._y < this.desiredY && this.ySpeed < 2) { this.ySpeed += 0.1; } } this._y += this.ySpeed; this.blimp = 1; while (this.blimp <= _root.numChars) { if (_root['char' + this.blimp].dSeg == 4) { _root['char' + this.blimp]._y += this.ySpeed; } ++this.blimp; } _root.part100._y = -60.3 + (this._y - 265); } } function loadMatch() { if (_root.preserveData.mechanics == 1) { _quality = 'LOW'; } else { if (_root.preserveData.mechanics == 2 || _root.preserveData.mechanics == 3 && _root.preserveData.enableCam) { _quality = 'MEDIUM'; } else { if (_root.preserveData.mechanics == 3) { _quality = 'HIGH'; } } } numChars = 0; matchDuration = 0; winningTeam = 0; survivalKills = 0; recentSpawnChar = 1; loadLevel(0); loadLevel(arenaSelect); i = 1; while (i <= 4) { if (teamSelect[i] > 0) { loadCharacter(charSelect[i], i, _root.preserveData.numPlayers >= i); } ++i; } i = 1; while (i <= 4) { if (teamSelect[i] > 0) { addToTeam(i, teamSelect[i]); } ++i; } i = 1; while (i <= numChars) { _root.attachMovie('lifeBar', 'lb' + i, 15000 + i); _root.attachMovie('blockStamina', 'bs' + i, 15100 + i); _root['lb' + i].gotoAndStop(201); _root['lb' + i].head.gotoAndStop(_root['char' + i]._currentframe); _root['lb' + i].pummelBar.gotoAndStop(201); _root['bs' + i].stop(); if (i == 1) { _root.lb1._x = 19; _root.lb1._y = 9; _root.bs1._x = 24; _root.bs1._y = 44; } else { if (i == 2) { _root.lb2._x = 631; _root.lb2._y = 9; _root.lb2._xscale = -100; _root.bs2._x = 623; _root.bs2._y = 44; } else { if (i == 3) { _root.lb3._x = 19; _root.lb3._y = 441; _root.bs3._x = 24; _root.bs3._y = 404; } else { if (i == 4) { _root.lb4._x = 631; _root.lb4._y = 441; _root.lb4._xscale = -100; _root.bs4._x = 623; _root.bs4._y = 404; } } } } _root['lb' + i].birthX = _root['lb' + i]._x; _root['lb' + i].birthY = _root['lb' + i]._y; _root['bs' + i].birthX = _root['bs' + i]._x; _root['bs' + i].birthY = _root['bs' + i]._y; ++i; } if (_root.preserveData.playMode == 3) { if (_root.preserveData.challengeID == 1) { _root.char4.setState(1); _root.char4.setState(6); _root.char4.heavy = 99999; _root.char4.lockState = true; _root.char4.charIn.col.setTransform({'rb': 0, 'gb': 0, 'bb': 0}); _root.char4.hp *= 3; _root.char4.maxhp *= 3; delete _root.char4.charIn.col; } else { if (_root.preserveData.challengeID == 2) { _root.char2.hp *= 2; _root.char2.maxhp *= 2; _root.char3.hp *= 2; _root.char3.maxhp *= 2; _root.char4.hp *= 2; _root.char4.maxhp *= 2; } else { if (_root.preserveData.challengeID == 3) { _root.createPart(5, -100, -49, -49, 0, 0, _root.healthDeclineParticle); } else { if (_root.preserveData.challengeID == 4) { pfap = 1; while (pfap <= _root.numChars) { _root['char' + pfap].proPickup = 9999999; ++pfap; } _root.pu1.poss = [8, 8]; delete pfap; } else { if (_root.preserveData.challengeID == 5) { _root.createPart(5, -100, -49, -49, 0, 0, _root.randomExplosionsParticle); } else { if (_root.preserveData.challengeID == 7) { _root.char2.hp /= 2; _root.char2.maxhp /= 2; _root.char3.hp /= 2; _root.char3.maxhp /= 2; _root.char1._xscale = 65; _root.char1._yscale = 65; _root.char1.nativeXScale = 65; _root.char1.nativeYScale = 65; _root.char1.moveSpeed /= 1.5; } else { if (_root.preserveData.challengeID == 8) { _root.loadCharacter(5, 5, false); _root.char5._x = _root.char2._x - 20; _root.char5._y = _root.char2._y - 20; _root.char5.charIn.col.setTransform({'rb': 50, 'gb': 0, 'bb': 0}); _root.char5._alpha = 60; _root.char5.xSpeed = _root.signOf(_root.char2._xscale); _root.char5.ySpeed = -15; _root.char5.lifeline = 999999; _root.char5.team = _root.char2.team; _root.char5.opponents = new Array(); _root.char5.opponents[0] = _root.char2.opponents[0]; _root.char5.ultDestText = 'char'; _root.char5.ultDestID = _root.char2.opponents[0]; _root.setFactors(5, 35); _root.char5.agg = 100; _root.char5.intel = 10; _root.char5.fear = 0; --_root.numChars; _root.pu1.poss = [4, 5, 6, 7, 8, 9, 10, 11, 12]; } else { if (_root.preserveData.challengeID == 9) { _root.createPart(5, -100, -49, -49, 0, 0, _root.surviveTwoMinsParticle); _root.char2.setState(2); _root.char2.rageMode = 999999; _root.char2.hp *= 2; _root.char2.maxhp *= 2; _root.char3.setState(2); _root.char3.rageMode = 999999; _root.char3.hp *= 2; _root.char3.maxhp *= 2; _root.char4.setState(2); _root.char4.rageMode = 999999; _root.char4.hp *= 2; _root.char4.maxhp *= 2; _root.pu1.removeMovieClip(); _root.pu2.removeMovieClip(); _root.numPickups = 0; } else { if (_root.preserveData.challengeID == 10) { _root.createPart(29, 0, 0, 100, 0, 0, null); } } } } } } } } } } if (playMode == 1) { if (char2.team == char3.team) { _root.char2.setFactors(80); _root.char3.setFactors(80); _root.char2.maxhp = Math.ceil(_root.char2.maxhp / 1.2); _root.char2.hp = _root.char2.maxhp; _root.char3.maxhp = Math.ceil(_root.char3.maxhp / 1.2); _root.char3.hp = _root.char3.maxhp; } } if (char2.team == char4.team) { _root.char2.setFactors(60); _root.char3.setFactors(60); _root.char4.setFactors(60); _root.char2.maxhp = Math.ceil(_root.char2.maxhp / 1.2); _root.char2.hp = _root.char2.maxhp; _root.char3.maxhp = Math.ceil(_root.char3.maxhp / 1.2); _root.char3.hp = _root.char3.maxhp; _root.char4.maxhp = Math.ceil(_root.char4.maxhp / 1.4); _root.char4.hp = _root.char4.maxhp; } pauseMenu._visible = false; pauseFor = 50; _root.pauseAll(); } function getRandomTip() { allTips = new Array(); allTips = ['If you intercept an enemy\'s fierce attack with a quick attack, it will deal more damage than usual.', 'There\'s no use fighting an enemy when they have an Invincibility or a Rage pickup. Flight beats fight.', 'Spend your Grounds Gold to unlock new content by visiting the Deposit section from the main menu.', 'If you hit the ground at a decent speed when using the Heavy pickup, all grounded enemies will fly into the air.', 'Every character has a balance of good and bad traits. Give them all a shot and you\'ll see the advantages of each.', 'Larger characters are slow, but pack a huge punch, so approach with caution.', 'Every level presents a different terrain strategy. Learn how to use each to your advantage.', 'Every character has their own unique projectile. Some are better than others, or handle differently. Try them all out.', 'Land mines can be a danger to the user as well. Make sure to leave them in an enemy\'s path, but not too close to you.', 'If you\'re facing two opponents at once, you\'ll probably have to move around a lot to avoid getting flanked.', 'When blocking, you only protect yourself from frontal attacks. You\'re still vulnerable from the other side.', 'Some characters are weak on the ground but whomp ass in the air. Find every character\'s strong attacks.', 'You can get a quick kill by luring enemies into the Junkyard\'s compactor, but be sure not to squish yourself.', 'The highest-damaging hits are usually at the end of a combo.', 'You can\'t block in the air, but you can parry an attack by holding the block button just before contact.', 'You can\'t block in the air, but you can parry an attack by holding the block button just before contact.', 'You can\'t block in the air, but you can parry an attack by holding the block button just before contact.', 'If you haven\'t cleared the training mode yet, I suggest that you do.', 'Grounds Gold earned in this game is seperate from and unrelated to Grounds Gold earned in your Newgrounds account.', 'Grounds Gold earned in this game is seperate from and unrelated to Grounds Gold earned in your Newgrounds account.', 'Don\'t like the control configuration? Set your own custom controls in the Options menu.', 'Game running slow? Try adjusting the settings in the Options menu. Lower the Mechanics and turn off the Action Cam.', 'Game running slow? Try adjusting the settings in the Options menu. Lower the Mechanics and turn off the Action Cam.', 'Game running slow? Try adjusting the settings in the Options menu. Lower the Mechanics and turn off the Action Cam.', 'Rage mode is not only a pickup - it can also be activated by launching a fierce attack after taking a brutal beating.', 'Rage mode is not only a pickup - it can also be activated by launching a fierce attack after taking a brutal beating.', 'If you\'ve never been to Newgrounds.com, you\'re probably new to the internet.', 'NegativeFLASH.com has some of the coolest games on all the internets.', 'NegativeFLASH.com has some of the coolest games on all the internets.', 'Visiting mindchamber.net will generally make you a better person.', 'Luis has a site too. It\'s brainwashstudios.com.', 'Tired of fumbling with knives and cutting boards? The Magic Bullet can make entire meals in just 1-2-3 steps.', 'Shaving your pubes makes your weiner look bigger.']; return allTips[random(allTips.length)]; } stop(); highMechanics = true; pauseFor = 0; medalTime = 0; screenShake = 0; numPickups = 0; proIter = 100; partIter = 100; pauseDelay = 0; paused = false; proData = new Array(); pros = new Array(); pros = []; partData = new Array(); parts = new Array(); parts = []; customKeys = new Array(); teams = new Array(); _root.pauseMenu.swapDepths(23017); _root.getReady.swapDepths(23016); aCounter = 0; onEnterFrame = function () { if (_root.winningTeam <= 0 && !_root.paused) { ++matchDuration; } if (aCounter >= 100) { aCounter = 0; this.cats = 1; while (this.cats <= _root.teams.length + 1) { if (_root.checkForWin(this.cats)) { _root.win(this.cats); } ++this.cats; } } if (pauseDelay > 0) { --pauseDelay; } if (pauseFor > 0) { --pauseFor; } kp = Key.isDown(112) || Key.isDown(80); if (!paused && (kp && pauseDelay <= 0 || pauseFor > 0)) { if (pauseFor <= 0) { pauseMenu._visible = true; pauseMenu.gotoAndStop(1); } paused = true; pauseDelay = 14; pauseAll(); } else { if (kp && pauseDelay <= 0 && pauseFor <= 4 && pauseFor > 0) { pauseMenu._visible = true; pauseMenu.gotoAndStop(1); paused = true; pauseDelay = 14; pauseAll(); } else { if (paused && _root.winningTeam <= 0 && (kp && pauseDelay <= 0 && pauseMenu._visible || pauseFor <= 0 && !pauseMenu._visible && !battleReport)) { _root.unpauseAll(); } } } if ((_root.preserveData.enableCam || _root._xscale != 100) && _root.playMode != 5) { _root.camZoom(); } else { if (_root.screenShake > 0) { _root._y = _root.screenShake % 10 - 5; --_root.screenShake; } else { _root._y = 0; } } if (!paused) { if (_root.matchDuration > 100) { autoQual(); } ++aCounter; proi = 0; while (proi < pros.length) { if (_root['pro' + pros[proi]]._x > 800 || _root['pro' + pros[proi]]._x < -150 || _root['pro' + pros[proi]]._y < -150 && _root['pro' + pros[proi]].ySpeed < 0 || _root['pro' + pros[proi]]._y > 600 && _root['pro' + pros[proi]].ySpeed > 0) { _root['pro' + pros[proi]].removeMovieClip(); pros.splice(proi, 1); } else { if (_root['pro' + pros[proi]]) { locomotePro(_root['pro' + pros[proi]].xSpeed, _root['pro' + pros[proi]].ySpeed, pros[proi], _root['pro' + pros[proi]].owner); } else {} ++proi; } } _root.parti = 0; while (_root.parti < parts.length) { if (_root['part' + parts[_root.parti]]._x > 800 || _root['part' + parts[_root.parti]]._x < -150 || _root['part' + parts[_root.parti]]._y < -150 || _root['part' + parts[_root.parti]]._y > 600) { _root['part' + parts[_root.parti]].removeMovieClip(); parts.splice(_root.parti, 1); } else { _root.consistentPart = _root['part' + parts[_root.parti]]; if (_root.consistentPart) { _root.consistentPart.ySpeed += _root['part' + parts[_root.parti]].gravity; _root.consistentPart.behave(); if (_root.consistentPart) { locomotePart(_root.consistentPart.xSpeed, _root.consistentPart.ySpeed, parts[_root.parti], _root.consistentPart.owner); ++_root.parti; } } else { parts.splice(_root.parti, 1); } } } if (aCounter % 4 == 0) { pups = 1; while (pups <= _root.numPickups) { if (_root['pu' + pups]._currentframe == 1) { ++_root['pu' + pups].timeWaited; if (_root['pu' + pups].timeWaited >= Math.floor(_root['pu' + pups].standardWait * _root['pu' + pups].waitFactor)) { _root['pu' + pups].gotoAndStop(2); } } else { plays = 1; while (plays <= numChars) { if (_root['pu' + pups].hitTest(_root['char' + plays]._x, _root['char' + plays]._y, true) && _root['char' + plays].hp > 0) { if (plays == 1) { ++_root.playerPickups; } else { _root.playerPickups = -999; } if (_root.playerPickups >= 6 && !_root.preserveData.hoarderMedal && _root.AICharacterExists()) { _root.preserveData.hoarderMedal = true; unlockMedal('Hoarder Patrol'); } if (_root['pu' + pups]._currentframe == 5 && _root['char' + plays].hp < _root['char' + plays].maxhp) { _root['char' + plays].hp += 60; _root['char' + plays].registerDamage(); _root['pu' + pups].gotoAndStop(3); if (_root['char' + plays].hp > _root['char' + plays].maxhp) { _root['char' + plays].hp = _root['char' + plays].maxhp; } } else { if (_root['pu' + pups]._currentframe == 4) { _root['char' + plays].proPickup = 250; _root['pu' + pups].gotoAndStop(3); } else { if (_root['pu' + pups]._currentframe == 6) { _root['char' + plays].setState(2); _root['pu' + pups].gotoAndStop(3); } else { if (_root['pu' + pups]._currentframe == 7) { _root['char' + plays].setState(3); _root['pu' + pups].gotoAndStop(3); } else { if (_root['pu' + pups]._currentframe == 8) { _root['char' + plays].landMine = 280; _root['pu' + pups].gotoAndStop(3); } else { if (_root['pu' + pups]._currentframe == 9) { _root['char' + plays].setState(4); _root['pu' + pups].gotoAndStop(3); } else { if (_root['pu' + pups]._currentframe == 10) { _root.playSoundOnce('lightning', 'lightningSound'); lightnin = 1; while (lightnin <= _root.numChars) { if (plays != lightnin && _root['char' + plays].hp > 0) { _root.createPro(3, _root['char' + lightnin]._x, 0, 100, 1, 800); } ++lightnin; } _root['pu' + pups].gotoAndStop(3); } else { if (_root['pu' + pups]._currentframe == 11) { _root['char' + plays].setState(5); _root['pu' + pups].gotoAndStop(3); } else { if (_root['pu' + pups]._currentframe == 12) { _root['char' + plays].setState(6); _root['pu' + pups].gotoAndStop(3); } else { if (_root['pu' + pups]._currentframe == 13) { _root['pu' + pups].gotoAndStop(3); _root.loadCharacter(_root['char' + plays]._currentframe, 5, false); _root.char5._x = _root['char' + plays]._x; _root.char5._y = _root['char' + plays]._y - 20; _root.char5.charIn.col.setTransform({'rb': 50, 'gb': 0, 'bb': 0}); _root.char5._alpha = 60; _root.char5.xSpeed = _root.signOf(_root['char' + plays]._xscale) * 3; _root.char5.ySpeed = -15; _root.char5.lifeline = 500; _root.char5.team = _root['char' + plays].team; _root.char5.opponents = new Array(); _root.char5.opponents[0] = _root['char' + plays].opponents[0]; _root.char5.ultDestText = 'char'; _root.char5.ultDestID = _root['char' + plays].opponents[0]; _root.setFactors(5, 35); _root.char5.agg = 100; _root.char5.intel = 0; _root.char5.fear = 0; --_root.numChars; } } } } } } } } } } } ++plays; } } ++pups; } } } }; proData = [[], ['fastBullet', 1, 1, 0, 2, 7, 0], ['fastBullet', 1, 1, 0, 2, 7, 0], ['fastBullet', 45, 0, 20, 6, 4, 4], ['tankMissile', 30, 6, -10, 8, 3, 3], ['knives', 7, 6, -5, 7, 7, 8], ['hominidBlast', 3, 12, -8, 4, 27, 24], ['energyShot', 3, 4, -1, 2, 27, 24], ['fastBullet', 11, 18, -4, 8, 7, 8], ['fastBullet', 4, 3, -1, 3, 7, 8], ['fastBullet', 15, 5, -3, 5, 7, 8], ['fastBullet', 3, 2, 0, 5, 7, 8]]; partData = [[], ['landMine', 2, 0], ['orbiter', 0, 0], ['explosion', 0, 0], ['lightning', 0, 0], ['shine', 0, 0], ['redSparks', 0, 0], ['bloodSpurt1', 0, 0], ['sparks', 0, 0], ['compactor', 0, 0], ['castleFG', 0, 0], ['columnizer', 0, 0], ['pagodaFG', 0, 0], ['warpIn', 0, 0], ['pagodaHelper', 0, 0], ['pagodaBranch', 0, 0], ['pointValue', 0, 0], ['schoolFG', 0, 0], ['comboCounter', 0, 0], ['storeFG', 0, 0], ['trainingPanel', 0, 0], ['pickup', 0, 0], ['meatConveyor', 0, 0], ['bigSparks', 0, 0], ['blockSparks', 0, 0], ['explosionTM', 0, 0], ['smokeStomp', 0, 0], ['bloodSpurt2', 0, 0], ['convictChange', 0, 0], ['flickeringLight', 0, 0], ['tankFG', 0, 0], ['bigExplosion', 0, 0], ['hominidFlare', 0, 0], ['shotgunFlare', 0, 0], ['blimp', 0, 0], ['cellFace', 0, 0], ['cellSpikes', 0, 0], ['cellHand', 0, 0], ['jumpDust', 0, 0], ['parrySpark', 0, 0], ['madnessFG', 0, 0], ['jesus', 0, 0], ['lobbedSpider', 0, 0], ['lungingSpider', 0, 0]]; if (_root.playMode == 1) { getReady.stop(); loadStoryMatch(); } else { if (_root.playMode == 5) { getReady.unloadMovie(); _root.arenaSelect = 11; _root.charSelect = [0, 1, 0, 0, 0]; _root.teamSelect = [0, 1, 0, 0, 0]; loadMatch(); _root.createPart(20, 0, 40, 100, 0, 0, _root.trainingParticle); _root.part100.adviceText.text = 'Welcome to the training room. Here you\'ll learn the basics of the game. The rest will be beat into you as you play. Press P at any time for the menu.'; _root.part100.instructionText.text = 'Instructions on how to proceed to the next step will appear here. Press spacebar when ready.'; _root.part100.step = 1; _root.part100.col = new Color(_root.part100); _root.pu1.removeMovieClip(); _root.pauseFor = 0; _root.paused = false; } else { loadMatch(); } } if (_url.indexOf('www') != -1) { gotoAndStop(14); } } frame 3 { function AICharacterExists() { ii = 2; while (ii <= _root.numChars) { if (_root['char' + ii].AIcontrolled) { return true; } ++ii; } return false; } function behaveAI2() { if (this.cullInput > 0) { return undefined; } this.lockLR = false; if (this.ySpeed > 0) { this.u = false; } if (this.wander > 0) { --this.wander; this.atEnd = this.l && this._x - this.moveSpeed < _root.segPoints[this.dSeg][0] || this.r && this._x + this.moveSpeed > _root.segPoints[this.dSeg][2]; if (this.atEnd && this.ultDestText == 'char') { this.wander = 0; } } if (this.dSeg != -1 && this.ySpeed >= 0) { this.aerialAttack = false; } ++this.AIcounter; if (this.AIcounter > 999) { this.AIcounter = 0; } if (this.dSeg != this.lastDSeg) { if (this.lastDSeg == -1) { this.aerialAttack = false; this.u = false; if (this.ultDestText == 'char' && _root['char' + this.ultDestID].dSeg != -1) { if (_root['char' + this.ultDestID].dSeg == this.dSeg) { this.destText = 'char'; this.destID = this.ultDestID; } else { this.destText = 'seg'; this.destID = _root['char' + this.ultDestID].dSeg; this.chooseNextSeg(); } } else { if (this.ultDest == 'pickup') { this.chooseNextSeg(); } } } this.lastDSeg = this.dSeg; } if (this.destText == 'char' && this.dSeg != -1 && this.dSeg != _root['char' + this.ultDestID].dSeg) { this.destText = 'seg'; this.destID = _root['char' + this.ultDestID].lastGroundSeg; if (!_root.member(this.dSeg, _root.paths[this.dSeg][_root['char' + this.ultDestID].lastGroundSeg])) { this.chooseNextSeg(); } } if (_root.teams[this.team].length > 1 && this.dSeg != -1 && this.ultDestText == 'char' && _root['char' + this.ultDestID].hitTest(this)) { this.coincChar = 1; while (this.coincChar <= _root.teams[this.team].length) { if (_root['char' + _root.teams[this.team][this.coincChar]].id > this.id && _root['char' + _root.teams[this.team][this.coincChar]]._x > _root['char' + this.ultDestID]._x && this._x > _root['char' + this.ultDestID]._x - 40 && _root.segPoints[this.dSeg][0] + 10 < this._x) { this.l = true; this.lockLR = true; } ++this.coincChar; } } if (this.destText == 'char' && _root['char' + this.ultDestID].dSeg == -1) { this.l = false; this.r = false; this.lockLR = true; } if (this.AIcounter % 30 == 0 || this.ultDestText == 'char' && _root['char' + this.ultDestID].hp <= 0) { this.nt = 1; while (this.nt <= _root.numChars) { if (this.team != _root['char' + this.nt].team && _root['char' + this.nt].hp > 0 && _root['char' + this.nt].hitTest(this.proxCheck)) { this.ultDestText = 'char'; this.ultDestID = this.nt; this.destText = 'seg'; this.destID = _root['char' + this.nt].lastGroundSeg; this.chooseNextSeg(); break; } ++this.nt; } } if (this.AIcounter % 20 == 0 && (this.ultDestText == 'seg' || this.ultDestText == '')) { _root.newDestChar(this.id, 'unoccupied'); } if (this.aerialAttack) { if (_root['char' + this.ultDestID]._x < this._x - this.idealDistance || this.ySpeed > 0 && this._x > _root.segPoints[this.lastDSeg][2] - this.ySpeed * 2 - 30) { this.l = true; this.r = false; } else { if (_root['char' + this.ultDestID]._x > this._x + this.idealDistance || this.ySpeed > 0 && this._x < _root.segPoints[this.lastDSeg][0] + this.ySpeed * 2 + 30) { this.r = true; this.l = false; } else { this.l = false; this.r = false; if (_root['char' + this.ultDestID].hitTest(this.proxCheck)) { if (random(2) == 0) { this.freshS = true; this.lastPressed = 'ks'; this.ks = true; } else { this.freshD = true; this.lastPressed = 'kd'; this.kd = true; } } } } } else { if (this.ultDestText == 'pickup' && _root['pu' + this.ultDestID].dSeg == this.dSeg) { if (_root['pu' + this.ultDestID]._x + 10 < this._x) { this.l = true; this.r = false; } else { if (_root['pu' + this.ultDestID]._x - 10 > this._x) { this.l = false; this.r = true; } else { this.l = false; this.r = false; } } } else { if (this.destText == 'seg' && this.dSeg != this.destID) { if (this.dSeg == -1 && this.ultDestText == 'char' && this.proxCheck.hitTest(_root['char' + this.ultDestID]) && (_root.preserveData.difficulty == 3 || _root.preserveData.difficulty == 2 && Math.random() < 0.22)) { this.ka = false; this.lastPressed = 'ks'; this.freshS = true; this.freshKS = true; this.ks = true; } if (!_root.member(this.dSeg, _root.paths[this.dSeg][this.destID])) { this.chooseNextSeg(); } this.d = false; this.ka = false; if (this.ultDestText == 'char' && this.AIcounter % 4 == 0 && (this.dSeg != -1 || this.within)) { if (_root['char' + this.ultDestID].lastGroundSeg != this.destID && _root.member(_root['char' + this.ultDestID].lastGroundSeg, _root.paths[this.lastGroundSeg][_root['char' + this.ultDestID].lastGroundSeg])) { this.destID = _root['char' + this.ultDestID].lastGroundSeg; this.chooseNextSeg(); } } if (this.destID == undefined) { if (this.dSeg != -1 && this.dSeg != undefined) { this.destID = this.dSeg; } else { if (this.lastDSeg != -1 && this.lastDSeg != undefined) { this.destID = this.lastDSeg; } else { this.destID = 1; } } } this.updateDest(); if (this.dSeg != this.destID && this.dSeg != this.lastDSeg && this.dSeg != -1) { this.chooseNextSeg(); } if (this.dSeg != -1 && this.dSeg != undefined && this.dSeg != 'NaN') { this.closeX = _root.segPoints[this.destID][2]; this.closeY = _root.segPoints[this.destID][3]; if (Math.abs(Math.abs(_root.segPoints[this.dSeg][2] + _root.segPoints[this.dSeg][0]) / 2 - _root.segPoints[this.destID][0]) < this.closeX) { this.closeX = _root.segPoints[this.destID][0]; this.closeY = _root.segPoints[this.destID][1]; } } if (this.dSeg >= 0) { this.cullInput = 0; if (this.dSeg != this.destID) { this.u = false; this.updateDest(); this.atEnd = this.l && this._x - this.moveSpeed < _root.segPoints[this.dSeg][0] || this.r && this._x + this.moveSpeed > _root.segPoints[this.dSeg][2]; if (this.withinSeg(this.destID, 10) && this.lift > 0) { if (this.sep > 0) { this._xscale = -Math.abs(this._xscale); this.r = false; } else { this._xscale = Math.abs(this._xscale); this.l = false; } this.u = true; } else { if (this.withinSeg(this.destID, this.lift / 2) && this.lift > 100 && !(_root.seg1.hitTest(this._x + _root.signOf(this._xscale) * this.moveSpeed, this._y, true) && _root.seg1.hitTest(this._x + _root.signOf(this._xscale) * this.moveSpeed, this._y - this.moveSpeed, true))) { if (this.sep > 0) { this.l = false; this.r = true; } else { this.l = true; this.r = false; } } else { if (this.lift > Math.abs(this._x - this.closeX) && (this.l || this.r) || this.atEnd && (this.lift > 0 || !this.within())) { if (this.sep > 0) { this._xscale = -Math.abs(this._xscale); this.r = false; } else { this._xscale = Math.abs(this._xscale); this.l = false; } this.u = true; } else { if (this._x > this.closeX && (!(this.l || this.r) || this._x > _root.segPoints[this.destID][2])) { this.l = true; this.r = false; this.lockLR = true; } else { if (this._x < this.closeX && (!(this.l || this.r) || this._x < _root.segPoints[this.destID][0])) { this.l = false; this.r = true; this.lockLR = true; } else { if (this.atEnd) { this.locomoteX(this._xscale / 10); } else { if (this.voluntaryWait <= 0 && !this.l && !this.r) { if (this._x < _root.segPoints[this.destID][0]) { this.l = false; this.r = true; } else { if (this._x > _root.segPoints[this.destID][2]) { this.l = true; this.r = false; } } } else { if (this.voluntaryWait > 0) { } } } } } } } } } else { if (this.ultDestText == 'seg') { this.l = false; this.r = false; if (this.dSeg != this.ultDestID) { this.chooseNextSeg(); } else { this.ultDestID = 1; this.destID = 1; if (this.ultDestText == 'seg') { this.ultDestText = ''; } this.destText = ''; } } } } else { if (this.dSeg == -1) { if ((this.ySpeed > 6 || this.within()) && (_root.segPoints[this.destID][1] + _root.segPoints[this.destID][3]) / 2 < this._y - 20) { this.retreat = (_root.segPoints[this.lastGroundSeg][0] + _root.segPoints[this.lastGroundSeg][2]) / 2; if (this.retreat > this._x) { this.l = false; this.r = true; } else { this.l = true; this.r = false; } } else { if (this.sep > this.moveSpeed * 1.2) { this.l = true; this.r = false; } else { if (this.sep < -this.moveSpeed * 1.2) { this.l = false; this.r = true; } else { this.l = false; this.r = false; } } } if (!this.unobstructed(0, 2, this.dSeg)) { this.l = false; this.r = false; } } } } else { if (this.ultDestText == 'char') { if (this.AIcounter % 50 == 0 && this.intel > random(150) && this.transformTimeline == undefined) { this.pups = 1; while (this.pups <= _root.numPickups) { if (_root['pu' + this.pups]._currentframe > 3) { if (_root['pu' + this.pups]._currentframe == 5 && this.hp > this.maxhp - 20) { break; } this.ultDestID = this.pups; this.ultDestText = 'pickup'; this.destText = 'seg'; this.destID = _root['pu' + this.pups].dSeg; this.chooseNextSeg(); } ++this.pups; } } this.ks = false; this.kd = false; this.freshD = false; this.freshS = false; this.lastPressed = ''; if (Math.abs(this._x - _root['char' + this.ultDestID]._x) < 15 && Math.abs(this._y - _root['char' + this.ultDestID]._y) < 30 && !this.lockLR) { this.d = false; this.wander = Math.floor(random(100 - this.agg) / 6 + 5); } if ((this.charIn._currentframe < 20 && this.agg > random(100) && this.AIcounter % 3 == 0 || this.agg > random(100) && this.charIn._currentframe >= 20) && _root['char' + this.ultDestID].hitTest(this.proxCheck) && this.wander <= 0) { if (this.charIn._currentframe == 5 && _root['part' + _root.recentPart].isBlock && _root['part' + _root.recentPart]._currentframe <= 2 && this.intel > random(80) && Math.abs(this._x - _root['char' + this.ultDestID]._x) < this.idealDistance + _root['char' + this.ultDestID].idealDistance / 8) { this.ka = false; this.lastPressed = 'ks'; this.freshS = true; this.ks = true; } else { if ((this.charIn._currentframe == 5 && (this.fear > random(60) || _root['char' + this.ultDestID].charIn._currentframe >= 20) || ((this.AIcounter % 4 == 0 || this.charIn._currentframe == 5) && this.intel > random(100) && (_root['char' + this.ultDestID].rageMode > 0 || _root['char' + this.ultDestID].invincibility > 0) || this.fear > random(70) && random(3) == 0) || this._charIn._currentframe <= 7 && random(this.fear) > random(this.agg) && _root['char' + this.ultDestID].charIn._currentframe >= 20) && !this.invincibility > 0 && this.blockStamina > 40 && !(_root['char' + this.ultDestID].charIn._currentframe == 5 && random(3) < 2)) { this.ka = true; this.d = false; this.lockLR = true; } else { if (_root['lb' + this.id]._currentframe < _root['lb' + this.id].pummelBar._currentframe && this.charIn._currentframe == 5) { this.ka = true; this.d = false; this.lockLR = true; } else { this.ka = false; if (random(2) == 1) { this.lastPressed = 'ks'; this.freshS = true; this.ks = true; } else { this.lastPressed = 'kd'; this.freshD = true; this.kd = true; } } } } if (AIcounter % 20 == 0 && this.dSeg != -1 && random(5) == 0) { this.d = true; } else { if (AIcounter % 50 == 0 && random(4) == 0 && this.charIn._currentframe == 24 || this.destText == 'seg' && this.dSeg != this.destID) { this.d = false; } } } else { if (this.wander > 0 && this.wander < 30 && this.Math.abs(this._x - _root['char' + this.ultDestID]._x) < 30 && Math.abs(this._y - _root['char' + this.ultDestID]._y) < 30) { if (this.dSeg == -1) { } else { if (this.dSeg != -1 && this._x - _root.segPoints[this.dSeg][0] < 20) { this.l = false; this.r = true; this.lockLR = true; } else { if (this.dSeg != -1 && _root.segPoints[this.dSeg][2] - this._x < 20) { this.l = true; this.r = false; this.lockLR = true; } else { if (this._x > _root['char' + this.ultDestID]._x && _root.segPoints[this.dSeg][2] - this._x - this.moveSpeed >= 20) { this.l = false; this.r = true; this.lockLR = true; } else { if (this._x < _root['char' + this.ultDestID]._x && this._x - _root.segPoints[this.dSeg][0] - this.moveSpeed >= 20) { this.l = true; this.r = false; this.lockLR = true; } else { this.l = false; this.r = false; this.wander = 0; } } } } } } else { if (!_root['char' + this.ultDestID].hitTest(this.proxCheck) && !this.hitTest(_root['char' + this.ultDestID].proxCheck)) { this.d = false; this.kd = false; if (this.intel > random(100) || this.agg > random(100)) { this.ka = false; } } } } if (this.dSeg == -1 && this.hurtFrames <= 0 && this.hp > 0) { if (this.lastGroundSeg != -1) { this.lastGroundSeg != -1; this.segMid = (_root.segPoints[this.lastGroundSeg][0] + _root.segPoints[this.lastGroundSeg][2]) / 2; if (Math.abs(this._x - this.segMid) < 50) { this.l = false; this.r = false; this.lockLR = true; } else { if (this._x > this.segMid) { this.l = true; this.r = false; this.lockLR = true; } else { this.l = false; this.r = true; this.lockLR = true; } } } } if (_root['char' + this.ultDestID].dSeg == -1) { if (!this.lockLR && (this.agg + this.intel / 1.5 > random(150) && this.AIcounter % 5 == 0)) { if (_root['char' + this.ultDestID]._x < this._x - 60 && this.l) { this.l = true; this.r = false; } else { if (_root['char' + this.ultDestID]._x > this._x + 60 && this.r) { this.r = true; this.l = false; } else { if (_root['char' + this.ultDestID].ySpeed < 0 && this._y - _root['char' + this.ultDestID]._y < 155 && !this._y < _root['char' + this.ultDestID]._y && this.dSeg != -1 && _root['char' + this.ultDestID].withinSeg(this.dSeg, -30)) { this.l = false; this.r = false; this.u = true; this.destText = 'char'; this.destID = this.ultDestID; this.aerialAttack = true; } } } } } if (this.dSeg != -1 && _root['char' + this.ultDestID].dSeg != -1 && this.dSeg != _root['char' + this.ultDestID].dSeg) { this.chooseNextSeg(); this.destText = 'seg'; } else { if (this.dSeg == _root['char' + this.ultDestID].dSeg) { this.destText = 'char'; this.destID = this.ultDestID; if (this._x < _root['char' + this.ultDestID]._x) { this._xscale = Math.abs(this._xscale); } else { this._xscale = -Math.abs(this._xscale); } if (!this.lockLR && (this.l || this.r || this.agg > random(100) && this.AIcounter % 10 == 0)) { if (_root['char' + this.ultDestID]._x < this._x - 35 && this.l || !this.proxCheck.hitTest(_root['char' + this.ultDestID]) && this._x > _root['char' + this.ultDestID]._x) { this.l = true; this.r = false; } else { if (_root['char' + this.ultDestID]._x > this._x + 35 && this.r || !this.proxCheck.hitTest(_root['char' + this.ultDestID]) && this._x < _root['char' + this.ultDestID]._x) { this.r = true; this.l = false; } else { this.l = false; this.r = false; } } } } } } } } } if (this.proPickup == 1) { this.kd = false; } else { if (this.proPickup > 1 && this.ultDestText == 'char') { if (Math.abs(this._y - _root['char' + this.ultDestID]._y) < 60 && (this.AIcounter % 30 > 9 && this.intel + this.agg > random(200) || this.intel + this.agg > 160 || this.charIn._currentframe == 25 && (random(2) == 0 || this.intel + this.agg > random(200))) && _root.signOf(_root['char' + this.ultDestID]._x - this._x) == _root.signOf(this._xscale)) { this.kd = true; if (this.dSeg != -1) { this.l = false; this.r = false; this.lockLR = true; } } else { this.kd = false; } } } if (this.ultDestText == 'pickup') { this.ka = false; this.d = false; if (this.destText == 'seg' && this.dSeg == this.destID) { this.chooseNextSeg(); } if (this.destText != 'seg') { this.destText = 'seg'; this.destID = _root['pu' + this.ultDestID].dSeg; this.chooseNextSeg(); } if (this.AIcounter % 5 == 0 && (this.intel > random(100) || this.agg > random(100)) && _root['pu' + this.ultDestID]._currentframe <= 3) { this.ultDestText = 'seg'; this.ultDestID = random(_root.numSegs) + 1; } } if (Math.abs(this._x - this.latelyX) > 75 || Math.abs(this._y - this.latelyY) > 75) { this.boredom = 0; this.latelyX = this._x; this.latelyY = this._y; } else { if (_root['lb' + this.id].pummelBar._currentframe > _root['lb' + this.id]._currentframe || this.ultDestText == 'char' && _root['lb' + this.ultDestID].pummelBar._currentframe > _root['lb' + this.ultDestID]._currentframe) { ++this.boredom; } else { this.boredom += 3; } if (this.boredom + this.fear > this.agg + 90) { this.ka = false; this.l = false; this.r = false; this.u = false; this.d = false; this.freshKS = true; this.freshKD = true; this.ks = false; this.kd = false; this.boredom /= 3; this.a = false; this.rndPickup = random(_root.numPickups) + 1; if (this.intel > random(100) && this.hp < this.maxhp && _root['pu' + this.rndPickup]._currentframe >= 4) { this.ultDestText = 'pickup'; this.ultDestID = _root['pu' + this.rndPickup].dSeg; this.chooseNextSeg(); } else { if (this.agg > random(100) || this.ultDestText != 'char') { _root.newDestChar(this.id, 'boredom'); } else { this.wander = 150; this.ultDestText = 'seg'; this.ultDestID = this.lastGroundSeg; do { this.ultDestID = random(_root.numSegs) + 1; } while (this.ultDestID == this.lastGroundSeg && _root.numSegs > 1); } } } } if (this.dSeg != -1 && !_root['seg' + this.dSeg].hitTest(this._x, this._y + 2, true)) { } if (this.dSeg == -1 && _root.preserveData.difficulty >= 2 && random(100) < _root.preserveData.difficulty * 40 - 75) { this.lastA = _root.matchDuration - 1; this.ka = true; } } function camZoom() { if (winningTeam > 0) { desiredScale = 100; } else { if (!_root.preserveData.enableCam || _root.battleReport) { return undefined; } } if (medalTime > 0) { --medalTime; } if (_root._xscale <= 100) { maxZoom = 0; maxX /= 2; maxY /= 3; } else { if (Math.abs(maxZoom) > 0.1) { maxZoom /= 1.05; } } leftMost = 999; rightMost = -999; topMost = 999; bottomMost = -999; pllps = 1; while (pllps <= _root.numChars) { if (_root['char' + pllps].hp <= 0) { } else { if (_root['char' + pllps]._x < leftMost) { leftMost = _root.numBetween(_root['char' + pllps]._x, 1, 649); } if (_root['char' + pllps]._x > rightMost) { rightMost = _root.numBetween(_root['char' + pllps]._x, 1, 649); } if (_root['char' + pllps]._y < topMost) { topMost = _root.numBetween(_root['char' + pllps]._y, 1, 449); } if (_root['char' + pllps]._y > bottomMost) { bottomMost = _root.numBetween(_root['char' + pllps]._y, 1, 449); } if (_root['char' + pllps].charIn._currentframe >= 8 && _root['char' + pllps].charIn._currentframe <= 10) { someoneGotHit = true; } } ++pllps; } --lastCamZoom; if (winningTeam > 0) { desiredScale = 100; } else { if (Math.abs(leftMost - rightMost) > Math.abs(topMost - bottomMost) * 1.44444) { perfectScale = 200 - Math.abs(leftMost - rightMost) / 2; if (perfectScale - _root._xscale > 10 || perfectScale - _root._xscale < -30 || lastCamZoom > 0 || perfectScale < desiredScale && perfectScale < 120) { lastCamZoom = 5; maxZoom += _root.signOf(perfectScale - _root._xscale) * 0.5; if (maxZoom > 5) { maxZoom = 5; } if (Math.abs(perfectScale - _root._xscale) > Math.abs(maxZoom)) { desiredScale = _root.numBetween(this._xscale + maxZoom, 100, 200); } else { desiredScale = (perfectScale + _root._xscale) / 2; } } } else { if (perfectScale - _root._xscale > 10 || perfectScale - _root._xscale < -30 || lastCamZoom > 0) { lastCamZoom = 5; perfectScale = 200 - Math.abs(topMost - bottomMost) / 1.15; maxZoom += _root.signOf(perfectScale - _root._xscale) * 0.5; if (maxZoom > 5) { maxZoom = 5; } if (Math.abs(perfectScale - _root._xscale) > Math.abs(maxZoom)) { desiredScale = _root.numBetween(this._xscale + this.maxZoom, 100, 200); } else { desiredScale = (perfectScale + _root._xscale) / 2; } } } } canZoom = Math.abs(perfectScale - desiredScale) >= 5; anyLarge = 1; while (anyLarge <= _root.numChars) { if (_root['char' + anyLarge].heavy > 0 || _root.pauseMenu._visible || _root.winningTeam > 0) { desiredScale = 100; canZoom = true; break; } ++anyLarge; } if (_root.arenaSelect == 12 || _root.medalTime > 0) { desiredScale = 100; canZoom = true; } if (canZoom) { rLeftMost = leftMost; rRightMost = rightMost; rTopMost = topMost; rBottomMost = bottomMost; desiredScale = _root.numBetween(desiredScale, 100, 200); if (Math.abs(desiredScale - _root._xscale) > 10) { _root._xscale = (desiredScale + _root._xscale) / 2; } else { _root._xscale = desiredScale; maxZoom /= 1.14; lastCamZoom = 0; someoneGotHit = false; } _root._yscale = _root._xscale; } perfectX = _root.numBetween(-((leftMost + rightMost) / 2) * (_root._xscale / 100) + 650 / (_root._xscale / 100), -(650 * (_root._xscale / 100) - 650), 0); perfectY = _root.numBetween(-((topMost + bottomMost) / 2) * (_root._xscale / 100) + 450 / (_root._xscale / 100) + (Math.abs(_root._xscale - 150) + Math.abs(_root._xscale - 120)) / 1.5, -(450 * (_root._xscale / 100) - 450), 0); --lastCamPan; if (Math.abs(perfectX - _root._x) > 50 || Math.abs(perfectY - _root._y) > 30 || lastCamPan > 0) { lastCamPan = 5; maxX += _root.signOf(perfectX - _root._x) / 4 + (perfectX - _root._x) / 33; maxY += _root.signOf(perfectY - _root._y) / 4 + (perfectY - _root._y) / 22; if (Math.abs(maxX) > Math.abs(_root._x - perfectX)) { maxX /= 3; } if (Math.abs(maxY) > Math.abs(_root._y - perfectY)) { maxY /= 3; } if (Math.abs(maxX) < 3 && Math.abs(_root._x - perfectX) < 3) { maxX = 0; desiredX = perfectX; } else { desiredX = _root.numBetween(_root._x + maxX, -(650 * (_root._xscale / 100) - 650), 0); } if (Math.abs(maxY) < 3 && Math.abs(_root._y - perfectY) < 3) { maxY = 0; desiredY = perfectY; } else { desiredY = _root.numBetween(_root._y + maxY, -(450 * (_root._xscale / 100) - 450), 0); } if (desiredX == perfectX && desiredY == perfectY) { lastCamPan = 0; } _root._x = desiredX; _root._y = desiredY; } else { maxX /= 3; maxY /= 3; } _root._x = _root.numBetween(_root._x, -(650 * (_root._xscale / 100) - 650), 0); _root._y = _root.numBetween(_root._y, -(450 * (_root._xscale / 100) - 450), 0); fcc = 1; while (fcc <= _root.numChars) { if (_root['char' + fcc].dSeg == -1) { fcc2 = 1; while (fcc2 <= _root.numSegs) { if (_root['seg' + fcc2].hitTest(_root['char' + fcc]._x, _root['char' + fcc]._y, true)) { fcc3 = 1; while (fcc3 <= 10) { if (!_root['seg' + fcc2].hitTest(_root['char' + fcc]._x + fcc3 / 3, _root['char' + fcc]._y - fcc3, true)) { _root['char' + fcc]._x += fcc / 3; _root['char' + fcc]._y -= fcc3; fcc2 = 99; fcc = 99; break; } ++fcc3; } } ++fcc2; } } ++fcc; } _root['char' + fcc].prevSeg = _root['char' + fcc].dSeg; if (_root.screenShake > 0) { _root._y = _root.screenShake % 10 - 5; --_root.screenShake; } _root.medal_popup._xscale = 100 / (_root._xscale / 100); _root.medal_popup._yscale = 100 / (_root._yscale / 100); _root.medal_popup._y = Math.abs(_root.medal_popup._y) + 40 / _root._yscale; alGUI = 1; while (alGUI <= _root.numChars) { _root['lb' + alGUI]._xscale = 100 / (_root._xscale / 100); _root['lb' + alGUI]._xscale -= Math.abs(_root['lb' + alGUI]._xscale) * 2 * (alGUI % 2 == 0); _root['lb' + alGUI]._yscale = Math.abs(_root['lb' + alGUI]._xscale); _root['lb' + alGUI]._x = -_root._x / (_root._xscale / 100) + _root['lb' + alGUI].birthX / (_root._xscale / 100); _root['lb' + alGUI]._y = -_root._y / (_root._yscale / 100) + _root['lb' + alGUI].birthY / (_root._yscale / 100); _root['bs' + alGUI]._xscale = 100 / (_root._xscale / 100); _root['bs' + alGUI]._yscale = _root['bs' + alGUI]._xscale; _root['bs' + alGUI]._x = -_root._x / (_root._xscale / 100) + _root['bs' + alGUI].birthX / (_root._xscale / 100); _root['bs' + alGUI]._y = -_root._y / (_root._yscale / 100) + _root['bs' + alGUI].birthY / (_root._yscale / 100); if (_root['char' + alGUI].curComboID > 0) { _root['part' + _root['char' + alGUI].curComboID]._x = _root['char' + alGUI]._x - 37 * (_root['char' + alGUI]._yscale / 100); _root['part' + _root['char' + alGUI].curComboID]._y = _root['char' + alGUI]._y - 100 * (_root['char' + alGUI]._yscale / 100); _root['part' + _root['char' + alGUI].curComboID]._xscale = 100 / (_root._xscale / 100); _root['part' + _root['char' + alGUI].curComboID]._yscale = _root['part' + _root['char' + alGUI].curComboID]._xscale; } ++alGUI; } } function autoQual() { if (qualDelay <= 0) { if (diff < 40 && remDiff < 40) { qualityUp(); qualDelay = 50; } else { if (diff > 60 && remDiff > 60) { qualityDown(); qualDelay = 50; } } } else { --qualDelay; } remDiff = diff; } function qualityUp() { if (_quality == 'MEDIUM') { _quality = 'HIGH'; } else { if (_quality == 'LOW') { _quality = 'MEDIUM'; } } } function qualityDown() { if (_quality == 'HIGH') { _quality = 'MEDIUM'; } else { if (_quality == 'MEDIUM') { _quality = 'LOW'; } } } function checkForHits2(charID, charFrame) { charFrame -= 20; for (l in this.hitFrames[charFrame]) { if (this.hitFrames[charFrame][l][0] == this.charIn.spriteIn._currentframe) { if (this.hitFrames[charFrame][l][2] > 3) { _root.playSoundOnce('hit' + this.id, 'miss2'); } this.hit = 1; while (this.hit <= _root.numChars) { if (_root['char' + this.hit].team != this.team && _root['char' + this.hit].hitTest(this) && _root['char' + this.hit].hp > 0 && _root['char' + this.hit]._y > 30 && this._y > 30) { if (this.charIn.spriteIn.hitCore.hitTest(_root['char' + this.hit].charIn.hitCore)) { if (_root['char' + this.hit].charIn._currentframe == 5 && this._xscale != _root['char' + this.hit]._xscale && _root['char' + this.hit].blockStamina > 30) { if (_root['char' + this.hit]._currentframe == 11) { _root['char' + this.hit].goto(5, _root['char' + this.hit].charIn.spriteIn._currentframe % _root['char' + this.hit].charIn.spriteIn._totalframes + 1, true); } _root.playSoundOnce('hit' + this.id, 'block'); _root['char' + this.hit].charIn._x = _root['char' + this.hit].ciBirthX - 3.5; this.xSpeed -= (this.hitFrames[charFrame][l][3] / 8) * _root.signOf(this._xscale); if (_root['char' + this.hit].heavy < 20) { _root['char' + this.hit].xSpeed += (this.hitFrames[charFrame][l][3] / 4) * _root.signOf(this._xscale) / 15; if (Math.abs(this._x - _root['char' + this.hit]._x) < this.idealDistance) { _root['char' + this.hit].xSpeed += 5 * _root.signOf(_root['char' + this.hit]._x - this._x); _root['char' + this.hit].locomoteX(12 * _root.signOf(_root['char' + this.hit]._x - this._x)); } } this.px = this._x + (this.idealDistance - 10 + random(20)) * _root.signOf(this._xscale); this.py = this._y - 35 + random(20) - (this._y - _root['char' + this.hit]._y) / 2; _root.createPart(24, this.px, this.py, -this._xscale, 0, 0, _root.playOnceParticle); _root['part' + _root.recentPart].isBlock = true; _root['char' + this.hit].blockStamina -= this.hitFrames[charFrame][l][2] * _root['char' + this.hit].shieldSoftness; if (_root['char' + this.hit].blockStamina >= 30) { _root['bs' + this.hit].gotoAndPlay(2); } else { _root['bs' + this.hit].gotoAndStop(1); _root.blockStamina = -80; } } else { if ((_root['char' + this.hit].charIn._currentframe == 4 || _root['char' + this.hit].charIn._currentframe == 10) && _root['char' + this.hit].hp > 0 && _root.matchDuration - _root['char' + this.hit].lastA <= 3 && _root['char' + this.hit].lastA != -1) { _root.playSoundOnce('hit' + this.id, 'parry'); if (this.id == 1 || _root['char' + this.hit].id == 1) { _root.pauseFor += 6; } this.px = this._x + (this.idealDistance - 10 + random(20)) * _root.signOf(this._xscale); this.py = this._y - 35 + random(20) - (this._y - _root['char' + this.hit]._y) / 2; _root.createPart(39, this.px, this.py, -this._xscale, 0, 0, _root.playOnceParticle); _root['char' + this.hit].hurtFrames = 0; ++_root['char' + this.hit].parryCount; if (this.hit == 1 && _root['char' + this.hit].parryCount >= 3 && !_root.preserveData.parryMedal && this.AIcontrolled) { _root.preserveData.parryMedal = true; unlockMedal('C-C-Combo Breaker'); } if (_root['char' + this.hit]._currentframe == 11) { _root['char' + this.hit].goto(22, 46, true); if (_root['char' + this.hit].parryCount == 1) { _root['char' + this.hit].proPickup = 250; _root['char' + this.hit].justBlocked = 6; } else { if (_root['char' + this.hit].parryCount == 2) { _root['char' + this.hit].justBlocked = 6; _root['char' + this.hit].setState(2); } else { if (_root['char' + this.hit].parryCount == 3) { _root['char' + this.hit].justBlocked = 6; _root['char' + this.hit].hp += 20; _root['char' + this.hit].registerDamage(); _root['char' + this.hit].parryCount = 0; } } } } else { this.xSpeed -= (this.hitFrames[charFrame][l][3] / 8 + 25) * _root.signOf(this._xscale); this.ySpeed -= 4; this.hurtFrames = 32; this.goto(10, 1, true); _root['char' + this.hit]._xscale = Math.abs(_root['char' + this.hit]._xscale) * _root.signOf(this._x - _root['char' + this.hit]._x); _root['char' + this.hit].lastLastA -= 5; _root['char' + this.hit].justBlocked = 6; _root['char' + this.hit].goto(22, _root['char' + this.hit].hitFrames[3][0], true); } } else { this.lastStrikeHit = true; _root['char' + this.hit].lastA -= 2; if (this.id == 1 || this.hit == 1 && !_root.preserveData.numPlayers >= 2) { _root.pauseFor = 4; } this.px = this._x + (this.idealDistance - 10 + random(20)) * _root.signOf(this._xscale); this.py = this._y - 35 + random(20) - (this._y - _root['char' + this.hit]._y) / 2; if (this.hitFrames[charFrame][l][2] <= 5) { _root.createPart(8, this.px, this.py, this._xscale, 0, 0, _root.playOnceParticle); } else { _root.createPart(23, this.px, this.py, this._xscale, 0, 0, _root.playOnceParticle); } this.swapDepths(this.id + 10); _root['char' + this.hit].swapDepths(_root['char' + this.hit].id); if (this.AIcontrolled) { this.damageLead += this.hitFrames[charFrame][l][2]; } else { if (_root['char' + this.hit].AIcontrolled) { _root['char' + this.hit].damageLead -= this.hitFrames[charFrame][l][2]; } } _root['char' + this.hit].sinceLastHit = 0; _root['char' + this.hit]._xscale = -_root.signOf(this._xscale) * Math.abs(_root['char' + this.hit]._xscale); if (_root['char' + this.hit].heavy < 20) { if (this.heavy > 0) { _root['char' + this.hit].xSpeed += (this.hitFrames[charFrame][l][3] + 11) * _root.signOf(this._xscale); _root['char' + this.hit].locomoteY(-10); } else { _root['char' + this.hit].xSpeed += (this.hitFrames[charFrame][l][3] / 4) * _root.signOf(this._xscale); } if (Math.abs(this._x - _root['char' + this.hit]._x) < this.idealDistance) { _root['char' + this.hit].xSpeed += 5 * _root.signOf(_root['char' + this.hit]._x - this._x); _root['char' + this.hit].locomoteX(12 * _root.signOf(_root['char' + this.hit]._x - this._x)); } } if (_root['char' + this.hit].invincibility > 0) { _root.playSoundOnce('hit' + this.id, 'block'); return undefined; } if (_root['char' + this.hit].heavy <= 0) { _root['char' + this.hit].hurtFrames = Math.ceil(this.hitFrames[charFrame][l][1] * (1 + Math.random())); } this.baseDamage = this.hitFrames[charFrame][l][2]; if ((_root['char' + this.hit].charIn._currentframe == 21 || _root['char' + this.hit].charIn._currentframe == 23) && (this.charIn._currentframe == 20 || this.charIn._currentframe == 22)) { this.baseDamage *= 1.4; } this.baseDamage = Math.ceil(this.baseDamage * (this.hitFrames[charFrame][l][5] / 100)); if (this.hitFrames[charFrame][l][5] > 20) { this.hitFrames[charFrame][l][5] -= 10 + this.baseDamage / 2; _root.adjustFactors(this.id, this.baseDamage / 5); } if (this.rageMode <= 0) { if (_root['char' + this.hit].heavy < 20) { _root['char' + this.hit].ySpeed += this.hitFrames[charFrame][l][4] / 4; } _root['char' + this.hit].hp -= this.baseDamage; this.dmgDealt += this.baseDamage; _root['char' + this.hit].dmgTaken += this.baseDamage; _root.createPart(16, _root['char' + this.hit]._x, _root['char' + this.hit]._y - _root.numBetween(_root['char' + this.hit]._height, 50, 80 * (1 + (_root['char' + this.hit].heavy > 0) * 0.4)) - 10, 100, 0, 0, _root.pointValueParticle); _root['part' + _root.recentPart]._rotation = 1; _root['part' + _root.recentPart].pointValue = this.baseDamage; } else { if (_root['char' + this.hit].heavy < 20) { _root['char' + this.hit].ySpeed += (this.hitFrames[charFrame][l][4] / 4) * 1.4; } this.baseDamage *= 1.6; _root['char' + this.hit].hp -= Math.ceil(this.baseDamage); _root['char' + this.hit].dmgTaken += Math.ceil(this.baseDamage); this.dmgDealt += Math.ceil(this.baseDamage); _root.createPart(16, _root['char' + this.hit]._x, _root['char' + this.hit]._y - _root.numBetween(_root['char' + this.hit]._height, 50, 80 * (1 + (_root['char' + this.hit].heavy > 0) * 0.4)) - 10, 100, 0, 0, _root.pointValueParticle); _root['part' + _root.recentPart]._rotation = 1; _root['part' + _root.recentPart].pointValue = Math.ceil(this.baseDamage); } if (this.hitFrames[charFrame][l].length >= 7 && this.hitFrames[charFrame][l][6] != '') { _root.playSoundOnce('hit' + this.id, this.hitFrames[charFrame][l][6]); } else { if (this.baseDamage <= 3 || this.hitFrames[charFrame][l][5] < 25) { _root.playSoundOnce('hit' + this.id, 'hit1'); } else { if (this.baseDamage <= 12) { _root.playSoundOnce('hit' + this.id, 'hit2'); } else { _root.playSoundOnce('hit' + this.id, 'hit3'); } } } if (_root['char' + this.hit].hp <= 0) { ++this.kills; } if (this.dSeg == -1) { if (this.curComboID == 0) { _root.createPart(18, _root['lb' + this.id]._x + _root['lb' + this.id]._xscale - 40, _root['lb' + this.id]._y + 10, 100, 0, 0, _root.comboWaitParticle); this.curComboID = _root.recentPart; this.curComboAmt = 1; this.curComboDMG = Math.round(this.baseDamage); _root.setComboCounter(this.curComboID, 1); _root['part' + this.curComboID].airCombo = true; _root['part' + this.curComboID].owner = this.id; } else { ++this.curComboAmt; this.curComboDMG += Math.round(this.baseDamage); _root.setComboCounter(this.curComboID, this.curComboAmt); } if (this.id == 1) { if (this.curComboAmt > _root.preserveData.longCombo) { _root.preserveData.longCombo = this.curComboAmt; } if (this.curComboDMG > _root.preserveData.damageCombo) { _root.preserveData.damageCombo = this.curComboDMG; if (this.curComboDMG > 80 && !_root.preserveData.comboMedal && _root['char' + this.hit].AIcontrolled) { _root.preserveData.comboMedal = true; unlockMedal('C-C-Combo Maker'); } } } } if (Math.abs(this.hitFrames[charFrame][l][4] / 4) > 2) { _root['char' + this.hit].goto(10, 1, true); } else { _root['char' + this.hit].goto(8, 1, true); } if (_root['char' + this.hit].dSeg != -1 || _root['char' + this.id].dSeg == -1) { this.threeQuartersX = (this.xSpeed - _root['char' + this.hit].xSpeed) * 0.9; _root['char' + this.hit].xSpeed += this.threeQuartersX; this.oneThirdX = (this._x + _root.signOf(this._xscale) * this.idealDistance - _root['char' + this.hit]._x) / 3; _root['char' + this.hit].locomoteX(this.oneThirdX); delete this.threeQuartersX; delete this.oneThirdX; if (this.dSeg <= 0) { if (this.ySpeed < _root['char' + this.hit].ySpeed) { this.threeQuarters = (this.ySpeed - _root['char' + this.hit].ySpeed) * 0.9; _root['char' + this.hit].ySpeed += this.threeQuarters; delete this.threeQuarters; } else { this.threeQuarters = (_root['char' + this.hit].ySpeed - this.ySpeed) * 0.9; this.ySpeed += this.threeQuarters; delete this.threeQuarters; } if (this.ySpeed > -5) { this.ySpeed -= 2; } } if (_root['char' + this.hit].dSeg <= 0 && _root['char' + this.hit].ySpeed > -5) { _root['char' + this.hit].ySpeed -= 2; } } else { _root['char' + this.hit].xSpeed += (this.hitFrames[charFrame][l][3] / 2) * _root.signOf(this._xscale); } _root['char' + this.hit].registerDamage(); return undefined; } } break; } } ++this.hit; } } } } maxZoom = 0; maxX = 0; maxY = 0; lastCamPan = 0; lastCamZoom = 0; desiredX = 0; desiredY = 0; desiredScale = 100; perfectX = 0; perfectY = 0; perfectScale = 0; lastCamZoom = 0; qualDelay = 0; } // unknown tag 88 length 251 movieClip 3826 { frame 20 { _root.screenShake += 4; _root.playSoundOnce('explo', 'hit2'); } frame 40 { this.unloadMovie(); } } button 3831 { on (press) { _root.playSoundOnce('menu', 'miss2'); _root.unpauseAll(); } } button 3833 { on (press) { _root.playSoundOnce('menu', 'shotgun'); if (_root.playMode == 5) { _root.preserveData.restartTraining = true; } _root.gotoAndStop(13); } } button 3835 { on (press) { _root.playSoundOnce('menu', 'shotgun'); _root.playMode = undefined; _root.gotoAndStop(13); } } button 3837 { on (press) { _root.playSoundOnce('menu', 'miss2'); gotoAndStop(2); } } // unknown tag 88 length 69 button 3841 { on (press) { _root.playSoundOnce('menu', 'miss2'); gotoAndStop(1); } } button 3845 { on (press) { stopAllSounds(); _root.preserveData.enableBGM = false; _root.playSoundOnce('menu', 'hit1'); } } button 3846 { on (press) { stopAllSounds(); _root.preserveData.enableBGM = true; _root.preserveData.curSong = 0; _root.preserveData.playSong(_root.preserveData.storedSong); _root.playSoundOnce('menu', 'hit1'); } } // unknown tag 88 length 68 button 3851 { on (press) { _root.preserveData.enableSFX = false; } } button 3852 { on (press) { _root.preserveData.enableSFX = true; _root.playSoundOnce('menu', 'hit1'); } } button 3854 { on (press) { _quality = 'MEDIUM'; _root.preserveData.mechanics = 2; _root.preserveData.enableCam = true; _root.playSoundOnce('menu', 'hit1'); } } button 3855 { on (press) { _quality = 'HIGH'; _root.preserveData.mechanics = 3; _root.preserveData.enableCam = true; _root.playSoundOnce('menu', 'hit1'); } } button 3859 { on (press) { _quality = 'LOW'; _root.preserveData.mechanics = 1; _root.preserveData.enableCam = false; _root.playSoundOnce('menu', 'hit1'); } } movieClip 3861 { } button 3864 { on (release) { gotoAndStop(1); } } // unknown tag 88 length 62 movieClip 3905 { } button 3908 { on (press) { _root.playSoundOnce('menu', 'menu-press'); getURL('http://www.newgrounds.com', '_blank'); } } // unknown tag 88 length 146 button 3914 { on (release) { getURL('http://www.negativeflash.com', '_blank'); } } button 3916 { on (release) { getURL('http://www.mindchamber.net', '_blank'); } } button 3918 { on (release) { getURL('http://www.brainwashstudios.com', '_blank'); } } movieClip 3928 { } button 3933 { on (release) { getURL('http://www.evil-dog.com', '_blank'); } } movieClip 3934 { } button 3940 { on (release) { if (_currentframe == 29) { _root.playSoundOnce('menu', 'menu-change'); play(); } } } movieClip 3941 { frame 29 { stop(); } frame 66 { _root.gotoAndStop(2); } } instance of movieClip 3821 { onClipEvent (load) { if (_root.preserveData.pname == '') { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } button 3960 { on (release) { if (_currentframe == 37) { _root.playSoundOnce('menu', 'menu-change'); play(); } } } button 3965 { on (release) { if (_currentframe == 37) { _root.playSoundOnce('menu', 'menu-change'); gotoAndStop(54); } } } movieClip 3980 { } button 3985 { on (release) { settingFor = 2; gotoAndStop(53); } } button 3986 { on (release) { settingFor = 1; gotoAndStop(53); } } button 3988 { on (release) { settingFor = 3; gotoAndStop(53); } } button 3998 { on (release) { this.onEnterFrame = null; this.onKeyDown = null; gotoAndStop(37); } } button 4006 { on (release) { _parent.resetButtons(); gotoAndStop(2); } } movieClip 4010 { } button 4011 { on (release) { if (settingFor == 1) { _root.preserveData.customKeys[settingFor] = [-2, -1, -3, -4, 97, 115, 100]; } else { if (settingFor == 2) { _root.preserveData.customKeys[settingFor] = [-2, -1, -3, -4, 106, 107, 108, 0]; } else { _root.preserveData.customKeys[settingFor] = [100, 97, 119, 115, 102, 103, 104, 0]; } } } } button 4013 { on (release) { gotoAndStop(37); } } button 4017 { on (release) { _root.preserveData.setDefaults(); _root.preserveData.pname = undefined; _root.preserveData.saveAll(); _root.gotoAndStop(1); } } button 4029 { on (rollOver) { if (!_root.preserveData.luffMedal) { _root.preserveData.luffMedal = true; unlockMedal('Message of Luff'); } } } movieClip 4030 { } // unknown tag 88 length 4 movieClip 4033 { frame 37 { stop(); } instance of movieClip 3980 { onClipEvent (mouseUp) { this.dragging = false; } onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.dragging = true; } this.updateSlider(); } onClipEvent (enterFrame) { if (this.dragging) { this.updateSlider(); } } onClipEvent (load) { function updateSlider() { if (Math.abs(_root._ymouse - 382) < 12) { if (Math.abs(_root._xmouse - 274) < 26) { this._x = 267 - _parent._x; _root.preserveData.enableSFX = false; } else { if (Math.abs(_root._xmouse - 366) < 26) { this._x = 360 - _parent._x; _root.preserveData.enableSFX = true; } } } } if (_root.preserveData.enableSFX == false) { this._x = 267 - _parent._x; } else { if (_root.preserveData.enableSFX == true) { this._x = 360 - _parent._x; } } } } instance of movieClip 3980 { onClipEvent (mouseUp) { this.dragging = false; } onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.dragging = true; } this.updateSlider(); } onClipEvent (enterFrame) { if (this.dragging) { this.updateSlider(); } } onClipEvent (load) { function updateSlider() { if (Math.abs(_root._ymouse - 236) < 12) { if (Math.abs(_root._xmouse - 274) < 26) { this._x = 267 - _parent._x; _root.preserveData.mechanics = 1; } else { if (Math.abs(_root._xmouse - 366) < 26) { this._x = 360 - _parent._x; _root.preserveData.mechanics = 2; } else { if (Math.abs(_root._xmouse - 462) < 26) { this._x = 455 - _parent._x; _root.preserveData.mechanics = 3; } } } } } if (_root.preserveData.mechanics == 1) { this._x = 267 - _parent._x; } else { if (_root.preserveData.mechanics == 2) { this._x = 360 - _parent._x; } else { if (_root.preserveData.mechanics == 3) { this._x = 455 - _parent._x; } } } } } instance of movieClip 3980 { onClipEvent (mouseUp) { this.dragging = false; } onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.dragging = true; } this.updateSlider(); } onClipEvent (enterFrame) { if (this.dragging) { this.updateSlider(); } } onClipEvent (load) { function updateSlider() { if (Math.abs(_root._ymouse - 153) < 20) { if (Math.abs(_root._xmouse - 274) < 26) { this._x = 267 - _parent._x; _root.preserveData.difficulty = 1; } else { if (Math.abs(_root._xmouse - 366) < 26) { this._x = 360 - _parent._x; _root.preserveData.difficulty = 2; } else { if (Math.abs(_root._xmouse - 462) < 26) { this._x = 455 - _parent._x; _root.preserveData.difficulty = 3; } } } } } if (_root.preserveData.difficulty == 1) { this._x = 267 - _parent._x; } else { if (_root.preserveData.difficulty == 2) { this._x = 360 - _parent._x; } else { if (_root.preserveData.difficulty == 3) { this._x = 455 - _parent._x; } } } } } instance of movieClip 3980 { onClipEvent (mouseUp) { this.dragging = false; } onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.dragging = true; } this.updateSlider(); } onClipEvent (enterFrame) { if (this.dragging) { this.updateSlider(); } } onClipEvent (load) { function updateSlider() { if (Math.abs(_root._ymouse - 339) < 12) { if (Math.abs(_root._xmouse - 274) < 26) { this._x = 267 - _parent._x; _root.preserveData.enableBGM = false; } else { if (Math.abs(_root._xmouse - 366) < 26) { this._x = 360 - _parent._x; _root.preserveData.enableBGM = true; } } } } if (_root.preserveData.enableBGM == false) { this._x = 267 - _parent._x; } else { if (_root.preserveData.enableBGM == true) { this._x = 360 - _parent._x; } } } } instance of movieClip 3980 { onClipEvent (mouseUp) { this.dragging = false; } onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.dragging = true; } this.updateSlider(); } onClipEvent (enterFrame) { if (this.dragging) { this.updateSlider(); } } onClipEvent (load) { function updateSlider() { if (Math.abs(_root._ymouse - 291) < 12) { if (Math.abs(_root._xmouse - 274) < 26) { this._x = 267 - _parent._x; _root.preserveData.enableCam = false; } else { if (Math.abs(_root._xmouse - 366) < 26) { this._x = 360 - _parent._x; _root.preserveData.enableCam = true; } } } } if (_root.preserveData.enableCam == false) { this._x = 267 - _parent._x; } else { if (_root.preserveData.enableCam == true) { this._x = 360 - _parent._x; } } } } frame 52 { _root.gotoAndStop(2); } frame 53 { function resetButtons() { i = 1; while (i <= 7) { this['k' + i].gotoAndStop(1); ++i; } } resetButtons(); myListener = new Object(); myListener.onKeyDown = function () { i = 1; while (i <= 7) { if (_root.options['k' + i]._currentframe == 2) { if (Key.getAscii() > 0) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = Key.getAscii(); } else { if (Key.isDown(37)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -1; } else { if (Key.isDown(39)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -2; } else { if (Key.isDown(38)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -3; } else { if (Key.isDown(40)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -4; } else { if (Key.isDown(16)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -5; } else { if (Key.isDown(17)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -6; } else { if (Key.isDown(18)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -7; } else { if (Key.isDown(20)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -8; } else { if (Key.isDown(9)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -9; } else { if (Key.isDown(46)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -10; } else { if (Key.isDown(45)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -11; } else { if (Key.isDown(36)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -12; } else { if (Key.isDown(35)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -13; } else { if (Key.isDown(34)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -14; } else { if (Key.isDown(33)) { _root.preserveData.customKeys[_root.options.settingFor][i - 1] = -15; } } } } } } } } } } } } } } } } _root.options.resetButtons(); break; } ++i; } }; Key.addListener(myListener); } frame 54 { matchesPlayedText.text = _root.preserveData.matchesWon + _root.preserveData.matchesLost; if (_root.preserveData.matchesWon > 0 || _root.preserveData.matchesLost > 0) { successRateText.text = Math.floor((_root.preserveData.matchesWon / (_root.preserveData.matchesWon + _root.preserveData.matchesLost)) * 100) + '%'; } else { successRateText.text = 'N/A'; } scomp = 0; i = 1; while (i <= 13) { if (_root.preserveData.storyCompleted[i]) { ++scomp; } ++i; } storyCompletionText.text = Math.ceil(scomp * 8.333333333333334) + '%'; ccomp = 0; i = 1; while (i <= 12) { if (_root.preserveData.challengeCompleted[i]) { ++ccomp; } ++i; } challengeCompletionText.text = Math.ceil(ccomp * 8.33333333) + '%'; gComp = scomp * 3 + ccomp * 2 + _root.preserveData.unlockPiconjo * 5 + _root.preserveData.unlockConvict * 5 + _root.preserveData.unlockSurvivalMode * 6 + _root.preserveData.unlockPaddedCell * 4 + _root.preserveData.unlockJunkyard * 4 + _root.preserveData.unlockRegeneration * 4 + _root.preserveData.unlockOrbiter * 4 + _root.preserveData.unlockTrainingRoom * 4 + _root.preserveData.trainingCompleted * 4; if (gComp < 100) { easterEgg._visible = false; } gameCompletionText.text = gComp + '%'; _root.routineMedalCheck(); } } button 4052 { on (release) { if (_currentframe == 38) { _root.playSoundOnce('menu', 'menu-change'); play(); } } } // unknown tag 88 length 149 button 4064 { on (release) { _parent.buySomething(_currentframe); } } movieClip 4093 { } movieClip 4094 { instance unl1 of movieClip 4093 { onClipEvent (load) { this.gotoAndStop(1); } } instance unl2 of movieClip 4093 { onClipEvent (load) { this.gotoAndStop(2); } } instance unl6 of movieClip 4093 { onClipEvent (load) { this.gotoAndStop(6); } } instance unl7 of movieClip 4093 { onClipEvent (load) { this.gotoAndStop(7); } } instance unl3 of movieClip 4093 { onClipEvent (load) { this.gotoAndStop(3); } } instance unl4 of movieClip 4093 { onClipEvent (load) { this.gotoAndStop(4); } } instance unl5 of movieClip 4093 { onClipEvent (load) { this.gotoAndStop(5); } } instance unl8 of movieClip 4093 { onClipEvent (load) { this.gotoAndStop(8); } } } movieClip 4097 { frame 38 { stop(); } instance of movieClip 4094 { onClipEvent (enterFrame) { i = 1; while (i <= 8) { if (this['unl' + i].hitTest(_root._xmouse, _root._ymouse, true)) { if (_parent.descriptionText.text != 'You don\'t have enough Grounds Gold for that. Get outta here, ya bum.') { _parent.descriptionText.text = descriptions[i]; } break; } else { if (i == 8) { _parent.descriptionText.text = 'Mouse over an unlockable to see a description of it here. If you have enough Grounds Gold, you can purchase the item by clicking on it.'; } } ++i; } } onClipEvent (mouseDown) { i = 1; while (i <= 8) { if (this['unl' + i].hitTest(_root._xmouse, _root._ymouse, true)) { _parent.descriptionText.text = descriptions[i]; break; } ++i; } } onClipEvent (load) { function buySomething(id) { if (_root.preserveData.groundsGold >= costs[id]) { this['unl' + id].lockButton._visible = false; _root.playSoundOnce('menu', 'purchase'); _root.preserveData.groundsGold -= costs[id]; _root.routineMedalCheck(); if (id == 1) { _root.preserveData.unlockConvict = true; } if (id == 2) { _root.preserveData.unlockPiconjo = true; } if (id == 3) { _root.preserveData.unlockJunkyard = true; } if (id == 4) { _root.preserveData.unlockPaddedCell = true; } if (id == 5) { _root.preserveData.unlockTrainingRoom = true; } if (id == 6) { _root.preserveData.unlockOrbiter = true; } if (id == 7) { _root.preserveData.unlockRegeneration = true; } if (id == 8) { _root.preserveData.unlockSurvivalMode = true; } } else { _parent.descriptionText.text = 'You don\'t have enough Grounds Gold for that. Get outta here, ya bum.'; } } descriptions = new Array(); descriptions = ['', 'Unlock Convict as a playable character in Story, Survival, and Versus Mode. Play as every character in the game at once.', 'Unlock Piconjo as a playable character in Story, Survival, and Versus Mode. Hell hath no place for the dark reflection of NG\'s beloved Pico.', 'Unlock The Junkyard as a playable arena in Versus Mode. Watch for the compactor. It\'ll take care of you in a hurry.', 'Unlock Padded Cell as a playable arena in Versus Mode. See solitary confinement through the mangled vision of Convict.', 'Unlock Training Room as a playable arena in Versus Mode. Pure, unobstructed combat.', 'Unlock Orbiter as a collectable pickup in all modes. Orbiter encircles you with three volatile little balls of fun that explode on enemy impact.', 'Unlock Regeneration as a collectable pickup in all modes. Regeneration continuously builds back lost health.', 'Unlock Survival Mode. Take on as many opponents as you can possibly endure. Great first-time Grounds Gold payout.']; costs = new Array(); costs = [0, 1250, 1500, 800, 1200, 400, 500, 650, 1000]; if (_root.preserveData.unlockConvict) { unl1.lockButton._visible = false; } if (_root.preserveData.unlockPiconjo) { unl2.lockButton._visible = false; } if (_root.preserveData.unlockJunkyard) { unl3.lockButton._visible = false; } if (_root.preserveData.unlockPaddedCell) { unl4.lockButton._visible = false; } if (_root.preserveData.unlockTrainingRoom) { unl5.lockButton._visible = false; } if (_root.preserveData.unlockOrbiter) { unl6.lockButton._visible = false; } if (_root.preserveData.unlockRegeneration) { unl7.lockButton._visible = false; } if (_root.preserveData.unlockSurvivalMode) { unl8.lockButton._visible = false; } } } frame 60 { _root.gotoAndStop(2); } } frame 8 { function loadChallenge() { _root.preserveData.playMode = 3; _root.preserveData.challengeID = challenge.challengeInfo.challengeID; i = 1; while (i <= 3) { if (challenge.challengeInfo['hero' + i]._currentframe < 13) { charSelect[i] = challenge.challengeInfo['hero' + i]._currentframe; teamSelect[i] = 1; } else { break; } ++i; } ii = i; while (ii <= 4) { if (challenge.challengeInfo['opp' + (ii - i + 1)]._currentframe < 13) { charSelect[ii] = challenge.challengeInfo['opp' + (ii - i + 1)]._currentframe; teamSelect[ii] = 2; } else { teamSelect[ii] = 0; } ++ii; } arenaSelect = challenge.challengeInfo.arena._currentframe; delete _root.levelID; delete _root.preserveData.levelID; if (_root.preserveData.challengeID == 11) { _root.teamSelect = [0, 1, 2, 3, 4]; } _root.gotoAndStop(3); } _root.preserveData.playSong(6); } button 4118 { on (release) { if (_currentframe == 27) { _root.playSoundOnce('menu', 'menu-change'); play(); } } } button 4119 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 1; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Tyrant Piconjo'; challengeInfo.challengeDescription.text = 'Piconjo is terrorizing the portal again, submitting 5-second Flash animations and flailing his genitals in public. A team of do-gooders have been dispatched to clean up the mess.'; challengeInfo.hero1.gotoAndStop(8); challengeInfo.hero2.gotoAndStop(9); challengeInfo.hero3.gotoAndStop(2); challengeInfo.opp1.gotoAndStop(7); challengeInfo.opp2.gotoAndStop(14); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(1); } } button 4120 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 2; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Girl VS Boys'; challengeInfo.challengeDescription.text = 'Defeat three plum-smugglers using only Nene. You\'ll be knocking nuts in the pagoda, so use the teleporter to avoid getting flanked.'; challengeInfo.hero1.gotoAndStop(4); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(12); challengeInfo.opp2.gotoAndStop(12); challengeInfo.opp3.gotoAndStop(12); challengeInfo.arena.gotoAndStop(5); } } button 4121 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 3; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Noxious gases'; challengeInfo.challengeDescription.text = 'The meat locker is being sprayed for bugs, so your health will constantly decline while you fight. Your opponent, P-Bot, will be unaffected. It\'s a well known fact that robots don\'t breathe or piss.'; challengeInfo.hero1.gotoAndStop(9); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(3); challengeInfo.opp2.gotoAndStop(14); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(8); } } button 4122 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 4; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Gunpoint Holdup in Little Korea'; challengeInfo.challengeDescription.text = 'Competitors from the local Wawa are trying to shut down Nene\'s convenience store, and they\'re packing seemingly endless ammunition. In an effort to get his willy wet, Pico is around to help out.'; challengeInfo.hero1.gotoAndStop(4); challengeInfo.hero2.gotoAndStop(2); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(1); challengeInfo.opp2.gotoAndStop(9); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(7); } } button 4123 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 5; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Scrap Metal'; challengeInfo.challengeDescription.text = 'The junkyard is falling apart. Avoid earth-shaking explosions in a full-metal showdown between P-Bot and Alloy.'; challengeInfo.hero1.gotoAndStop(3); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(1); challengeInfo.opp2.gotoAndStop(14); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(3); } } button 4124 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 6; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Convict at Large'; challengeInfo.challengeDescription.text = 'Convict is on the loose and wreaking havoc in the portal. Take control of the wiley shapeshifter and see how much pain you can inflict on a 2-person opposition.'; challengeInfo.hero1.gotoAndStop(10); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(1); challengeInfo.opp2.gotoAndStop(5); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(1); } } button 4125 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 7; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Convict At Small'; challengeInfo.challengeDescription.text = 'Hop into the role of Convict once again to knock over a couple more good guys. To make things a little harder this time, we\'re making you 3 feet tall.'; challengeInfo.hero1.gotoAndStop(10); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(9); challengeInfo.opp2.gotoAndStop(2); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(2); } } button 4126 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 8; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Who Ya Gonna Call?'; challengeInfo.challengeDescription.text = 'The samurai is causing more carnage, this time in Piconjo Manor. It seems he\'s been joined in combat by the spirit of an ancestor. You won\'t be able to attack it, but if you can kill Samurai Asshole, the phantom will be dragged to Hell with him.'; challengeInfo.hero1.gotoAndStop(1); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(5); challengeInfo.opp2.gotoAndStop(14); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(4); } } button 4127 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 9; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Fight or Flight'; challengeInfo.challengeDescription.text = 'Survive for at least two minutes while an enraged team of 3 relentlessly chases you and tries to kill you. Happy birthday.'; challengeInfo.hero1.gotoAndStop(5); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(4); challengeInfo.opp2.gotoAndStop(3); challengeInfo.opp3.gotoAndStop(6); challengeInfo.arena.gotoAndStop(9); } } button 4128 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 10; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Bad Wiring'; challengeInfo.challengeDescription.text = 'It\'s after-hours at Nene\'s convenience store, and the only source of light is that damned sputtering fluorescent piece of crap. Hope you ate your carrots, because you\'ll be fighting largely in the dark.'; challengeInfo.hero1.gotoAndStop(6); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(4); challengeInfo.opp2.gotoAndStop(8); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(7); } } button 4129 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 11; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Royal Grumble Pt. 1'; challengeInfo.challengeDescription.text = 'Take command of Hank in a no-holds-barred free-for-all battle. No holds are barred because no holds were programmed into this game anyway.'; challengeInfo.hero1.gotoAndStop(11); challengeInfo.hero2.gotoAndStop(14); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(8); challengeInfo.opp2.gotoAndStop(9); challengeInfo.opp3.gotoAndStop(6); challengeInfo.arena.gotoAndStop(10); } } button 4130 { on (release) { _root.playSoundOnce('menu', 'menu-press'); challengeInfo.challengeID = 12; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Royal Grumble Pt. 2'; challengeInfo.challengeDescription.text = 'It\'s NG\'s greatest villains versus NG\'s greatest heroes. You\'ll be playing as the villians since, frankly, evil is cooler.'; challengeInfo.hero1.gotoAndStop(7); challengeInfo.hero2.gotoAndStop(10); challengeInfo.hero3.gotoAndStop(14); challengeInfo.opp1.gotoAndStop(2); challengeInfo.opp2.gotoAndStop(9); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(10); } } movieClip 4132 { } movieClip 4167 { } movieClip 4183 { } button 4189 { on (release) { _root.playSoundOnce('menu', 'shotgun'); _root.playMode = 3; _root.preserveData.playMode = 3; _parent.goAhead = true; _root.loadChallenge(challengeID); } } movieClip 4193 { } movieClip 4194 { frame 27 { stop(); goAhead = false; } frame 27 { challengeInfo.challengeID = 1; challengeInfo.challengeName.text = challengeInfo.challengeID + '. Tyrant Piconjo'; challengeInfo.challengeDescription.text = 'Piconjo is terrorizing the portal again, submitting 5-second Flash animations and flailing his genitals in public. A team of do-gooders have been dispatched to clean up the mess.'; challengeInfo.hero1.gotoAndStop(8); challengeInfo.hero2.gotoAndStop(9); challengeInfo.hero3.gotoAndStop(2); challengeInfo.opp1.gotoAndStop(7); challengeInfo.opp2.gotoAndStop(14); challengeInfo.opp3.gotoAndStop(14); challengeInfo.arena.gotoAndStop(1); i = 1; while (i <= 12) { if (!_root.preserveData.challengeCompleted[i]) { this['cm' + i]._visible = false; } ++i; } } frame 40 { if (goAhead) { _root.gotoAndStop(3); } else { _root.gotoAndStop(2); } } } instance challenge of movieClip 4194 { onClipEvent (load) { if (_root.preserveData.skipSurvivalIntro) { this.gotoAndPlay(18); } _root.preserveData.skipSurvivalIntro = false; } } frame 9 { function displayStory(storyID) { story.charName.text = charNames[storyID]; story.bigPortrait.gotoAndStop(storyID); story.appearances.gotoAndStop(storyID); if (storyID == 1) { story.storyDescription.text = 'The story of Alloy was born when a young boy discovered an alien robotic suit granting him immense power. Now he shares in the duty of keeping Newgrounds safe from villains.'; story.pro1.text = 'Fast attacks overall'; story.pro2.text = 'Versatile weapon pickup'; story.con1.text = 'Short-range attacks'; story.con2.text = 'Below-average health'; } else { if (storyID == 2) { story.storyDescription.text = 'Pico\'s popped caps in many an ass to get to the top, and he\'s made a lot of enemies on the way up. As they gather their numbers, our red-headed hero will have to stay on his toes to defend his role as the face of Newgrounds.'; story.pro1.text = 'High aerial attack damage'; story.pro2.text = 'Above-average health'; story.con1.text = 'Poor crouch attacks'; story.con2.text = 'Short-range attacks overall'; } else { if (storyID == 3) { story.storyDescription.text = 'Once a civil servant of Newgrounds, P-Bot is ready to become a contender. Tired of being the portal\'s doorman, he\'ll show the other brawlers what it really means to have brass balls.'; story.pro1.text = 'Excellent reach'; story.pro2.text = 'Excellent juggles'; story.con1.text = 'Slow attacks'; story.con2.text = 'Large target'; } else { if (storyID == 4) { story.storyDescription.text = 'Long dismissed as a hanger-on in Pico\'s shadow, Nene has entered the battle for King of the Portal to prove that she\'s more than just the token girl saving the group from \'sausage party\' status.'; story.pro1.text = 'Strong attacks overall'; story.pro2.text = 'High health'; story.con1.text = 'Very slow air attacks'; story.con2.text = 'Slow attacks overall'; } else { if (storyID == 5) { story.storyDescription.text = 'Samurai Asshole could not pass up the opportunity to hone his skills against the most feared figures of Newgrounds. Perhaps he will find the destroyer of his village among them.'; story.pro1.text = 'Strong attacks overall'; story.pro2.text = 'Great reach'; story.con1.text = 'Slow attacks overall'; story.con2.text = 'Weak projectile'; } else { if (storyID == 6) { story.storyDescription.text = 'Salad Fingers isn\'t particularly aware that he\'ll soon have a lot of people trying to kill him. But due to some severe chemical imbalances, he\'ll become just as sturdy a competitor once people step into his comfort bubble.'; story.pro1.text = 'Incredible reach'; story.pro2.text = 'Good damage'; story.con1.text = 'Very slow'; story.con2.text = 'Low health'; } else { if (storyID == 7) { story.storyDescription.text = 'The dark side of Newgrounds has been growing more numerous and brazen, sometimes appearing even on the front page. As Piconjo prepares for one final push, all of Newgrounds hangs in the balance.'; story.pro1.text = 'Strong attacks overall'; story.pro2.text = 'Good balance of traits'; story.con1.text = 'Slow attacks overall'; story.con2.text = 'Poor projectile'; } else { if (storyID == 8) { story.storyDescription.text = 'As a bit of a newcomer to the Newgrounds team, Tankman will be a sure underdog. The others won\'t acknowledge that he\'s always been there, riding the big monochrome tank when they were nothing but concept sketches.'; story.pro1.text = 'Some very powerful attacks'; story.pro2.text = 'Some very stunning attacks'; story.con1.text = 'Tricky precision attacks'; story.con2.text = 'Somewhat slow'; } else { if (storyID == 9) { story.storyDescription.text = 'Unable to communicate with the natives of the Newgrounds world, Alien Hominid was instantly viewed as a threat. If they won\'t give him a chance, he\'ll have to speak the universal language of biting their skulls in half.'; story.pro1.text = 'Wide attack range'; story.pro2.text = 'Balance of power / speed'; story.con1.text = 'Some slow & weak attacks'; story.con2.text = 'Mediocre health'; } else { if (storyID == 10) { story.storyDescription.text = 'In the wake of Cassandra\'s slaughter, a new nemesis has risen to fill the deceased fear-monger\'s shoes. All the better, Pico\'s trigger finger was getting a little cramped anyway.'; story.pro1.text = 'Always has fresh attacks'; story.pro2.text = 'Balanced'; story.con1.text = 'No projectile of his own'; story.con2.text = 'Can\'t control transformation'; } else { if (storyID == 11) { story.storyDescription.text = 'Nothing in Hank\'s world made sense, so when he found himself surrounded by the fierce inhabitants of the Newgrounds world, he didn\'t even skip a beat. He just kept doing what he does best.'; story.pro1.text = 'consecutive parries = bonuses'; story.pro2.text = 'Bidirectional crouch attacks'; story.con1.text = 'Parries don\'t stun'; story.con2.text = 'Overall slow'; } else { if (storyID == 13) { story.storyDescription.text = 'Cordially invited to Free Ice Cream Day in the realm of Newgrounds, Fancy Pants Man couldn\'t help but grab the nearest portal over. But he\'ll quickly discover that Newgrounds is not a land of niceties or free ice cream.'; story.pro1.text = 'Very high hp'; story.pro2.text = 'Long reach'; story.con1.text = 'Slow recovery'; story.con2.text = 'Spastic control'; } } } } } } } } } } } } } stop(); maxSelect = 7; charSelect = new Array(); charSelect = [0, 1, 2, 3, 4]; teamSelect = new Array(); teamSelect = [0, 1, 2, 0, 0]; charNames = new Array(); charNames = ['', 'Alloy', 'Pico', 'P-Bot', 'Nene', 'S\'asshole', 'Salad Fingers', 'Piconjo', 'Tankman', 'Alien Hominid', 'Convict', 'Hank', 'Henchman', 'Fancy Pants']; } button 4217 { on (release) { if (_currentframe == 49) { _root.playSoundOnce('menu', 'menu-change'); play(); } } } movieClip 4220 { } button 4237 { on (release) { getURL('http://www.newgrounds.com/portal/view/177897', '_blank'); } } button 4238 { on (release) { getURL('http://www.newgrounds.com/portal/view/92585', '_blank'); } } button 4245 { on (release) { getURL('http://www.newgrounds.com/portal/view/310349', '_blank'); } } button 4246 { on (release) { getURL('http://www.newgrounds.com/portal/view/191815', '_blank'); } } button 4247 { on (release) { getURL('http://www.newgrounds.com/portal/view/153348', '_blank'); } } button 4248 { on (release) { getURL('http://www.newgrounds.com/portal/view/310296', '_blank'); } } button 4251 { on (release) { getURL('http://www.newgrounds.com/portal/view/310005', '_blank'); } } button 4253 { on (release) { getURL('http://www.newgrounds.com/portal/view/157527', '_blank'); } } button 4256 { on (release) { getURL('http://www.newgrounds.com/portal/view/311761', '_blank'); } } button 4258 { on (release) { getURL('http://www.newgrounds.com/collection/saladfingers.html', '_blank'); } } button 4263 { on (release) { getURL('http://www.newgrounds.com/portal/view/205774', '_blank'); } } button 4264 { on (release) { getURL('http://www.newgrounds.com/portal/view/176885', '_blank'); } } button 4265 { on (release) { getURL('http://www.newgrounds.com/portal/view/202503', '_blank'); } } button 4266 { on (release) { getURL('http://www.newgrounds.com/portal/view/230671', '_blank'); } } button 4268 { on (release) { getURL('http://www.newgrounds.com/collection/tankmen.html', '_blank'); } } button 4274 { on (release) { getURL('http://www.newgrounds.com/portal/view/59593', '_blank'); } } button 4275 { on (release) { getURL('http://www.alienhominid.com', '_blank'); } } button 4276 { on (release) { getURL('http://www.newgrounds.com/portal/view/107995', '_blank'); } } button 4278 { on (release) { getURL('http://www.newgrounds.com/portal/view/310408', '_blank'); } } button 4280 { on (release) { getURL('http://www.newgrounds.com/collection/madness', '_blank'); } } button 4282 { on (release) { getURL('http://www.newgrounds.com/portal/view/118826', '_blank'); } } button 4284 { on (release) { getURL('http://www.newgrounds.com/collection/madnessday2007.html', '_blank'); } } button 4286 { on (release) { getURL('http://www.newgrounds.com/portal/view/301341', '_blank'); } } button 4288 { on (release) { getURL('http://www.newgrounds.com/portal/view/420606', '_blank'); } } movieClip 4289 { } button 4290 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 1; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4291 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 2; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4292 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 3; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4293 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 4; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4294 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 5; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4295 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 6; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4296 { on (press) { if (port7._currentframe < 11) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 7; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } } button 4297 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 8; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4298 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 9; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4299 { on (press) { if (port10._currentframe < 11) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 10; portraitHighlight._x = -291 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } } button 4300 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 13; portraitHighlight._x = -295 + (_root.charSelect[1] - 2) * 49; _root.displayStory(_root.charSelect[1]); } } button 4301 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 11; portraitHighlight._x = -292.5 + (_root.charSelect[1] - 1) * 49; _root.displayStory(_root.charSelect[1]); } } button 4302 { on (release) { _root.playSoundOnce('menu', 'shotgun'); goAhead = true; _root.playMode = 1; _root.levelID = 0; _root.teamSelect[1] = 1; gotoAndPlay(51); } } movieClip 4303 { frame 31 { _root.charSelect[1] = 1; i = 1; while (i <= 13) { if (i == 12) { } else { this['port' + i].gotoAndStop(i); } ++i; } if (!_root.preserveData.unlockPiconjo) { this.port7.gotoAndStop(15); } if (!_root.preserveData.unlockConvict) { this.port10.gotoAndStop(16); } } instance bigPortrait of movieClip 582 { onClipEvent (load) { stop(); } } instance appearances of movieClip 4289 { onClipEvent (load) { stop(); } } frame 49 { stop(); goAhead = false; i = 1; while (i <= 13) { if (!_root.preserveData.storyCompleted[i]) { this['cm' + i]._visible = false; } ++i; } } frame 70 { if (goAhead) { _root.gotoAndStop(3); } else { _root.gotoAndStop(2); } } } button 4322 { on (release) { if (_currentframe == 47) { _root.playSoundOnce('menu', 'menu-change'); play(); } } } movieClip 4353 { } movieClip 4361 { } button 4376 { on (release) { _parent['charNameText' + this.id].text = 'HENCHMAN'; gotoAndStop(12); } } movieClip 4379 { } button 4388 { on (press) { _root.playSoundOnce('menu', 'miss1'); gotoAndStop(4); } } button 4392 { on (press) { _root.playSoundOnce('menu', 'miss1'); gotoAndStop(5); } } button 4396 { on (press) { _root.playSoundOnce('menu', 'miss1'); gotoAndStop(6); } } button 4397 { on (press) { i = this.id + 1; while (i <= 4) { if (_parent['type' + i]._currentframe == 1) { _parent['type' + i].gotoAndStop(2); } ++i; } i = this.id - 1; while (i >= 2) { if (_parent['type' + i]._currentframe == 3) { _parent['type' + i].gotoAndStop(2); } --i; } _root.playSoundOnce('menu', 'hit1'); gotoAndStop(2); } } button 4398 { on (press) { if (this.id > 2) { _parent.multipWarning._visible = true; } i = this.id - 1; while (i >= 2) { _parent['type' + i].gotoAndStop(1); --i; } _root.playSoundOnce('menu', 'hit1'); gotoAndStop(1); } } button 4399 { on (press) { i = this.id + 1; while (i <= 4) { _parent['type' + i].gotoAndStop(3); ++i; } _root.playSoundOnce('menu', 'miss1'); gotoAndStop(3); } } movieClip 4401 { } button 4405 { on (press) { _root.playSoundOnce('menu', 'menu-change'); _parent['skullCross' + id].gotoAndStop(1); } } button 4408 { on (press) { _root.playSoundOnce('menu', 'menu-change'); _parent['skullCross' + id].gotoAndStop(2); } } button 4411 { on (press) { _root.playSoundOnce('menu', 'menu-change'); _parent['skullCross' + id].gotoAndStop(3); } } button 4414 { on (press) { _root.playSoundOnce('menu', 'menu-change'); _parent['skullCross' + id].gotoAndStop(4); } } movieClip 4415 { } movieClip 4417 { } movieClip 4422 { } button 4425 { on (release) { _root.playSoundOnce('menu', 'menu-change'); if (charDisplay1._currentframe == 1) { charDisplay1.gotoAndStop(charDisplay1._totalframes); } else { charDisplay1.prevFrame(); } if (charDisplay1._currentframe == 7 && !_root.preserveData.unlockPiconjo || charDisplay1._currentframe == 10 && !_root.preserveData.unlockConvict || charDisplay1._currentframe == 12) { charDisplay1.prevFrame(); } charNameText1.text = _root.charNames[charDisplay1._currentframe]; } } button 4426 { on (release) { _root.playSoundOnce('menu', 'menu-change'); if (charDisplay1._currentframe == charDisplay1._totalframes) { charDisplay1.gotoAndStop(1); } else { charDisplay1.nextFrame(); } if (charDisplay1._currentframe == 7 && !_root.preserveData.unlockPiconjo || charDisplay1._currentframe == 10 && !_root.preserveData.unlockConvict || charDisplay1._currentframe == 12) { charDisplay1.nextFrame(); } charNameText1.text = _root.charNames[charDisplay1._currentframe]; } } button 4427 { on (release) { _root.playSoundOnce('menu', 'menu-change'); if (charDisplay2._currentframe == 1) { charDisplay2.gotoAndStop(charDisplay2._totalframes); } else { charDisplay2.prevFrame(); } if (charDisplay2._currentframe == 7 && !_root.preserveData.unlockPiconjo || charDisplay2._currentframe == 10 && !_root.preserveData.unlockConvict || charDisplay2._currentframe == 12) { charDisplay2.prevFrame(); } charNameText2.text = _root.charNames[charDisplay2._currentframe]; } } button 4428 { on (release) { _root.playSoundOnce('menu', 'menu-change'); if (charDisplay2._currentframe == charDisplay2._totalframes) { charDisplay2.gotoAndStop(1); } else { charDisplay2.nextFrame(); } if (charDisplay2._currentframe == 7 && !_root.preserveData.unlockPiconjo || charDisplay2._currentframe == 10 && !_root.preserveData.unlockConvict || charDisplay2._currentframe == 12) { charDisplay2.nextFrame(); } charNameText2.text = _root.charNames[charDisplay2._currentframe]; } } button 4429 { on (release) { _root.playSoundOnce('menu', 'menu-change'); if (charDisplay3._currentframe == 1) { charDisplay3.gotoAndStop(charDisplay3._totalframes); } else { charDisplay3.prevFrame(); } if (charDisplay3._currentframe == 7 && !_root.preserveData.unlockPiconjo || charDisplay3._currentframe == 10 && !_root.preserveData.unlockConvict || charDisplay3._currentframe == 12) { charDisplay3.prevFrame(); } charNameText3.text = _root.charNames[charDisplay3._currentframe]; } } button 4430 { on (release) { _root.playSoundOnce('menu', 'menu-change'); if (charDisplay3._currentframe == charDisplay3._totalframes) { charDisplay3.gotoAndStop(1); } else { charDisplay3.nextFrame(); } if (charDisplay3._currentframe == 7 && !_root.preserveData.unlockPiconjo || charDisplay3._currentframe == 10 && !_root.preserveData.unlockConvict || charDisplay3._currentframe == 12) { charDisplay3.nextFrame(); } charNameText3.text = _root.charNames[charDisplay3._currentframe]; } } button 4431 { on (release) { _root.playSoundOnce('menu', 'menu-change'); if (charDisplay4._currentframe == 1) { charDisplay4.gotoAndStop(charDisplay4._totalframes); } else { charDisplay4.prevFrame(); } if (charDisplay4._currentframe == 7 && !_root.preserveData.unlockPiconjo || charDisplay4._currentframe == 10 && !_root.preserveData.unlockConvict || charDisplay4._currentframe == 12) { charDisplay4.prevFrame(); } charNameText4.text = _root.charNames[charDisplay4._currentframe]; } } button 4432 { on (release) { _root.playSoundOnce('menu', 'menu-change'); if (charDisplay4._currentframe == charDisplay4._totalframes) { charDisplay4.gotoAndStop(1); } else { charDisplay4.nextFrame(); } if (charDisplay4._currentframe == 7 && !_root.preserveData.unlockPiconjo || charDisplay4._currentframe == 10 && !_root.preserveData.unlockConvict || charDisplay4._currentframe == 12) { charDisplay4.nextFrame(); } charNameText4.text = _root.charNames[charDisplay4._currentframe]; } } button 4435 { on (release) { if (type2._currentframe == 3) { type2.gotoAndStop(2); return undefined; } _root.preserveData.numPlayers = 1; i = 2; while (i <= 4) { if (this['type' + i]._currentframe == 1) { ++_root.preserveData.numPlayers; } ++i; } _root.playMode = 2; _root.playSoundOnce('menu', 'shotgun'); goAhead = true; curChar = 1; _root.arenaSelect = levelInfoDisplay._currentframe - 1; _root.charSelect = [0, 0, 0, 0, 0]; _root.teamSelect = [0, 0, 0, 0, 0]; teamMap = new Array(); teamMap = [0, 0, 0, 0, 0]; curTeam = 0; chi = 1; while (chi <= 4) { _root.charSelect[curChar] = this['charDisplay' + chi]._currentframe; if (chi < 3 || this['type' + chi]._currentframe != 3) { if (member(this['skullCross' + chi]._currentframe, teamMap) > 0) { _root.teamSelect[curChar] = _root.teamSelect[member(this['skullCross' + chi]._currentframe, teamMap)]; teamMap[chi] = this['skullCross' + chi]._currentframe; } else { ++curTeam; _root.teamSelect[curChar] = curTeam; teamMap[chi] = this['skullCross' + chi]._currentframe; } ++curChar; } else {} ++chi; } if (curTeam <= 1) { utWarning._visible = true; } else { _root.preserveData.lastVersusSetup = [0, charDisplay1._currentframe, charDisplay2._currentframe, charDisplay3._currentframe, charDisplay4._currentframe, skullCross1._currentframe, skullCross2._currentframe, skullCross3._currentframe, skullCross4._currentframe, type2._currentframe, type3._currentframe, type4._currentframe]; _root.gotoAndStop(3); } } } movieClip 4438 { } button 4444 { on (press) { _visible = false; } } movieClip 4454 { } movieClip 4455 { frame 35 { if (_root.preserveData.lastVersusSetup.length > 0) { charNameText1.text = _root.charNames[_root.preserveData.lastVersusSetup[1]]; charNameText2.text = _root.charNames[_root.preserveData.lastVersusSetup[2]]; charNameText3.text = _root.charNames[_root.preserveData.lastVersusSetup[3]]; charNameText4.text = _root.charNames[_root.preserveData.lastVersusSetup[4]]; } } instance of movieClip 4353 { onClipEvent (load) { gotoAndStop(1); } } instance charDisplay1 of movieClip 4379 { onClipEvent (load) { this.id = 1; if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[1]); charNameText.text = _parent.charNames[_root.preserveData.lastVersusSetup[1]]; } else { gotoAndStop(1); } } } instance charDisplay2 of movieClip 4379 { onClipEvent (load) { this.id = 2; if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[2]); charNameText.text = _parent.charNames[_root.preserveData.lastVersusSetup[2]]; } else { gotoAndStop(2); } } } instance charDisplay3 of movieClip 4379 { onClipEvent (load) { this.id = 3; if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[3]); charNameText.text = _parent.charNames[_root.preserveData.lastVersusSetup[3]]; } else { gotoAndStop(3); } } } instance charDisplay4 of movieClip 4379 { onClipEvent (load) { this.id = 4; if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[4]); charNameText.text = _parent.charNames[_root.preserveData.lastVersusSetup[4]]; } else { gotoAndStop(4); } } } instance type2 of movieClip 4401 { onClipEvent (load) { this.id = 2; if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[9]); } else { gotoAndStop(2); } } onClipEvent (enterFrame) { if (this._currentframe > 2 && !this.hitTest(_root._xmouse, _root._ymouse, false)) { gotoAndStop(this._currentframe - 3); } } } instance type4 of movieClip 4401 { onClipEvent (load) { this.id = 4; if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[11]); } else { gotoAndStop(2); } } onClipEvent (enterFrame) { if (this._currentframe > 2 && !this.hitTest(_root._xmouse, _root._ymouse, false)) { gotoAndStop(this._currentframe - 3); } } } instance of movieClip 4415 { onClipEvent (load) { id = 1; } } instance skullCross1 of movieClip 4417 { onClipEvent (load) { if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[5]); } else { gotoAndStop(1); } } } instance of movieClip 4415 { onClipEvent (load) { id = 2; } } instance skullCross2 of movieClip 4417 { onClipEvent (load) { if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[6]); } else { gotoAndStop(2); } } } instance of movieClip 4415 { onClipEvent (load) { id = 3; } } instance skullCross3 of movieClip 4417 { onClipEvent (load) { if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[7]); } else { gotoAndStop(3); } } } instance of movieClip 4415 { onClipEvent (load) { id = 4; } } instance skullCross4 of movieClip 4417 { onClipEvent (load) { if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[8]); } else { gotoAndStop(4); } } } instance type3 of movieClip 4401 { onClipEvent (load) { this.id = 3; if (_root.preserveData.lastVersusSetup.length > 0) { gotoAndStop(_root.preserveData.lastVersusSetup[10]); } else { gotoAndStop(2); } } onClipEvent (enterFrame) { if (this._currentframe > 2 && !this.hitTest(_root._xmouse, _root._ymouse, false)) { gotoAndStop(this._currentframe - 3); } } } frame 41 { function displayInfo() { if (levelDisplay == 1) { levelName.text = 'THE PORTAL'; levelDescription.text = 'Newgrounds\' own user-powered crap filter.'; } else { if (levelDisplay == 2) { levelName.text = 'ANYWHERE, USA'; levelDescription.text = 'Alien Hominid\'s landing site and the root of his entire ordeal.'; } else { if (levelDisplay == 3) { levelName.text = 'THE JUNKYARD'; levelDescription.text = 'Alloy\'s stomping grounds. ASS-stomping grounds.'; } else { if (levelDisplay == 4) { levelName.text = 'PICONJO MANOR'; levelDescription.text = 'Piconjo\'s clifftop estate where he broods and plots against tweenimation.'; } else { if (levelDisplay == 5) { levelName.text = 'JAPANESE GARDEN'; levelDescription.text = 'A beautiful battleground ready to be dirtied up by piss and blood.'; } else { if (levelDisplay == 6) { levelName.text = 'PICO\'S SCHOOL'; levelDescription.text = 'Return to the blood-stained site of Pico\'s first call to action.'; } else { if (levelDisplay == 7) { levelName.text = 'NENE\'S STORE'; levelDescription.text = 'Spar in a corner store handed down through three generations.'; } else { if (levelDisplay == 8) { levelName.text = 'THE MEAT LOCKER'; levelDescription.text = 'All the rusty hooks and casual blood stains Salad Fingers could ever dream of.'; } else { if (levelDisplay == 9) { levelName.text = 'WARTORN'; levelDescription.text = 'Knock some teeth out on soil that\'s no stranger to bloodshed.'; } else { if (levelDisplay == 10) { levelName.text = 'PADDED CELL'; levelDescription.text = 'A room projecting Convict\'s twisted psyche, constantly evolving as an arena.'; } else { if (levelDisplay == 11) { levelName.text = 'TRAINING ROOM'; levelDescription.text = 'Boring to some. To others, pure combat without interference or distraction.'; } else { if (levelDisplay == 12) { levelName.text = 'NEVADA'; levelDescription.text = 'Piles of henchmen lay dead in a stark building, somewhere in Nevada.'; } } } } } } } } } } } } } levelName.text = 'THE PORTAL'; levelDescription.text = 'Newgrounds\' own user-powered crap filter.'; } instance levelInfoDisplay of movieClip 4353 { onClipEvent (load) { gotoAndStop(2); } onClipEvent (mouseDown) { if (_parent.rightArrow.hitTest(_root._xmouse, _root._ymouse, true)) { _root.playSoundOnce('menu', 'menu-change'); do { nextFrame(); if (this._currentframe == this._totalframes) { this.gotoAndStop(2); } } while (!_root.preserveData.unlockJunkyard && this._currentframe == 4 || !_root.preserveData.unlockPaddedCell && this._currentframe == 11 || !_root.preserveData.unlockTrainingRoom && this._currentframe == 12); } else { if (_parent.leftArrow.hitTest(_root._xmouse, _root._ymouse, true)) { _root.playSoundOnce('menu', 'menu-change'); do { prevFrame(); if (this._currentframe == 1) { this.gotoAndStop(this._totalframes - 1); } } while (!_root.preserveData.unlockJunkyard && this._currentframe == 4 || !_root.preserveData.unlockPaddedCell && this._currentframe == 11 || !_root.preserveData.unlockTrainingRoom && this._currentframe == 12); } } _parent.levelDisplay = this._currentframe - 1; _parent.displayInfo(); } } instance utWarning of movieClip 4438 { onClipEvent (enterFrame) { if (_visible && this.hitTest(_root._xmouse, _root._ymouse, true)) { this._visible = false; } } onClipEvent (load) { _visible = false; } } frame 47 { function member(num, arr) { if (arr.length > 0) { for (srch in arr) { if (arr[srch] == num) { return srch; } } } return 0; } stop(); goAhead = false; } instance multipWarning of movieClip 4454 { onClipEvent (load) { _visible = false; } } frame 65 { if (goAhead) { _root.gotoAndStop(3); } else { _root.gotoAndStop(2); } } } movieClip 4473 { frame 18 { _root.playMode = 5; _root.gotoAndStop(3); } } frame 12 { function displayStory(storyID) { survival.charName.text = charNames[storyID]; survival.bigPortrait.gotoAndStop(storyID); if (storyID == 1) { survival.pro1.text = 'Fast attacks overall'; survival.pro2.text = 'Versatile weapon pickup'; survival.con1.text = 'Short-range attacks'; survival.con2.text = 'Below-average health'; } else { if (storyID == 2) { survival.pro1.text = 'High aerial attack damage'; survival.pro2.text = 'Above-average health'; survival.con1.text = 'Poor crouch attacks'; survival.con2.text = 'Short-range attacks overall'; } else { if (storyID == 3) { survival.pro1.text = 'Excellent reach'; survival.pro2.text = 'Excellent juggles'; survival.con1.text = 'Slow attacks'; survival.con2.text = 'Large target'; } else { if (storyID == 4) { survival.pro1.text = 'Strong attacks overall'; survival.pro2.text = 'High health'; survival.con1.text = 'Very slow air attacks'; survival.con2.text = 'Slow attacks overall'; } else { if (storyID == 5) { survival.pro1.text = 'Strong attacks overall'; survival.pro2.text = 'Great reach'; survival.con1.text = 'Slow attacks overall'; survival.con2.text = 'Weak projectile'; } else { if (storyID == 6) { survival.pro1.text = 'Incredible reach'; survival.pro2.text = 'Good damage'; survival.con1.text = 'Very slow'; survival.con2.text = 'Low health'; } else { if (storyID == 7) { survival.pro1.text = 'Strong attacks overall'; survival.pro2.text = 'Good balance of traits'; survival.con1.text = 'Slow attacks overall'; survival.con2.text = 'Poor projectile'; } else { if (storyID == 8) { survival.pro1.text = 'Some very powerful attacks'; survival.pro2.text = 'Some very stunning attacks'; survival.con1.text = 'Tricky precision attacks'; survival.con2.text = 'Somewhat slow'; } else { if (storyID == 9) { survival.pro1.text = 'Wide attack range'; survival.pro2.text = 'Balance of power / speed'; survival.con1.text = 'Some slow & weak attacks'; survival.con2.text = 'Mediocre health'; } else { if (storyID == 10) { survival.pro1.text = 'Always has fresh attacks'; survival.pro2.text = 'Balanced'; survival.con1.text = 'No projectile of his own'; survival.con2.text = 'Can\'t control transformation'; } else { if (storyID == 11) { survival.pro1.text = 'consecutive parries = bonuses'; survival.pro2.text = 'Bidirectional crouch attacks'; survival.con1.text = 'Parries don\'t stun'; survival.con2.text = 'Overall slow'; } else { if (storyID == 13) { survival.pro1.text = 'Very high hp'; survival.pro2.text = 'Long reach'; survival.con1.text = 'Slow recovery'; survival.con2.text = 'Spastic control'; } } } } } } } } } } } } } charNames = new Array(); charNames = ['', 'Alloy', 'Pico', 'P-Bot', 'Nene', 'S\'asshole', 'Salad Fingers', 'Piconjo', 'Tankman', 'Alien Hominid', 'Convict', 'Hank', 'Henchman', 'Fancy Pants']; } button 4492 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 1; portraitHighlight._x = -292.9 + 54 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[1]; } } button 4493 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 2; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[2]; } } button 4494 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 3; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[3]; } } button 4495 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 4; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[4]; } } button 4496 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 5; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[5]; } } button 4497 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 6; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[6]; } } button 4498 { on (press) { if (port7._currentframe < 11) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 7; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[7]; } } } button 4499 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 8; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[8]; } } button 4500 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 9; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[9]; } } button 4501 { on (press) { if (port10._currentframe < 11) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 10; portraitHighlight._x = -291.5 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[10]; } } } button 4502 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 13; portraitHighlight._x = -295 + 49 * (_root.charSelect[1] - 2); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[13]; } } button 4503 { on (press) { _root.playSoundOnce('menu', 'menu-press'); _root.charSelect[1] = 11; portraitHighlight._x = -293 + 49 * (_root.charSelect[1] - 1); _root.displayStory(_root.charSelect[1]); recordChar.text = _root.preserveData.survivalRecords[11]; } } button 4515 { on (release) { _root.playSoundOnce('menu', 'shotgun'); goAhead = true; _root.charSelect[2] = 1; _root.teamSelect = [0, 1, 2]; _root.arenaSelect = 1; _root.recentSpawnChar = 1; _root.survivalKills = 0; gotoAndPlay(51); } } movieClip 4516 { frame 31 { _root.charSelect[1] = 1; i = 1; while (i <= 13) { if (i == 12) { } else { this['port' + i].gotoAndStop(i); } ++i; } if (!_root.preserveData.unlockPiconjo) { this.port7.gotoAndStop(15); } if (!_root.preserveData.unlockConvict) { this.port10.gotoAndStop(16); } } instance bigPortrait of movieClip 582 { onClipEvent (load) { stop(); } } frame 49 { stop(); goAhead = false; currentBest = 0; i = 1; while (i <= 11) { if (_root.preserveData.survivalRecords[i] > currentBest) { currentBest = _root.preserveData.survivalRecords[i]; } ++i; } recordChar.text = _root.preserveData.survivalRecords[1]; recordAll.text = currentBest; } frame 70 { if (goAhead) { _root.gotoAndStop(3); } else { _root.gotoAndStop(2); } } } frame 13 { _root._x = 0; _root._y = 0; _root._xscale = 100; _root._yscale = 100; if (_root.preserveData.playMode != 2) { _root.preserveData.numPlayers = 1; } _root.preserveData.playMode = _root.playMode; _root.preserveData.levelID = _root.levelID; _root.preserveData.preserveData = true; _root.preserveData.saveAll(); for (ali in _root) { if (!_root[ali].preserveData) { _root[ali].removeMovieClip(); } if (!_root[ali].preserveData && !_root[ali] == undefined) { _root[ali].unloadMovie(); } } _root.onEnterFrame = null; delete _root.onEnterFrame; _root.playMode = _root.preserveData.playMode; _root.levelID = _root.preserveData.levelID; _root._x = 0; _root._y = 0; if (_root.preserveData.playMode == undefined) { _root.gotoAndStop(2); } else { if (_root.preserveData.playMode == 6) { _root.playMode = 3; _root.preserveData.playMode = 3; _root.gotoAndStop(8); } else { if (_root.playMode >= 1 && _root.playMode <= 4 || _root.playMode == 5 && _root.preserveData.restartTraining) { _root.gotoAndStop(3); } else { _root.gotoAndStop(2); } } } } movieClip 4524 { frame 1 { stopAllSounds(); } } movieClip 4527 tankFG { } movieClip 4548 cellFace { } movieClip 4560 cellHand { } movieClip 4567 cellSpikes { } movieClip 4577 bloodSpurt2 { } movieClip 4580 { } button 4612 { on (press) { gotoAndStop(12); } } movieClip 4626 endingReport { } movieClip 4645 { frame 35 { stop(); } } movieClip 4653 { frame 38 { stop(); } } movieClip 4654 explosion { } movieClip 4656 { } movieClip 4660 { } movieClip 4661 { } movieClip 4662 lifeBar { } movieClip 4670 parrySpark { } movieClip 4680 blockSparks { } movieClip 4688 convictChange { } movieClip 4704 { } movieClip 4708 shotgunFlare { } movieClip 4727 smokeStomp { } movieClip 4736 bloodSpurt1 { } movieClip 4739 { } movieClip 4742 lightning { } movieClip 4754 { } movieClip 4755 redSparks { } movieClip 4763 sparks { } movieClip 4766 { } movieClip 4772 { } button 4773 { on (press) { _root.paused = false; _root.getReady.play(); _root.pauseFor = 50; this.removeMovieClip(); } } movieClip 4776 preambleReport { } movieClip 4787 bigSparks { } movieClip 4824 { } movieClip 4825 { } movieClip 4826 segs { instance segIn of movieClip 4824 { onClipEvent (load) { stop(); } } instance segIn of movieClip 4825 { onClipEvent (load) { stop(); } } } movieClip 4833 { } button 4839 { on (release) { _root.gotoAndStop(13); } } button 4840 { on (release) { _root.playMode = undefined; _root.preserveData.playMode = undefined; _root.gotoAndStop(13); } } movieClip 4869 survivalReport { } movieClip 4876 trainingPanel { } // unknown tag 88 length 153 movieClip 4888 compactor { frame 1 { _root.playSoundOnce('compactor2', 'hydraulic'); } frame 5 { _root.playSoundOnce('compactor', 'heavyStomp'); } } movieClip 4891 pagodaFG { } movieClip 4894 { frame 1 { if (_currentframe == 1) { stop(); } } frame 9 { if (_currentframe == 9) { gotoAndStop(1); } } } movieClip 4895 pagodaBranch { } movieClip 4902 { } movieClip 4910 { frame 18 { _root.playSoundOnce('light', 'badWiring'); } frame 37 { _root.playSoundOnce('light', 'badWiring'); } frame 40 { _root.playSoundOnce('light', ''); } frame 117 { _root.playSoundOnce('light', 'badWiring'); } } movieClip 4911 storeFG { } movieClip 4915 { } movieClip 4927 { } movieClip 4928 meatConveyor { instance of movieClip 4915 { onClipEvent (load) { gotoAndPlay(Math.ceil(_totalframes / 5) * 1); } } instance of movieClip 4915 { onClipEvent (load) { gotoAndPlay(Math.ceil(_totalframes / 5) * 2); } } instance of movieClip 4915 { onClipEvent (load) { gotoAndPlay(Math.ceil(_totalframes / 5) * 3); } } instance of movieClip 4915 { onClipEvent (load) { gotoAndPlay(Math.ceil(_totalframes / 5) * 4); } } frame 127 { _root.playSoundOnce('level', 'deathPico'); } frame 329 { _root.playSoundOnce('level', 'deathPico'); } } frame 17 { gotoAndStop(2); }




http://swfchan.com/23/113826/info.shtml
Created: 11/3 -2019 07:11:28 Last modified: 11/3 -2019 07:11:28 Server time: 22/12 -2024 19:56:40