Combined Code
frame 1 {
_focusrect = false;
Stage.showMenu = false;
swordCount = new Array();
swordCount = [1, 0, 0, 0, 0, 0, 0];
boobCount = 0;
medalCount = new Array();
medalCount = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
movieClip 21 {
}
button 28 {
on (keyPress '<Left>') {
xx -= 5;
}
on (keyPress '<Right>') {
xx += 5;
}
on (keyPress '<Down>') {
yy += 5;
}
on (keyPress '<Up>') {
yy -= 5;
}
}
movieClip 30 {
}
movieClip 31 {
frame 1 {
function damage() {
_root.dam.duplicateMovieClip('bob' + b, b);
++b;
bb = 'bob' + (b - 1);
tellTarget (''_root.' + bb') {
_x = _root.bb._x + 70;
_y = _root.bb._y;
}
}
function go() {
_x = _x + xx;
_y = _y + yy;
_rotation = _rotation + (xx + yy);
yy *= 0.97;
xx *= 0.97;
if (_x < 0) {
xx = 1;
_x = 0;
}
if (_y < -20) {
yy = 1;
_y = -20;
}
if (_x > 720) {
xx = -1;
_x = 720;
}
if (_y > 420) {
yy = -1;
_y = 420;
}
if (xx > ms) {
xx = ms;
}
if (xx < -ms) {
xx = -ms;
}
if (yy > ms) {
yy = ms;
}
if (yy < -ms) {
yy = -ms;
}
if (xx > 0) {
_xscale = -100;
}
if (xx < 0) {
_xscale = 100;
}
if (_root.cc.cc.hitTest(this)) {
damage();
_root.cc.speed = 3;
if (_global.score > _global.hscore) {
_global.hscore = _global.score;
}
_global.score = 0;
_x = 550;
_y = 450;
yy = 0;
xx = 0;
_root.cc._x = 50;
_root.cc._y = 430;
_root.cc.xx = 2;
_root.cc.yy = -2;
}
}
xx = 0;
yy = 0;
ms = 10;
b = 0;
}
frame 4 {
go();
}
frame 5 {
go();
gotoAndPlay(4);
}
}
movieClip 34 {
}
movieClip 37 {
}
movieClip 40 {
}
movieClip 51 {
}
movieClip 53 {
frame 40 {
stop();
}
}
movieClip 63 {
}
button 64 {
on (release) {
startMovie();
}
}
button 65 {
on (release) {
startMovie();
_global.dir = 'forward';
}
}
movieClip 66 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v4;
if (v4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop('loaded');
}
return undefined;
}
}
dt = getTimer() - time;
time += dt;
frameAccum += dt;
var v3 = 0;
for (;;) {
if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break;
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
frameAccum -= FRAME_TIME;
v3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return undefined;
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof clip[childName] == 'movieclip') {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.fade.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.33333333333334;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
}
}
button 71 {
on (release) {
getURL('http://armorgames.com/', '_blank');
}
}
movieClip 75 {
frame 1 {
stop();
}
frame 10 {
if (_global.dir == 'forward') {
_root.play();
} else {
if (_global.dir == 'over') {
_root.gotoAndStop('gameover');
} else {
if (_global.dir == 'begin') {
_root.gotoAndStop(2);
} else {
if (_global.dir == 'credits' or _global.dir == 'gallery' or _global.dir == 'main' or _global.dir == 'play') {
_root.gotoAndStop(_global.dir);
} else {
_root.prevFrame();
}
}
}
}
}
}
frame 2 {
_global.sword = 'heaven';
_global.dif = 1;
}
movieClip 80 {
}
button 85 {
on (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
movieClip 88 {
frame 1 {
_root.stop();
gotoAndPlay(2);
}
frame 218 {
_root.nextFrame();
}
}
frame 3 {
stop();
}
frame 3 {
_quality = 'HIGH';
}
movieClip 92 {
}
movieClip 108 {
}
movieClip 114 {
frame 45 {
stop();
}
}
movieClip 116 {
}
movieClip 118 {
}
button 120 {
on (release) {
fade.play();
_global.dir = 'play';
}
}
button 121 {
on (release) {
fade.play();
_global.dir = 'gallery';
}
}
button 122 {
on (release) {
fade.play();
_global.dir = 'credits';
}
}
button 123 {
on (release) {
getURL('http://armorgames.com/', '_blank');
}
}
frame 4 {
if (!_root.medalCount[12]) {
_root.medal_popup.unlockMedal('Credits Guy');
_root.medalCount[12] = 1;
trace(_root.medalCount);
}
}
button 131 {
on (release) {
getURL('http://kupo707.deviantart.com', '_blank');
}
}
button 133 {
on (release) {
fade.play();
_global.dir = 'main';
}
}
movieClip 136 {
}
movieClip 140 {
}
movieClip 150 {
}
movieClip 151 {
}
movieClip 162 {
frame 1 {
gotoAndStop(random(10) + 2);
}
}
movieClip 164 {
}
movieClip 165 {
}
movieClip 166 {
}
movieClip 169 {
}
movieClip 171 {
}
movieClip 175 {
}
movieClip 177 {
}
movieClip 180 {
}
movieClip 182 {
}
movieClip 185 {
}
button 187 {
on (release) {
_parent.nextFrame();
}
}
button 188 {
on (release) {
_parent.prevFrame();
}
}
movieClip 189 {
}
movieClip 198 {
}
movieClip 207 {
}
movieClip 209 {
}
movieClip 215 {
}
movieClip 216 {
}
movieClip 220 {
}
movieClip 222 {
}
movieClip 224 {
}
movieClip 227 {
}
movieClip 231 {
}
movieClip 233 {
}
button 234 {
on (press) {
gotoAndPlay(2);
}
}
movieClip 235 {
frame 1 {
stop();
}
frame 17 {
_root.boobCount += 1;
if (_root.boobCount == 10) {
if (!_root.medalCount[13]) {
_root.medal_popup.unlockMedal('Pervert');
_root.medalCount[13] = 1;
trace(_root.medalCount);
}
}
}
}
movieClip 238 {
}
movieClip 243 {
}
movieClip 246 {
}
movieClip 250 {
}
movieClip 253 {
}
movieClip 254 {
}
movieClip 262 {
}
movieClip 269 {
}
movieClip 280 {
}
movieClip 294 {
}
movieClip 296 {
}
movieClip 298 {
}
movieClip 301 {
}
movieClip 302 {
}
movieClip 303 {
}
movieClip 308 {
}
movieClip 310 {
}
movieClip 314 {
}
movieClip 317 {
}
movieClip 324 {
}
movieClip 334 {
}
movieClip 336 {
}
movieClip 342 {
}
movieClip 343 {
}
movieClip 349 {
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 359 {
}
movieClip 362 {
}
movieClip 364 {
}
movieClip 365 {
}
movieClip 370 {
}
movieClip 372 {
}
movieClip 374 {
}
movieClip 377 {
}
movieClip 379 {
}
movieClip 381 {
}
movieClip 382 {
}
movieClip 390 {
}
movieClip 392 {
}
movieClip 394 {
}
movieClip 396 {
}
movieClip 398 {
}
movieClip 400 {
}
movieClip 402 {
}
movieClip 404 {
}
movieClip 406 {
}
movieClip 408 {
}
movieClip 445 {
}
movieClip 470 {
}
movieClip 473 {
}
movieClip 475 {
}
movieClip 479 {
}
movieClip 481 {
}
movieClip 484 {
}
movieClip 486 {
}
movieClip 488 {
}
movieClip 490 {
}
movieClip 492 {
}
movieClip 494 {
}
movieClip 496 {
}
movieClip 498 {
}
movieClip 500 {
}
movieClip 502 {
}
movieClip 505 {
}
movieClip 507 {
}
movieClip 512 {
}
movieClip 514 {
}
movieClip 518 {
}
movieClip 528 {
}
movieClip 558 {
}
movieClip 561 {
}
movieClip 571 {
}
movieClip 574 {
}
movieClip 576 {
}
movieClip 578 {
}
movieClip 580 {
}
movieClip 582 {
}
movieClip 584 {
}
movieClip 587 {
}
movieClip 589 {
}
movieClip 591 {
}
movieClip 594 {
}
movieClip 598 {
}
movieClip 600 {
}
movieClip 602 {
}
movieClip 604 {
}
movieClip 605 {
}
movieClip 637 {
frame 1 {
stop();
}
frame 34 {
if (!_root.medalCount[11]) {
_root.medal_popup.unlockMedal('Art Guy');
_root.medalCount[11] = 1;
trace(_root.medalCount);
}
}
}
frame 6 {
stop();
}
button 643 {
on (release) {
fade.play();
_global.dir = 'main';
}
}
button 644 {
on (release) {
fade.play();
_global.dir = 'forward';
}
}
frame 7 {
_global.money = 14000;
itemz1 = 0;
itemz2 = 0;
itemz3 = 0;
itemz4 = 0;
itemz5 = 0;
itemz6 = 0;
itemz7 = 0;
itemz8 = 0;
itemz9 = 0;
}
frame 7 {
stop();
}
button 648 {
on (release) {
fade.play();
_global.dir = 'back';
}
}
button 649 {
on (release) {
_global.dif = 0.8;
joo.gotoAndStop(2);
}
}
button 650 {
on (release) {
_global.dif = 1.2;
joo.gotoAndStop(3);
}
}
button 651 {
on (release) {
_global.dif = 1.4;
joo.gotoAndStop(4);
}
}
movieClip 652 {
frame 1 {
stop();
if (_global.dif == 1.4) {
gotoAndStop(4);
}
if (_global.dif == 0.8) {
gotoAndStop(2);
}
if (_global.dif == 1.2) {
gotoAndStop(3);
}
}
}
button 653 {
on (release) {
_global.dif = 1;
joo.gotoAndStop(1);
}
}
frame 8 {
stop();
}
frame 8 {
stop();
}
movieClip 658 {
}
button 659 {
on (release) {
if (_global.money >= 150) {
_global.money -= 150;
itemz1 += 1;
}
}
}
button 660 {
on (release) {
if (itemz1 >= 1) {
_global.money += 150;
itemz1 -= 1;
}
}
}
button 661 {
on (release) {
if (_global.money >= 350) {
_global.money -= 350;
itemz2 += 1;
}
}
}
button 662 {
on (release) {
if (itemz2 >= 1) {
_global.money += 350;
itemz2 -= 1;
}
}
}
button 663 {
on (release) {
if (_global.money >= 1000) {
_global.money -= 1000;
itemz3 += 1;
}
}
}
button 664 {
on (release) {
if (itemz3 >= 1) {
_global.money += 1000;
itemz3 -= 1;
}
}
}
button 665 {
on (release) {
if (_global.money >= 2200) {
_global.money -= 2200;
itemz4 += 1;
}
}
}
button 666 {
on (release) {
if (itemz4 >= 1) {
_global.money += 2200;
itemz4 -= 1;
}
}
}
button 667 {
on (release) {
if (_global.money >= 50) {
_global.money -= 50;
itemz5 += 1;
}
}
}
button 668 {
on (release) {
if (itemz5 >= 1) {
_global.money += 50;
itemz5 -= 1;
}
}
}
button 669 {
on (release) {
if (_global.money >= 1000) {
_global.money -= 1000;
itemz8 += 1;
}
}
}
button 670 {
on (release) {
if (itemz8 >= 1) {
_global.money += 1000;
itemz8 -= 1;
}
}
}
button 671 {
on (release) {
if (_global.money >= 300) {
_global.money -= 300;
itemz7 += 1;
}
}
}
button 672 {
on (release) {
if (itemz7 >= 1) {
_global.money += 300;
itemz7 -= 1;
}
}
}
button 673 {
on (release) {
if (_global.money >= 300) {
_global.money -= 300;
itemz6 += 1;
}
}
}
button 674 {
on (release) {
if (itemz6 >= 1) {
_global.money += 300;
itemz6 -= 1;
}
}
}
movieClip 682 {
}
movieClip 687 {
}
button 690 {
on (release) {
if (_global.money >= 600) {
_global.money -= 600;
itemz9 += 1;
}
}
}
button 691 {
on (release) {
if (itemz9 >= 1) {
_global.money += 600;
itemz9 -= 1;
}
}
}
movieClip 705 {
}
frame 9 {
stop();
}
frame 10 {
function nextBG() {
stop();
menu.stop();
pause = function () {
clearInterval(pause1);
play();
menu.play();
};
pause1 = setInterval(pause, 1500);
BG.play();
if (live[1]) {
P1.gotoAndPlay('run');
}
if (live[2]) {
P2.gotoAndPlay('run');
}
}
_global.help = 1;
}
frame 10 {
stopAllSounds();
}
frame 10 {
Playin = true;
}
frame 11 {
function hideButtons() {
B1._visible = false;
B2._visible = false;
B3._visible = false;
BP1._visible = false;
BP2._visible = false;
}
function showButtons() {
if (live[3] == 1) {
B1._visible = true;
}
if (live[4] == 1) {
B2._visible = true;
}
if (live[5] == 1) {
B3._visible = true;
}
}
function showButtons2() {
if (live[1] == 1 or _global.magic == 'water') {
BP1._visible = true;
}
if (live[2] == 1 or _global.magic == 'water') {
BP2._visible = true;
}
}
function randam() {
return Math.round(_global.damage * (1 + Math.random() / 10));
}
function damageNo() {
trace('damage: ' + damage);
_root.dam.duplicateMovieClip('bob' + b, b);
++b;
bb = 'bob' + (b - 1);
tellTarget (''_root.' + bb') {
_x = 0;
_y = 0;
damage = _root.P1.damage;
}
}
function hurt() {
p = 0;
if ((_global.T == 'P1' or _global.T == 'Pall') and live[1] == 1) {
P1.damage = randam();
tellTarget ('/P1') {
gotoAndPlay('hit');
}
}
if ((_global.T == 'P2' or _global.T == 'Pall') and live[2] == 1) {
P2.damage = randam();
tellTarget ('/P2') {
gotoAndPlay('hit');
}
}
if ((_global.T == 'T1' or _global.T == 'Tall') and live[3] == 1) {
T1.damage = randam();
tellTarget ('/T1') {
gotoAndPlay('hit');
}
}
if ((_global.T == 'T2' or _global.T == 'Tall') and live[4] == 1) {
T2.damage = randam();
tellTarget ('/T2') {
gotoAndPlay('hit');
}
}
if ((_global.T == 'T3' or _global.T == 'Tall') and live[5] == 1) {
T3.damage = randam();
tellTarget ('/T3') {
gotoAndPlay('hit');
}
}
}
function t1() {
_global.timer += 1;
trace('Up to: ' + _global.timer);
}
function t2() {
_global.timer -= 1;
trace('Down to: ' + _global.timer);
if (_global.timer == 0) {
_root.menu.play();
}
if (_global.timer < 0) {
trace('OVERFLOW');
_global.timer = 0;
}
}
function cheer() {
if (_global.user == 'P1') {
tellTarget ('/P1') {
gotoAndPlay('cheer');
}
}
if (_global.user == 'P2') {
tellTarget ('/P2') {
gotoAndPlay('cheer');
}
}
}
function ranplay() {
if (live[1] == 0 and live[2] == 0) {
return 0;
}
if (live[1] == 0) {
_global.T = 'P2';
} else {
if (live[2] == 0) {
_global.T = 'P1';
} else {
t = random(2);
if (t == 0) {
_global.T = 'P1';
}
if (t == 1) {
_global.T = 'P2';
}
}
}
}
function randomT() {
while (!false) {
u = random(3);
if (u == 0 and live[3]) {
_global.T = 'T1';
break;
}
if (u == 1 and live[4]) {
_global.T = 'T2';
break;
}
if (u == 2 and live[5]) {
_global.T = 'T3';
break;
}
}
}
if (itemz9 > 9) {
if (!_root.medalCount[15]) {
_root.medal_popup.unlockMedal('Terrorist');
_root.medalCount[15] = 1;
trace(_root.medalCount);
}
}
DamageCount = 0;
live = new Array();
live[1] = 1;
live[2] = 1;
live[3] = 1;
live[4] = 1;
live[5] = 0;
hideButtons();
_global.txtspeed = 'slow';
_global.sword = 'heaven';
_global.timer = 0;
_quality = 'MEDIUM';
_global.damage = 0;
_focusrect = false;
Stage.showMenu = false;
}
movieClip 718 {
frame 1 {
stop();
}
frame 34 {
stop();
}
frame 67 {
stop();
}
frame 100 {
stop();
}
frame 133 {
stop();
}
frame 166 {
stop();
}
frame 199 {
stop();
}
frame 232 {
stop();
}
frame 265 {
stop();
}
}
movieClip 722 {
}
movieClip 725 {
}
movieClip 728 {
}
movieClip 729 {
}
movieClip 731 {
}
movieClip 733 {
}
movieClip 739 {
}
movieClip 741 {
}
movieClip 743 {
}
movieClip 747 {
}
movieClip 749 {
}
movieClip 750 {
frame 1 {
gotoAndStop(_global.sword);
}
}
movieClip 751 {
}
movieClip 755 {
}
movieClip 757 {
}
movieClip 759 {
}
movieClip 761 {
}
movieClip 763 {
}
movieClip 764 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
po._visible = false;
se._visible = false;
if (_global.P1atk > 1) {
a1._visible = true;
a1._alpha = (_global.P1atk - 1) * 300;
}
if (_global.P1def > 1) {
b1._visible = true;
b1._alpha = (_global.P1def - 1) * 300;
}
if (_global.P1matk > 1) {
c1._visible = true;
c1._alpha = (_global.P1matk - 1) * 300;
}
if (_global.P1mdef > 1) {
d1._visible = true;
d1._alpha = (_global.P1mdef - 1) * 300;
}
if (_global.P1poison > 0) {
po._visible = true;
}
if (_global.P1seal > 0) {
se._visible = true;
}
}
symbols();
}
frame 29 {
symbols();
}
}
movieClip 774 {
frame 1 {
gotoAndStop(random(9) + 2);
}
}
movieClip 786 {
frame 1 {
gotoAndStop(random(20) + 2);
}
}
movieClip 801 {
}
movieClip 802 {
frame 1 {
gotoAndStop(random(25) + 1);
}
}
movieClip 818 {
frame 1 {
gotoAndStop(random(15) + 1);
}
}
movieClip 819 {
}
movieClip 820 {
frame 17 {
stop();
}
}
movieClip 822 {
frame 1 {
gotoAndStop(_global.magic);
}
}
movieClip 823 {
frame 24 {
stop();
}
}
movieClip 824 {
}
movieClip 834 {
frame 1 {
gotoAndStop(random(6) + 1);
}
}
movieClip 836 {
}
movieClip 837 {
}
movieClip 839 {
}
movieClip 840 {
}
movieClip 849 {
frame 1 {
gotoAndStop(_global.magic);
}
}
movieClip 855 {
}
movieClip 857 {
}
movieClip 859 {
}
movieClip 860 {
}
movieClip 866 {
}
movieClip 873 {
}
movieClip 898 {
}
movieClip 904 {
frame 1 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function damageNo() {
_root.dam.duplicateMovieClip('bob' + b, b);
(eval('_root.bob' + b))._x = _x - 320 + random(50);
(eval('_root.bob' + b))._y = _y + random(50);
(eval('_root.bob' + b)).damage = damage;
b += 2;
}
function heal() {
_root.heal.duplicateMovieClip('bob' + b, b);
(eval('_root.bob' + b))._x = _x - 200;
(eval('_root.bob' + b))._y = _y + 100;
(eval('_root.bob' + b)).cure = cure;
b += 2;
}
function getXY() {
X = (_root.X() - _root.coords[0] - 160) / 12;
Y = -(_root.coords[1] - _root.Y()) / 12;
}
q = 0;
b = 1;
}
frame 9 {
_root.t1();
}
frame 36 {
if (_global.command == 'windslash') {
_root.t2();
}
if (_global.sword == 'blood' and _global.command == 'windslash') {
gotoAndPlay('heal');
_global.cure = _global.damage / 2;
_global.magic = 'pot';
}
if (_global.sword == 'devil' and _global.command == 'windslash') {
_global.magic = 'ether';
gotoAndPlay('heal');
_global.cure = Math.round(_global.damage / 15);
}
}
frame 37 {
_root.t2();
}
frame 39 {
stop();
}
frame 44 {
k();
}
frame 45 {
if (_global.def1 == 1) {
damage = Math.round(damage / 2);
}
if (_global.def1 == 1 and _global.atype == 'p') {
damage = Math.round(damage / 4);
}
if (_global.atype == 'p') {
damage = Math.round(damage / _global.P1def / _global.P1def2);
} else {
damage = Math.round(damage / _global.P1mdef / _global.P1mdef2);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
_global.P1HP -= damage;
if (damage > 9999) {
if (!_root.medalCount[18]) {
_root.medal_popup.unlockMedal('Owned');
_root.medalCount[18] = 1;
trace(_root.medalCount);
}
}
_root.DamageCount += damage;
if (_root.DamageCount > 200000) {
if (!_root.medalCount[17]) {
_root.medal_popup.unlockMedal('Punching Bag');
_root.medalCount[17] = 1;
trace(_root.medalCount);
}
}
if (_global.P1HP <= 0) {
_global.P1HP = 0;
gotoAndPlay('die');
} else {
if (_global.def1 == 1) {
gotoAndPlay('defhit');
} else {
if (damage > 4000) {
gotoAndPlay('hit2');
}
}
}
}
frame 47 {
clearInterval(pause1);
}
frame 74 {
k();
_root.t2();
}
frame 133 {
k();
_root.t2();
}
frame 134 {
_root.t1();
}
frame 152 {
_global.def1 = 1;
}
frame 177 {
k();
_root.t2();
}
frame 183 {
_root.itemGet();
}
frame 221 {
_root.go = 1;
}
frame 222 {
k();
}
frame 223 {
cure = Math.round(_global.cure * (1 + Math.random(1) / 20));
if (_global.magic != 'ant' and _global.magic != 'ether' and _global.magic != 'maxether' and _global.magic != 'atkpot' and _global.magic != 'magpot') {
_global.P1HP += cure;
if (_global.P1HP > _global.P1HPmax) {
_global.P1HP = _global.P1HPmax;
}
} else {
if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') {
_global.P1MP += _global.cure;
if (_global.P1MP > _global.P1MPmax) {
_global.P1MP = _global.P1MPmax;
}
}
}
}
frame 224 {
if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') {
heal();
}
_root.t1();
}
frame 255 {
k();
if (_global.command == 'windslash' or _global.command == 'attack' or _global.command == 'legend' or _global.command == 'drain') {
_root.t2();
}
_root.t2();
}
frame 256 {
_root.t1();
}
frame 302 {
if (_global.magic == 'mog') {
_root.summons.gotoAndPlay(_global.magic);
} else {
_root.spells.gotoAndPlay(_global.magic);
}
}
frame 323 {
k();
}
frame 324 {
_root.live[1] = 0;
}
frame 362 {
stop();
_root.t2();
}
frame 363 {
_root.t1();
_root.live[1] = 1;
}
frame 364 {
if (_global.magic == 'revive') {
cure = Math.round(5700 * (1 + Math.random(1) / 10) * _global.P2matk);
} else {
cure = Math.round(3000 * (1 + Math.random(1) / 10));
}
_global.P1HP += cure;
if (_global.P1HP > _global.P1HPmax) {
_global.P1HP = _global.P1HPmax;
}
heal();
}
frame 371 {
_global.P1seal = 0;
_global.P1poison = 0;
}
frame 403 {
k();
_root.t2();
}
frame 405 {
getXY();
_root.t1();
}
frame 408 {
_global.damage = _global.P1atk * 5800 * _global.P1atk2;
_global.atype = 'p';
}
frame 415 {
run(X, Y);
}
frame 416 {
run(X, Y);
}
frame 417 {
run(X, Y);
}
frame 417 {
if (_global.sword == 'inferno') {
_global.magic = 'erupt';
}
if (_global.sword == 'heaven') {
_global.magic = 'seiken';
}
}
frame 418 {
run(X, Y);
}
frame 419 {
run(X, Y);
}
frame 420 {
run(X, Y);
}
frame 421 {
run(X, Y);
}
frame 422 {
run(X, Y);
}
frame 423 {
run(X, Y);
}
frame 424 {
run(X, Y);
}
frame 425 {
run(X, Y);
}
frame 426 {
run(X, Y);
}
frame 427 {
_root.hurt();
}
frame 429 {
X = -X;
Y = -Y;
}
frame 431 {
run(X, Y);
}
frame 432 {
run(X, Y);
}
frame 433 {
run(X, Y);
}
frame 434 {
run(X, Y);
}
frame 435 {
run(X, Y);
}
frame 436 {
run(X, Y);
}
frame 437 {
run(X, Y);
}
frame 438 {
run(X, Y);
}
frame 439 {
run(X, Y);
}
frame 440 {
run(X, Y);
}
frame 441 {
run(X, Y);
}
frame 442 {
run(X, Y);
}
frame 447 {
if (_global.sword == 'blood') {
_global.magic = 'pot';
gotoAndPlay('heal');
_global.cure = _global.damage / 2;
} else {
if (_global.sword == 'devil') {
_global.magic = 'ether';
gotoAndPlay('heal');
_global.cure = Math.round(_global.damage / 10);
} else {
k();
_root.t2();
}
}
}
frame 448 {
_root.t1();
}
frame 496 {
_root.items.gotoAndPlay(_global.magic);
}
frame 499 {
k();
}
frame 501 {
X = random(200) + 70;
X /= 12;
_root.t1();
}
frame 511 {
run(X);
}
frame 512 {
run(X);
}
frame 513 {
run(X);
}
frame 514 {
run(X);
}
frame 515 {
run(X);
}
frame 516 {
run(X);
}
frame 517 {
run(X);
}
frame 518 {
run(X);
}
frame 519 {
run(X);
}
frame 520 {
run(X);
}
frame 521 {
run(X);
}
frame 522 {
run(X);
}
frame 525 {
X = -X;
}
frame 527 {
run(X);
}
frame 528 {
run(X);
}
frame 529 {
run(X);
}
frame 530 {
run(X);
}
frame 531 {
run(X);
}
frame 532 {
run(X);
}
frame 533 {
run(X);
}
frame 534 {
run(X);
}
frame 535 {
run(X);
}
frame 536 {
run(X);
}
frame 537 {
run(X);
}
frame 538 {
run(X);
}
frame 543 {
k();
_root.t2();
}
frame 544 {
_root.t1();
}
frame 571 {
_global.atype = 'p';
_root.shake('small');
}
frame 581 {
_root.spells.gotoAndPlay(_global.magic);
}
frame 598 {
k();
}
frame 599 {
_root.t1();
_global.P1MP -= 33;
}
frame 615 {
if (_global.sword == 'inferno') {
_global.magic = 'erupt';
}
if (_global.sword == 'heaven') {
_global.magic = 'seiken';
}
}
frame 616 {
_global.damage = _global.P1atk * 3000 * _global.P1atk2;
_global.atype = 'p';
_global.T = 'Tall';
_root.hurt();
}
frame 632 {
_global.command = 'windslash';
}
frame 633 {
gotoAndPlay('intro');
}
frame 634 {
_root.t1();
}
frame 647 {
_global.sword = _global.magic;
}
frame 665 {
if (_global.sword == 'heaven') {
_global.Text = 2;
} else {
if (_global.sword == 'devil') {
_global.Text = 3;
} else {
if (_global.sword == 'stone') {
_global.Text = 5;
} else {
if (_global.sword == 'blood') {
_global.Text = 4;
} else {
if (_global.sword == 'inferno') {
_global.Text = 6;
} else {
if (_global.sword == 'soul') {
_global.Text = 8;
} else {
if (_global.sword == 'cross') {
_global.Text = 7;
}
}
}
}
}
}
}
_root.maintext.play();
}
frame 672 {
k();
_root.t2();
}
frame 673 {
getXY();
_root.t1();
_global.P1MP -= 22;
}
frame 682 {
X = random(150) + 120;
X /= 12;
}
frame 687 {
run(X, Y);
}
frame 688 {
run(X, Y);
}
frame 689 {
run(X, Y);
}
frame 690 {
run(X, Y);
}
frame 691 {
run(X, Y);
}
frame 692 {
run(X, Y);
}
frame 693 {
run(X, Y);
}
frame 694 {
run(X, Y);
}
frame 695 {
run(X, Y);
}
frame 696 {
run(X, Y);
}
frame 697 {
run(X, Y);
}
frame 698 {
run(X, Y);
}
frame 699 {
if (_global.sword == 'inferno') {
_global.magic = 'erupt';
}
if (_global.sword == 'heaven') {
_global.magic = 'seiken';
}
}
frame 700 {
_global.damage = _global.P1atk * 4200 * _global.P1atk2;
_global.atype = 'p';
if (_global.sword == 'blood') {
_global.damage *= 1.6;
}
_root.hurt();
}
frame 701 {
_global.magic = 'nil';
}
frame 701 {
X = -X;
Y = -Y;
}
frame 703 {
run(X, Y);
}
frame 704 {
run(X, Y);
}
frame 705 {
run(X, Y);
}
frame 706 {
run(X, Y);
}
frame 707 {
run(X, Y);
}
frame 708 {
run(X, Y);
}
frame 709 {
run(X, Y);
}
frame 710 {
run(X, Y);
}
frame 711 {
run(X, Y);
}
frame 712 {
run(X, Y);
}
frame 713 {
run(X, Y);
}
frame 714 {
run(X, Y);
}
frame 715 {
_global.cure = _global.damage / 2;
}
frame 720 {
gotoAndPlay('heal');
}
frame 748 {
k();
_root.t2();
}
frame 765 {
stop();
}
frame 767 {
_global.P1MP -= 99;
}
frame 768 {
getXY();
_root.t1();
}
frame 775 {
if (_global.sword == 'inferno') {
_global.magic = 'erupt';
}
if (_global.sword == 'heaven') {
_global.magic = 'seiken';
}
}
frame 778 {
run(X, Y);
}
frame 779 {
run(X, Y);
}
frame 780 {
run(X, Y);
}
frame 781 {
run(X, Y);
}
frame 782 {
run(X, Y);
}
frame 783 {
run(X, Y);
}
frame 784 {
run(X, Y);
}
frame 785 {
run(X, Y);
}
frame 786 {
run(X, Y);
}
frame 787 {
run(X, Y);
}
frame 788 {
run(X, Y);
}
frame 789 {
run(X, Y);
}
frame 790 {
_global.damage = _global.P1atk * 1000 * _global.P1atk2;
_global.atype = 'p';
_root.hurt();
}
frame 794 {
_global.damage = _global.P1atk * 1000 * _global.P1atk2;
_global.atype = 'p';
_root.hurt();
}
frame 802 {
_global.damage = _global.P1atk * 800 * _global.P1atk2;
_global.atype = 'p';
_root.hurt();
}
frame 809 {
_global.damage = _global.P1atk * 800 * _global.P1atk2;
_global.atype = 'p';
_root.hurt();
}
frame 817 {
_global.damage = _global.P1atk * 800 * _global.P1atk2;
_global.atype = 'p';
_root.hurt();
}
frame 827 {
_global.damage = _global.P1atk * 1000 * _global.P1atk2;
_global.atype = 'p';
_root.hurt();
}
frame 835 {
_global.damage = _global.P1atk * 1000 * _global.P1atk2;
_global.atype = 'p';
_root.hurt();
}
frame 851 {
_global.damage = _global.P1atk * 4000 * _global.P1atk2;
_global.atype = 'p';
if (_global.sword == 'heaven') {
_global.damage *= 1.2;
}
_root.hurt();
}
frame 860 {
X = -X;
Y = -Y;
}
frame 861 {
run(X, Y);
}
frame 862 {
run(X, Y);
}
frame 863 {
run(X, Y);
}
frame 864 {
run(X, Y);
}
frame 865 {
run(X, Y);
}
frame 866 {
run(X, Y);
}
frame 867 {
run(X, Y);
}
frame 868 {
run(X, Y);
}
frame 869 {
run(X, Y);
}
frame 870 {
run(X, Y);
}
frame 871 {
run(X, Y);
}
frame 872 {
run(X, Y);
}
frame 877 {
if (_global.sword == 'blood') {
gotoAndPlay('heal');
_global.cure = _global.damage * 0.6;
_global.magic = 'pot';
_root.t1();
} else {
if (_global.sword == 'devil') {
_global.magic = 'ether';
gotoAndPlay('heal');
_global.cure = Math.round(_global.damage / 15);
_root.t1();
} else {
k();
}
}
_root.t2();
}
frame 893 {
_global.P1poison = 0;
}
frame 912 {
k();
}
frame 913 {
_root.t1();
}
frame 951 {
_root.spells.gotoAndPlay(_global.magic);
}
frame 964 {
k();
}
}
movieClip 906 {
}
movieClip 907 {
}
movieClip 908 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
po._visible = false;
se._visible = false;
if (_global.P2atk > 1) {
a1._visible = true;
a1._alpha = (_global.P2atk - 1) * 300;
}
if (_global.P2def > 1) {
b1._visible = true;
b1._alpha = (_global.P2def - 1) * 300;
}
if (_global.P2matk > 1) {
c1._visible = true;
c1._alpha = (_global.P2matk - 1) * 300;
}
if (_global.P2mdef > 1) {
d1._visible = true;
d1._alpha = (_global.P2mdef - 1) * 300;
}
if (_global.P2poison > 0) {
po._visible = true;
}
if (_global.P2seal > 0) {
se._visible = true;
}
}
symbols();
}
frame 28 {
symbols();
}
}
movieClip 919 {
frame 1 {
gotoAndStop(random(10) + 1);
}
}
movieClip 928 {
frame 1 {
gotoAndStop(random(20) + 2);
}
}
movieClip 930 {
}
movieClip 931 {
frame 28 {
stop();
}
}
movieClip 934 {
frame 1 {
gotoAndStop(random(5) + 1);
}
}
movieClip 940 {
frame 1 {
gotoAndStop(random(15) + 2);
}
}
movieClip 942 {
}
movieClip 947 {
frame 1 {
gotoAndStop(_global.magic);
}
}
movieClip 948 {
frame 36 {
stop();
}
}
movieClip 950 {
}
movieClip 955 {
frame 1 {
gotoAndStop(random(5) + 2);
}
}
movieClip 958 {
}
movieClip 960 {
}
movieClip 961 {
}
movieClip 962 {
frame 1 {
hitt = 0;
}
frame 2 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = (_root.X() - _root.coords[2] - 120) / 12;
Y = -(_root.coords[3] - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bo' + b, b);
(eval('_root.bo' + b))._x = _x - 260 + random(50);
(eval('_root.bo' + b))._y = _y + random(50);
(eval('_root.bo' + b)).damage = damage;
b += 2;
}
function heal() {
_root.heal.duplicateMovieClip('bo' + b, b);
(eval('_root.bo' + b))._x = _x - 200;
(eval('_root.bo' + b))._y = _y + 100;
(eval('_root.bo' + b)).cure = cure;
b += 2;
}
q = 0;
b = 0;
}
frame 6 {
_root.t1();
}
frame 31 {
_root.t2();
if (hitt) {
_root.t2();
}
hitt = 1;
}
frame 33 {
stop();
}
frame 40 {
k();
}
frame 41 {
if (_global.def2 == 1) {
damage = Math.round(damage / 2);
}
if (_global.atype == 'p') {
damage = Math.round(damage / _global.P2def);
} else {
damage = Math.round(damage / _global.P2mdef);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
_global.P2HP -= damage;
if (damage > 9999) {
if (!_root.medalCount[18]) {
_root.medal_popup.unlockMedal('Owned');
_root.medalCount[18] = 1;
trace(_root.medalCount);
}
}
_root.DamageCount += damage;
if (_root.DamageCount > 200000) {
if (!_root.medalCount[17]) {
_root.medal_popup.unlockMedal('Punching Bag');
_root.medalCount[17] = 1;
trace(_root.medalCount);
}
}
if (_global.P2HP <= 0) {
_global.P2HP = 0;
gotoAndPlay('die');
} else {
if (_global.def2 == 1) {
gotoAndPlay('defhit');
} else {
if (damage > 3500) {
gotoAndPlay('hit2');
}
}
}
}
frame 70 {
k();
_root.t2();
}
frame 72 {
_global.magic = 'yes';
}
frame 92 {
gotoAndPlay('intro');
}
frame 93 {
_root.t1();
}
frame 110 {
_global.def2 = 1;
}
frame 136 {
k();
_root.t2();
}
frame 140 {
if (_root.live[1] == 0) {
_root.getItem();
}
}
frame 174 {
if (_root.live[1] == 0) {
_root.go = 1;
}
}
frame 175 {
k();
}
frame 176 {
cure = Math.round(_global.cure * (1 + Math.random(1) / 20));
if (_global.magic != 'ant' and _global.magic != 'ether' and _global.magic != 'maxether' and _global.magic != 'atkpot' and _global.magic != 'magpot') {
_global.P2HP += cure;
if (_global.P2HP > _global.P2HPmax) {
_global.P2HP = _global.P2HPmax;
}
} else {
if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') {
_global.P2MP += _global.cure;
if (_global.P2MP > _global.P2MPmax) {
_global.P2MP = _global.P2MPmax;
}
}
}
}
frame 177 {
if (_global.magic != 'ant' and _global.magic != 'atkpot' and _global.magic != 'magpot') {
heal();
}
_root.t1();
}
frame 178 {
if (_global.def2 == 1 and _global.atype == 'm') {
_root.t2();
}
}
frame 208 {
k();
_root.t2();
}
frame 209 {
_root.t1();
}
frame 266 {
_global.atype = 'm';
_root.spells.gotoAndPlay(_global.magic);
}
frame 274 {
k();
}
frame 275 {
_root.t1();
}
frame 326 {
_global.atype = 'm';
_root.spells.gotoAndPlay(_global.magic);
}
frame 336 {
k();
}
frame 337 {
_root.live[2] = 0;
}
frame 376 {
stop();
_root.t2();
}
frame 377 {
_root.t1();
_root.live[2] = 1;
}
frame 378 {
cure = Math.round(3000 * (1 + Math.random(1) / 10));
_global.P2HP += cure;
if (_global.P2HP > _global.P2HPmax) {
_global.P2HP = _global.P2HPmax;
}
heal();
}
frame 394 {
_global.P2seal = 0;
_global.P2poison = 0;
}
frame 423 {
k();
_root.t2();
}
frame 424 {
getXY();
_root.t1();
}
frame 429 {
_global.damage = _global.P2atk * 1200;
_global.atype = 'p';
}
frame 431 {
run(X, Y);
}
frame 432 {
run(X, Y);
}
frame 433 {
run(X, Y);
}
frame 434 {
run(X, Y);
}
frame 435 {
run(X, Y);
}
frame 436 {
run(X, Y);
}
frame 437 {
run(X, Y);
}
frame 438 {
run(X, Y);
}
frame 439 {
run(X, Y);
}
frame 440 {
run(X, Y);
}
frame 441 {
run(X, Y);
}
frame 442 {
_root.hurt();
}
frame 442 {
run(X, Y);
}
frame 444 {
X = -X;
Y = -Y;
}
frame 447 {
run(X, Y);
}
frame 448 {
run(X, Y);
}
frame 449 {
run(X, Y);
}
frame 450 {
run(X, Y);
}
frame 451 {
run(X, Y);
}
frame 452 {
run(X, Y);
}
frame 453 {
run(X, Y);
}
frame 454 {
run(X, Y);
}
frame 455 {
run(X, Y);
}
frame 456 {
run(X, Y);
}
frame 457 {
run(X, Y);
}
frame 458 {
run(X, Y);
}
frame 466 {
k();
_root.t2();
}
frame 467 {
_root.t1();
}
frame 496 {
_root.items.gotoAndPlay(_global.magic);
}
frame 501 {
k();
}
frame 525 {
stop();
_root.summons.gotoAndPlay(_global.magic);
}
frame 544 {
if (_global.atype == 'm') {
_global.cure = Math.round(damage / 8);
_global.magic = 'ether';
gotoAndPlay('heal');
}
}
frame 545 {
_root.t2();
k();
}
frame 546 {
_root.t1();
}
frame 581 {
if (_global.magic != 'cat') {
gotoAndPlay('hide');
if (_root.live[1] == 1) {
tellTarget ('/P1') {
gotoAndPlay('hide');
}
}
} else {
_root.summons.gotoAndPlay(_global.magic);
k();
}
}
frame 597 {
_global.P2poison = 0;
}
frame 615 {
k();
}
frame 616 {
_root.t1();
}
frame 637 {
_root.spells.gotoAndPlay(_global.magic);
}
frame 648 {
k();
}
}
movieClip 968 {
frame 1 {
gotoAndStop(_parent.animal + 1);
}
}
movieClip 975 {
frame 1 {
gotoAndStop(_parent.animal + 1);
}
}
movieClip 981 {
frame 1 {
gotoAndStop(_parent._parent.animal + 1);
}
}
movieClip 982 {
}
movieClip 984 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 20 {
symbols();
}
}
movieClip 988 {
frame 1 {
stop();
}
}
movieClip 989 {
frame 1 {
HP1.gotoAndStop(Math.round((_parent.HP / _parent.HPmax) * 100) + 1);
}
}
movieClip 996 {
frame 3 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 4 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function damage() {
bb = 'bob' + ID;
_root.dam.duplicateMovieClip(bb, ID);
_root.bb._x = this._x;
_root.bb._y = this._y;
}
function getXY() {
X = -(_x - _root.X()) / 12;
Y = -(_y + 70 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bob' + b, b + ID * 100);
(eval('_root.bob' + b))._x = _x - 320 + random(50);
(eval('_root.bob' + b))._y = _y + random(50);
(eval('_root.bob' + b)).damage = damage;
b += 3;
}
b = ID;
q = 0;
}
frame 10 {
HPmax = HP;
}
frame 42 {
stop();
}
frame 42 {
pie.animal = animal;
}
frame 44 {
k();
}
frame 45 {
damage();
}
frame 45 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 3500) {
gotoAndPlay('hit2');
}
}
}
frame 65 {
k();
_root.t2();
}
frame 66 {
damage();
}
frame 92 {
k();
_root.t2();
}
frame 93 {
damage();
}
frame 93 {
_root.live[2 + ID] = 0;
}
frame 119 {
_global.kills += 1;
}
frame 147 {
stop();
_root.t2();
}
frame 148 {
_root.t1();
}
frame 151 {
_global.damage = atk * 480;
}
frame 156 {
getXY();
}
frame 158 {
run(X, Y);
}
frame 159 {
run(X, Y);
}
frame 160 {
run(X, Y);
}
frame 161 {
run(X, Y);
}
frame 162 {
run(X, Y);
}
frame 163 {
run(X, Y);
}
frame 164 {
run(X, Y);
}
frame 165 {
run(X, Y);
}
frame 166 {
run(X, Y);
}
frame 167 {
run(X, Y);
}
frame 168 {
run(X, Y);
}
frame 169 {
run(X, Y);
}
frame 170 {
X = -X * 12;
Y = -Y * 12;
}
frame 170 {
_global.atype = 'p';
_root.hurt();
}
frame 203 {
run(X, Y);
}
frame 218 {
k();
_root.t2();
}
frame 219 {
_root.t1();
}
frame 222 {
_global.damage = atk * 520;
}
frame 223 {
getXY();
}
frame 229 {
run(X, Y);
}
frame 230 {
run(X, Y);
}
frame 231 {
run(X, Y);
}
frame 232 {
run(X, Y);
}
frame 233 {
run(X, Y);
}
frame 234 {
run(X, Y);
}
frame 235 {
run(X, Y);
}
frame 236 {
run(X, Y);
}
frame 237 {
run(X, Y);
}
frame 238 {
run(X, Y);
}
frame 239 {
run(X, Y);
}
frame 240 {
run(X, Y);
}
frame 241 {
X = -X;
Y = -Y;
}
frame 241 {
_global.atype = 'p';
_root.hurt();
}
frame 250 {
run(X, Y);
}
frame 251 {
run(X, Y);
}
frame 252 {
run(X, Y);
}
frame 253 {
run(X, Y);
}
frame 254 {
run(X, Y);
}
frame 255 {
run(X, Y);
}
frame 256 {
run(X, Y);
}
frame 257 {
run(X, Y);
}
frame 258 {
run(X, Y);
}
frame 259 {
run(X, Y);
}
frame 260 {
run(X, Y);
}
frame 261 {
run(X, Y);
}
frame 280 {
k();
_root.t2();
}
}
movieClip 998 {
}
movieClip 999 {
frame 51 {
this.removeMovieClip();
}
frame 52 {
stop();
}
}
movieClip 1001 {
}
movieClip 1002 {
frame 1 {
if (_global.magic == 'ether' or _global.magic == 'maxether') {
cure += 'mp';
}
}
frame 50 {
this.removeMovieClip();
}
frame 52 {
stop();
}
}
movieClip 1004 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_root._x = cX - this._x * v4;
_root._y = cY - this._y * v3;
_root._xscale = 100 * v4;
_root._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_root._xscale = 100;
_root._yscale = 100;
_root._x = 0;
_root._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 1005 {
frame 1 {
stop();
}
frame 15 {
gotoAndStop(1);
}
frame 41 {
gotoAndStop(1);
}
}
movieClip 1007 {
frame 7 {
stop();
}
}
button 1009 {
on (press) {
_global.T = 'T1';
menu.play();
}
}
button 1010 {
on (press) {
_global.T = 'T2';
menu.play();
}
}
button 1011 {
on (press) {
_global.T = 'T3';
menu.play();
}
}
button 1012 {
on (press) {
menu.play();
}
}
movieClip 1020 {
}
movieClip 1022 {
}
movieClip 1037 {
}
movieClip 1040 {
}
movieClip 1043 {
}
movieClip 1045 {
}
movieClip 1046 {
}
movieClip 1049 {
}
movieClip 1050 {
frame 17 {
stop();
}
}
movieClip 1054 {
}
movieClip 1055 {
frame 5 {
this._x = random(200) + 100;
this._y = random(100) + 130;
}
}
movieClip 1058 {
}
movieClip 1059 {
frame 18 {
stop();
}
}
movieClip 1063 {
}
movieClip 1066 {
}
movieClip 1070 {
}
movieClip 1074 {
}
movieClip 1077 {
}
movieClip 1092 {
frame 1 {
gotoAndStop(random(10) + 2);
}
}
movieClip 1095 {
}
movieClip 1097 {
}
movieClip 1099 {
}
movieClip 1101 {
}
movieClip 1103 {
}
movieClip 1107 {
frame 1 {
gotoAndPlay(random(26) + 2);
}
frame 60 {
stop();
}
}
movieClip 1108 {
}
movieClip 1112 {
}
movieClip 1116 {
}
movieClip 1141 {
}
movieClip 1143 {
}
movieClip 1163 {
frame 1 {
function k() {
gotoAndStop('nil');
_global.magic = 'nil';
_root.t2();
}
function getXY(type) {
if (type == 0) {
_x = 0;
_y = 0;
} else {
_x = _root.X() + 80;
_y = _root.Y() - 120;
}
}
}
frame 1 {
function shake(X) {
tellTarget ('/shake') {
gotoAndPlay(X);
}
}
}
frame 3 {
stop();
}
frame 4 {
getXY(1);
_global.P2MP -= 30;
}
frame 11 {
_global.atype = 'm';
_global.damage = _global.P2matk * 5500;
_root.hurt();
}
frame 37 {
k();
}
frame 38 {
getXY(1);
_global.P1MP -= 44;
}
frame 41 {
shake('small');
}
frame 42 {
_global.atype = 'p';
_global.damage = _global.P1atk * 4300 * _global.P1atk2 + _global.P1matk * _global.P1matk2 * 1500;
if (_global.sword == 'stone') {
_global.damage *= 1.7;
}
_root.hurt();
}
frame 82 {
k();
}
frame 83 {
getXY(1);
_global.P2MP -= 25;
}
frame 94 {
_global.cure = 6000 * _global.P2matk;
if (_global.T == 'P1') {
_root.P1.gotoAndPlay('heal');
} else {
_root.P2.gotoAndPlay('heal');
}
}
frame 105 {
k();
}
frame 106 {
getXY(1);
_global.atype = 'm';
}
frame 139 {
_global.atype = 'm';
_root.hurt();
}
frame 142 {
if (_global.T == 'P1' and _root.live[1]) {
_global.P1poison += 2;
_global.Text = 25;
_root.maintext.play();
}
if (_global.T == 'P2' and _root.live[2]) {
_global.P2poison += 2;
_global.Text = 25;
_root.maintext.play();
}
}
frame 158 {
k();
}
frame 159 {
getXY(1);
_global.atype = 'm';
_global.P2MP -= 30;
}
frame 178 {
_global.damage = _global.P2matk * 5500;
_root.hurt();
}
frame 205 {
k();
}
frame 206 {
getXY(1);
_global.atype = 'm';
_global.P2MP -= 30;
}
frame 207 {
_global.damage = _global.P2matk * 1100;
_root.hurt();
}
frame 211 {
_root.hurt();
}
frame 215 {
_root.hurt();
}
frame 221 {
_root.hurt();
}
frame 227 {
_root.hurt();
}
frame 239 {
k();
}
frame 240 {
_x = 600;
_y = 200;
_global.atype = 'm';
_global.P2MP -= 100;
}
frame 325 {
_global.damage = _global.P2matk * 8200;
_global.T = 'Tall';
}
frame 328 {
_root.hurt();
}
frame 328 {
shake('small');
}
frame 352 {
k();
}
frame 353 {
_global.P2MP -= 75;
_x = 300;
_y = 130;
}
frame 413 {
_global.cure = 5000 * _global.P2matk;
if (_root.live[1] == 1) {
_root.P1.gotoAndPlay('heal');
}
if (_root.live[2] == 1) {
_root.P2.gotoAndPlay('heal');
}
}
frame 429 {
k();
}
frame 430 {
_global.T = 'P1';
getXY();
_global.P2MP -= 90;
}
frame 479 {
if (_root.live[1] == 0) {
_root.P1.gotoAndPlay('revive');
}
}
frame 491 {
k();
}
frame 492 {
_global.P2MP -= 5;
}
frame 492 {
getXY(1);
_global.atype = 'm';
}
frame 518 {
if (_global.T == 'P1') {
_global.P1poison = 0;
_global.P1seal = 0;
} else {
_global.P2poison = 0;
_global.P2seal = 0;
}
}
frame 541 {
_global.Text = 14;
_root.maintext.play();
}
frame 544 {
k();
}
frame 545 {
_x = 400;
_y = 140;
_global.P1MP -= 100;
_global.atype = 'm';
}
frame 578 {
_global.cure = 2500 * _global.P1matk * _global.P1matk2;
if (_root.live[1] == 1) {
_root.P1.gotoAndPlay('heal');
}
if (_root.live[2] == 1) {
_root.P2.gotoAndPlay('heal');
}
}
frame 629 {
_global.damage = 4800 * _global.P1matk * _global.P1matk2;
_global.T = 'Tall';
_root.hurt();
}
frame 638 {
k();
}
frame 668 {
getXY(1);
_global.P1MP -= 77;
_global.atype = 'p';
}
frame 689 {
_global.damage = _global.P1atk * 6200 * _global.P1atk2 + _global.P1matk * 2000 * _global.P1matk2;
if (_global.sword == 'heaven' or _global.sword == 'cross') {
_global.damage *= 1.5;
}
_root.hurt();
}
frame 689 {
shake('small');
}
frame 722 {
k();
}
frame 723 {
getXY(1);
_global.P1MP -= 55;
_global.atype = 'p';
}
frame 727 {
_global.damage = _global.P1atk * 5000 * _global.P1atk2 + _global.P1matk * 2000 * _global.P1matk2;
if (_global.sword == 'inferno') {
_global.damage *= 1.5;
}
if (_global.sword == 'stone') {
_global.damage *= 1.2;
}
_root.hurt();
}
frame 727 {
shake('small');
}
frame 765 {
k();
}
frame 766 {
getXY(1);
_global.P2MP -= 20;
_global.atype = 'm';
}
frame 787 {
_global.damage = _global.P2matk * (2000 + random(9000));
_root.hurt();
}
frame 826 {
k();
}
frame 827 {
getXY();
_global.atype = 'm';
}
frame 832 {
_root.hurt();
}
frame 840 {
_root.hurt();
}
frame 886 {
k();
}
frame 887 {
_x = 315;
_y = 200;
_global.P1MP -= 75;
_global.atype = 'm';
}
frame 921 {
_global.damage = 4500 * _global.P1matk * _global.P1matk2;
_global.T = 'Tall';
_root.hurt();
}
frame 924 {
if (_root.live[3] == 1) {
tellTarget ('/T1') {
mdefdown();
}
}
if (_root.live[4] == 1) {
tellTarget ('/T2') {
mdefdown();
}
}
if (_root.live[5] == 1) {
tellTarget ('/T3') {
mdefdown();
}
}
}
frame 929 {
if (_root.live[3] or _root.live[4] or _root.live[5]) {
_global.Text = 13;
_root.maintext.play();
}
}
frame 931 {
k();
}
frame 932 {
_x = 280;
_y = 160;
_global.damage = 3000;
_global.T = 'Pall';
}
frame 932 {
shake('small');
}
frame 938 {
_global.atype = 'm';
_root.hurt();
}
frame 973 {
l = random(3);
if (l) {
if (_root.live[1]) {
_global.P1poison += 1;
_global.Text = 25;
_root.maintext.play();
}
}
l = random(3);
if (l) {
if (_root.live[2]) {
_global.P2poison += 1;
_global.Text = 25;
_root.maintext.play();
}
}
}
frame 982 {
k();
}
frame 983 {
_x = 380;
_y = 130;
_global.P2MP -= 20;
}
frame 1013 {
_global.P1mdef = 1.65;
_global.P2mdef = 1.65;
}
frame 1036 {
_global.Text = 11;
_root.maintext.play();
}
frame 1043 {
k();
}
frame 1044 {
getXY();
}
frame 1045 {
_root.hurt();
}
frame 1103 {
k();
}
frame 1104 {
b = random(2);
if (b != 0) {
gotoAndPlay('airstrike2');
}
}
frame 1104 {
getXY();
_global.P1MP -= 50;
}
frame 1105 {
_global.atype = 'm';
}
frame 1111 {
shake('small');
}
frame 1137 {
shake('small');
}
frame 1138 {
_global.damage = 13000;
_root.hurt();
}
frame 1177 {
k();
}
frame 1178 {
_x = 350;
_y = 150;
}
frame 1210 {
shake('small');
}
frame 1211 {
_global.damage = 1800;
_global.atype = 'm';
_global.T = 'Tall';
_root.hurt();
}
frame 1214 {
_global.damage = 1800;
_global.T = 'Tall';
_root.hurt();
}
frame 1216 {
shake('small');
}
frame 1217 {
_global.damage = 1800;
_global.T = 'Tall';
_root.hurt();
}
frame 1252 {
k();
}
frame 1253 {
getXY();
_global.atype = 'm';
_global.P2MP -= 100;
}
frame 1282 {
shake('big');
}
frame 1285 {
_global.damage = _global.P2matk * 10000;
_root.hurt();
}
frame 1313 {
_global.cure = 4000 * _global.P2matk;
_root.P2.gotoAndPlay('heal');
}
frame 1318 {
}
frame 1325 {
k();
}
frame 1328 {
_global.atype = 'm';
getXY();
}
frame 1351 {
b = random(3);
if (b) {
_global.damage = random(10) + 2;
} else {
_global.damage = 66666;
}
_root.hurt();
}
frame 1373 {
k();
}
frame 1377 {
getXY();
_global.atype = 'p';
}
frame 1391 {
_root.hurt();
}
frame 1437 {
k();
}
frame 1438 {
_global.damage = 7500;
_global.atype = 'm';
_root.hurt();
getXY();
}
frame 1449 {
}
frame 1454 {
k();
}
frame 1455 {
_x = 380;
_y = 200;
_global.P1MP -= 25;
}
frame 1481 {
_global.P1def = 1.65;
_global.P2def = 1.65;
}
frame 1494 {
_global.Text = 10;
_root.maintext.play();
}
frame 1502 {
k();
}
frame 1503 {
_x = 350;
_y = 150;
_global.P1MP -= 15;
}
frame 1533 {
_global.P1atk = 1.5;
}
frame 1546 {
_global.magic = 'atkpot';
_root.P1.gotoAndPlay('heal');
}
frame 1563 {
_global.Text = 9;
_root.maintext.play();
}
frame 1566 {
k();
}
frame 1567 {
getXY();
_root.itemz9 -= 1;
}
frame 1569 {
_global.damage = 10500;
_global.atype = 'm';
_global.magic = 'airstrike';
_root.hurt();
}
frame 1596 {
k();
}
frame 1597 {
_x = 380;
_y = 200;
}
frame 1624 {
_global.P1atk = 1;
_global.P1matk = 1;
_global.P1def = 1;
_global.P1mdef = 1;
_global.P2atk = 1;
_global.P2matk = 1;
_global.P2def = 1;
_global.P2mdef = 1;
}
frame 1630 {
_global.Text = 31;
_root.maintext.play();
}
frame 1636 {
k();
}
}
movieClip 1174 {
}
movieClip 1175 {
}
movieClip 1182 {
}
movieClip 1185 {
}
movieClip 1187 {
}
movieClip 1189 {
}
movieClip 1191 {
}
movieClip 1195 {
}
movieClip 1197 {
}
movieClip 1199 {
}
movieClip 1201 {
}
movieClip 1205 {
}
movieClip 1207 {
}
movieClip 1225 {
}
movieClip 1227 {
}
movieClip 1230 {
}
movieClip 1232 {
}
movieClip 1233 {
}
movieClip 1234 {
frame 1 {
gotoAndStop(_global.guitar);
}
}
movieClip 1236 {
}
movieClip 1242 {
}
movieClip 1252 {
}
movieClip 1260 {
}
movieClip 1262 {
}
movieClip 1263 {
}
movieClip 1268 {
}
movieClip 1273 {
}
movieClip 1285 {
frame 1 {
function k() {
gotoAndStop('nil');
tellTarget ('/P2') {
gotoAndPlay('intro');
}
if (_root.live[1] == 1) {
tellTarget ('/P1') {
gotoAndPlay('intro');
}
}
_global.magic = 'yes';
}
function shake(X) {
tellTarget ('/shake') {
gotoAndPlay(X);
}
}
function hideGuys() {
_root.P1._visible = false;
_root.P2._visible = false;
_root.T1._visible = false;
_root.T2._visible = false;
_root.T3._visible = false;
}
function showGuys() {
_root.P1._visible = true;
_root.P2._visible = true;
_root.T1._visible = true;
_root.T2._visible = true;
_root.T3._visible = true;
}
stop();
}
frame 2 {
p = random(2);
_global.atype = 'm';
_global.magic = 'thunderbolt';
if (p == 0) {
gotoAndPlay('pichu2');
}
_global.P2MP -= 40;
}
frame 60 {
_global.T = 'Tall';
_global.damage = 3900;
_root.hurt();
}
frame 69 {
k();
}
frame 107 {
_root.t1();
_root.randomT();
}
frame 109 {
_root.spells.gotoAndPlay('bolt');
}
frame 154 {
k();
}
frame 155 {
_global.P2MP -= 70;
_global.atype = 'm';
}
frame 333 {
shake('small');
}
frame 350 {
shake('big');
_global.damage = 5000;
_global.T = 'Tall';
_root.hurt();
}
frame 353 {
if (_root.live[3] == 1) {
trace('T1 def down');
tellTarget ('/T1') {
defdown();
}
}
if (_root.live[4] == 1) {
tellTarget ('/T2') {
defdown();
}
}
if (_root.live[5] == 1) {
tellTarget ('/T3') {
defdown();
}
}
}
frame 378 {
if (_root.live[3] or _root.live[4] or _root.live[5]) {
_global.Text = 12;
_root.maintext.play();
}
}
frame 380 {
k();
}
frame 381 {
g = random(4);
_global.atype = 'p';
if (g == 0) {
_global.guitar = 'razorback';
_global.damage = 24000;
} else {
_global.guitar = 'gibson';
_global.damage = 14500;
}
_global.P2MP -= 120;
}
frame 449 {
shake('small');
}
frame 458 {
shake('small');
}
frame 465 {
shake('small');
}
frame 474 {
shake('big');
}
frame 480 {
shake('small');
}
frame 498 {
_root.randomT();
_root.hurt();
}
frame 530 {
k();
}
frame 531 {
_global.command = 'magic';
if (_global.user == 'P1') {
_global.P1MP -= 5;
}
_global.T = 'P1';
if (_root.live[1] == 0) {
_global.T = 'P2';
} else {
if (_root.live[2] == 1) {
k = random(2);
if (k == 0) {
_global.T = 'P2';
}
}
}
j = random(15);
if (j == 0) {
_global.magic = 'maxpot';
} else {
if (j == 1) {
_global.magic = 'ether';
} else {
if (j == 2) {
_global.magic = 'ant';
} else {
if (j == 3) {
_global.magic = 'atkpot';
} else {
if (j == 4) {
_global.magic = 'magpot';
} else {
if (j == 5) {
_global.magic = 'ether';
} else {
if (j == 6) {
_global.magic = 'maxether';
} else {
if (j == 7) {
_global.magic = 'water';
u = random(2);
if (u) {
_global.T = 'P1';
} else {
_global.T = 'P2';
}
} else {
_global.magic = 'pot';
}
}
}
}
}
}
}
}
}
frame 583 {
_root.t1();
_root.items.gotoAndPlay(_global.magic);
}
frame 618 {
gotoAndStop('nil');
_root.t2();
}
frame 622 {
hideGuys();
}
frame 622 {
_global.P2MP -= 300;
_global.atype = 'p';
}
frame 626 {
if (!_root.medalCount[16]) {
_root.medal_popup.unlockMedal('Chaos');
_root.medalCount[16] = 1;
trace(_root.medalCount);
}
}
frame 752 {
shake('small');
}
frame 792 {
shake('small');
}
frame 852 {
shake('small');
}
frame 996 {
showGuys();
}
frame 1009 {
_global.damage = 5000;
_global.T = 'Tall';
_root.hurt();
}
frame 1009 {
shake('small');
}
frame 1019 {
_global.damage = 5000;
_global.T = 'Tall';
_root.hurt();
}
frame 1019 {
shake('small');
}
frame 1027 {
_global.damage = 5000;
_global.T = 'Tall';
_root.hurt();
}
frame 1027 {
shake('small');
}
frame 1036 {
_global.damage = 8000;
_global.T = 'P2';
_root.hurt();
}
frame 1036 {
shake('small');
}
frame 1061 {
_global.damage = 25000;
_global.T = 'Tall';
_root.hurt();
}
frame 1061 {
shake('big');
}
frame 1166 {
gotoAndStop('nil');
_root.t2();
}
}
movieClip 1335 {
frame 1 {
gotoAndStop(_global.Text);
if (_global.txtspeed == 'off') {
_visible = false;
}
}
frame 16 {
_root.itemz1 += 1;
}
frame 17 {
_root.itemz2 += 1;
}
frame 18 {
_root.itemz3 += 1;
}
frame 19 {
_root.itemz4 += 1;
}
frame 20 {
_root.itemz5 += 1;
}
frame 21 {
_root.itemz8 += 1;
}
frame 22 {
_root.itemz9 += 1;
}
frame 23 {
_root.itemz6 += 1;
}
frame 24 {
_root.itemz7 += 1;
}
}
movieClip 1336 {
frame 1 {
stop();
}
frame 3 {
if (_global.txtspeed == 'off') {
gotoAndPlay(90);
} else {
_root.t1();
}
}
frame 9 {
if (_global.txtspeed == 'fast') {
gotoAndPlay(50);
}
}
frame 97 {
_root.t2();
}
}
button 1337 {
on (press) {
_global.T = 'P1';
menu.play();
}
}
button 1338 {
on (press) {
_global.T = 'P2';
menu.play();
}
}
movieClip 1343 {
}
movieClip 1344 {
}
movieClip 1346 {
frame 1 {
function getXY() {
if (_global.T == 'P2') {
_x = dx - 110;
_y = dy + 40;
} else {
_x = dx;
_y = dy;
}
}
dx = 20;
dy = -100;
}
frame 1 {
function k() {
gotoAndStop('nil');
_root.t2();
}
stop();
}
frame 4 {
getXY();
}
frame 4 {
if (_global.command != 'magic') {
_root.itemz1 -= 1;
}
}
frame 19 {
_global.cure = 5000;
if (_global.T == 'P1') {
_root.P1.gotoAndPlay('heal');
} else {
_root.P2.gotoAndPlay('heal');
}
}
frame 31 {
k();
}
frame 32 {
getXY();
}
frame 32 {
if (_global.command != 'magic') {
_root.itemz2 -= 1;
}
}
frame 49 {
_global.cure = 9999;
if (_global.T == 'P1') {
_root.P1.gotoAndPlay('heal');
} else {
_root.P2.gotoAndPlay('heal');
}
}
frame 64 {
k();
}
frame 65 {
getXY();
}
frame 65 {
if (_global.command != 'magic') {
_root.itemz3 -= 1;
}
}
frame 79 {
_global.cure = 500;
if (_global.T == 'P1') {
_root.P1.gotoAndPlay('heal');
} else {
_root.P2.gotoAndPlay('heal');
}
}
frame 88 {
k();
}
frame 89 {
getXY();
}
frame 89 {
if (_global.command != 'magic') {
_root.itemz4 -= 1;
}
}
frame 111 {
_global.cure = 999;
if (_global.T == 'P1') {
_root.P1.gotoAndPlay('heal');
} else {
_root.P2.gotoAndPlay('heal');
}
}
frame 124 {
k();
}
frame 125 {
getXY();
if (_global.command != 'magic') {
_root.itemz5 -= 1;
}
}
frame 133 {
if (_global.T == 'P1') {
_global.P1poison = 0;
_global.P1seal = 0;
} else {
_global.P2poison = 0;
_global.P2seal = 0;
}
if (_global.T == 'P1') {
_root.P1.gotoAndPlay('heal');
} else {
_root.P2.gotoAndPlay('heal');
}
}
frame 146 {
_global.Text = 14;
_root.maintext.play();
}
frame 148 {
k();
}
frame 150 {
getXY();
if (_global.command != 'magic') {
_root.itemz6 -= 1;
}
}
frame 159 {
if (_global.T == 'P1') {
_global.P1atk = 1.5;
} else {
_global.P2atk = 2;
}
}
frame 164 {
if (_global.T == 'P1') {
_root.P1.gotoAndPlay('heal');
} else {
_root.P2.gotoAndPlay('heal');
}
}
frame 169 {
_global.Text = 9;
_root.maintext.play();
}
frame 170 {
k();
}
frame 171 {
getXY();
if (_global.command != 'magic') {
_root.itemz7 -= 1;
}
}
frame 177 {
if (_global.T == 'P1') {
_global.P1matk = 1.5;
} else {
_global.P2matk = 1.6;
}
}
frame 186 {
if (_global.T == 'P1') {
_root.P1.gotoAndPlay('heal');
} else {
_root.P2.gotoAndPlay('heal');
}
}
frame 190 {
_global.Text = 15;
_root.maintext.play();
}
frame 191 {
k();
}
frame 192 {
getXY();
if (_global.command != 'magic') {
_root.itemz8 -= 1;
}
}
frame 213 {
if (_global.T == 'P1') {
if (_root.live[1] == 0) {
_root.P1.gotoAndPlay('revive');
} else {
_global.cure = 10000;
_root.P1.gotoAndPlay('heal');
}
}
if (_global.T == 'P2') {
if (_root.live[2] == 0) {
_root.P2.gotoAndPlay('revive');
} else {
_global.cure = 10000;
_root.P2.gotoAndPlay('heal');
}
}
}
frame 223 {
k();
}
frame 224 {
_root.itemz9 -= 1;
}
frame 253 {
k();
}
}
movieClip 1366 {
frame 1 {
if (_root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0 and _global.timer == 0 and _root.go) {
_root.play();
_root.menu.gotoAndPlay(1);
_root.go = 0;
}
HP1.gotoAndStop(Math.round((_global.P1HP / _global.P1HPmax) * 100) + 1);
MP1.gotoAndStop(Math.round((_global.P1MP / _global.P1MPmax) * 100) + 1);
HP2.gotoAndStop(Math.round((_global.P2HP / _global.P2HPmax) * 100) + 1);
MP2.gotoAndStop(Math.round((_global.P2MP / _global.P2MPmax) * 100) + 1);
}
}
movieClip 1372 {
}
movieClip 1373 {
}
button 1374 {
on (release) {
_global.help = 0;
}
}
button 1375 {
on (release) {
_global.txtspeed = 'fast';
}
}
button 1376 {
on (release) {
_quality = 'LOW';
}
}
button 1377 {
on (release) {
_quality = 'MEDIUM';
}
}
button 1378 {
on (release) {
_quality = 'HIGH';
}
}
button 1379 {
on (release) {
play();
}
}
button 1380 {
on (release) {
_global.txtspeed = 'slow';
}
}
button 1381 {
on (release) {
_global.help = 1;
}
}
button 1382 {
on (release) {
getURL('http://armorgames.com/', '_blank');
}
}
movieClip 1385 {
}
movieClip 1412 {
frame 1 {
gotoAndStop(random(25) + 2);
}
}
movieClip 1413 {
frame 1 {
stop();
}
frame 9 {
stop();
}
}
movieClip 1415 {
frame 1 {
stop();
}
frame 26 {
gotoAndPlay(2);
}
}
movieClip 1417 {
frame 1 {
stop();
}
frame 12 {
stop();
}
}
button 1419 {
on (release) {
gotoAndStop('special');
}
}
button 1420 {
on (release) {
gotoAndStop('bushido');
}
}
button 1421 {
on (release) {
gotoAndStop('sword');
}
}
button 1422 {
on (release) {
gotoAndStop('item');
}
}
button 1423 {
on (release) {
_global.command = 'defend';
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1424 {
on (release) {
_global.command = 'attack';
tellTarget ('/menu') {
play();
}
}
}
movieClip 1437 {
frame 1 {
stop();
}
}
button 1438 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(3);
}
}
on (release) {
_global.command = 'windslash';
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1439 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(2);
}
}
on (release) {
_global.command = 'drain';
tellTarget ('/menu') {
play();
}
}
}
button 1440 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(4);
}
}
on (release) {
_global.command = 'quake';
_global.magic = 'quake';
tellTarget ('/menu') {
play();
}
}
}
button 1441 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(5);
}
}
on (release) {
_global.command = 'quake';
_global.magic = 'erupt';
tellTarget ('/menu') {
play();
}
}
}
button 1442 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(6);
}
}
on (release) {
_global.command = 'magic';
_global.magic = 'seiken';
tellTarget ('/menu') {
play();
}
}
}
button 1443 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(7);
}
}
on (release) {
_global.command = 'legend';
tellTarget ('/menu') {
play();
}
}
}
movieClip 1459 {
frame 1 {
if (_global.P1seal > 0) {
gotoAndStop(7);
} else {
if (_global.P1MP >= 99) {
stop();
} else {
if (_global.P1MP >= 77) {
gotoAndStop(2);
} else {
if (_global.P1MP >= 55) {
gotoAndStop(3);
} else {
if (_global.P1MP >= 44) {
gotoAndStop(4);
} else {
if (_global.P1MP >= 33) {
gotoAndStop(5);
} else {
if (_global.P1MP >= 22) {
gotoAndStop(6);
} else {
gotoAndStop(7);
}
}
}
}
}
}
}
if (!_global.help) {
help.gotoAndStop(9);
}
}
}
movieClip 1460 {
frame 10 {
stop();
}
}
movieClip 1471 {
frame 1 {
stop();
}
}
button 1472 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(5);
}
}
on (release) {
_global.command = 'magic';
_global.magic = 'airstrike';
tellTarget ('/menu') {
play();
}
}
}
button 1473 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(4);
}
}
on (release) {
_global.command = 'magic';
_global.magic = 'protect';
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1474 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(6);
}
}
on (release) {
_global.command = 'magic';
_global.magic = 'screamer';
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1475 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(3);
}
}
on (release) {
_global.command = 'magic';
_global.magic = 'temper';
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1476 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(2);
}
}
on (release) {
_global.command = 'magic';
_global.magic = 'mog';
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1477 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(7);
}
}
on (release) {
_global.command = 'magic';
_global.magic = 'heavy';
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
movieClip 1492 {
frame 1 {
if (_global.P1seal > 0) {
gotoAndStop(7);
} else {
if (_global.P1MP >= 100) {
stop();
} else {
if (_global.P1MP >= 75) {
gotoAndStop(2);
} else {
if (_global.P1MP >= 50) {
gotoAndStop(3);
} else {
if (_global.P1MP >= 25) {
gotoAndStop(4);
} else {
if (_global.P1MP >= 15) {
gotoAndStop(5);
} else {
if (_global.P1MP >= 5) {
gotoAndStop(6);
} else {
gotoAndStop(7);
}
}
}
}
}
}
}
if (!_global.help) {
help.gotoAndStop(9);
}
}
}
movieClip 1493 {
frame 10 {
stop();
}
}
button 1495 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(5);
}
}
on (release) {
_global.command = 'swap';
_global.magic = 'stone';
_global.P1atk2 = 1.1;
_global.P1matk2 = 0.9;
_global.P1def2 = 1.4;
_global.P1mdef2 = 1.2;
swordCounter(3);
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1496 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(4);
}
}
on (release) {
_global.command = 'swap';
_global.magic = 'blood';
_global.P1atk2 = 1;
_global.P1matk2 = 1;
_global.P1def2 = 1.1;
_global.P1mdef2 = 1.1;
swordCounter(2);
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1497 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(6);
}
}
on (release) {
_global.command = 'swap';
_global.magic = 'inferno';
_global.P1atk2 = 1.1;
_global.P1matk2 = 1.2;
_global.P1def2 = 1;
_global.P1mdef2 = 1.1;
swordCounter(4);
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1498 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(7);
}
}
on (release) {
_global.command = 'swap';
_global.magic = 'cross';
_global.P1atk2 = 0.9;
_global.P1matk2 = 1.3;
_global.P1def2 = 0.9;
_global.P1mdef2 = 1.3;
swordCounter(5);
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1499 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(3);
}
}
on (release) {
_global.command = 'swap';
_global.magic = 'devil';
_global.P1atk2 = 0.7;
_global.P1matk2 = 1.1;
_global.P1def2 = 1.1;
_global.P1mdef2 = 1.1;
swordCounter(1);
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1500 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(2);
}
}
on (release) {
_global.command = 'swap';
_global.magic = 'heaven';
_global.P1atk2 = 1.1;
_global.P1matk2 = 1.1;
_global.P1def2 = 1.1;
_global.P1mdef2 = 1.1;
swordCounter(0);
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
button 1501 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(8);
}
}
on (release) {
_global.command = 'swap';
_global.magic = 'soul';
_global.P1atk2 = 1.6;
_global.P1matk2 = 0.8;
_global.P1def2 = 0.8;
_global.P1mdef2 = 0.8;
swordCounter(6);
tellTarget ('/menu') {
gotoAndPlay('P11');
}
}
}
movieClip 1513 {
frame 1 {
stop();
}
}
movieClip 1521 {
frame 1 {
function swordCounter(X) {
if (_root.swordCount[X] == 0) {
_root.swordCount[X] = 1;
trace(_root.swordCount);
if (_root.swordCount.toString() == '1,1,1,1,1,1,1') {
_root.medalCount[14] = 1;
trace(_root.medalCount);
_root.medal_popup.unlockMedal('I Like Swords');
}
}
}
}
frame 1 {
if (_global.sword == 'heaven') {
_global.Text = 2;
} else {
if (_global.sword == 'devil') {
_global.Text = 3;
} else {
if (_global.sword == 'stone') {
_global.Text = 5;
} else {
if (_global.sword == 'blood') {
_global.Text = 4;
} else {
if (_global.sword == 'inferno') {
_global.Text = 6;
} else {
if (_global.sword == 'soul') {
_global.Text = 8;
} else {
if (_global.sword == 'cross') {
_global.Text = 7;
}
}
}
}
}
}
}
gotoAndStop(_global.Text);
if (!_global.help) {
help.gotoAndStop(9);
}
stop();
}
}
movieClip 1522 {
frame 10 {
stop();
}
}
movieClip 1535 {
frame 1 {
stop();
}
}
button 1546 {
on (release) {
if (_root.itemz6 > 0) {
_global.command = 'item';
_global.magic = 'atkpot';
tellTarget ('/menu') {
play();
}
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(7);
}
}
}
button 1547 {
on (release) {
if (_root.itemz5 > 0) {
_global.command = 'item';
_global.magic = 'ant';
tellTarget ('/menu') {
play();
}
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(6);
}
}
}
button 1548 {
on (release) {
if (_root.itemz7 > 0) {
_global.command = 'item';
_global.magic = 'magpot';
tellTarget ('/menu') {
play();
}
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(8);
}
}
}
button 1549 {
on (release) {
if (_root.itemz8 > 0) {
_global.command = 'item';
_global.magic = 'water';
tellTarget ('/menu') {
play();
}
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(9);
}
}
}
button 1550 {
on (release) {
if (_root.itemz4 > 0) {
_global.command = 'item';
_global.magic = 'maxether';
tellTarget ('/menu') {
play();
}
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(5);
}
}
}
button 1551 {
on (release) {
if (_root.itemz3 > 0) {
_global.command = 'item';
_global.magic = 'ether';
tellTarget ('/menu') {
play();
}
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(4);
}
}
}
button 1552 {
on (release) {
if (_root.itemz9 > 0) {
_global.command = 'item2';
_global.magic = 'bob';
tellTarget ('/menu') {
play();
}
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(10);
}
}
}
button 1553 {
on (release) {
if (_root.itemz2 > 0) {
_global.command = 'item';
_global.magic = 'maxpot';
tellTarget ('/menu') {
play();
}
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(3);
}
}
}
button 1554 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(2);
}
}
on (release) {
if (_root.itemz1 > 0) {
_global.command = 'item';
_global.magic = 'pot';
tellTarget ('/menu') {
play();
}
}
}
}
movieClip 1556 {
frame 1 {
if (!_global.help) {
help.gotoAndStop(11);
}
}
}
movieClip 1557 {
frame 10 {
stop();
}
}
movieClip 1558 {
frame 1 {
stop();
}
}
movieClip 1559 {
frame 10 {
stop();
}
}
button 1561 {
on (release) {
tellTarget ('/menu') {
prevFrame();
}
}
}
movieClip 1563 {
}
movieClip 1566 {
frame 9 {
stop();
}
}
button 1567 {
on (release) {
gotoAndStop('BM');
}
}
button 1568 {
on (release) {
gotoAndStop('WM');
}
}
button 1569 {
on (release) {
gotoAndStop('summon');
}
}
button 1570 {
on (release) {
gotoAndStop('item');
}
}
button 1571 {
on (release) {
_global.command = 'defend';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
}
movieClip 1584 {
frame 1 {
stop();
}
}
button 1585 {
on (release) {
_global.command = 'wmagic';
_global.magic = 'healmore';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(5);
}
}
}
button 1586 {
on (release) {
_global.command = 'wmagic';
_global.magic = 'heal';
tellTarget ('/menu') {
play();
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(4);
}
}
}
button 1587 {
on (release) {
_global.command = 'wmagic';
_global.magic = 'revive';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(6);
}
}
}
button 1588 {
on (release) {
_global.command = 'wmagic';
_global.magic = 'judgement';
tellTarget ('/menu') {
play();
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(7);
}
}
}
button 1589 {
on (release) {
_global.command = 'wmagic';
_global.magic = 'barrier';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(3);
}
}
}
button 1590 {
on (release) {
_global.command = 'wmagic';
_global.magic = 'purify';
tellTarget ('/menu') {
play();
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(2);
}
}
}
movieClip 1606 {
frame 1 {
if (_global.P2seal > 0) {
gotoAndStop(6);
} else {
if (_global.P2MP >= 100) {
stop();
} else {
if (_global.P2MP >= 90) {
gotoAndStop(2);
} else {
if (_global.P2MP >= 75) {
gotoAndStop(3);
} else {
if (_global.P2MP >= 25) {
gotoAndStop(4);
} else {
if (_global.P2MP >= 20) {
gotoAndStop(5);
} else {
if (_global.P2MP >= 5) {
gotoAndStop(6);
} else {
gotoAndStop(7);
}
}
}
}
}
}
}
if (!_global.help) {
help.gotoAndStop(9);
}
}
}
movieClip 1607 {
frame 10 {
stop();
}
}
movieClip 1617 {
frame 1 {
stop();
}
}
button 1618 {
on (release) {
_global.command = 'bmagic';
_global.magic = 'thunderbolt';
tellTarget ('/menu') {
play();
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(5);
}
}
}
button 1619 {
on (release) {
_global.command = 'bmagic';
_global.magic = 'pulsar';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(6);
}
}
}
button 1620 {
on (release) {
_global.command = 'bmagic';
_global.magic = 'glacier';
tellTarget ('/menu') {
play();
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(4);
}
}
}
button 1621 {
on (release) {
_global.command = 'bmagic';
_global.magic = 'fireball';
tellTarget ('/menu') {
play();
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(3);
}
}
}
button 1622 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(2);
}
}
on (release) {
_global.command = 'bmagic';
_global.magic = 'lucky';
tellTarget ('/menu') {
play();
}
}
}
movieClip 1631 {
frame 1 {
if (_global.P2seal > 0) {
gotoAndStop(5);
} else {
if (_global.P2MP >= 100) {
stop();
} else {
if (_global.P2MP >= 30) {
gotoAndStop(2);
} else {
if (_global.P2MP >= 20) {
gotoAndStop(3);
} else {
gotoAndStop(4);
}
}
}
}
if (!_global.help) {
help.gotoAndStop(9);
}
}
}
movieClip 1632 {
frame 10 {
stop();
}
}
movieClip 1640 {
frame 1 {
stop();
}
}
button 1641 {
on (release) {
_global.command = 'summon';
_global.magic = 'cat';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(5);
}
}
}
button 1642 {
on (release) {
_global.command = 'summon';
_global.magic = 'canti';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(4);
}
}
}
button 1643 {
on (release) {
_global.command = 'summon';
_global.magic = 'registeel';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
on (rollOver) {
if (_global.help) {
help.gotoAndStop(3);
}
}
}
button 1644 {
on (rollOver) {
if (_global.help) {
help.gotoAndStop(2);
}
}
on (release) {
_global.command = 'summon';
_global.magic = 'pichu';
tellTarget ('/menu') {
gotoAndPlay('P22');
}
}
}
movieClip 1656 {
frame 1 {
if (_global.P2seal > 0) {
gotoAndStop(6);
} else {
if (_global.P2MP >= 300) {
stop();
} else {
if (_global.P2MP >= 120) {
gotoAndStop(2);
} else {
if (_global.P2MP >= 70) {
gotoAndStop(3);
} else {
if (_global.P2MP >= 40) {
gotoAndStop(4);
} else {
gotoAndStop(5);
}
}
}
}
}
if (!_global.help) {
help.gotoAndStop(9);
}
}
}
movieClip 1657 {
frame 10 {
stop();
}
}
movieClip 1658 {
frame 1 {
stop();
}
}
movieClip 1659 {
frame 10 {
stop();
}
}
movieClip 1660 {
frame 1 {
if (h == undefined) {
h = 2;
stop();
}
}
frame 5 {
_global.atype = 'p';
_global.def1 = 0;
if (_global.P1poison >= 1 and _root.live[1] == 1 and _root.Playin == true) {
stop();
_global.T = 'P1';
_global.damage = 400 * _global.P1poison * _global.dif;
_root.hurt();
} else {
_global.P1poison = 0;
}
}
frame 6 {
_global.def2 = 0;
if (_global.P2poison >= 1 and _root.live[2] == 1 and _root.Playin == true) {
stop();
_global.T = 'P2';
_global.damage = 400 * _global.P2poison * _global.dif;
_root.hurt();
} else {
_global.P2poison = 0;
}
}
frame 7 {
if (_global.P1def > 1) {
_global.P1def -= 0.05;
}
if (_global.P1mdef > 1) {
_global.P1mdef -= 0.05;
}
if (_global.P1atk > 1) {
_global.P1atk -= 0.05;
}
if (_global.P1matk > 1) {
_global.P1matk -= 0.05;
}
}
frame 8 {
stop();
if (_root.live[1] == 0 or _root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) {
gotoAndPlay('P111');
}
}
frame 8 {
_root.hideButtons();
_global.user = 'P1';
}
frame 8 {
trace('PLAYER 1 TURN START');
trace('Atk:' + _global.P1atk + ' Atk2:' + _global.P1atk2 + ' Def:' + _global.P1def + ' Def2:' + _global.P1def2 + ' MAtk:' + _global.P1matk + ' MAtk2:' + _global.P1matk2 + ' Mdef:' + _global.P1mdef + ' Mdef2:' + _global.P1mdef2);
}
frame 8 {
_global.command = 'nil';
_global.magic = 'nil';
}
frame 9 {
stop();
if (_global.magic == 'heal' or _global.command == 'item') {
_root.showButtons2();
} else {
_root.showButtons();
}
}
frame 9 {
if (_global.command == 'nil') {
prevFrame();
}
}
frame 10 {
_root.hideButtons();
stop();
}
frame 10 {
tellTarget ('/P1') {
gotoAndPlay(_global.command);
}
}
frame 11 {
_global.command = 'nil';
_global.spell = 'nil';
}
frame 12 {
if (_global.P2def > 1) {
_global.P2def -= 0.05;
}
if (_global.P2mdef > 1) {
_global.P2mdef -= 0.05;
}
if (_global.P2atk > 1) {
_global.P2atk -= 0.05;
}
if (_global.P2matk > 1) {
_global.P2matk -= 0.05;
}
}
frame 13 {
stop();
if (_root.live[2] == 0 or _root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) {
gotoAndPlay('P222');
}
_global.def2 = 0;
}
frame 13 {
_global.user = 'P2';
_root.hideButtons();
}
frame 13 {
trace('PLAYER 2 TURN START');
trace('Atk:' + _global.P2atk + ' Def:' + _global.P2def + ' MAtk:' + _global.P2matk + ' Mdef:' + _global.P2mdef);
}
frame 13 {
_global.command = 'nil';
_global.magic = 'nil';
}
frame 14 {
stop();
if (_global.magic == 'heal' or _global.magic == 'purify' or _global.command == 'item') {
_root.showButtons2();
} else {
_root.showButtons();
}
}
frame 14 {
if (_global.command == 'nil') {
prevFrame();
}
}
frame 15 {
stop();
_root.hideButtons();
}
frame 15 {
tellTarget ('/P2') {
gotoAndPlay(_global.command);
}
trace(_global.command);
}
frame 16 {
_global.command = 'nil';
_global.spell = 'nil';
}
frame 17 {
_global.user = 'T1';
if (_root.live[3] == 1 and (_root.live[1] or _root.live[2])) {
_root.moveset();
stop();
tellTarget ('/T1') {
enemystats();
}
}
}
frame 17 {
trace('ENEMY TURN START');
}
frame 18 {
_global.user = 'T2';
if (_root.live[4] == 1 and (_root.live[1] or _root.live[2])) {
_root.moveset();
stop();
tellTarget ('/T2') {
enemystats();
}
}
}
frame 19 {
_global.user = 'T3';
if (_root.live[5] == 1 and (_root.live[1] or _root.live[2])) {
_root.moveset();
stop();
tellTarget ('/T3') {
enemystats();
}
}
}
frame 21 {
if (_root.live[3] == 0 and _root.live[4] == 0 and _root.live[5] == 0) {
trace('cheer');
stop();
if (_root.live[1]) {
_root.P1.gotoAndPlay('cheer');
}
if (_root.live[2]) {
_root.P2.gotoAndPlay('cheer');
}
if (!_root.live[1] and !_root.live[2]) {
play();
}
}
}
frame 22 {
if (_root.live[1] == 0 and _root.live[2] == 0) {
stop();
pause = function () {
clearInterval(pause1);
_root.fade.play();
_global.dir = 'over';
};
pause1 = setInterval(pause, 5000);
}
}
frame 25 {
m = random(10);
if (m == 0 and (_root.live[1] or _root.live[2])) {
stop();
_root.t1();
_root.summons.gotoAndPlay('mog');
_global.magic = 'mog';
_global.command = 'magic';
}
}
frame 26 {
_global.command = 'nil';
_global.spell = 'nil';
if (_global.P1seal > 0) {
_global.P1seal -= 1;
}
if (_global.P2seal > 0) {
_global.P2seal -= 1;
}
}
}
movieClip 1663 {
frame 113 {
stop();
}
}
frame 12 {
function moveset() {
b = random(2);
if (live[1] == 0 and live[2] == 0) {
return 0;
}
if (live[1] == 0) {
_global.T = 'P2';
} else {
if (live[2] == 0) {
_global.T = 'P1';
} else {
t = random(2);
if (t == 0) {
_global.T = 'P1';
}
if (t == 1) {
_global.T = 'P2';
}
}
}
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'attack2';
}
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
function X() {
if (_global.T == 'P1') {
return _root.coords[0];
}
if (_global.T == 'P2') {
return _root.coords[2];
}
if (_global.T == 'T1') {
return _root.coords[4];
}
if (_global.T == 'T2') {
return _root.coords[6];
}
if (_global.T == 'T3') {
return _root.coords[8];
}
}
function Y() {
if (_global.T == 'P1') {
return _root.coords[1];
}
if (_global.T == 'P2') {
return _root.coords[3];
}
if (_global.T == 'T1') {
return _root.coords[5];
}
if (_global.T == 'T2') {
return _root.coords[7];
}
if (_global.T == 'T3') {
return _root.coords[9];
}
}
_global.P1HP = 9999;
_global.P1MP = 999;
_global.P1HPmax = 9999;
_global.P1MPmax = 999;
_global.P1atk = 1;
_global.P1atk2 = 1.1;
_global.P1matk = 1;
_global.P1matk2 = 1.1;
_global.P1def = 1;
_global.P1mdef = 1;
_global.P1mdef2 = 1.1;
_global.P1def2 = 1.1;
_global.P1poison = 0;
_global.P1seal = 0;
_global.P2HP = 9999;
_global.P2MP = 999;
_global.P2HPmax = 9999;
_global.P2MPmax = 999;
_global.P2atk = 1;
_global.P2matk = 1;
_global.P2def = 1;
_global.P2mdef = 1;
_global.P2poison = 0;
_global.P2seal = 0;
_global.damage = 0;
_global.command = 0;
_global.magic = 0;
_global.atype = 0;
_global.T = 0;
_global.def1 = 0;
_global.def2 = 0;
_global.user = 'P1';
_global.kills = 0;
coords = new Array();
coords = [180, 230, 60, 272, 530, 220, 560, 300, 0, 0];
tellTarget ('/T1') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 1;
}
tellTarget ('/T2') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 2;
}
}
frame 13 {
function itemGet() {
b = random(20);
if (b < 5) {
_global.Text = 16;
maintext.play();
}
if (b == 19) {
_global.Text = 17;
maintext.play();
}
}
stop();
}
frame 16 {
live[3] = 1;
live[4] = 1;
live[5] = 0;
tellTarget ('/T1') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 1;
}
tellTarget ('/T2') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 2;
}
}
frame 17 {
stop();
}
frame 20 {
live[3] = 1;
live[4] = 1;
live[5] = 1;
coords = [180, 230, 60, 272, 540, 220, 590, 280, 510, 330];
tellTarget ('/T1') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 1;
}
tellTarget ('/T2') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 2;
}
tellTarget ('/T3') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 3;
}
}
frame 21 {
stop();
}
frame 24 {
live[3] = 1;
live[4] = 1;
live[5] = 1;
tellTarget ('/T1') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 1;
}
tellTarget ('/T2') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 2;
}
tellTarget ('/T3') {
HP = 5000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 3;
}
}
frame 25 {
stop();
}
movieClip 1665 {
}
movieClip 1667 {
}
movieClip 1669 {
}
movieClip 1671 {
}
movieClip 1673 {
}
movieClip 1675 {
}
movieClip 1677 {
}
movieClip 1680 {
}
movieClip 1684 {
}
movieClip 1689 {
}
movieClip 1691 {
}
movieClip 1693 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 20 {
symbols();
}
}
movieClip 1697 {
}
movieClip 1699 {
}
movieClip 1706 {
}
movieClip 1715 {
frame 1 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 1 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(_x - _root.X()) / 12;
Y = -(_y + 200 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('beb' + b, b + ID * 100);
(eval('_root.beb' + b))._x = _x - 320 + random(50);
(eval('_root.beb' + b))._y = _y + random(50);
(eval('_root.beb' + b)).damage = damage;
b += 1;
}
b = 7777;
q = 0;
}
frame 8 {
HPmax = HP;
}
frame 41 {
stop();
}
frame 42 {
k();
}
frame 43 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 7000) {
gotoAndPlay('hit2');
}
}
}
frame 68 {
k();
}
frame 68 {
_root.t2();
}
frame 69 {
damage();
}
frame 95 {
k();
}
frame 95 {
_root.t2();
}
frame 96 {
damage();
}
frame 97 {
_root.live[2 + ID] = 0;
}
frame 147 {
if (!_root.medalCount[1]) {
_root.medal_popup.unlockMedal('King Slime');
_root.medalCount[1] = 1;
trace(_root.medalCount);
}
}
frame 151 {
_root.t2();
}
frame 151 {
stop();
}
frame 152 {
_root.t1();
}
frame 165 {
_global.atype = 'm';
_global.damage = atk * 4000;
_root.hurt();
}
frame 187 {
k();
}
frame 187 {
_root.t2();
}
frame 188 {
_root.t1();
}
frame 210 {
_global.atype = 'p';
_global.T = 'Pall';
_global.damage = atk * 2500;
_root.hurt();
}
frame 210 {
_root.shake('small');
}
frame 230 {
_root.t2();
}
frame 231 {
k();
}
frame 232 {
_root.t1();
}
frame 232 {
getXY();
}
frame 245 {
run(X, Y);
}
frame 246 {
run(X, Y);
}
frame 247 {
run(X, Y);
}
frame 248 {
run(X, Y);
}
frame 249 {
run(X, Y);
}
frame 250 {
run(X, Y);
}
frame 251 {
run(X, Y);
}
frame 252 {
run(X, Y);
}
frame 253 {
run(X, Y);
}
frame 254 {
run(X, Y);
}
frame 255 {
run(X, Y);
}
frame 256 {
run(X, Y);
}
frame 257 {
X = -X / 2;
Y = -Y / 2;
}
frame 258 {
_global.atype = 'p';
_global.damage = atk * 2500;
_root.hurt();
}
frame 263 {
run(X, Y);
}
frame 264 {
run(X, Y);
}
frame 265 {
run(X, Y);
}
frame 266 {
run(X, Y);
}
frame 267 {
run(X, Y);
}
frame 268 {
run(X, Y);
}
frame 269 {
run(X, Y);
}
frame 270 {
run(X, Y);
}
frame 271 {
run(X, Y);
}
frame 272 {
run(X, Y);
}
frame 273 {
run(X, Y);
}
frame 274 {
run(X, Y);
}
frame 275 {
run(X, Y);
}
frame 276 {
run(X, Y);
}
frame 277 {
run(X, Y);
}
frame 278 {
run(X, Y);
}
frame 279 {
run(X, Y);
}
frame 280 {
run(X, Y);
}
frame 281 {
run(X, Y);
}
frame 282 {
run(X, Y);
}
frame 283 {
run(X, Y);
}
frame 284 {
run(X, Y);
}
frame 285 {
run(X, Y);
}
frame 286 {
run(X, Y);
}
frame 301 {
k();
}
frame 301 {
_root.t2();
}
frame 302 {
_root.t1();
}
frame 368 {
_root.shake('small');
}
frame 370 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 4000;
_root.hurt();
}
frame 403 {
_root.t2();
}
frame 404 {
k();
}
frame 406 {
_root.t1();
}
frame 437 {
function heal() {
_root.heal.duplicateMovieClip('bob' + b, b);
(eval('_root.bob' + b))._x = _x - 200;
(eval('_root.bob' + b))._y = _y + 100;
(eval('_root.bob' + b)).cure = cure;
b += 2;
}
_global.magic = 'pot';
cure = Math.round(10000 * matk + 1000 * Math.random());
heal();
HP += cure;
if (HP > HPmax) {
HP = HPmax;
}
}
frame 472 {
_root.t2();
}
frame 473 {
k();
}
}
frame 28 {
function moveset() {
b = random(5);
ranplay();
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'attack2';
}
if (b == 2) {
_global.command = 'attack3';
}
if (b == 3) {
_global.command = 'special';
}
if (b == 4) {
_global.command = 'heal';
}
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
live[3] = 1;
live[4] = 0;
live[5] = 0;
coords = [180, 230, 60, 272, 500, 280, 590, 280, 510, 330];
tellTarget ('/T1') {
HP = 60000 * _global.dif;
atk = 0.8 * _global.dif;
def = 1;
matk = 0.7 * _global.dif;
mdef = 1;
animal = random(5) + 1;
ID = 1;
}
}
frame 29 {
function itemGet() {
b = random(20);
if (b < 5) {
_global.Text = 19;
maintext.play();
} else {
_global.Text = 18;
maintext.play();
}
}
stop();
}
frame 30 {
nextBG();
}
frame 31 {
function moveset() {
b = random(5);
ranplay();
if (b == 0 or b == 1) {
_global.command = 'attack';
}
if (b == 2) {
_global.command = 'special2';
}
if (b == 3 or b == 4) {
_global.command = 'special';
}
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
frame 31 {
stopAllSounds();
}
movieClip 1716 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 22 {
symbols();
}
}
movieClip 1717 {
}
movieClip 1721 {
frame 3 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 4 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(_x - _root.X()) / 12;
Y = -(_y + 160 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bok' + b, b + 999);
(eval('_root.bok' + b))._x = _x - 320 + random(50);
(eval('_root.bok' + b))._y = _y + random(50);
(eval('_root.bok' + b)).damage = damage;
b += 3;
}
b = ID + 999;
q = 0;
}
frame 8 {
HPmax = HP;
}
frame 29 {
stop();
}
frame 31 {
k();
}
frame 32 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'glacier') {
damage *= 2;
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 5000) {
gotoAndPlay('hit2');
}
}
}
frame 49 {
k();
_root.t2();
}
frame 74 {
k();
_root.t2();
}
frame 76 {
_root.live[2 + ID] = 0;
}
frame 112 {
stop();
_root.t2();
}
frame 113 {
_root.t1();
getXY();
}
frame 120 {
run(X, Y);
}
frame 121 {
run(X, Y);
}
frame 122 {
run(X, Y);
}
frame 123 {
run(X, Y);
}
frame 124 {
run(X, Y);
}
frame 125 {
run(X, Y);
}
frame 126 {
run(X, Y);
}
frame 127 {
run(X, Y);
}
frame 128 {
run(X, Y);
}
frame 129 {
run(X, Y);
}
frame 130 {
run(X, Y);
}
frame 131 {
run(X, Y);
}
frame 132 {
X = -X / 2;
Y = -Y / 2;
}
frame 133 {
_global.atype = 'p';
_global.damage = atk * 1000;
_root.hurt();
}
frame 138 {
run(X, Y);
}
frame 139 {
run(X, Y);
}
frame 140 {
run(X, Y);
}
frame 141 {
run(X, Y);
}
frame 142 {
run(X, Y);
}
frame 143 {
run(X, Y);
}
frame 144 {
run(X, Y);
}
frame 145 {
run(X, Y);
}
frame 146 {
run(X, Y);
}
frame 147 {
run(X, Y);
}
frame 148 {
run(X, Y);
}
frame 149 {
run(X, Y);
}
frame 150 {
run(X, Y);
}
frame 151 {
run(X, Y);
}
frame 152 {
run(X, Y);
}
frame 153 {
run(X, Y);
}
frame 154 {
run(X, Y);
}
frame 155 {
run(X, Y);
}
frame 156 {
run(X, Y);
}
frame 157 {
run(X, Y);
}
frame 158 {
run(X, Y);
}
frame 159 {
run(X, Y);
}
frame 160 {
run(X, Y);
}
frame 161 {
run(X, Y);
}
frame 162 {
k();
_root.t2();
}
frame 163 {
_root.t1();
}
frame 187 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = matk * 1000;
_root.hurt();
}
frame 212 {
k();
_root.t2();
}
frame 213 {
_root.t1();
}
frame 234 {
_global.atype = 'm';
_global.damage = matk * 2500;
_root.hurt();
}
frame 245 {
k();
_root.t2();
}
}
frame 32 {
live[3] = 1;
live[4] = 1;
live[5] = 0;
coords = [180, 230, 60, 272, 490, 235, 580, 290, 510, 330];
tellTarget ('/T1') {
HP = 13000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
ID = 1;
}
tellTarget ('/T2') {
HP = 13000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
ID = 2;
}
}
frame 33 {
function itemGet() {
b = random(10);
if (b == 9) {
_global.Text = 23;
maintext.play();
}
if (b == 8) {
_global.Text = 24;
maintext.play();
}
}
stop();
}
frame 36 {
live[3] = 1;
live[4] = 1;
live[5] = 1;
coords = [180, 230, 60, 272, 470, 200, 540, 255, 600, 305];
tellTarget ('/T1') {
HP = 12000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 0.9 * _global.dif;
mdef = 1;
ID = 1;
}
tellTarget ('/T2') {
HP = 12000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 0.9 * _global.dif;
mdef = 1;
ID = 2;
}
tellTarget ('/T3') {
HP = 12000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 0.9 * _global.dif;
mdef = 1;
ID = 3;
}
}
frame 37 {
stop();
}
frame 39 {
function moveset() {
b = random(6);
ranplay();
if (b == 0 or b == 1) {
_global.command = 'attack';
}
if (b == 2) {
_global.command = 'special';
}
if (b == 3 or b == 4) {
_global.command = 'attack2';
}
if (b == 5) {
_global.command = 'rape';
}
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
movieClip 1723 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 18 {
symbols();
}
frame 33 {
symbols();
}
}
movieClip 1740 {
frame 3 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 4 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(_x - 170 - _root.X()) / 12;
Y = -(_y + 220 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bk' + b, b + 999);
(eval('_root.bk' + b))._x = _x - 320 + random(50);
(eval('_root.bk' + b))._y = _y + random(50);
(eval('_root.bk' + b)).damage = damage;
b += 1;
}
b = ID + 8;
q = 0;
}
frame 8 {
HPmax = HP;
}
frame 65 {
stop();
}
frame 68 {
k();
}
frame 69 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'glacier') {
damage *= 2;
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 7000) {
gotoAndPlay('hit2');
}
}
}
frame 88 {
k();
}
frame 88 {
_root.t2();
}
frame 112 {
k();
_root.t2();
}
frame 114 {
_root.live[2 + ID] = 0;
}
frame 159 {
if (!_root.medalCount[2]) {
_root.medal_popup.unlockMedal('Beholder');
_root.medalCount[2] = 1;
trace(_root.medalCount);
}
}
frame 162 {
stop();
_root.t2();
}
frame 164 {
_root.t1();
}
frame 164 {
getXY();
}
frame 174 {
run(X, Y);
}
frame 175 {
run(X, Y);
}
frame 176 {
run(X, Y);
}
frame 177 {
run(X, Y);
}
frame 178 {
run(X, Y);
}
frame 179 {
run(X, Y);
}
frame 180 {
run(X, Y);
}
frame 181 {
run(X, Y);
}
frame 182 {
run(X, Y);
}
frame 183 {
run(X, Y);
}
frame 184 {
run(X, Y);
}
frame 185 {
run(X, Y);
}
frame 186 {
X = -X / 2;
Y = -Y / 2;
}
frame 193 {
_global.atype = 'p';
_global.damage = atk * 2800;
_root.hurt();
}
frame 200 {
run(X, Y);
}
frame 201 {
run(X, Y);
}
frame 202 {
run(X, Y);
}
frame 203 {
run(X, Y);
}
frame 204 {
run(X, Y);
}
frame 205 {
run(X, Y);
}
frame 206 {
run(X, Y);
}
frame 207 {
run(X, Y);
}
frame 208 {
run(X, Y);
}
frame 209 {
run(X, Y);
}
frame 210 {
run(X, Y);
}
frame 211 {
run(X, Y);
}
frame 212 {
run(X, Y);
}
frame 213 {
run(X, Y);
}
frame 214 {
run(X, Y);
}
frame 215 {
run(X, Y);
}
frame 216 {
run(X, Y);
}
frame 217 {
run(X, Y);
}
frame 218 {
run(X, Y);
}
frame 219 {
run(X, Y);
}
frame 220 {
run(X, Y);
}
frame 221 {
run(X, Y);
}
frame 222 {
run(X, Y);
}
frame 223 {
run(X, Y);
}
frame 224 {
_root.t2();
}
frame 225 {
k();
}
frame 226 {
_root.t1();
}
frame 244 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 3300;
_root.hurt();
}
frame 276 {
k();
_root.t2();
}
frame 277 {
_root.t1();
}
frame 277 {
getXY();
}
frame 288 {
run(X, Y);
}
frame 289 {
run(X, Y);
}
frame 290 {
run(X, Y);
}
frame 291 {
run(X, Y);
}
frame 292 {
run(X, Y);
}
frame 293 {
run(X, Y);
}
frame 294 {
run(X, Y);
}
frame 295 {
run(X, Y);
}
frame 296 {
run(X, Y);
}
frame 297 {
run(X, Y);
}
frame 298 {
run(X, Y);
}
frame 299 {
run(X, Y);
}
frame 300 {
X = -X / 2;
Y = -Y / 2;
}
frame 341 {
_global.atype = 'p';
_global.damage = atk * 4500;
_root.hurt();
}
frame 344 {
run(X, Y);
}
frame 345 {
run(X, Y);
}
frame 346 {
run(X, Y);
}
frame 347 {
run(X, Y);
}
frame 348 {
run(X, Y);
}
frame 349 {
run(X, Y);
}
frame 350 {
run(X, Y);
}
frame 351 {
run(X, Y);
}
frame 352 {
run(X, Y);
}
frame 353 {
if (_global.T == 'P1' and _root.live[1]) {
_global.P1poison += 1;
_global.Text = 25;
_root.maintext.play();
}
if (_global.T == 'P2' and _root.live[2]) {
_global.P2poison += 1;
_global.Text = 25;
_root.maintext.play();
}
}
frame 353 {
run(X, Y);
}
frame 354 {
run(X, Y);
}
frame 355 {
run(X, Y);
}
frame 356 {
run(X, Y);
}
frame 357 {
run(X, Y);
}
frame 358 {
run(X, Y);
}
frame 359 {
run(X, Y);
}
frame 360 {
run(X, Y);
}
frame 361 {
run(X, Y);
}
frame 362 {
run(X, Y);
}
frame 363 {
run(X, Y);
}
frame 364 {
run(X, Y);
}
frame 365 {
run(X, Y);
}
frame 366 {
run(X, Y);
}
frame 367 {
run(X, Y);
}
frame 369 {
k();
_root.t2();
}
frame 370 {
_root.t1();
}
frame 383 {
_root.spells.gotoAndPlay('tentacle');
_global.atype = 'p';
_global.damage = atk * 3200;
_root.t1();
}
frame 437 {
k();
_root.t2();
}
}
frame 40 {
live[3] = 1;
live[4] = 0;
live[5] = 0;
coords = [180, 230, 60, 272, 500, 280, 540, 255, 600, 305];
tellTarget ('/T1') {
HP = 100000 * _global.dif;
atk = 0.8 * _global.dif;
def = 1;
matk = 0.9 * _global.dif;
mdef = 1;
ID = 1;
}
}
frame 41 {
function itemGet() {
b = random(20);
if (b < 5) {
_global.Text = 19;
maintext.play();
} else {
_global.Text = 21;
maintext.play();
}
}
stop();
}
frame 42 {
nextBG();
}
frame 43 {
function moveset() {
b = random(3);
ranplay();
if (b == 0) {
_global.command = 'special';
}
if (b == 1) {
_global.command = 'special2';
}
if (b == 2) {
_global.command = 'attack';
}
trace(_global.command);
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
frame 43 {
stopAllSounds();
}
movieClip 1742 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 13 {
symbols();
}
}
movieClip 1750 {
frame 1 {
function k() {
gotoAndPlay('stand');
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function damage() {
_root.dam.duplicateMovieClip('bob' + b, b);
++b;
bb = 'bob' + (b - 1);
tellTarget (''_root.' + bb') {
_x = random(100) + 80;
_y = random(100) + 130;
}
}
b = 0;
}
frame 4 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 5 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(_x - 170 - _root.X()) / 12;
Y = -(_y + 220 - _root.Y()) / 12;
}
function damageNo() {
trace(damage);
_root.dam.duplicateMovieClip('bkl' + b, b + 7);
(eval('_root.bkl' + b))._x = X2 - 300 + random(50);
(eval('_root.bkl' + b))._y = Y2 - 100 + random(50);
(eval('_root.bkl' + b)).damage = damage;
b += 3;
}
b = ID + 8;
q = 0;
}
frame 15 {
HPmax = HP;
}
frame 39 {
stop();
}
frame 41 {
k();
}
frame 42 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
trace(_global.magic);
if (_global.magic == 'fireball') {
damage *= 2;
trace('I AM HIT WITH FIYAH');
}
if (_global.magic == 'erupt') {
damage = Math.round(damage * 1.5);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 6000) {
gotoAndPlay('hit2');
}
}
}
frame 70 {
k();
_root.t2();
}
frame 104 {
k();
_root.t2();
}
frame 106 {
_root.live[2 + ID] = 0;
}
frame 145 {
stop();
_root.t2();
}
frame 147 {
_root.t1();
_root.t1();
}
frame 151 {
_global.atype = 'p';
_global.magic = 'vines';
_global.damage = atk * 1500;
}
frame 166 {
_root.spells.gotoAndPlay('vines');
}
frame 239 {
k();
_root.t2();
}
frame 240 {
_root.t1();
}
frame 276 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 500;
_root.hurt();
}
frame 289 {
l = random(2);
if (l) {
if (_root.live[1]) {
_global.P1poison += 1;
_global.Text = 25;
_root.maintext.play();
}
}
l = random(2);
if (l) {
if (_root.live[2]) {
_global.P2poison += 1;
_global.Text = 25;
_root.maintext.play();
}
}
}
frame 291 {
k();
_root.t2();
}
frame 292 {
_root.t1();
}
frame 328 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 1000;
_root.hurt();
}
frame 343 {
k();
_root.t2();
}
}
frame 44 {
live[3] = 1;
live[4] = 0;
live[5] = 0;
coords = [180, 230, 60, 272, 530, 265, 540, 255, 600, 305];
tellTarget ('/T1') {
HP = 33000 * _global.dif;
atk = 2 * _global.dif;
def = 1;
matk = 2 * _global.dif;
mdef = 1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
}
frame 45 {
function itemGet() {
b = random(20);
if (b < 8) {
_global.Text = 20;
maintext.play();
}
if (b == 19) {
_global.Text = 21;
maintext.play();
}
}
stop();
}
frame 48 {
live[3] = 1;
live[4] = 1;
live[5] = 0;
coords = [180, 230, 60, 272, 500, 230, 550, 290, 600, 305];
tellTarget ('/T1') {
HP = 24000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
tellTarget ('/T2') {
HP = 24000 * _global.dif;
atk = 1.5 * _global.dif;
def = 1;
matk = 1.5 * _global.dif;
mdef = 1;
X2 = _root.coords[6];
Y2 = _root.coords[7];
ID = 2;
}
}
frame 49 {
stop();
}
frame 50 {
hideButtons();
}
frame 52 {
live[3] = 1;
live[4] = 1;
live[5] = 1;
coords = [180, 230, 60, 272, 505, 210, 540, 260, 544, 325];
tellTarget ('/T1') {
HP = 19000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
tellTarget ('/T2') {
HP = 19000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[6];
Y2 = _root.coords[7];
ID = 2;
}
tellTarget ('/T3') {
HP = 19000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[8];
Y2 = _root.coords[9];
ID = 3;
}
}
frame 53 {
stop();
hideButtons();
}
frame 54 {
nextBG();
}
frame 55 {
function moveset() {
if (T1.HP > 130000 * _global.dif) {
b = random(3);
} else {
if (T1.HP > 40000 * _global.dif) {
b = random(5);
} else {
b = 4;
}
}
ranplay();
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'attack2';
}
if (b == 2) {
_global.command = 'attack3';
}
if (b == 3) {
_global.command = 'attack4';
}
if (b == 4) {
_global.command = 'attack5';
}
trace(_global.command);
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
frame 55 {
stopAllSounds();
}
movieClip 1754 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
}
movieClip 1764 {
}
movieClip 1767 {
}
movieClip 1776 {
frame 4 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 5 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(X2 - 120 - _root.X()) / 12;
Y = -(Y2 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bk' + b, b + 999);
(eval('_root.bk' + b))._x = _x + 100 + random(50);
(eval('_root.bk' + b))._y = _y + 200 + random(50);
(eval('_root.bk' + b)).damage = damage;
b += 1;
}
b = ID + 8;
q = 0;
}
frame 6 {
HPmax = HP;
}
frame 51 {
stop();
}
frame 53 {
k();
}
frame 54 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'airstrike') {
damage = Math.round(damage * 1.8);
}
if (_global.magic == 'quake') {
damage = Math.round(damage * 0.5);
}
if (_global.magic == 'screamer') {
damage = Math.round(damage * 0.2);
}
if (_global.magic == 'thunderbolt') {
damage *= 2;
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 8000) {
gotoAndPlay('hit2');
}
}
}
frame 67 {
k();
_root.t2();
}
frame 88 {
k();
_root.t2();
}
frame 91 {
_root.live[2 + ID] = 0;
}
frame 95 {
_root.Playin = false;
}
frame 135 {
if (!_root.medalCount[3]) {
_root.medal_popup.unlockMedal('Defender');
_root.medalCount[3] = 1;
trace(_root.medalCount);
}
}
frame 138 {
stop();
_root.t2();
}
frame 139 {
_root.t1();
}
frame 139 {
getXY();
}
frame 140 {
run(X, Y);
}
frame 141 {
run(X, Y);
}
frame 142 {
run(X, Y);
}
frame 143 {
run(X, Y);
}
frame 144 {
run(X, Y);
}
frame 145 {
run(X, Y);
}
frame 146 {
run(X, Y);
}
frame 147 {
run(X, Y);
}
frame 148 {
run(X, Y);
}
frame 149 {
run(X, Y);
}
frame 150 {
run(X, Y);
}
frame 151 {
run(X, Y);
}
frame 152 {
X = -X / 2;
Y = -Y / 2;
}
frame 154 {
_global.atype = 'p';
_global.damage = atk * (2500 + random(1500));
_root.hurt();
}
frame 164 {
run(X, Y);
}
frame 165 {
run(X, Y);
}
frame 166 {
run(X, Y);
}
frame 167 {
run(X, Y);
}
frame 168 {
run(X, Y);
}
frame 169 {
run(X, Y);
}
frame 170 {
run(X, Y);
}
frame 171 {
run(X, Y);
}
frame 172 {
run(X, Y);
}
frame 173 {
run(X, Y);
}
frame 174 {
run(X, Y);
}
frame 175 {
run(X, Y);
}
frame 176 {
run(X, Y);
}
frame 177 {
run(X, Y);
}
frame 178 {
run(X, Y);
}
frame 179 {
run(X, Y);
}
frame 180 {
run(X, Y);
}
frame 181 {
run(X, Y);
}
frame 182 {
run(X, Y);
}
frame 183 {
run(X, Y);
}
frame 184 {
run(X, Y);
}
frame 185 {
run(X, Y);
}
frame 186 {
run(X, Y);
}
frame 187 {
run(X, Y);
}
frame 188 {
_root.t2();
}
frame 188 {
k();
}
frame 189 {
_root.t1();
}
frame 189 {
getXY();
}
frame 190 {
run(X, Y);
}
frame 191 {
run(X, Y);
}
frame 192 {
run(X, Y);
}
frame 193 {
run(X, Y);
}
frame 194 {
run(X, Y);
}
frame 195 {
run(X, Y);
}
frame 196 {
run(X, Y);
}
frame 197 {
run(X, Y);
}
frame 198 {
run(X, Y);
}
frame 199 {
run(X, Y);
}
frame 200 {
run(X, Y);
}
frame 201 {
run(X, Y);
}
frame 202 {
X = -X / 2;
Y = -Y / 2;
}
frame 205 {
_global.atype = 'p';
_global.damage = atk * 3700;
_root.hurt();
}
frame 214 {
run(X, Y);
}
frame 215 {
run(X, Y);
}
frame 216 {
run(X, Y);
}
frame 217 {
run(X, Y);
}
frame 218 {
run(X, Y);
}
frame 219 {
run(X, Y);
}
frame 220 {
run(X, Y);
}
frame 221 {
run(X, Y);
}
frame 222 {
run(X, Y);
}
frame 223 {
run(X, Y);
}
frame 224 {
run(X, Y);
}
frame 225 {
run(X, Y);
}
frame 226 {
run(X, Y);
}
frame 227 {
run(X, Y);
}
frame 228 {
run(X, Y);
}
frame 229 {
run(X, Y);
}
frame 230 {
run(X, Y);
}
frame 231 {
run(X, Y);
}
frame 232 {
run(X, Y);
}
frame 233 {
run(X, Y);
}
frame 234 {
run(X, Y);
}
frame 235 {
run(X, Y);
}
frame 236 {
run(X, Y);
}
frame 237 {
run(X, Y);
}
frame 238 {
k();
_root.t2();
}
frame 239 {
_root.t1();
}
frame 246 {
_global.atype = 'p';
_global.damage = atk * 400;
_root.hurt();
}
frame 250 {
_root.hurt();
}
frame 254 {
_root.hurt();
}
frame 258 {
_root.hurt();
}
frame 262 {
_root.hurt();
}
frame 266 {
_root.hurt();
}
frame 270 {
_root.hurt();
}
frame 274 {
_root.hurt();
}
frame 278 {
_root.hurt();
}
frame 282 {
_root.hurt();
}
frame 293 {
k();
_root.t2();
}
frame 294 {
_root.t1();
}
frame 303 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 500;
_root.hurt();
}
frame 307 {
_root.hurt();
}
frame 311 {
_root.hurt();
}
frame 315 {
_root.hurt();
}
frame 319 {
_root.hurt();
}
frame 323 {
_root.hurt();
}
frame 336 {
k();
_root.t2();
}
frame 337 {
_root.t1();
}
frame 368 {
_root.shake('big');
}
frame 369 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 4500;
_root.hurt();
}
frame 405 {
k();
_root.t2();
}
}
frame 56 {
live[3] = 1;
live[4] = 0;
live[5] = 0;
coords = [180, 230, 60, 272, 510, 280, 540, 255, 600, 305];
tellTarget ('/T1') {
HP = 180000 * _global.dif;
atk = 0.9 * _global.dif;
def = 1.1;
matk = 1 * _global.dif;
mdef = 1.1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
}
frame 57 {
function itemGet() {
b = random(20);
if (b < 5) {
_global.Text = 19;
maintext.play();
} else {
_global.Text = 22;
maintext.play();
}
}
stop();
}
frame 58 {
stopAllSounds();
}
frame 59 {
stop();
fade.play();
_global.dir = 'forward';
_global.money += 7000;
}
frame 60 {
BG.play();
}
frame 60 {
stopAllSounds();
}
movieClip 1783 {
frame 118 {
stop();
}
}
frame 61 {
stop();
}
frame 62 {
stop();
}
frame 62 {
live[1] = 1;
live[2] = 1;
_global.P1HP = 9999;
_global.P1MP = 999;
_global.P1HPmax = 9999;
_global.P1MPmax = 999;
_global.P1atk = 1;
_global.P1matk = 1;
_global.P1def = 1;
_global.P1mdef = 1;
_global.P1poison = 0;
_global.P1seal = 0;
_global.P2HP = 9999;
_global.P2MP = 999;
_global.P2HPmax = 9999;
_global.P2MPmax = 999;
_global.P2atk = 1;
_global.P2matk = 1;
_global.P2def = 1;
_global.P2mdef = 1;
_global.P2poison = 0;
_global.P2seal = 0;
}
frame 63 {
stopAllSounds();
if (itemz9 > 9) {
if (!_root.medalCount[15]) {
_root.medal_popup.unlockMedal('Terrorist');
_root.medalCount[15] = 1;
trace(_root.medalCount);
}
}
}
frame 63 {
Playin = true;
}
frame 64 {
play();
_root.hideButtons();
}
frame 65 {
function moveset() {
b = random(3);
if ((eval(_global.user)).defend) {
if (b == 2) {
_global.command = 'undefend';
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
} else {
_global.command = 'nothing';
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
} else {
ranplay();
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'attack2';
}
if (b == 2) {
_global.command = 'defend';
}
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
trace(_global.command);
}
}
frame 65 {
_root.hideButtons();
}
movieClip 1787 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 22 {
symbols();
}
}
movieClip 1792 {
}
movieClip 1793 {
frame 1 {
function k() {
gotoAndPlay('stand');
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
}
frame 5 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 6 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(_x + 250 - _root.X()) / 12;
Y = -(_y + 250 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bk' + b, b + 999);
(eval('_root.bk' + b))._x = _x - 20 + random(50);
(eval('_root.bk' + b))._y = _y + 120 + random(50);
(eval('_root.bk' + b)).damage = damage;
b += 1;
}
b = ID + 8;
q = 0;
}
frame 11 {
HPmax = HP;
}
frame 42 {
stop();
}
frame 43 {
k();
}
frame 44 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'airstrike') {
damage = Math.round(damage * 1.7);
}
if (_global.magic == 'quake') {
damage = Math.round(damage * 2.2);
}
if (_global.magic == 'thunderbolt') {
damage *= 2;
}
if (defend) {
damage = Math.round(damage * 0.5);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (defend) {
gotoAndPlay('defhit');
} else {
if (damage > 6000) {
gotoAndPlay('hit2');
}
}
}
}
frame 74 {
k();
_root.t2();
}
frame 106 {
k();
_root.t2();
}
frame 108 {
_root.live[2 + ID] = 0;
}
frame 163 {
stop();
_root.t2();
}
frame 165 {
_root.t1();
}
frame 165 {
getXY();
}
frame 175 {
run(X, Y);
}
frame 176 {
run(X, Y);
}
frame 177 {
run(X, Y);
}
frame 178 {
run(X, Y);
}
frame 179 {
run(X, Y);
}
frame 180 {
run(X, Y);
}
frame 181 {
run(X, Y);
}
frame 182 {
run(X, Y);
}
frame 183 {
run(X, Y);
}
frame 184 {
run(X, Y);
}
frame 185 {
run(X, Y);
}
frame 186 {
run(X, Y);
}
frame 187 {
X = -X / 2;
Y = -Y / 2;
}
frame 193 {
_global.atype = 'p';
_global.damage = atk * 2000;
_root.hurt();
}
frame 201 {
run(X, Y);
}
frame 202 {
run(X, Y);
}
frame 203 {
run(X, Y);
}
frame 204 {
run(X, Y);
}
frame 205 {
run(X, Y);
}
frame 206 {
run(X, Y);
}
frame 207 {
run(X, Y);
}
frame 208 {
run(X, Y);
}
frame 209 {
run(X, Y);
}
frame 210 {
run(X, Y);
}
frame 211 {
run(X, Y);
}
frame 212 {
run(X, Y);
}
frame 213 {
run(X, Y);
}
frame 214 {
run(X, Y);
}
frame 215 {
run(X, Y);
}
frame 216 {
run(X, Y);
}
frame 217 {
run(X, Y);
}
frame 218 {
run(X, Y);
}
frame 219 {
run(X, Y);
}
frame 220 {
run(X, Y);
}
frame 221 {
run(X, Y);
}
frame 222 {
run(X, Y);
}
frame 223 {
run(X, Y);
}
frame 224 {
run(X, Y);
}
frame 239 {
k();
_root.t2();
}
frame 241 {
defend = 1;
}
frame 243 {
_root.t1();
}
frame 272 {
stop();
_root.t2();
}
frame 274 {
_root.t1();
}
frame 294 {
gotoAndStop('defend1');
}
frame 315 {
gotoAndStop('defend1');
q = 0;
}
frame 316 {
_root.t1();
}
frame 318 {
defend = 0;
}
frame 349 {
k();
_root.t2();
}
frame 350 {
_root.t1();
}
frame 350 {
getXY();
}
frame 361 {
run(X, Y);
}
frame 362 {
run(X, Y);
}
frame 363 {
run(X, Y);
}
frame 364 {
run(X, Y);
}
frame 365 {
run(X, Y);
}
frame 366 {
run(X, Y);
}
frame 367 {
run(X, Y);
}
frame 368 {
run(X, Y);
}
frame 369 {
run(X, Y);
}
frame 370 {
run(X, Y);
}
frame 371 {
run(X, Y);
}
frame 372 {
run(X, Y);
}
frame 373 {
X = -X / 2;
Y = -Y / 2;
}
frame 383 {
_global.atype = 'm';
_global.damage = atk * 2000;
_root.hurt();
}
frame 399 {
run(X, Y);
}
frame 400 {
run(X, Y);
}
frame 401 {
run(X, Y);
}
frame 402 {
run(X, Y);
}
frame 403 {
run(X, Y);
}
frame 404 {
run(X, Y);
}
frame 405 {
run(X, Y);
}
frame 406 {
run(X, Y);
}
frame 407 {
run(X, Y);
}
frame 408 {
run(X, Y);
}
frame 409 {
run(X, Y);
}
frame 410 {
run(X, Y);
}
frame 411 {
run(X, Y);
}
frame 412 {
run(X, Y);
}
frame 413 {
run(X, Y);
}
frame 414 {
run(X, Y);
}
frame 415 {
run(X, Y);
}
frame 416 {
run(X, Y);
}
frame 417 {
run(X, Y);
}
frame 418 {
run(X, Y);
}
frame 419 {
run(X, Y);
}
frame 420 {
run(X, Y);
}
frame 421 {
run(X, Y);
}
frame 422 {
run(X, Y);
}
frame 437 {
k();
_root.t2();
}
}
frame 66 {
live[3] = 1;
live[4] = 1;
live[5] = 0;
coords = [180, 230, 60, 272, 520, 200, 530, 290, 600, 305];
tellTarget ('/T1') {
HP = 30000 * _global.dif;
atk = 1.2 * _global.dif;
def = 1.2;
matk = 1.2 * _global.dif;
mdef = 1;
defend = 0;
ID = 1;
}
tellTarget ('/T2') {
HP = 30000 * _global.dif;
atk = 1.2 * _global.dif;
def = 1.2;
matk = 1.2 * _global.dif;
mdef = 1;
defend = 0;
ID = 2;
}
}
frame 67 {
function itemGet() {
b = random(3);
if (b == 0) {
_global.Text = 21;
maintext.play();
}
}
stop();
}
frame 70 {
live[3] = 1;
live[4] = 1;
live[5] = 1;
coords = [180, 230, 60, 272, 530, 210, 580, 255, 535, 320];
tellTarget ('/T1') {
HP = 30000 * _global.dif;
atk = 1 * _global.dif;
def = 1.2;
matk = 1 * _global.dif;
mdef = 1;
defend = 0;
ID = 1;
}
tellTarget ('/T2') {
HP = 30000 * _global.dif;
atk = 1 * _global.dif;
def = 1.2;
matk = 1 * _global.dif;
mdef = 1;
defend = 0;
ID = 2;
}
tellTarget ('/T3') {
HP = 30000 * _global.dif;
atk = 1 * _global.dif;
def = 1.2;
matk = 1 * _global.dif;
mdef = 1;
defend = 0;
ID = 3;
}
}
frame 71 {
stop();
}
frame 72 {
stopAllSounds();
}
frame 73 {
function moveset() {
b = random(5);
ranplay();
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'special';
}
if (b > 1) {
_global.command = 'magic';
}
trace(_global.command);
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
movieClip 1796 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 23 {
symbols();
}
frame 43 {
symbols();
}
}
movieClip 1799 {
frame 17 {
stop();
}
}
movieClip 1808 {
frame 1 {
function k() {
gotoAndPlay('stand');
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
}
frame 4 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 5 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(X2 - 150 - _root.X()) / 12;
Y = -(Y2 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bk' + b, b + 777);
(eval('_root.bk' + b))._x = X2 - 400 + random(50);
(eval('_root.bk' + b))._y = Y2 - 200 + random(50);
(eval('_root.bk' + b)).damage = damage;
b += 2;
}
function heal() {
_root.heal.duplicateMovieClip('bk' + b, b + 888);
(eval('_root.bk' + b))._x = X2 - 400 + random(50);
(eval('_root.bk' + b))._y = Y2 - 200 + random(50);
(eval('_root.bk' + b)).cure = cure;
b += 2;
}
b = ID + 8;
q = 0;
}
frame 8 {
HPmax = HP;
}
frame 41 {
stop();
}
frame 44 {
k();
}
frame 45 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'erupt') {
damage = Math.round(damage * 2);
}
if (_global.magic == 'quake') {
damage = Math.round(damage * 1.6);
}
if (_global.magic == 'fireball') {
damage = Math.round(damage * 2);
}
if (_global.magic == 'airstrike') {
damage = Math.round(damage * 1.5);
}
if (_global.magic == 'thunderbolt') {
damage = Math.round(damage * 1.3);
}
if (_global.magic == 'glacier') {
damage = Math.round(damage * 5);
}
if (q == 0) {
_root.t1();
q = 1;
}
if (_global.magic != 'glacier') {
damageNo();
HP -= damage;
if (HP <= 0 and di) {
HP = 0;
gotoAndPlay('hide');
} else {
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 8000) {
gotoAndPlay('hit2');
}
}
}
} else {
gotoAndPlay('heal');
}
}
frame 65 {
k();
_root.t2();
}
frame 67 {
_root.live[2 + ID] = 0;
}
frame 116 {
if (!_root.medalCount[4]) {
_root.medal_popup.unlockMedal('Regice');
_root.medalCount[4] = 1;
trace(_root.medalCount);
}
}
frame 118 {
stop();
_root.t2();
}
frame 119 {
_root.t1();
}
frame 155 {
_root.spells.gotoAndPlay('frost');
_global.atype = 'm';
_global.damage = matk * 2300;
}
frame 187 {
gotoAndPlay('stand');
}
frame 188 {
_root.t1();
}
frame 221 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = matk * 3300;
_root.hurt();
}
frame 266 {
k();
_root.t2();
}
frame 268 {
_root.live[2 + ID] = 0;
}
frame 296 {
stop();
_root.t2();
}
frame 297 {
cure = damage;
heal();
}
frame 321 {
k();
_root.t2();
}
frame 322 {
getXY();
_root.t1();
}
frame 328 {
run(X, Y);
}
frame 329 {
run(X, Y);
}
frame 330 {
run(X, Y);
}
frame 331 {
run(X, Y);
}
frame 332 {
run(X, Y);
}
frame 333 {
run(X, Y);
}
frame 334 {
run(X, Y);
}
frame 335 {
run(X, Y);
}
frame 336 {
run(X, Y);
}
frame 337 {
run(X, Y);
}
frame 338 {
run(X, Y);
}
frame 339 {
run(X, Y);
}
frame 340 {
X = -X / 2;
Y = -Y / 2;
}
frame 344 {
_global.atype = 'p';
_global.damage = matk * 2500;
_root.hurt();
}
frame 346 {
run(X, Y);
}
frame 347 {
run(X, Y);
}
frame 348 {
run(X, Y);
}
frame 349 {
run(X, Y);
}
frame 350 {
run(X, Y);
}
frame 351 {
run(X, Y);
}
frame 352 {
run(X, Y);
}
frame 353 {
run(X, Y);
}
frame 354 {
run(X, Y);
}
frame 355 {
run(X, Y);
}
frame 356 {
run(X, Y);
}
frame 357 {
run(X, Y);
}
frame 358 {
run(X, Y);
}
frame 359 {
run(X, Y);
}
frame 360 {
run(X, Y);
}
frame 361 {
run(X, Y);
}
frame 362 {
run(X, Y);
}
frame 363 {
run(X, Y);
}
frame 364 {
run(X, Y);
}
frame 365 {
run(X, Y);
}
frame 366 {
run(X, Y);
}
frame 367 {
run(X, Y);
}
frame 368 {
run(X, Y);
}
frame 369 {
run(X, Y);
}
frame 370 {
k();
_root.t2();
}
frame 391 {
k();
_root.t2();
}
}
frame 74 {
live[3] = 1;
live[4] = 0;
live[5] = 0;
coords = [180, 230, 60, 272, 550, 265, 540, 255, 600, 305];
tellTarget ('/T1') {
HP = 100000 * _global.dif;
atk = 1.1 * _global.dif;
def = 0.9;
matk = 1.1 * _global.dif;
mdef = 1.2;
X2 = _root.coords[4];
Y2 = _root.coords[5];
di = 1;
ID = 1;
}
}
frame 75 {
function itemGet() {}
stop();
}
frame 76 {
nextBG();
}
frame 77 {
function moveset() {
b = random(5);
ranplay();
if (b == 0) {
_global.command = 'attack3';
}
if (b == 1) {
_global.command = 'special';
}
if (b == 2) {
_global.command = 'attack2';
}
if (b > 2) {
_global.command = 'attack';
}
trace(_global.command);
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
movieClip 1811 {
}
movieClip 1813 {
}
movieClip 1815 {
}
movieClip 1817 {
}
movieClip 1819 {
}
movieClip 1821 {
}
movieClip 1823 {
}
movieClip 1825 {
}
movieClip 1827 {
}
movieClip 1829 {
}
movieClip 1831 {
}
movieClip 1833 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 23 {
symbols();
}
frame 43 {
symbols();
}
}
movieClip 1842 {
frame 17 {
stop();
}
}
movieClip 1847 {
frame 1 {
function k() {
gotoAndPlay('stand');
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
}
frame 1 {
function shake(X) {
tellTarget ('/shake') {
gotoAndPlay(X);
}
}
}
frame 5 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 6 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(X2 - 250 - _root.X()) / 12;
Y = -(Y2 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bk' + b, b + 777);
(eval('_root.bk' + b))._x = X2 - 400 + random(50);
(eval('_root.bk' + b))._y = Y2 - 210 + random(50);
(eval('_root.bk' + b)).damage = damage;
b += 2;
}
function heal() {
_root.heal.duplicateMovieClip('bk' + b, b + 888);
(eval('_root.bk' + b))._x = X2 - 400 + random(50);
(eval('_root.bk' + b))._y = Y2 - 210 + random(50);
(eval('_root.bk' + b)).cure = cure;
b += 2;
}
b = ID + 8;
q = 0;
}
frame 6 {
shake('small');
}
frame 11 {
HPmax = HP;
}
frame 24 {
shake('small');
}
frame 44 {
stop();
}
frame 46 {
k();
}
frame 47 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'erupt') {
damage = Math.round(damage * 0.2);
}
if (_global.magic == 'quake') {
damage = Math.round(damage * 3);
}
if (_global.magic == 'fireball') {
damage = Math.round(damage * 0.5);
}
if (_global.magic == 'thunderbolt') {
damage = Math.round(damage * 0.2);
}
if (_global.magic == 'glacier') {
damage = Math.round(damage * 2);
}
if (_global.magic == 'airstrike') {
damage = Math.round(damage * 1.6);
}
if (q == 0) {
_root.t1();
q = 1;
}
if (_global.magic != 'quake') {
damageNo();
HP -= damage;
if (HP <= 0 and di) {
HP = 0;
gotoAndPlay('hit2');
_root.live[2 + ID] = 0;
} else {
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 8000) {
gotoAndPlay('hit2');
}
}
}
} else {
gotoAndPlay('heal');
}
}
frame 67 {
k();
_root.t2();
}
frame 69 {
_root.live[2 + ID] = 0;
}
frame 120 {
stop();
_root.t2();
}
frame 121 {
_root.t1();
}
frame 143 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = matk * 3300;
_root.hurt();
}
frame 193 {
gotoAndPlay('stand');
_root.t2();
}
frame 194 {
_root.t1();
}
frame 219 {
shake('small');
}
frame 219 {
_global.atype = 'p';
_global.T = 'Pall';
_global.damage = matk * 2700;
_root.hurt();
}
frame 236 {
k();
_root.t2();
}
frame 237 {
cure = damage;
heal();
}
frame 260 {
k();
_root.t2();
}
frame 261 {
_root.t1();
}
frame 296 {
_global.atype = 'p';
_global.T = 'Pall';
_global.damage = atk * 3800;
_root.hurt();
}
frame 321 {
k();
_root.t2();
}
frame 344 {
k();
_root.t2();
}
frame 345 {
_root.t1();
}
frame 349 {
getXY();
}
frame 359 {
run(X, Y);
}
frame 360 {
run(X, Y);
}
frame 361 {
run(X, Y);
}
frame 362 {
run(X, Y);
}
frame 363 {
run(X, Y);
}
frame 364 {
run(X, Y);
}
frame 365 {
run(X, Y);
}
frame 366 {
run(X, Y);
}
frame 367 {
run(X, Y);
}
frame 368 {
run(X, Y);
}
frame 369 {
run(X, Y);
}
frame 370 {
run(X, Y);
}
frame 371 {
X = -X / 2;
Y = -Y / 2;
}
frame 376 {
_global.atype = 'p';
_global.damage = atk * 2500;
_root.hurt();
}
frame 377 {
run(X, Y);
}
frame 378 {
run(X, Y);
}
frame 379 {
run(X, Y);
}
frame 380 {
run(X, Y);
}
frame 381 {
run(X, Y);
}
frame 382 {
run(X, Y);
}
frame 383 {
run(X, Y);
}
frame 384 {
run(X, Y);
}
frame 385 {
run(X, Y);
}
frame 386 {
run(X, Y);
}
frame 387 {
run(X, Y);
}
frame 388 {
run(X, Y);
}
frame 389 {
run(X, Y);
}
frame 390 {
run(X, Y);
}
frame 391 {
run(X, Y);
}
frame 392 {
run(X, Y);
}
frame 393 {
run(X, Y);
}
frame 394 {
run(X, Y);
}
frame 395 {
run(X, Y);
}
frame 396 {
run(X, Y);
}
frame 397 {
run(X, Y);
}
frame 398 {
run(X, Y);
}
frame 399 {
run(X, Y);
}
frame 400 {
k();
_root.t2();
}
frame 400 {
run(X, Y);
}
}
frame 78 {
live[3] = 0;
live[4] = 1;
live[5] = 0;
coords = [180, 230, 60, 272, 550, 265, 550, 265, 600, 305];
tellTarget ('/T2') {
HP = 110000 * _global.dif;
atk = 1.1 * _global.dif;
def = 1.2;
matk = 1.1 * _global.dif;
mdef = 0.9;
X2 = _root.coords[4];
Y2 = _root.coords[5];
di = 1;
ID = 2;
}
}
frame 79 {
stop();
}
frame 81 {
function moveset() {
b = random(5);
ranplay();
if (_global.user == 'T1') {
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'special';
}
if (b > 1) {
_global.command = 'magic';
}
trace(_global.command);
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
} else {
if (b == 0) {
_global.command = 'attack3';
}
if (b == 1) {
_global.command = 'special';
}
if (b == 2) {
_global.command = 'attack2';
}
if (b > 2) {
_global.command = 'attack';
}
trace(_global.command);
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
}
frame 82 {
live[3] = 1;
live[4] = 1;
live[5] = 0;
coords = [180, 230, 60, 272, 600, 300, 550, 265, 600, 305];
tellTarget ('/T2') {
HP = 100000 * _global.dif;
atk = 0.8 * _global.dif;
def = 1.2;
matk = 0.8 * _global.dif;
mdef = 0.9;
X2 = _root.coords[4];
Y2 = _root.coords[5];
di = 0;
ID = 2;
}
tellTarget ('/T1') {
HP = 90000 * _global.dif;
atk = 0.8 * _global.dif;
def = 0.9;
matk = 0.7 * _global.dif;
mdef = 1.2;
X2 = _root.coords[4];
Y2 = _root.coords[5];
di = 0;
ID = 1;
}
}
frame 83 {
function itemGet() {
b = random(2);
if (b == 0) {
_global.Text = 23;
maintext.play();
} else {
_global.Text = 24;
maintext.play();
}
}
stop();
}
frame 84 {
nextBG();
}
frame 85 {
function moveset() {
b = random(6);
ranplay();
if (b == 0 or b == 1) {
_global.command = 'attack';
} else {
if (b == 2) {
_global.command = 'attack2';
} else {
if (b == 3 or b == 4) {
_global.command = 'special2';
} else {
_global.command = 'special';
}
}
}
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
frame 85 {
stopAllSounds();
}
movieClip 1848 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 14 {
symbols();
}
}
movieClip 1852 {
}
movieClip 1855 {
frame 4 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 5 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(X2 - 100 - _root.X()) / 12;
Y = -(Y2 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bok' + b, b + 999);
(eval('_root.bok' + b))._x = X2 - 350 + random(50);
(eval('_root.bok' + b))._y = Y2 - 70 - 100 + random(50);
(eval('_root.bok' + b)).damage = damage;
b += 3;
}
b = ID + 999;
q = 0;
HPmax = HP;
}
frame 37 {
stop();
}
frame 38 {
k();
}
frame 39 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'glacier' or _global.magic == 'thunderbolt' or _global.magic == 'airstrike' or _global.magic == 'glacier') {
damage = Math.round(damage * 1.5);
}
if (_global.magic == 'fireball' or _global.magic == 'erupt') {
damage = Math.round(damage * 0.5);
}
if (_global.magic == 'screamer') {
damage = Math.round(damage * 0.2);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 6000) {
gotoAndPlay('hit2');
}
}
}
frame 56 {
k();
_root.t2();
}
frame 79 {
k();
_root.t2();
}
frame 81 {
_root.live[2 + ID] = 0;
}
frame 132 {
stop();
_root.t2();
}
frame 133 {
_root.t1();
}
frame 134 {
getXY();
}
frame 140 {
run(X, Y);
}
frame 141 {
run(X, Y);
}
frame 142 {
run(X, Y);
}
frame 143 {
run(X, Y);
}
frame 144 {
run(X, Y);
}
frame 145 {
run(X, Y);
}
frame 146 {
run(X, Y);
}
frame 147 {
run(X, Y);
}
frame 148 {
run(X, Y);
}
frame 149 {
run(X, Y);
}
frame 150 {
run(X, Y);
}
frame 151 {
run(X, Y);
}
frame 152 {
X = -X / 2;
Y = -Y / 2;
}
frame 157 {
_global.atype = 'p';
_global.damage = atk * 2300;
_root.hurt();
}
frame 159 {
run(X, Y);
}
frame 160 {
run(X, Y);
}
frame 161 {
run(X, Y);
}
frame 162 {
run(X, Y);
}
frame 163 {
run(X, Y);
}
frame 164 {
run(X, Y);
}
frame 165 {
run(X, Y);
}
frame 166 {
run(X, Y);
}
frame 167 {
run(X, Y);
}
frame 168 {
run(X, Y);
}
frame 169 {
run(X, Y);
}
frame 170 {
run(X, Y);
}
frame 171 {
run(X, Y);
}
frame 172 {
run(X, Y);
}
frame 173 {
run(X, Y);
}
frame 174 {
run(X, Y);
}
frame 175 {
run(X, Y);
}
frame 176 {
run(X, Y);
}
frame 177 {
run(X, Y);
}
frame 178 {
run(X, Y);
}
frame 179 {
run(X, Y);
}
frame 180 {
run(X, Y);
}
frame 181 {
run(X, Y);
}
frame 182 {
run(X, Y);
}
frame 187 {
k();
_root.t2();
}
frame 188 {
_root.t1();
getXY();
}
frame 195 {
run(X, Y);
}
frame 196 {
run(X, Y);
}
frame 197 {
run(X, Y);
}
frame 198 {
run(X, Y);
}
frame 199 {
run(X, Y);
}
frame 200 {
run(X, Y);
}
frame 201 {
run(X, Y);
}
frame 202 {
run(X, Y);
}
frame 203 {
run(X, Y);
}
frame 204 {
run(X, Y);
}
frame 205 {
run(X, Y);
}
frame 206 {
run(X, Y);
}
frame 207 {
X = -X / 2;
Y = -Y / 2;
}
frame 212 {
_global.atype = 'p';
_global.damage = atk * 1600;
_root.hurt();
}
frame 216 {
_root.hurt();
}
frame 218 {
run(X, Y);
}
frame 219 {
run(X, Y);
}
frame 220 {
run(X, Y);
}
frame 221 {
run(X, Y);
}
frame 222 {
run(X, Y);
}
frame 223 {
run(X, Y);
}
frame 224 {
run(X, Y);
}
frame 225 {
run(X, Y);
}
frame 226 {
run(X, Y);
}
frame 227 {
run(X, Y);
}
frame 228 {
run(X, Y);
}
frame 229 {
run(X, Y);
}
frame 230 {
run(X, Y);
}
frame 231 {
run(X, Y);
}
frame 232 {
run(X, Y);
}
frame 233 {
run(X, Y);
}
frame 234 {
run(X, Y);
}
frame 235 {
run(X, Y);
}
frame 236 {
run(X, Y);
}
frame 237 {
run(X, Y);
}
frame 238 {
run(X, Y);
}
frame 239 {
run(X, Y);
}
frame 240 {
run(X, Y);
}
frame 241 {
run(X, Y);
}
frame 246 {
k();
_root.t2();
}
frame 247 {
_root.t1();
}
frame 272 {
if (_global.T == 'P1') {
_global.P1seal += 4;
} else {
_global.P2seal += 4;
}
_global.atype = 'm';
_global.damage = atk * 600;
_root.hurt();
_global.Text = 30;
_root.maintext.play();
}
frame 276 {
k();
_root.t2();
}
frame 277 {
_root.t1();
}
frame 295 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 400;
}
frame 298 {
_root.hurt();
}
frame 302 {
_root.hurt();
}
frame 306 {
_root.hurt();
}
frame 310 {
_root.hurt();
}
frame 312 {
k();
_root.t2();
}
}
frame 86 {
live[3] = 1;
live[4] = 1;
live[5] = 0;
coords = [180, 230, 60, 272, 520, 210, 560, 280, 600, 305];
tellTarget ('/T1') {
HP = 27000 * _global.dif;
atk = 0.8 * _global.dif;
def = 1.1;
matk = 1 * _global.dif;
mdef = 1.1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
tellTarget ('/T2') {
HP = 27000 * _global.dif;
atk = 0.8 * _global.dif;
def = 1.1;
matk = 1 * _global.dif;
mdef = 1.1;
X2 = _root.coords[6];
Y2 = _root.coords[7];
ID = 2;
}
}
frame 87 {
function itemGet() {
b = random(3);
if (b == 0) {
_global.Text = 22;
maintext.play();
}
}
stop();
}
frame 90 {
live[3] = 1;
live[4] = 1;
live[5] = 1;
coords = [180, 230, 60, 272, 530, 200, 560, 240, 590, 300];
tellTarget ('/T1') {
HP = 25000 * _global.dif;
atk = 0.7 * _global.dif;
def = 1.1;
matk = 1 * _global.dif;
mdef = 1.1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
tellTarget ('/T2') {
HP = 25000 * _global.dif;
atk = 0.7 * _global.dif;
def = 1.1;
matk = 1 * _global.dif;
mdef = 1.1;
X2 = _root.coords[6];
Y2 = _root.coords[7];
ID = 2;
}
tellTarget ('/T3') {
HP = 25000 * _global.dif;
atk = 0.7 * _global.dif;
def = 1.1;
matk = 1 * _global.dif;
mdef = 1.1;
X2 = _root.coords[8];
Y2 = _root.coords[9];
ID = 3;
}
}
frame 91 {
function itemGet() {
b = random(2);
if (b == 0) {
_global.Text = 22;
maintext.play();
}
}
stop();
}
frame 92 {
nextBG();
}
frame 93 {
function moveset() {
b = random(9);
ranplay();
if (T1.charge) {
_global.command = 'special4';
} else {
if (T1.HP > 200000 * _global.dif) {
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'attack2';
}
if (b == 2) {
_global.command = 'attack3';
}
if (b == 3) {
_global.command = 'attack3';
}
if (b == 4) {
_global.command = 'attack2';
}
if (b == 5) {
_global.command = 'attack';
}
if (b == 6) {
_global.command = 'special';
}
if (b == 7) {
_global.command = 'special2';
}
if (b == 8) {
_global.command = 'special';
}
} else {
if (T1.HP > 100000 * _global.dif) {
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'attack2';
}
if (b == 2) {
_global.command = 'attack3';
}
if (b == 3) {
_global.command = 'attack4';
}
if (b == 4) {
_global.command = 'attack5';
}
if (b == 5) {
_global.command = 'special2';
}
if (b == 6) {
_global.command = 'special2';
}
if (b == 7) {
_global.command = 'attack4';
}
if (b == 8) {
_global.command = 'attack5';
}
} else {
if (b == 0) {
_global.command = 'special3';
}
if (b == 1) {
_global.command = 'special3';
}
if (b == 2) {
_global.command = 'attack4';
}
if (b == 3) {
_global.command = 'attack5';
}
if (b == 4) {
_global.command = 'attack5';
}
if (b == 5) {
_global.command = 'charge';
}
if (b == 6) {
_global.command = 'attack4';
}
if (b == 7) {
_global.command = 'attack5';
}
if (b == 8) {
_global.command = 'charge';
}
}
}
}
trace(_global.command);
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
frame 93 {
stopAllSounds();
}
movieClip 1857 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 19 {
symbols();
}
}
movieClip 1858 {
}
movieClip 1862 {
}
movieClip 1936 {
}
movieClip 1956 {
frame 1 {
function k() {
gotoAndPlay('stand');
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function damage() {
_root.dam.duplicateMovieClip('bob' + b, b);
++b;
bb = 'bob' + (b - 1);
tellTarget (''_root.' + bb') {
_x = random(100) + 70;
_y = random(100) + 70;
}
}
b = 0;
}
frame 1 {
charge = 0;
}
frame 5 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 6 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(X2 - 120 - _root.X()) / 12;
Y = -(Y2 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('blk' + b, b + 99);
(eval('_root.blk' + b))._x = X2 - 350 + random(50);
(eval('_root.blk' + b))._y = Y2 - 250 + random(50);
(eval('_root.blk' + b)).damage = damage;
b += 1;
}
b = ID + 8;
q = 0;
}
frame 8 {
HPmax = HP;
}
frame 43 {
stop();
}
frame 45 {
k();
}
frame 46 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'airstrike') {
damage = Math.round(damage * 2);
}
if (_global.magic == 'quake') {
damage = Math.round(damage * 1.4);
}
if (_global.magic == 'screamer') {
damage = Math.round(damage * 0.2);
}
if (_global.magic == 'thunderbolt') {
damage = Math.round(damage * 2);
}
if (_global.magic == 'fireball') {
damage = Math.round(damage * 0.2);
}
if (_global.magic == 'glacier') {
damage = Math.round(damage * 0.2);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 10000) {
gotoAndPlay('hit2');
}
}
}
frame 64 {
k();
_root.t2();
}
frame 89 {
k();
_root.t2();
}
frame 91 {
_root.live[2 + ID] = 0;
}
frame 92 {
_root.shake('big');
}
frame 106 {
_root.shake('small');
}
frame 114 {
_root.shake('small');
}
frame 160 {
if (!_root.medalCount[5]) {
_root.medal_popup.unlockMedal('Mecha');
_root.medalCount[5] = 1;
trace(_root.medalCount);
}
}
frame 165 {
stop();
_root.t2();
}
frame 166 {
_root.t1();
}
frame 174 {
getXY();
}
frame 175 {
run(X, Y);
}
frame 176 {
run(X, Y);
}
frame 177 {
run(X, Y);
}
frame 178 {
run(X, Y);
}
frame 179 {
run(X, Y);
}
frame 180 {
run(X, Y);
}
frame 181 {
run(X, Y);
}
frame 182 {
run(X, Y);
}
frame 183 {
run(X, Y);
}
frame 184 {
run(X, Y);
}
frame 185 {
run(X, Y);
}
frame 186 {
run(X, Y);
}
frame 187 {
X = -X / 2;
Y = -Y / 2;
}
frame 192 {
_global.atype = 'p';
_global.damage = atk * (2500 + random(2000));
_root.hurt();
}
frame 198 {
run(X, Y);
}
frame 199 {
run(X, Y);
}
frame 200 {
run(X, Y);
}
frame 201 {
run(X, Y);
}
frame 202 {
run(X, Y);
}
frame 203 {
run(X, Y);
}
frame 204 {
run(X, Y);
}
frame 205 {
run(X, Y);
}
frame 206 {
run(X, Y);
}
frame 207 {
run(X, Y);
}
frame 208 {
run(X, Y);
}
frame 209 {
run(X, Y);
}
frame 210 {
run(X, Y);
}
frame 211 {
run(X, Y);
}
frame 212 {
run(X, Y);
}
frame 213 {
run(X, Y);
}
frame 214 {
run(X, Y);
}
frame 215 {
run(X, Y);
}
frame 216 {
run(X, Y);
}
frame 217 {
run(X, Y);
}
frame 218 {
run(X, Y);
}
frame 219 {
run(X, Y);
}
frame 220 {
run(X, Y);
}
frame 221 {
run(X, Y);
}
frame 228 {
k();
_root.t2();
}
frame 229 {
_root.t1();
}
frame 237 {
getXY();
}
frame 238 {
run(X, Y);
}
frame 239 {
run(X, Y);
}
frame 240 {
run(X, Y);
}
frame 241 {
run(X, Y);
}
frame 242 {
run(X, Y);
}
frame 243 {
run(X, Y);
}
frame 244 {
run(X, Y);
}
frame 245 {
run(X, Y);
}
frame 246 {
run(X, Y);
}
frame 247 {
run(X, Y);
}
frame 248 {
run(X, Y);
}
frame 249 {
run(X, Y);
}
frame 250 {
X = -X / 2;
Y = -Y / 2;
}
frame 257 {
_global.atype = 'p';
_global.damage = atk * 4800;
_root.hurt();
}
frame 261 {
run(X, Y);
}
frame 262 {
run(X, Y);
}
frame 263 {
run(X, Y);
}
frame 264 {
run(X, Y);
}
frame 265 {
run(X, Y);
}
frame 266 {
run(X, Y);
}
frame 267 {
run(X, Y);
}
frame 268 {
run(X, Y);
}
frame 269 {
run(X, Y);
}
frame 270 {
run(X, Y);
}
frame 271 {
run(X, Y);
}
frame 272 {
run(X, Y);
}
frame 273 {
run(X, Y);
}
frame 274 {
run(X, Y);
}
frame 275 {
run(X, Y);
}
frame 276 {
run(X, Y);
}
frame 277 {
run(X, Y);
}
frame 278 {
run(X, Y);
}
frame 279 {
run(X, Y);
}
frame 280 {
run(X, Y);
}
frame 281 {
run(X, Y);
}
frame 282 {
run(X, Y);
}
frame 283 {
run(X, Y);
}
frame 284 {
run(X, Y);
}
frame 291 {
k();
}
frame 291 {
_root.t2();
}
frame 292 {
_root.t1();
}
frame 300 {
getXY();
}
frame 301 {
run(X, Y);
}
frame 302 {
run(X, Y);
}
frame 303 {
run(X, Y);
}
frame 304 {
run(X, Y);
}
frame 305 {
run(X, Y);
}
frame 306 {
run(X, Y);
}
frame 307 {
run(X, Y);
}
frame 308 {
run(X, Y);
}
frame 309 {
run(X, Y);
}
frame 310 {
run(X, Y);
}
frame 311 {
run(X, Y);
}
frame 312 {
run(X, Y);
}
frame 313 {
X = -X / 2;
Y = -Y / 2;
}
frame 319 {
_global.atype = 'p';
_global.damage = atk * 4200;
_root.hurt();
}
frame 324 {
run(X, Y);
}
frame 325 {
run(X, Y);
}
frame 326 {
run(X, Y);
}
frame 327 {
run(X, Y);
}
frame 328 {
run(X, Y);
}
frame 329 {
run(X, Y);
}
frame 330 {
run(X, Y);
}
frame 331 {
run(X, Y);
}
frame 332 {
run(X, Y);
}
frame 333 {
run(X, Y);
}
frame 334 {
run(X, Y);
}
frame 335 {
run(X, Y);
}
frame 336 {
run(X, Y);
}
frame 337 {
run(X, Y);
}
frame 338 {
run(X, Y);
}
frame 339 {
run(X, Y);
}
frame 340 {
run(X, Y);
}
frame 341 {
run(X, Y);
}
frame 342 {
run(X, Y);
}
frame 343 {
run(X, Y);
}
frame 344 {
run(X, Y);
}
frame 345 {
run(X, Y);
}
frame 346 {
run(X, Y);
}
frame 347 {
run(X, Y);
}
frame 354 {
k();
}
frame 354 {
_root.t2();
}
frame 355 {
_root.t1();
}
frame 363 {
getXY();
}
frame 364 {
run(X, Y);
}
frame 365 {
run(X, Y);
}
frame 366 {
run(X, Y);
}
frame 367 {
run(X, Y);
}
frame 368 {
run(X, Y);
}
frame 369 {
run(X, Y);
}
frame 370 {
run(X, Y);
}
frame 371 {
run(X, Y);
}
frame 372 {
run(X, Y);
}
frame 373 {
run(X, Y);
}
frame 374 {
run(X, Y);
}
frame 375 {
run(X, Y);
}
frame 376 {
X = -X / 2;
Y = -Y / 2;
}
frame 382 {
_root.shake('small');
}
frame 382 {
_global.atype = 'p';
_global.damage = atk * 5800;
_root.hurt();
}
frame 387 {
run(X, Y);
}
frame 388 {
run(X, Y);
}
frame 389 {
run(X, Y);
}
frame 390 {
run(X, Y);
}
frame 391 {
run(X, Y);
}
frame 392 {
run(X, Y);
}
frame 393 {
run(X, Y);
}
frame 394 {
run(X, Y);
}
frame 395 {
run(X, Y);
}
frame 396 {
run(X, Y);
}
frame 397 {
run(X, Y);
}
frame 398 {
run(X, Y);
}
frame 399 {
run(X, Y);
}
frame 400 {
run(X, Y);
}
frame 401 {
run(X, Y);
}
frame 402 {
run(X, Y);
}
frame 403 {
run(X, Y);
}
frame 404 {
run(X, Y);
}
frame 405 {
run(X, Y);
}
frame 406 {
run(X, Y);
}
frame 407 {
run(X, Y);
}
frame 408 {
run(X, Y);
}
frame 409 {
run(X, Y);
}
frame 410 {
run(X, Y);
}
frame 417 {
k();
_root.t2();
}
frame 419 {
_root.t1();
}
frame 432 {
_root.shake('small');
}
frame 435 {
_global.atype = 'p';
_global.T = 'Pall';
_global.damage = atk * 2300;
_root.hurt();
}
frame 443 {
_root.hurt();
}
frame 447 {
_root.shake('big');
}
frame 466 {
k();
_root.t2();
}
frame 467 {
_root.t1();
}
frame 479 {
_global.atype = 'p';
_global.damage = atk * 700;
_root.hurt();
}
frame 482 {
_root.hurt();
}
frame 485 {
_root.hurt();
}
frame 488 {
_root.hurt();
}
frame 491 {
_root.hurt();
}
frame 494 {
_root.hurt();
}
frame 497 {
_root.hurt();
}
frame 512 {
k();
_root.t2();
}
frame 513 {
_root.t1();
}
frame 534 {
_root.shake('small');
}
frame 536 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 4400;
_root.hurt();
}
frame 554 {
k();
_root.t2();
}
frame 555 {
_root.t1();
}
frame 585 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 4400;
_root.hurt();
}
frame 600 {
k();
_root.t2();
}
frame 601 {
_root.t1();
}
frame 605 {
charge = 1;
}
frame 624 {
_root.shake('small');
}
frame 638 {
_root.shake('small');
}
frame 643 {
_root.shake('small');
}
frame 656 {
_root.shake('small');
}
frame 673 {
_root.shake('small');
}
frame 684 {
_global.Text = 27;
_root.maintext.play();
}
frame 690 {
k();
_root.t2();
}
frame 691 {
_root.t1();
}
frame 710 {
_root.shake('small');
}
frame 717 {
charge = 0;
}
frame 722 {
_root.shake('big');
}
frame 727 {
_root.shake('big');
}
frame 727 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 9800;
_root.hurt();
}
frame 732 {
_root.shake('big');
}
frame 738 {
_root.shake('big');
}
frame 743 {
_root.shake('small');
}
frame 749 {
_root.shake('small');
}
frame 757 {
_root.shake('small');
}
frame 777 {
k();
_root.t2();
}
}
frame 94 {
live[3] = 1;
live[4] = 0;
live[5] = 0;
coords = [180, 230, 60, 272, 505, 275, 540, 255, 600, 305];
tellTarget ('/T1') {
HP = 260000 * _global.dif;
atk = 0.9 * _global.dif;
def = 1.1;
matk = 1 * _global.dif;
mdef = 1.1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
}
frame 95 {
function itemGet() {
b = random(20);
if (b < 5) {
_global.Text = 19;
maintext.play();
} else {
_global.Text = 22;
maintext.play();
}
}
stop();
}
frame 96 {
nextBG();
}
frame 97 {
function moveset() {
b = random(6);
ranplay();
if (b == 0) {
_global.command = 'attack';
} else {
if (b == 1) {
_global.command = 'attack2';
} else {
_global.command = 'magic';
}
}
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
frame 97 {
stopAllSounds();
}
movieClip 1958 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 14 {
symbols();
}
frame 30 {
symbols();
}
}
movieClip 1961 {
frame 5 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 6 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(X2 - 30 - _root.X()) / 12;
Y = -(Y2 - _root.Y()) / 12;
}
function damageNo() {
_root.dam.duplicateMovieClip('bok' + b, b + 999);
(eval('_root.bok' + b))._x = X2 - 350 + random(50);
(eval('_root.bok' + b))._y = Y2 - 70 - 100 + random(50);
(eval('_root.bok' + b)).damage = damage;
b += 3;
}
b = ID + 999;
q = 0;
HPmax = HP;
}
frame 39 {
stop();
}
frame 40 {
k();
}
frame 41 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'judgement') {
damage *= 2;
}
if (_global.magic == 'fireball' or _global.magic == 'erupt') {
damage = Math.round(damage * 1.5);
}
if (_global.magic == 'seiken') {
damage = Math.round(damage * 1.8);
}
if (_global.magic == 'screamer') {
damage = Math.round(damage * 0.3);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 5000) {
gotoAndPlay('hit2');
}
}
}
frame 72 {
k();
_root.t2();
}
frame 100 {
k();
_root.t2();
}
frame 101 {
_root.live[2 + ID] = 0;
}
frame 153 {
stop();
_root.t2();
}
frame 154 {
_root.t1();
getXY();
}
frame 164 {
run(X, Y);
}
frame 165 {
run(X, Y);
}
frame 166 {
run(X, Y);
}
frame 167 {
run(X, Y);
}
frame 168 {
run(X, Y);
}
frame 169 {
run(X, Y);
}
frame 170 {
run(X, Y);
}
frame 171 {
run(X, Y);
}
frame 172 {
run(X, Y);
}
frame 173 {
run(X, Y);
}
frame 174 {
run(X, Y);
}
frame 175 {
run(X, Y);
}
frame 176 {
X = -X / 2;
Y = -Y / 2;
}
frame 178 {
_global.atype = 'p';
_global.damage = atk * 1800;
_root.hurt();
}
frame 182 {
run(X, Y);
}
frame 183 {
run(X, Y);
}
frame 184 {
run(X, Y);
}
frame 185 {
run(X, Y);
}
frame 186 {
run(X, Y);
}
frame 187 {
run(X, Y);
}
frame 188 {
run(X, Y);
}
frame 189 {
run(X, Y);
}
frame 190 {
run(X, Y);
}
frame 191 {
run(X, Y);
}
frame 192 {
run(X, Y);
}
frame 193 {
run(X, Y);
}
frame 194 {
run(X, Y);
}
frame 195 {
run(X, Y);
}
frame 196 {
run(X, Y);
}
frame 197 {
run(X, Y);
}
frame 198 {
run(X, Y);
}
frame 199 {
run(X, Y);
}
frame 200 {
run(X, Y);
}
frame 201 {
run(X, Y);
}
frame 202 {
run(X, Y);
}
frame 203 {
run(X, Y);
}
frame 204 {
run(X, Y);
}
frame 205 {
run(X, Y);
}
frame 219 {
k();
_root.t2();
}
frame 220 {
_root.t1();
}
frame 268 {
b = random(3);
if (b == 0) {
_global.magic = 'death';
}
if (b == 1) {
_global.magic = 'toxic';
_global.damage = matk * 800;
} else {
_global.magic = 'dispel';
}
_root.spells.gotoAndPlay(_global.magic);
}
frame 291 {
k();
}
frame 292 {
_root.t1();
getXY();
}
frame 302 {
run(X, Y);
}
frame 303 {
run(X, Y);
}
frame 304 {
run(X, Y);
}
frame 305 {
run(X, Y);
}
frame 306 {
run(X, Y);
}
frame 307 {
run(X, Y);
}
frame 308 {
run(X, Y);
}
frame 309 {
run(X, Y);
}
frame 310 {
run(X, Y);
}
frame 311 {
run(X, Y);
}
frame 312 {
run(X, Y);
}
frame 313 {
run(X, Y);
}
frame 314 {
X = -X / 2;
Y = -Y / 2;
}
frame 316 {
_global.atype = 'p';
_global.damage = atk * 2200;
_root.hurt();
}
frame 320 {
run(X, Y);
}
frame 321 {
run(X, Y);
}
frame 322 {
run(X, Y);
}
frame 323 {
run(X, Y);
}
frame 324 {
run(X, Y);
}
frame 325 {
run(X, Y);
}
frame 326 {
run(X, Y);
}
frame 327 {
run(X, Y);
}
frame 328 {
run(X, Y);
}
frame 329 {
run(X, Y);
}
frame 330 {
run(X, Y);
}
frame 331 {
run(X, Y);
}
frame 332 {
run(X, Y);
}
frame 333 {
run(X, Y);
}
frame 334 {
run(X, Y);
}
frame 335 {
run(X, Y);
}
frame 336 {
run(X, Y);
}
frame 337 {
run(X, Y);
}
frame 338 {
run(X, Y);
}
frame 339 {
run(X, Y);
}
frame 340 {
run(X, Y);
}
frame 341 {
run(X, Y);
}
frame 342 {
run(X, Y);
}
frame 343 {
run(X, Y);
}
frame 357 {
k();
_root.t2();
}
}
frame 98 {
live[3] = 1;
live[4] = 1;
live[5] = 0;
coords = [180, 230, 60, 272, 530, 220, 590, 280, 600, 305];
tellTarget ('/T1') {
HP = 45000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
tellTarget ('/T2') {
HP = 45000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[6];
Y2 = _root.coords[7];
ID = 2;
}
}
frame 99 {
function itemGet() {
b = random(2);
if (b == 0) {
_global.Text = 23;
maintext.play();
} else {
_global.Text = 24;
maintext.play();
}
}
stop();
}
frame 102 {
live[3] = 1;
live[4] = 1;
live[5] = 1;
coords = [180, 230, 60, 272, 530, 210, 590, 260, 550, 330];
tellTarget ('/T1') {
HP = 40000 * _global.dif;
atk = 0.8 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
tellTarget ('/T2') {
HP = 40000 * _global.dif;
atk = 0.8 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[6];
Y2 = _root.coords[7];
ID = 2;
}
tellTarget ('/T3') {
HP = 40000 * _global.dif;
atk = 0.8 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[8];
Y2 = _root.coords[9];
ID = 3;
}
}
frame 103 {
function itemGet() {
b = random(2);
if (b == 0) {
_global.Text = 23;
maintext.play();
} else {
_global.Text = 24;
maintext.play();
}
}
stop();
}
frame 104 {
stopAllSounds();
}
frame 105 {
function moveset() {
_root.t1();
trace('goku turn start');
b = random(9);
ranplay();
if (T1.charge) {
_global.command = 'special4';
} else {
if (T1.HP > 380000 * _global.dif) {
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'attack2';
}
if (b == 2) {
_global.command = 'attack3';
}
if (b == 3) {
_global.command = 'attack4';
}
if (b == 4) {
_global.command = 'attack2';
}
if (b == 5) {
_global.command = 'attack';
}
if (b == 6) {
_global.command = 'magic';
}
if (b == 7) {
_global.command = 'magic';
}
if (b == 8) {
_global.command = 'magic2';
}
} else {
if (T1.HP > 220000 * _global.dif) {
if (b == 0) {
_global.command = 'special';
}
if (b == 1) {
_global.command = 'attack2';
}
if (b == 2) {
_global.command = 'attack3';
}
if (b == 3) {
_global.command = 'attack4';
}
if (b == 4) {
_global.command = 'attack3';
}
if (b == 5) {
_global.command = 'special';
}
if (b == 6) {
_global.command = 'magic2';
}
if (b == 7) {
_global.command = 'special2';
}
if (b == 8) {
_global.command = 'magic';
}
} else {
if (b == 0) {
_global.command = 'special3';
}
if (b == 1) {
_global.command = 'special3';
}
if (b == 2) {
_global.command = 'attack4';
}
if (b == 3) {
_global.command = 'attack3';
}
if (b == 4) {
_global.command = 'special2';
}
if (b == 5) {
_global.command = 'special2';
}
if (b == 6) {
_global.command = 'magic2';
}
if (b == 7) {
_global.command = 'magic';
}
if (b == 8) {
_global.command = 'special';
}
}
}
}
trace(_global.command);
tellTarget ('_global.user') {
gotoAndPlay(_global.command);
}
}
}
movieClip 1963 {
}
movieClip 1966 {
}
movieClip 1968 {
}
movieClip 1970 {
}
movieClip 1973 {
}
movieClip 1979 {
}
movieClip 1980 {
}
movieClip 1984 {
}
movieClip 1986 {
}
movieClip 1987 {
}
movieClip 1989 {
}
movieClip 1993 {
}
movieClip 1996 {
}
movieClip 1998 {
}
movieClip 2000 {
}
movieClip 2005 {
}
movieClip 2007 {
}
movieClip 2009 {
}
movieClip 2011 {
}
movieClip 2013 {
}
movieClip 2015 {
}
movieClip 2017 {
}
movieClip 2019 {
frame 1 {
function symbols() {
a1._visible = false;
b1._visible = false;
c1._visible = false;
d1._visible = false;
if (_parent.atk2 < 1) {
a1._visible = true;
a1._alpha = (1 - _parent.atk2) * 300;
}
if (_parent.def2 < 1) {
b1._visible = true;
b1._alpha = (1 - _parent.def2) * 300;
}
if (_parent.matk2 < 1) {
c1._visible = true;
c1._alpha = (1 - _parent.matk2) * 300;
}
if (_parent.mdef2 < 1) {
d1._visible = true;
d1._alpha = (1 - _parent.mdef2) * 300;
}
}
symbols();
}
frame 17 {
symbols();
}
frame 38 {
symbols();
}
}
movieClip 2028 {
}
movieClip 2030 {
}
movieClip 2039 {
}
movieClip 2043 {
}
movieClip 2045 {
}
movieClip 2047 {
}
movieClip 2052 {
}
movieClip 2056 {
}
movieClip 2059 {
frame 4 {
_root.shake('big');
}
frame 6 {
function enemystats() {
if (def2 < 1) {
def2 += 0.05;
}
if (mdef2 < 1) {
mdef2 += 0.05;
}
if (atk2 < 1) {
atk2 += 0.05;
}
if (matk2 < 1) {
matk2 += 0.05;
}
}
function defdown() {
def2 -= 0.25;
if (def2 < 0.6) {
def2 = 0.6;
}
}
function mdefdown() {
mdef2 -= 0.25;
if (mdef2 < 0.6) {
mdef2 = 0.6;
}
}
function atkdown() {
atk2 -= 0.25;
if (atk2 < 0.6) {
atk2 = 0.6;
}
}
function matkdown() {
matk2 -= 0.25;
if (matk2 < 0.6) {
matk2 = 0.6;
}
}
atk2 = 1;
def2 = 1;
mdef2 = 1;
matk2 = 1;
}
frame 7 {
function k() {
gotoAndPlay('stand');
q = 0;
}
function run(X, Y) {
this._x += X;
this._y += Y;
}
function getXY() {
X = -(X2 - 100 - _root.X());
Y = -(Y2 - _root.Y());
}
function damageNo() {
_root.dam.duplicateMovieClip('bk' + b, b + 999);
(eval('_root.bk' + b))._x = X2 - 400 + random(50);
(eval('_root.bk' + b))._y = Y2 - 200 + random(50);
(eval('_root.bk' + b)).damage = damage;
b += 1;
}
b = ID + 8;
q = 0;
}
frame 8 {
HPmax = HP;
charge = 0;
}
frame 78 {
stop();
}
frame 83 {
k();
}
frame 84 {
if (_global.atype == 'p') {
damage = Math.round(damage / def * def2);
} else {
damage = Math.round(damage / mdef * mdef2);
}
if (_global.magic == 'seiken') {
damage = Math.round(damage * 1.8);
}
if (_global.magic == 'judgement') {
damage = Math.round(damage * 2);
}
if (_global.magic == 'screamer') {
damage = Math.round(damage * 0.2);
}
if (_global.magic == 'fireball' or _global.magic == 'erupt') {
damage = Math.round(damage * 1.5);
}
if (q == 0) {
_root.t1();
q = 1;
}
damageNo();
HP -= damage;
if (HP <= 0) {
HP = 0;
gotoAndPlay('die');
} else {
if (damage > 20000) {
gotoAndPlay('hit3');
} else {
if (damage > 10000) {
gotoAndPlay('hit2');
}
}
}
}
frame 101 {
k();
_root.t2();
}
frame 126 {
k();
_root.t2();
}
frame 161 {
k();
_root.t2();
}
frame 164 {
_root.live[2 + ID] = 0;
}
frame 194 {
_root.Playin = false;
}
frame 204 {
_root.shake('small');
}
frame 218 {
_root.shake('small');
}
frame 226 {
_root.shake('small');
}
frame 235 {
_root.shake('small');
}
frame 245 {
_root.shake('small');
}
frame 252 {
_root.shake('small');
}
frame 284 {
stopAllSounds();
}
frame 285 {
_root.shake('big');
}
frame 291 {
_root.shake('big');
}
frame 301 {
_root.shake('big');
}
frame 316 {
_root.shake('big');
}
frame 324 {
_root.shake('big');
}
frame 324 {
if (!_root.medalCount[6]) {
_root.medal_popup.unlockMedal('Goku');
_root.medalCount[6] = 1;
trace(_root.medalCount);
}
}
frame 331 {
_root.shake('big');
}
frame 340 {
_root.menu._alpha -= 10;
}
frame 341 {
_root.menu._alpha -= 10;
}
frame 342 {
_root.menu._alpha -= 10;
}
frame 343 {
_root.menu._alpha -= 10;
}
frame 344 {
_root.menu._alpha -= 10;
}
frame 345 {
_root.menu._alpha -= 10;
}
frame 346 {
_root.menu._alpha -= 10;
}
frame 347 {
_root.menu._alpha -= 10;
}
frame 348 {
_root.menu._alpha -= 10;
}
frame 349 {
_root.menu._alpha -= 10;
}
frame 350 {
stop();
_root.gotoAndStop('end');
}
frame 352 {
getXY();
}
frame 365 {
run(X, Y);
}
frame 374 {
_global.atype = 'p';
_global.damage = atk * (3400 + random(200));
_root.hurt();
}
frame 374 {
X = -X;
Y = -Y;
}
frame 382 {
run(X, Y);
}
frame 395 {
k();
_root.t2();
}
frame 396 {
getXY();
}
frame 409 {
run(X, Y);
}
frame 417 {
_global.atype = 'p';
_global.damage = atk * 750;
_root.hurt();
}
frame 418 {
X = -X;
Y = -Y;
}
frame 421 {
_root.hurt();
}
frame 425 {
_root.hurt();
}
frame 430 {
_root.hurt();
}
frame 434 {
_root.hurt();
}
frame 438 {
_root.hurt();
}
frame 445 {
run(X, Y);
}
frame 458 {
k();
_root.t2();
}
frame 459 {
getXY();
}
frame 472 {
run(X, Y);
}
frame 481 {
_root.shake('small');
}
frame 481 {
_global.atype = 'p';
_global.damage = atk * 5000;
_root.hurt();
}
frame 481 {
X = -X;
Y = -Y;
}
frame 494 {
run(X, Y);
}
frame 507 {
k();
_root.t2();
}
frame 508 {
getXY();
}
frame 521 {
run(X, Y);
}
frame 537 {
_root.shake('small');
}
frame 537 {
_global.atype = 'p';
_global.damage = atk * 5500;
_root.hurt();
}
frame 537 {
X = -X;
Y = -Y;
}
frame 543 {
if (_global.T == 'P1') {
_global.P1atk = 1;
_global.P1matk = 1;
_global.P1def = 1;
_global.P1mdef = 1;
} else {
_global.P2atk = 1;
_global.P2matk = 1;
_global.P2def = 1;
_global.P2mdef = 1;
}
}
frame 554 {
run(X, Y);
}
frame 560 {
_global.Text = 31;
_root.maintext.play();
}
frame 567 {
k();
_root.t2();
}
frame 602 {
b = random(3);
if (b == 0) {
_global.magic = 'death';
}
if (b == 1) {
_global.magic = 'toxic';
_global.damage = matk * 3000;
} else {
_global.magic = 'thedead';
}
_root.spells.gotoAndPlay(_global.magic);
}
frame 612 {
k();
}
frame 650 {
k();
_root.t2();
}
frame 687 {
_global.P1seal += 3;
_global.P2seal += 3;
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 700;
_root.hurt();
_global.Text = 30;
_root.maintext.play();
}
frame 704 {
k();
_root.t2();
}
frame 716 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 500;
_root.hurt();
}
frame 719 {
_root.hurt();
}
frame 722 {
_root.hurt();
}
frame 725 {
_root.hurt();
}
frame 728 {
_root.hurt();
}
frame 731 {
_root.hurt();
}
frame 734 {
_root.hurt();
}
frame 748 {
k();
_root.t2();
}
frame 774 {
charge = 1;
}
frame 863 {
_root.shake('small');
}
frame 873 {
_global.Text = 32;
_root.maintext.play();
}
frame 881 {
k();
_root.t2();
}
frame 923 {
_root.shake('big');
}
frame 928 {
_root.shake('big');
}
frame 939 {
_root.shake('big');
}
frame 945 {
charge = 0;
}
frame 948 {
_root.shake('big');
}
frame 959 {
_root.shake('small');
}
frame 977 {
_root.shake('small');
}
frame 1001 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 10000;
_root.hurt();
}
frame 1055 {
b = random(4);
if (b == 0) {
_global.command = 'attack';
}
if (b == 1) {
_global.command = 'attack2';
}
if (b == 2) {
_global.command = 'attack3';
}
if (b == 3) {
_global.command = 'attack4';
}
_root.ranplay();
gotoAndPlay(_global.command);
}
frame 1056 {
stop();
}
frame 1086 {
_root.shake('big');
}
frame 1091 {
_global.atype = 'm';
_global.T = 'Pall';
_global.damage = atk * 4800;
_root.hurt();
}
frame 1092 {
_root.shake('big');
}
frame 1100 {
_root.shake('small');
}
frame 1129 {
k();
_root.t2();
}
}
frame 106 {
live[3] = 1;
live[4] = 0;
live[5] = 0;
coords = [180, 230, 60, 272, 560, 290, 590, 280, 600, 305];
tellTarget ('/T1') {
HP = 450000 * _global.dif;
atk = 1 * _global.dif;
def = 1;
matk = 1 * _global.dif;
mdef = 1;
X2 = _root.coords[4];
Y2 = _root.coords[5];
ID = 1;
}
}
frame 107 {
function itemGet() {
b = random(2);
if (b == 0) {
_global.Text = 23;
maintext.play();
} else {
_global.Text = 24;
maintext.play();
}
}
stop();
}
frame 118 {
stop();
}
frame 120 {
stop();
}
movieClip 2064 {
}
movieClip 2066 {
}
movieClip 2068 {
}
movieClip 2070 {
}
movieClip 2072 {
}
movieClip 2074 {
}
movieClip 2075 {
}
movieClip 2077 {
}
movieClip 2078 {
frame 59 {
if (!_root.medalCount[10]) {
_root.medal_popup.unlockMedal('Fail');
_root.medalCount[10] = 1;
trace(_root.medalCount);
}
}
frame 157 {
_root.fade.play();
_global.dir = 'begin';
}
frame 158 {
stopAllSounds();
}
}
frame 121 {
stop();
}
frame 124 {
stop();
}
movieClip 2083 {
}
movieClip 2087 {
frame 1 {
_parent.stop();
}
frame 764 {
_parent.play();
stop();
}
}
movieClip 2089 {
frame 1 {
stop();
pause = function () {
clearInterval(pause1);
play();
};
pause1 = setInterval(pause, 7000);
}
frame 2 {
if (_global.dif == 1.4) {
if (!_root.medalCount[9]) {
_root.medal_popup.unlockMedal('Hero');
_root.medalCount[9] = 1;
trace(_root.medalCount);
}
}
if (_global.dif == 1) {
if (!_root.medalCount[7]) {
_root.medal_popup.unlockMedal('Warrior');
_root.medalCount[7] = 1;
trace(_root.medalCount);
}
}
if (_global.dif == 1.2) {
if (!_root.medalCount[8]) {
_root.medal_popup.unlockMedal('Knight');
_root.medalCount[8] = 1;
trace(_root.medalCount);
}
}
}
frame 124 {
stop();
pause = function () {
clearInterval(pause1);
play();
};
pause1 = setInterval(pause, 2000);
}
frame 197 {
stop();
pause = function () {
clearInterval(pause1);
play();
};
pause1 = setInterval(pause, 10000);
}
frame 260 {
stop();
_root.fade.play();
_global.dir = 'begin';
}
}