Frame 1
Stage.showMenu = false;
Frame 2
function losehappenings() {
if (Key.isDown(32)) {
_global.iexist = 1;
gotoAndPlay(_global.frametoreturnto);
}
}
if (_global.notlost == 1) {
_global.notlost = 0;
gotoAndPlay(_global.frametoreturnto);
}
if (_global.notlost != 1) {
_global.loadedgame = 1;
youlose.onEnterFrame = losehappenings;
}
stop();
Frame 3
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function startfrombegin() {
_global.wongame = 0;
_global.losscount = 0;
_global.speedset = 5;
_global.parry = 0;
_global.moveleftkey = 37;
_global.moveupkey = 38;
_global.moverightkey = 39;
_global.movedownkey = 40;
_global.mapkey = 77;
_global.rotateleftkey = 81;
_global.rotaterightkey = 87;
_global.endkey = 32;
_global.upkey = 85;
_global.downkey = 68;
_global.orangekeyfound = 0;
_global.mether = 0;
_global.brownkeyfound = 0;
_global.doublesword = 0;
_global.musicon = 1;
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
mapfound = 0;
_global.statup = 0;
_global.herospeed = 10;
_global.swordspeed = 10;
_global.level = 1;
_global.xp = 0;
_global.movements = 5;
var _local3 = 0;
_global.swordrote = 0;
_global.himxpos = 263;
_global.himypos = 189;
_global.lastframe = 0;
_global.dirtoframe = 0;
_global.realfirstloadedframe = new Array(300);
inhibitmons_ar = new Array(100);
_global.chckbxs = new Array();
_global.shapenums = new Array();
_global.wallnums = new Array();
_global.mapping = new Array();
_global.roomcondition = new Array();
_global.blueones = new Array();
_global.blueswords = new Array();
_global.arrows = new Array();
i = 0;
while (i < 1000) {
realfirstloadedframe[i] = 0;
roomcondition[i] = 0;
shapenums[i] = new Array();
chckbxs[i] = new Array();
wallnums[i] = new Array();
blueones[i] = new Array();
blueswords[i] = new Array();
arrows[i] = new Array();
i++;
}
firstloaded = new Array();
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
textbx1.text = "Experience: " + _global.xp;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.setTextFormat(textbx1form);
}
function finder(a) {
mover(5, 0, 20, 4);
}
if (startfrombeg != 1) {
startfrombeg = 1;
startfrombegin();
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 202 MovieClip "Sword" in Frame 3
onClipEvent (load) {
if (_global.doublesword > 0.9) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_level0._currentframe == 116) {
if (_global.doublesword == 1) {
gotoAndStop (2);
}
}
if (_global.iexist == 0) {
}
this._rotation = _global.swordrote;
this._x = _level0.Him._x;
this._y = _level0.Him._y;
this._visible = true;
if (Key.isDown(_global.rotateleftkey) || (Key.isDown(_global.rotaterightkey))) {
if (Key.isDown(_global.rotateleftkey)) {
this._rotation = this._rotation - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 1;
}
if (Key.isDown(_global.rotaterightkey)) {
this._rotation = this._rotation + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 2;
}
} else {
_global.rotatedir = 0;
}
}
Instance of Symbol 205 MovieClip "Him" in Frame 3
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 4
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(7, 3, 0, 6);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 202 MovieClip "Sword" in Frame 4
onClipEvent (load) {
if (_global.doublesword > 0.9) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_level0._currentframe == 116) {
if (_global.doublesword == 1) {
gotoAndStop (2);
}
}
if (_global.iexist == 0) {
}
this._rotation = _global.swordrote;
this._x = _level0.Him._x;
this._y = _level0.Him._y;
this._visible = true;
if (Key.isDown(_global.rotateleftkey) || (Key.isDown(_global.rotaterightkey))) {
if (Key.isDown(_global.rotateleftkey)) {
this._rotation = this._rotation - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 1;
}
if (Key.isDown(_global.rotaterightkey)) {
this._rotation = this._rotation + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 2;
}
} else {
_global.rotatedir = 0;
}
}
Instance of Symbol 205 MovieClip "Him" in Frame 4
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 5
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 37, 3, 7);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 205 MovieClip "Him" in Frame 5
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 6
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(8, 4, 25, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 205 MovieClip "Him" in Frame 6
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 7
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(14, 5, 4, 8);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 8
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 7, 6, 9);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 9
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 8, 0, 10);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 10
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(11, 9, 0, 12);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 11
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 10, 13);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 12
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(13, 10, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 13
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 11, 12, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 14
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(15, 0, 7, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 15
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(16, 0, 14, 17);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 16
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 15, 18);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 17
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(18, 15, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 18
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 16, 17, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 19
stop();
Instance of Symbol 149 MovieClip [Square] "rect3" in Frame 19
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Frame 20
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(3, 21, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 202 MovieClip "Sword" in Frame 20
onClipEvent (load) {
if (_global.doublesword > 0.9) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_level0._currentframe == 116) {
if (_global.doublesword == 1) {
gotoAndStop (2);
}
}
if (_global.iexist == 0) {
}
this._rotation = _global.swordrote;
this._x = _level0.Him._x;
this._y = _level0.Him._y;
this._visible = true;
if (Key.isDown(_global.rotateleftkey) || (Key.isDown(_global.rotaterightkey))) {
if (Key.isDown(_global.rotateleftkey)) {
this._rotation = this._rotation - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 1;
}
if (Key.isDown(_global.rotaterightkey)) {
this._rotation = this._rotation + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 2;
}
} else {
_global.rotatedir = 0;
}
}
Instance of Symbol 205 MovieClip "Him" in Frame 20
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 21
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 22, 0, 20);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 22
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 23, 0, 21);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 23
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 0, 22);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 24
stop();
Frame 25
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(6, 0, 27, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 202 MovieClip "Sword" in Frame 25
onClipEvent (load) {
if (_global.doublesword > 0.9) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_level0._currentframe == 116) {
if (_global.doublesword == 1) {
gotoAndStop (2);
}
}
if (_global.iexist == 0) {
}
this._rotation = _global.swordrote;
this._x = _level0.Him._x;
this._y = _level0.Him._y;
this._visible = true;
if (Key.isDown(_global.rotateleftkey) || (Key.isDown(_global.rotaterightkey))) {
if (Key.isDown(_global.rotateleftkey)) {
this._rotation = this._rotation - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 1;
}
if (Key.isDown(_global.rotaterightkey)) {
this._rotation = this._rotation + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 2;
}
} else {
_global.rotatedir = 0;
}
}
Instance of Symbol 205 MovieClip "Him" in Frame 25
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 26
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 247 MovieClip "bluecapt" in Frame 26
onClipEvent (load) {
var sp = 0;
var spct = 0;
var timer = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
sp = 1;
}
if ((!Key.isDown(32)) && (sp == 1)) {
sp = 0;
spct++;
}
_root.createTextField("plottext", 25, 300, 249, 250, 151);
if (spct == 0) {
_root.plottext.text = "The Blues are further deep in Green territory than they have been in centuries. The Blue campaign has ravaged the Outer Greenlands for months, and they now prepare to strike";
}
if (spct == 1) {
_root.plottext.text = "into the heart of Greenistan. There is only one thing stopping them from further advancement: Captain Greck, the third most powerful dot in the Green military, and his elite army. The greatest blue general";
}
if (spct == 2) {
_root.plottext.text = "of them all, known only as The Blue Hero, leads a team of master Blue swordfighters to battle with Greck. The two armies meet in a tiny Green villiage at the border between Greenland and Greenistan...the";
}
if (spct == 3) {
_root.plottext.text = "continuing survival of Green might very well depend on this battle....";
}
if (spct == 4) {
_root.plottext.text = "The Blue Hero: ATTACK!!!!";
}
if (spct == 5) {
_root.plottext.text = "Captain Greck: They outnumber us! Hold your positions.";
}
if (spct > 5) {
timer++;
if (timer < 40) {
_level0.blue1._y--;
_level0.bluesword1._y--;
_level0.blue2._y--;
_level0.bluesword2._y--;
_level0.blue3._y--;
_level0.bluesword3._y--;
_level0.blue4._y--;
_level0.bluesword4._y--;
_level0.blue5._y--;
_level0.bluesword5._y--;
_level0.blue6._y--;
_level0.bluesword6._y--;
_level0.blue7._y--;
_level0.bluesword7._y--;
_level0.blue8._y--;
_level0.bluesword8._y--;
_y = (_y-1);
_level0.blueswordcapt._y--;
}
if ((timer >= 40) && (timer < 80)) {
_level0.blue1._y--;
_level0.bluesword1._y--;
_level0.bluesword1._rotation = _level0.bluesword1._rotation - 0.5;
_level0.blue1._x = _level0.blue1._x - 0.5;
_level0.bluesword1._x = _level0.bluesword1._x - 0.5;
_level0.greensword1._rotation = _level0.greensword1._rotation - 0.5;
_level0.blue2._y--;
_level0.bluesword2._y--;
_level0.bluesword2._rotation = _level0.bluesword2._rotation - 0.1;
_level0.blue3._y--;
_level0.bluesword3._y--;
_level0.bluesword3._rotation = _level0.bluesword3._rotation - 0.3;
_level0.blue4._y = _level0.blue4._y - 0.8;
_level0.bluesword4._y = _level0.bluesword4._y - 0.8;
_level0.blue5._y = _level0.blue5._y - 0.8;
_level0.bluesword5._y = _level0.bluesword5._y - 0.8;
_level0.bluesword5._rotation = _level0.bluesword5._rotation - 0.1;
_level0.blue6._y = _level0.blue6._y - 1;
_level0.bluesword6._y = _level0.bluesword6._y - 1;
_level0.blue6._x = _level0.blue6._x + 0.3;
_level0.bluesword6._x = _level0.bluesword6._x + 0.3;
_level0.bluesword6._rotation = _level0.bluesword6._rotation - 0.2;
_level0.blue7._y = _level0.blue7._y - 0.8;
_level0.bluesword7._y = _level0.bluesword7._y - 0.8;
_level0.bluesword7._rotation = _level0.bluesword7._rotation + 0.1;
_level0.blue8._y = _level0.blue8._y - 1;
_level0.bluesword8._y = _level0.bluesword8._y - 1;
_level0.blue8._x = _level0.blue8._x + 0.5;
_level0.bluesword8._x = _level0.bluesword8._x + 0.5;
_level0.bluesword8._rotation = _level0.bluesword8._rotation + 0.5;
_y = (_y-1);
_level0.blueswordcapt._y--;
}
if (timer == 80) {
_level0.green1.unloadMovie();
_level0.greensword1.unloadMovie();
_level0.green5.unloadMovie();
_level0.greensword5.unloadMovie();
_level0.blue2.unloadMovie();
_level0.bluesword2.unloadMovie();
_level0.blue4.unloadMovie();
_level0.bluesword4.unloadMovie();
}
if ((timer > 80) && (timer < 120)) {
_level0.bluesword5._rotation--;
_level0.greensword4._rotation--;
_level0.greencapt._y++;
_level0.greencapt._x = _level0.greencapt._x + 0.4;
_level0.bluecapt._y--;
_level0.greenswordcapt._y++;
_level0.greenswordcapt._x = _level0.greenswordcapt._x + 0.4;
_level0.blueswordcapt._y--;
_level0.bluesword1._rotation++;
_level0.bluesword3._rotation++;
_level0.bluesword1._y--;
_level0.bluesword1._x = _level0.bluesword1._x + 0.3;
_level0.bluesword3._y--;
_level0.blue1._y--;
_level0.blue1._x = _level0.blue1._x + 0.3;
_level0.blue3._y--;
_level0.greensword2._rotation = _level0.greensword2._rotation + 0.5;
_level0.bluesword6._y--;
_level0.blue6._y--;
_level0.bluesword6._rotation = _level0.bluesword6._rotation - 0.6;
_level0.bluesword7._y = _level0.bluesword7._y - 0.3;
_level0.blue7._y = _level0.blue7._y - 0.3;
_level0.bluesword8._y--;
_level0.bluesword8._rotation = _level0.bluesword8._rotation - 0.2;
_level0.blue8._y--;
}
if (timer == 120) {
_level0.bluesword8.unloadMovie();
_level0.blue8.unloadMovie();
_level0.bluesword7.unloadMovie();
_level0.blue7.unloadMovie();
_level0.greensword7.unloadMovie();
_level0.green7.unloadMovie();
_level0.greensword6.unloadMovie();
_level0.green6.unloadMovie();
_level0.bluesword1.unloadMovie();
_level0.blue1.unloadMovie();
_level0.greensword2.unloadMovie();
_level0.green2.unloadMovie();
}
if ((timer > 120) && (timer < 140)) {
_level0.bluesword5._rotation--;
_level0.greensword4._rotation--;
_level0.bluecapt._y--;
_level0.greencapt._y++;
_level0.blueswordcapt._y--;
_level0.greenswordcapt._y++;
_level0.greenswordcapt._rotation = _level0.greenswordcapt._rotation - 2.4;
_level0.blue6._y--;
_level0.bluesword6._y--;
_level0.blue6._x--;
_level0.bluesword6._x--;
_level0.bluesword6._rotation--;
_level0.greensword3._rotation++;
_level0.bluesword3._y--;
_level0.blue3._y--;
}
if (timer == 140) {
_level0.green3.unloadMovie();
_level0.greensword3.unloadMovie();
_level0.bluesword3.unloadMovie();
_level0.blue3.unloadMovie();
_level0.blue6.unloadMovie();
_level0.bluesword6.unloadMovie();
_level0.bluesword5.unloadMovie();
_level0.greensword4.unloadMovie();
_level0.blue5.unloadMovie();
_level0.green4.unloadMovie();
}
if ((timer > 140) && (timer < 160)) {
_level0.bluecapt._y = _level0.bluecapt._y - 1.5;
_level0.greencapt._y = _level0.greencapt._y - 0.5;
_level0.blueswordcapt._y = _level0.blueswordcapt._y - 1.5;
_level0.greenswordcapt._y = _level0.greenswordcapt._y - 0.5;
_level0.greenswordcapt._rotation = _level0.greenswordcapt._rotation + 0.5;
}
if ((timer > 160) && (timer < 175)) {
_level0.bluecapt._y = _level0.bluecapt._y - 1.5;
_level0.bluecapt._x = _level0.bluecapt._x + 0.5;
_level0.blueswordcapt._y = _level0.blueswordcapt._y - 1.5;
_level0.blueswordcapt._x = _level0.blueswordcapt._x + 0.5;
_level0.blueswordcapt._rotation = _level0.blueswordcapt._rotation + 0.5;
_level0.greenswordcapt._rotation = _level0.greenswordcapt._rotation + 2;
}
if ((timer == 175) || (spct == 10)) {
spct = 10;
_root.plottext.text = "Captain Greck: You've got me, you dirty blooty. But I'm happy to say I took your army down with me.";
}
if ((timer > 175) && (spct == 11)) {
_root.plottext.text = "The Blue Hero: My army may be dead, but your entire race is dead. We have won this war, and we have won it right here. Victory belongs to the superior dots. Blue dominates.";
}
if ((timer > 175) && (spct == 12)) {
_level0.greenswordcapt.unloadMovie();
_level0.greencapt.unloadMovie();
_root.plottext.text = "And thus, Blue is the closest it has ever been to winning the many millenium long War of the Dots. It seems Blue victory is certain...";
}
if ((timer > 175) && (spct == 13)) {
_root.plottext.text = "But Greezio, the Green Master of Intelligence, has a plan....";
}
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 18;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0xFFFFFF";
if ((spct == 4) || (spct == 11)) {
_root.plottext.textColor = "0x0033FF";
}
if ((spct == 5) || (spct == 10)) {
_root.plottext.textColor = "0x33FF00";
}
_root.plottext.setTextFormat(plottextform);
if ((timer > 175) && (spct > 13)) {
_root.plottext.removeTextField();
_global.frametoreturnto = 116;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
Frame 27
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(25, 0, 29, 28);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 202 MovieClip "Sword" in Frame 27
onClipEvent (load) {
if (_global.doublesword > 0.9) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_level0._currentframe == 116) {
if (_global.doublesword == 1) {
gotoAndStop (2);
}
}
if (_global.iexist == 0) {
}
this._rotation = _global.swordrote;
this._x = _level0.Him._x;
this._y = _level0.Him._y;
this._visible = true;
if (Key.isDown(_global.rotateleftkey) || (Key.isDown(_global.rotaterightkey))) {
if (Key.isDown(_global.rotateleftkey)) {
this._rotation = this._rotation - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 1;
}
if (Key.isDown(_global.rotaterightkey)) {
this._rotation = this._rotation + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 2;
}
} else {
_global.rotatedir = 0;
}
}
Instance of Symbol 205 MovieClip "Him" in Frame 27
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 28
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 27, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 29
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(27, 30, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 30
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 32, 31, 29);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 31
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(30, 33, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 32
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 34, 33, 30);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 33
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(32, 35, 0, 31);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 34
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 36, 35, 32);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 35
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(34, 0, 0, 33);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 36
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 0, 34, 0, 44);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 202 MovieClip "Sword" in Frame 36
onClipEvent (load) {
if (_global.doublesword > 0.9) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_level0._currentframe == 116) {
if (_global.doublesword == 1) {
gotoAndStop (2);
}
}
if (_global.iexist == 0) {
}
this._rotation = _global.swordrote;
this._x = _level0.Him._x;
this._y = _level0.Him._y;
this._visible = true;
if (Key.isDown(_global.rotateleftkey) || (Key.isDown(_global.rotaterightkey))) {
if (Key.isDown(_global.rotateleftkey)) {
this._rotation = this._rotation - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 1;
}
if (Key.isDown(_global.rotaterightkey)) {
this._rotation = this._rotation + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 2;
}
} else {
_global.rotatedir = 0;
}
}
Instance of Symbol 205 MovieClip "Him" in Frame 36
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 37
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 38, 0, 5);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 205 MovieClip "Him" in Frame 37
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 38
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(39, 0, 0, 37);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 39
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(40, 0, 38, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 40
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(42, 0, 39, 41);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 41
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(43, 40, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 42
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 40, 43);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 43
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 42, 41, 0, 95, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 44
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 0, 0, 36, 73);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 205 MovieClip "Him" in Frame 44
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 45
function MoveKeySet() {
reset();
MoveKeyTxt.textColor = "0x000000";
MoveKeyTxt.backgroundColor = "0xFFFFFF";
MoveKeyTxt.text = "Press Key";
keytochange = 1;
}
function RotateKeySet() {
reset();
RotateKeyTxt.textColor = "0x000000";
RotateKeyTxt.backgroundColor = "0xFFFFFF";
RotateKeyTxt.text = "Press Key";
keytochange = 2;
}
function EndKeySet() {
reset();
EndKeyTxt.textColor = "0x000000";
EndKeyTxt.backgroundColor = "0xFFFFFF";
EndKeyTxt.text = "Press Key";
keytochange = 3;
}
function MapKeySet() {
reset();
MapKeyTxt.textColor = "0x000000";
MapKeyTxt.backgroundColor = "0xFFFFFF";
MapKeyTxt.text = "Press Key";
keytochange = 4;
}
function UpKeySet() {
reset();
UpKeyTxt.textColor = "0x000000";
UpKeyTxt.backgroundColor = "0xFFFFFF";
UpKeyTxt.text = "Press Key";
keytochange = 5;
}
function DownKeySet() {
reset();
DownKeyTxt.textColor = "0x000000";
DownKeyTxt.backgroundColor = "0xFFFFFF";
DownKeyTxt.text = "Press Key";
keytochange = 6;
}
function MoveUpKeySet() {
reset();
MoveUpKeyText.textColor = "0x000000";
MoveUpKeyText.backgroundColor = "0xFFFFFF";
MoveUpKeyText.text = "Press Key";
keytochange = 7;
}
function MoveDownKeySet() {
reset();
MoveDownKeyText.textColor = "0x000000";
MoveDownKeyText.backgroundColor = "0xFFFFFF";
MoveDownKeyText.text = "Press Key";
keytochange = 8;
}
function MoveRightKeySet() {
reset();
MoveRightKeyText.textColor = "0x000000";
MoveRightKeyText.backgroundColor = "0xFFFFFF";
MoveRightKeyText.text = "Press Key";
keytochange = 9;
}
function MoveLeftKeySet() {
reset();
MoveLeftKeyText.textColor = "0x000000";
MoveLeftKeyText.backgroundColor = "0xFFFFFF";
MoveLeftKeyText.text = "Press Key";
keytochange = 10;
}
function reset() {
keytochange = 0;
MoveUpKeyText.backgroundColor = 0;
MoveRightKeyText.backgroundColor = 0;
MoveLeftKeyText.backgroundColor = 0;
MoveDownKeyText.backgroundColor = 0;
MoveKeyTxt.backgroundColor = 0;
RotateKeyTxt.backgroundColor = 0;
EndKeyTxt.backgroundColor = 0;
MapKeyTxt.backgroundColor = 0;
UpKeyTxt.backgroundColor = 0;
DownKeyTxt.backgroundColor = 0;
MoveKeyTxt.textColor = "0xFFFFFF";
RotateKeyTxt.textColor = "0xFFFFFF";
EndKeyTxt.textColor = "0xFFFFFF";
MapKeyTxt.textColor = "0xFFFFFF";
UpKeyTxt.textColor = "0xFFFFFF";
DownKeyTxt.textColor = "0xFFFFFF";
MoveUpKeyText.textColor = "0xFFFFFF";
MoveDownKeyText.textColor = "0xFFFFFF";
MoveRightKeyText.textColor = "0xFFFFFF";
MoveLeftKeyText.textColor = "0xFFFFFF";
MoveKeyTxt.text = charname(_global.rotateleftkey);
RotateKeyTxt.text = charname(_global.rotaterightkey);
EndKeyTxt.text = charname(_global.endkey);
MapKeyTxt.text = charname(_global.mapkey);
UpKeyTxt.text = charname(_global.upkey);
DownKeyTxt.text = charname(_global.downkey);
MoveUpKeyText.text = charname(_global.moveupkey);
MoveDownKeyText.text = charname(_global.movedownkey);
MoveRightKeyText.text = charname(_global.moverightkey);
MoveLeftKeyText.text = charname(_global.moveleftkey);
}
function CheckKeyChange() {
if (keytochange == 1) {
_global.rotateleftkey = Key.getCode();
}
if (keytochange == 2) {
_global.rotaterightkey = Key.getCode();
}
if (keytochange == 3) {
_global.endkey = Key.getCode();
}
if (keytochange == 4) {
_global.mapkey = Key.getCode();
}
if (keytochange == 5) {
_global.upkey = Key.getCode();
}
if (keytochange == 6) {
_global.downkey = Key.getCode();
}
if (keytochange == 7) {
_global.moveupkey = Key.getCode();
}
if (keytochange == 8) {
_global.movedownkey = Key.getCode();
}
if (keytochange == 9) {
_global.moverightkey = Key.getCode();
}
if (keytochange == 10) {
_global.moveleftkey = Key.getCode();
}
reset();
}
function charname(a) {
if ((a >= 65) && (a <= 90)) {
return(String.fromCharCode(a));
}
if (a == 8) {
return("Backspace");
}
if (a == 9) {
return("Tab");
}
if (a == 13) {
return("Enter");
}
if (a == 16) {
return("Shift");
}
if (a == 17) {
return("Control");
}
if (a == 18) {
return("Alt");
}
if (a == 32) {
return("Spacebar");
}
if (a == 33) {
return("Page Up");
}
if (a == 34) {
return("Page Down");
}
if (a == 35) {
return("End");
}
if (a == 36) {
return("Home");
}
if (a == 45) {
return("Insert");
}
if (a == 46) {
return("Delete");
}
if (a == 47) {
return("Help");
}
if (a == 144) {
return("Num Lock");
}
if (a == 37) {
return("Left");
}
if (a == 38) {
return("Up");
}
if (a == 39) {
return("Right");
}
if (a == 40) {
return("Down");
}
}
reset();
if (_global.musicon == 1) {
onoff.text = "On";
} else if (_global.musicon == 2) {
onoff.text = "Off";
}
onoff.textColor = "0xFFFFFF";
onoff.backgroundColor = "0x000000";
music1.onRelease = function () {
if (_global.musicon == 1) {
_global.global_sound.stop();
_global.musicon = 2;
onoff.text = "Off";
} else if (_global.musicon == 2) {
_global.global_sound.start();
_global.musicon = 1;
onoff.text = "On";
}
onoff.textColor = "0xFFFFFF";
onoff.backgroundColor = "0x000000";
};
SpeedBar.gotoAndStop(_global.speedset);
SpeedPlus.onRelease = function () {
if (_global.speedset < 11) {
_global.speedset++;
SpeedBar.gotoAndStop(_global.speedset);
}
};
SpeedMinus.onRelease = function () {
if (_global.speedset > 1) {
_global.speedset--;
SpeedBar.gotoAndStop(_global.speedset);
}
};
KeyChangeChecker.onKeyDown = CheckKeyChange;
Key.addListener(KeyChangeChecker);
MoveKeyChange.onRelease = MoveKeySet;
RotateKeyChange.onRelease = RotateKeySet;
EndKeyChange.onRelease = EndKeySet;
UpKeyChange.onRelease = UpKeySet;
DownKeyChange.onRelease = DownKeySet;
MapKeyChange.onRelease = MapKeySet;
MoveUpKeyChange.onRelease = MoveUpKeySet;
MoveRightKeyChange.onRelease = MoveRightKeySet;
MoveDownKeyChange.onRelease = MoveDownKeySet;
MoveLeftKeyChange.onRelease = MoveLeftKeySet;
stop();
Frame 46
stop();
Instance of Symbol 149 MovieClip [Square] "rect77" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect79" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect76" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect78" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect80" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect83" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect81" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect82" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect84" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect85" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect86" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect87" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect88" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect89" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect92" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect93" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect94" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect90" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Instance of Symbol 149 MovieClip [Square] "rect91" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Frame 47
_level0.textbx1.removeTextField();
stop();
Instance of Symbol 245 MovieClip "Green" in Frame 47
onClipEvent (load) {
plottime = 0;
sp = 0;
spct = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
sp = 1;
}
if ((!Key.isDown(32)) && (sp == 1)) {
sp = 0;
spct++;
}
plottime++;
if (plottime < 100) {
spct = 0;
_x = (_x+1);
_level0.GreenSword._x++;
_level0.GreenSword._rotation = -90;
}
if ((plottime > 100) && (spct == 0)) {
_root.createTextField("plottext", 25, 230, 165, 250, 151);
_root.plottext.text = "What! Who the green are you? What is a perverted Greenie barbarian doing here? You know us Blues are going to grate you into a thousand pieces don't you? Why do you smelly corpses even fight back?";
}
if (spct == 1) {
_root.createTextField("plottext", 25, _x - 125, 165, 250, 151);
_root.plottext.text = "I think what I'm doing is quite clear. Butchering Blue meat. I am going to kill every single one of you dirty little sickos in this place.";
}
if (spct == 2) {
_root.createTextField("plottext", 25, _x - 125, 165, 250, 151);
_root.plottext.text = "EVERY SINGLE ONE. I DETEST YOU REDBRAINS! EVERY SINGLE ONE OF YOU IS A STINKING COWARD AND I AM GOING TO KILL EVERY SINGLE ONE OF YOU FOR THE PRIDE OF GREEN.";
}
if ((spct > 2) && (spct < 50)) {
_x = (_x+1);
_level0.GreenSword._x++;
if (_level0.GreenSword.hitTest(_level0.Blue)) {
_level0.Blue.unloadMovie();
spct = 50;
}
}
if (spct > 49) {
_root.createTextField("plottext", 25, _x - 125, 165, 250, 151);
_root.plottext.text = "CURSE YOU BLUE! EVERY BLUE WHO LIVES! LET THIS BE YOUR WARNING! EVERY SINGLE LAST ONE OF YOU IS GOING TO DIE JUST LIKE THIS ANNOYING FOOL!";
_level0.GreenSword._rotation = _level0.GreenSword._rotation - 3;
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 18;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0xFFFFFF";
if ((plottime > 100) && (spct == 0)) {
_root.plottext.textColor = "0x00CCFF";
}
if (spct >= 1) {
_root.plottext.textColor = "0x33FF00";
}
_root.plottext.setTextFormat(plottextform);
if (spct == 51) {
_global.iexist = 0;
_root.plottext.removeTextField();
_global.frametoreturnto = 43;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
Frame 48
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 245 MovieClip "Green" in Frame 48
onClipEvent (load) {
plottime = 0;
sp = 0;
spct = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
sp = 1;
}
if ((!Key.isDown(32)) && (sp == 1)) {
sp = 0;
spct++;
}
_root.createTextField("plottext", 25, 0, 250, 250, 151);
if (spct == 0) {
_root.plottext.text = "....";
}
if (spct == 1) {
_root.plottext.text = "The memory of your ultimate purpose returns momentarily to your mind.";
}
if (spct == 2) {
_root.plottext.text = "Director:Elite of Green! You know you are our best. And in these times of extreme trouble, the best are called to be better. To become Heroes of Green, Saviours of Greendom, Warriors for Greenish Glory.";
}
if (spct == 3) {
_root.plottext.text = "To demonstrate what it means to be Green! We all know we are closer to doom than ever before. But it will not occur. We will turn back the Bluish hordes. That is what we have always done, and that is what";
}
if (spct == 4) {
_root.plottext.text = "we will continue to do. That is what you ten must do. We have no hope of beating the blues in number, they multiply like Greys. We've got to take out their top leadership. And that is the job I am set to give you.";
}
if (spct == 5) {
_root.plottext.text = "You must go in secret through Bluish territory, using stealth to get into The Blue City. Then, sneak into their castle and assasinate King Blip. That is the job you ten, you Ten Best of Green, must accomplish.";
}
if (spct == 6) {
_root.plottext.text = "The fate of Green is in your swords. You must succeed. For Greenist triumph over weak-minded Bluity; for Good over Evil, for God over Devil. You must succeed. And you will succeed...";
}
if (spct > 6) {
_root.plottext.text = "The fate of Green is in your swords. You must succeed. For Greenist triumph over weak-minded Bluity; for Good over Evil, for God over Devil. You must succeed. And you will succeed...";
plottime++;
}
if (plottime == 2) {
_level0.GreenDir.unloadMovie();
}
if (plottime == 10) {
_level0.Green2.unloadMovie();
}
if (plottime == 20) {
_level0.Green3.unloadMovie();
}
if (plottime == 30) {
_level0.Green4.unloadMovie();
}
if (plottime == 40) {
_level0.Green5.unloadMovie();
}
if (plottime == 50) {
_level0.Green6.unloadMovie();
}
if (plottime == 60) {
_level0.Green7.unloadMovie();
}
if (plottime == 70) {
_level0.Green8.unloadMovie();
}
if (plottime == 80) {
_level0.Green9.unloadMovie();
}
if (plottime == 90) {
_level0.Green1.unloadMovie();
}
if (plottime == 100) {
spct = 0;
plottime++;
}
if (plottime > 100) {
_root.plottext.text = "But now I am alone....";
if (spct == 1) {
_root.plottext.removeTextField();
_global.frametoreturnto = 36;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 18;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0xFFFFFF";
if ((spct > 1) || (plottime > 100)) {
_root.plottext.textColor = "0x33FF00";
}
_root.plottext.setTextFormat(plottextform);
}
Frame 49
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 247 MovieClip in Frame 49
onClipEvent (load) {
plottime = 0;
sp = 0;
spct = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
sp = 1;
}
if ((!Key.isDown(32)) && (sp == 1)) {
sp = 0;
spct++;
}
if (spct == 0) {
_root.createTextField("plottext", 25, 0, 0, 250, 151);
_root.plottext.text = "Dungeon Captain: KILL HIM!!!";
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 30;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0xFFFFFF";
if (spct == 1) {
_root.plottext.textColor = "0x00CCFF";
}
_root.plottext.setTextFormat(plottextform);
if (spct > 0) {
_root.plottext.removeTextField();
_global.frametoreturnto = 93;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
Frame 50
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 106 MovieClip [BlueGuardCapt] in Frame 50
onClipEvent (load) {
plottime = 0;
sp = 0;
spct = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
sp = 1;
}
if ((!Key.isDown(32)) && (sp == 1)) {
sp = 0;
spct++;
}
if (spct == 0) {
_root.createTextField("plottext", 25, 171, 0, 250, 151);
_root.plottext.text = "You aren't going to kill me. You can't kill me. Little Green idiot. You are gonna die, kid.";
}
if (spct > 0) {
plottime++;
_y = (_y-1);
_level0.longsword._y--;
}
if ((plottime > 0) && (plottime < 150)) {
_root.createTextField("plottext", 25, 171, 250, 250, 151);
_root.plottext.text = "I know how you got this far. I'm not gonna be so easy. I'm not gonna rush right into your slutty sword. ";
}
if (plottime > 150) {
_root.createTextField("plottext", 25, 171, 250, 250, 151);
_root.plottext.text = "Come and get me, silly coward.";
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 25;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0xFFFFFF";
if (spct >= 0) {
_root.plottext.textColor = "0x00CCFF";
}
_root.plottext.setTextFormat(plottextform);
if (plottime > 300) {
_root.plottext.removeTextField();
_global.frametoreturnto = 94;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
Frame 51
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 245 MovieClip in Frame 51
onClipEvent (load) {
plottime = 0;
sp = 0;
spct = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
sp = 1;
}
if ((!Key.isDown(32)) && (sp == 1)) {
sp = 0;
spct++;
}
if (spct == 0) {
_root.createTextField("plottext", 25, 0, 250, 250, 151);
_root.plottext.text = "Captive: You perverts can torture me all you want! I'm never going to tell you anything. Ever. Unlike you weaklings, a Green never reveals secrets to the enemy.";
}
if (spct == 1) {
_root.createTextField("plottext", 25, 0, 250, 250, 151);
_root.plottext.text = "Guard: Green is dead forever. That should tell you which is the superior race. You barbaric ignoramuses will never recover. Your resistance is useless.";
}
if (spct == 2) {
_root.createTextField("plottext", 25, 0, 250, 250, 151);
_root.plottext.text = "You might as well tell us where your idiot king is. We will allow you to die peacefully if you do so. Green is doomed anyways. We are superior.";
}
if (spct == 3) {
_root.createTextField("plottext", 25, 0, 250, 250, 151);
_root.plottext.text = "Never. Never never never never. Kill all you greyguts.";
}
if (spct == 4) {
_root.createTextField("plottext", 25, 0, 250, 250, 151);
_root.plottext.text = "Other Guard: Looks like we've got a visitor.";
}
if (spct == 5) {
_root.createTextField("plottext", 25, 0, 250, 250, 151);
_root.plottext.text = "What the Blue? I thought we killed all the other Greenie captives.";
}
if (spct == 6) {
_root.createTextField("plottext", 25, 0, 250, 250, 151);
_root.plottext.text = "Well, let's just finish the job off right now.";
}
if (spct > 3) {
if ((Math.round(_level0.s1._rotation) != 180) && (Math.round(_level0.s1._rotation0) != -180)) {
_level0.s1._rotation++;
}
if ((Math.round(_level0.s2._rotation) != 180) && (Math.round(_level0.s1._rotation0) != -180)) {
_level0.s2._rotation++;
}
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 20;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0x00CCFF";
if ((spct == 0) || (spct == 3)) {
_root.plottext.textColor = "0x00FF33";
}
_root.plottext.setTextFormat(plottextform);
if (spct > 6) {
_root.plottext.removeTextField();
_global.frametoreturnto = 86;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
Frame 52
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 245 MovieClip in Frame 52
onClipEvent (load) {
plottime = 0;
sp = 0;
spct = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
sp = 1;
}
if ((!Key.isDown(32)) && (sp == 1)) {
sp = 0;
spct++;
}
if (spct == 0) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "Captive: A Green! Such a great sight I never thought I'd ever see again.";
}
if (spct == 1) {
_root.createTextField("plottext", 25, 50, 50, 250, 151);
_root.plottext.text = "I did not think I'd find a worthy life in this place. Are there any other Green's living?";
}
if (spct == 2) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "Captive: Not a one. I'm the last. The dirty cowards executed every other one of us. But I see you have brought vengeance.";
}
if (spct == 3) {
_root.createTextField("plottext", 25, 50, 50, 250, 151);
_root.plottext.text = "It is not vengeance I come for, but success. I will kill King Blip. I will destroy Blue. And I will save Green.";
}
if (spct == 4) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "Captive: A worthy goal, but not an easy one. This place is very well defended. I wish I could help you, but those cowardly Blues...they mutilated me.";
}
if (spct == 5) {
_root.createTextField("plottext", 25, 50, 50, 250, 151);
_root.plottext.text = "That's...disgusting....Saving a Green brings me vast happiness, but I must continue on the road to the death of Blue itself....";
}
if (spct == 6) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "Captive: Wait! Just because I can't fight doesn't mean I've lost all my skill. I used to be a top fighter and I could teach you a few things to make life easier.";
}
if (spct == 7) {
_root.createTextField("plottext", 25, 50, 50, 250, 151);
_root.plottext.text = "I'd say I'm quite a fine swordsdot on my own.";
}
if (spct == 8) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "Captive: You're fast and quick and sharp, which is useful against all these bugs you're fighting now. But against a swarm of swordsman? You've got to";
}
if (spct == 9) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "learn some techniques if you want to destroy this place by yourself.";
}
if (spct == 10) {
_root.createTextField("plottext", 25, 50, 50, 250, 151);
_root.plottext.text = "And what can you offer me?";
}
if (spct == 11) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "Captive: The art of parrying, It is a powerful skill; one which will vastly improve your ability to combat other swords.";
}
if (spct == 12) {
_root.createTextField("plottext", 25, 50, 50, 250, 151);
_root.plottext.text = "Parrying! I'm no coward. Parrying is for dots too weak to outmaneuver their opponent.";
}
if (spct == 13) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "Captive: Don't let your pride keep you down. You have only one important goal and must use all possible resources to accomplish that goal. The";
}
if (spct == 14) {
_root.createTextField("plottext", 25, 100, 50, 250, 151);
_root.plottext.text = "fate of Green is in your sword. Let me teach you.";
}
if (spct == 15) {
_root.createTextField("plottext", 25, 50, 50, 250, 151);
_root.plottext.text = "<TIME PASSES>";
}
if (spct == 16) {
_root.createTextField("plottext", 25, 150, 50, 250, 151);
_root.plottext.text = "Captive: There, very good job. You are now as good as me at parrying. Good luck. Fight for Greendom.";
_global.parry = 1;
}
if (spct == 17) {
_root.createTextField("plottext", 25, 50, 50, 250, 151);
_root.plottext.text = "Thanks.";
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 20;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0x00CCFF";
_root.plottext.textColor = "0x00FF33";
_root.plottext.setTextFormat(plottextform);
if (spct > 17) {
_root.plottext.removeTextField();
_global.frametoreturnto = 86;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
Frame 53
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 295 MovieClip in Frame 53
onClipEvent (enterFrame) {
_root.createTextField("plottext", 25, 150, 175, 250, 50);
_root.plottext.text = "<You hear sounds of anguished screams to the East>";
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 18;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0x00FF33";
_root.plottext.setTextFormat(plottextform);
if (Key.isDown(32)) {
_root.plottext.removeTextField();
_global.frametoreturnto = 77;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
Frame 54
stop();
Instance of Symbol 149 MovieClip [Square] "rect121" in Frame 54
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Frame 55
stop();
Instance of Symbol 149 MovieClip [Square] "rect95" in Frame 55
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Frame 56
stop();
Instance of Symbol 149 MovieClip [Square] "rect134" in Frame 56
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_global.notlost = 1;
_global.frametoreturnto = _global.returningframe;
_root.gotoAndPlay(2);
}
}
Frame 57
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 295 MovieClip in Frame 57
onClipEvent (enterFrame) {
_root.createTextField("plottext", 25, 150, 175, 250, 50);
_root.plottext.text = "<The sounds of screaming die down.>";
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 20;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0x00FF33";
_root.plottext.setTextFormat(plottextform);
if (Key.isDown(32)) {
_root.plottext.removeTextField();
_global.frametoreturnto = 78;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
}
Frame 58
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 202 MovieClip "Sword" in Frame 58
onClipEvent (load) {
if (_global.doublesword > 0.9) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_level0._currentframe == 116) {
if (_global.doublesword == 1) {
gotoAndStop (2);
}
}
if (_global.iexist == 0) {
}
this._rotation = _global.swordrote;
this._x = _level0.Him._x;
this._y = _level0.Him._y;
this._visible = true;
if (Key.isDown(_global.rotateleftkey) || (Key.isDown(_global.rotaterightkey))) {
if (Key.isDown(_global.rotateleftkey)) {
this._rotation = this._rotation - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 1;
}
if (Key.isDown(_global.rotaterightkey)) {
this._rotation = this._rotation + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 2;
}
} else {
_global.rotatedir = 0;
}
}
Instance of Symbol 302 MovieClip in Frame 58
onClipEvent (load) {
p = 0;
space = 0;
}
onClipEvent (enterFrame) {
if (p == 0) {
_root.createTextField("plottext", 25, 20, 25, 250, 150);
_root.plottext.text = "Wizard: Hero of Green! Listen to me a moment.";
}
if (p == 1) {
_root.createTextField("plottext", 25, 170, 25, 250, 150);
_root.plottext.text = "The wizard of blue...I finally meet you who has killed so many of our best fighters using despicable methods of deception and dishonor....";
}
if (p == 0) {
_root.createTextField("plottext", 25, 20, 25, 250, 150);
_root.plottext.text = "Wizard: Hero of Green! Listen to me a moment.";
}
if (p == 1) {
_root.createTextField("plottext", 25, 170, 25, 250, 150);
_root.plottext.text = "The wizard of blue...I finally meet you who has killed so many of our best fighters using despicable methods of deception and dishonor....";
}
if (p == 0) {
_root.createTextField("plottext", 25, 20, 25, 250, 150);
_root.plottext.text = "Wizard: Hero of Green! Listen to me a moment.";
}
if (p == 1) {
_root.createTextField("plottext", 25, 170, 25, 250, 150);
_root.plottext.text = "The wizard of blue...I finally meet you who has killed so many of our best fighters using despicable methods of deception and dishonor....";
}
if (p == 2) {
_root.createTextField("plottext", 25, 20, 25, 250, 150);
_root.plottext.text = "Hero of Green, I have no desire to kill you. I've traced your path from when you entered this place--";
}
if (p == 3) {
_root.createTextField("plottext", 25, 170, 25, 250, 150);
_root.plottext.text = "Prepare to die, yet another blue coward.";
}
if (p == 4) {
_root.createTextField("plottext", 25, 20, 25, 250, 150);
_root.plottext.text = "Listen, hero. Look at me! I am not even blue; even your own color is on my body. I am no longer aligned in this conflict.";
}
if (p == 5) {
_root.createTextField("plottext", 25, 170, 25, 250, 150);
_root.plottext.text = "It is too late to back out now, murderer. You have the color of hundreds of greens on your wand.";
}
if (p == 6) {
_root.createTextField("plottext", 25, 20, 25, 275, 150);
_root.plottext.text = "It is not out of fear for me that I wish to avoid this fight! I just don't want the career of such a great hero as you to be cut short before you have a chance at completing your mission!";
}
if (p == 7) {
_root.createTextField("plottext", 25, 170, 25, 250, 150);
_root.plottext.text = "There will be no hero's life cut short today, redbrain. No more words.";
}
if (p == 8) {
_root.createTextField("plottext", 25, 20, 25, 250, 150);
_root.plottext.text = "If you agree to a truce I will give you The Green Sword--";
}
if (p == 9) {
_root.createTextField("plottext", 25, 170, 25, 250, 150);
_root.plottext.text = "NO MORE WORDS! This will only end with your death!";
}
if (p == 10) {
_root.createTextField("plottext", 25, 20, 25, 250, 150);
_root.plottext.text = "How many heroes have been destroyed by pride! If you must be so obstinate, you will die right here! I am unkillable!";
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 20;
if (p == 6) {
plottextform.size = 19.5;
}
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
if (Math.round(p / 2) == (p / 2)) {
_root.plottext.textColor = "0xFFFFFF";
} else {
_root.plottext.textColor = "0x00FF33";
}
_root.plottext.setTextFormat(plottextform);
if (p == 11) {
_root.plottext.removeTextField();
_global.frametoreturnto = 120;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
if (Key.isDown(32)) {
space = 1;
}
if ((space == 1) && (!Key.isDown(32))) {
space = 0;
p++;
}
}
Frame 59
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 243 MovieClip "Flee" in Frame 59
/* no clip actions */
Instance of Symbol 245 MovieClip "G" in Frame 59
onClipEvent (load) {
p = 0;
n = 0;
g = 0;
space = 0;
}
onClipEvent (enterFrame) {
if (p == 0) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "STOP!!!!!";
}
if (p == 1) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Stop?";
}
if (p == 2) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Yes! Stop! Please listen!";
}
if (p == 3) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "I will not stop! I won't stop until I slaughter every last blue in this castle, ending with King Blip himself!";
}
if (p == 4) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Great Green hero!";
}
if (p == 5) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Flattery won't save you! Blue has wronged Green again and again. Every blue must be slaughtered!";
}
if (p == 6) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Great Green hero! It is not flattery! Do you think everyone here likes King Blip and Blue Hero?";
}
if (p == 7) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "It matters not! All Blues are dishonorable scum to the last. Purifying the world of their taint is a must. Prepare to die!";
}
if (p == 8) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "You have accomplished an amazing feat, killing all these blues while you remain unscathed...you are truly a supreme hero.";
}
if (p == 9) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Nothing you say will save Blue.";
}
if (p == 10) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "It is not Blue I want to save! I hate Blip! He abuses all of us, treating us like we're hardly above the greys. I wish I was Green!";
}
if (p == 11) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "What?!";
}
if (p == 12) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = " I wish I was green, the color of such amazing heroes as you...I know Blue Hero, he could never do anything like you have.";
}
if (p == 13) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "You...your tricks won't...work on me.";
}
if (p == 14) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Green Hero...you are such a massive, powerful swordsdot...looking at you, I am filled with such astonishment....";
}
if (p == 15) {
_root.createTextField("plottext", 25, 10, 10, 275, 150);
_root.plottext.text = "<You notice her perfect borders...so precisely circular. Yes, she's blue, but...of all possible shades of blue, the one on her body must be the least noxious>";
}
if (p == 16) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "You are the most perfect dot ever...drop your sword...let me come closer...";
}
if (p == 17) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "<You hear your sword fall to the ground>";
_level0.Stor._visible = false;
}
if ((p > 17) && (p < 21)) {
_root.plottext.removeTextField();
_level0.Flee._x = _level0.Flee._x - 3;
p = 18;
if (Math.round(_level0.Flee._x) < 138) {
p = 22;
}
}
if (p == 22) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Even if you kill me right after this I will die happily by your sword....";
}
if ((p > 22) && (p < 25)) {
_root.plottext.removeTextField();
p = 23;
this._x = this._x + 3;
if (Math.round(this._x) > 136) {
p = 26;
}
}
if ((p > 25) && (p < 28)) {
_root.plottext.removeTextField();
p = 26;
n++;
g++;
this.gotoAndPlay(g);
if (g == 4) {
g = 0;
}
if (n == 100) {
p = 31;
}
}
if ((p > 30) && (p < 40)) {
p = 31;
this._x = this._x - 3;
if (Math.round(this._x) < 90) {
p = 42;
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Great Green Hero! You are everything...I love you.";
}
}
if (p == 43) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = " You...you light blue...my opinions on blues have not changed...but....";
}
if (p == 44) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "No time to say anything! Listen, King Blip is not popular here. He only remains king because he holds The Blue Sword, which makes him";
}
if (p == 45) {
p = 46;
}
if (p == 46) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "practically invincible.";
}
if (p == 47) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "No one can defeat me.";
}
if (p == 48) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "The only thing I know of which can annul the power of The Blue Sword is The Green Sword. I've heard that the Wizard took The Green Sword into the castle";
}
if (p == 49) {
p = 50;
}
if (p == 50) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "after it was taken from Greck's body, but no blue is able to use it.";
}
if (p == 51) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Light Blue, who--";
}
if (p == 52) {
_root.createTextField("plottext", 25, 200, 10, 275, 150);
_root.plottext.text = "If you use The Green Sword to hit The Blue Sword a number of times with the intention of destroying it, it will be destroyed. I know not what else will happen.";
}
if (p == 53) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Who are you?!?";
}
if (p == 54) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Don't ask how I know all of this. I've been around. This is the only way you can suceed!";
}
if (p == 55) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "....";
}
if (p == 56) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = " I wish you luck, and know you do not need it. You truly are the perfect swordot, and the perfect dot in more ways than that as well. I hope we can meet";
}
if (p == 57) {
p = 58;
}
if (p == 58) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "again in...better times.";
}
if ((p > 58) && (p < 60)) {
_root.plottext.removeTextField();
p = 59;
_level0.Flee._y = _level0.Flee._y + 6;
if (_level0.Flee._y > 390) {
_level0.Flee._visible = false;
_root.createTextField("plottext", 25, 10, 10, 250, 150);
p = 61;
}
}
if (p == 61) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Wait!";
}
if (p == 62) {
p = 63;
}
if (p == 63) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "<You have a sinking feeling that you will never see her again>";
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 20;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
if (Math.round(p / 2) == (p / 2)) {
_root.plottext.textColor = "0xCCFFFF";
} else {
_root.plottext.textColor = "0x00FF33";
}
_root.plottext.setTextFormat(plottextform);
if (p == 64) {
_root.plottext.removeTextField();
_global.frametoreturnto = 112;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
if (Key.isDown(32)) {
space = 1;
}
if ((space == 1) && (!Key.isDown(32))) {
space = 0;
p++;
}
}
Frame 60
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 245 MovieClip in Frame 60
onClipEvent (load) {
p = 0;
space = 0;
}
onClipEvent (enterFrame) {
if (p == 0) {
p = 1;
}
if (p == 1) {
_root.createTextField("plottext", 25, 75, 50, 250, 150);
_root.plottext.text = "King Blip, leader of the weaklings! I will execute you right here to avenge the death of Greck and verify yet again the domination of Greendom!";
}
if (p == 2) {
_root.createTextField("plottext", 25, 75, 120, 250, 150);
_root.plottext.text = "Sorry, you got that incorrect. I actually can't be beaten. Have a fun last few seconds of life.";
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 20;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
if (Math.round(p / 2) == (p / 2)) {
_root.plottext.textColor = "0x003399";
} else {
_root.plottext.textColor = "0x00FF33";
}
_root.plottext.setTextFormat(plottextform);
if (p == 3) {
_root.plottext.removeTextField();
_global.frametoreturnto = 135;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
if (Key.isDown(32)) {
space = 1;
}
if ((space == 1) && (!Key.isDown(32))) {
space = 0;
p++;
}
}
Frame 61
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
stop();
Instance of Symbol 305 MovieClip "kingo" in Frame 61
onClipEvent (load) {
p = 0;
space = 0;
}
onClipEvent (enterFrame) {
if (p == 0) {
p = 1;
}
if (p == 1) {
_root.createTextField("plottext", 25, 240, 125, 250, 150);
_root.plottext.text = "<You try will all your might to destroy The Blue Sword with The Green Sword>";
}
if (p == 2) {
_root.plottext.removeTextField();
_level0.swob._visible = false;
}
if (p == 3) {
this._visible = false;
}
if (p == 4) {
_level0.swog._visible = false;
}
if (p == 5) {
_level0.me._visible = false;
}
if (p == 6) {
_root.createTextField("plottext", 25, 240, 125, 250, 150);
_root.plottext.text = "<The energies of the two swords cancel each other out, in the process dragging both of their wielders with them into nothingness!>";
}
if (p == 7) {
_root.plottext.removeTextField();
_level0.back._visible = false;
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 20;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
_root.plottext.textColor = "0xFFFFFF";
_root.plottext.setTextFormat(plottextform);
if (p == 8) {
_root.plottext.removeTextField();
_global.frametoreturnto = 135;
_global.notlost = 1;
_root.gotoAndPlay(62);
}
if (Key.isDown(32)) {
space = 1;
}
if ((space == 1) && (!Key.isDown(32))) {
space = 0;
p++;
}
}
Frame 62
los.text = ("You lost " + _global.losscount) + " times!";
stop();
Frame 73
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 0, 0, 44, 74);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 202 MovieClip "Sword" in Frame 73
onClipEvent (load) {
if (_global.doublesword > 0.9) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_level0._currentframe == 116) {
if (_global.doublesword == 1) {
gotoAndStop (2);
}
}
if (_global.iexist == 0) {
}
this._rotation = _global.swordrote;
this._x = _level0.Him._x;
this._y = _level0.Him._y;
this._visible = true;
if (Key.isDown(_global.rotateleftkey) || (Key.isDown(_global.rotaterightkey))) {
if (Key.isDown(_global.rotateleftkey)) {
this._rotation = this._rotation - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote - ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 1;
}
if (Key.isDown(_global.rotaterightkey)) {
this._rotation = this._rotation + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.swordrote = _global.swordrote + ((1.5 * _global.movements) * (_global.swordspeed / 10));
_global.rotatedir = 2;
}
} else {
_global.rotatedir = 0;
}
}
Instance of Symbol 205 MovieClip "Him" in Frame 73
onClipEvent (enterFrame) {
_global.up = 0;
_global.right = 0;
_global.left = 0;
_global.down = 0;
_global.losscounter = 0;
if ((_global.textactivated == 0) && ((_level0.gogoo == 0) || (_visible == false))) {
_level0.moveStuff(this);
}
}
Frame 74
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 0, 0, 73, 75);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 75
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 0, 0, 74, 76);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 76
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 77, 0, 75, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 77
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(76, 78, 79, 80);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 78
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 82, 83, 77);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 79
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(77, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 80
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 77, 81, 87);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 81
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(80, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 82
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 85, 84, 78);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 83
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(78, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 84
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(82, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 85
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 86, 82);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 86
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(85, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 87
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 80, 0, 88);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 88
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(92, 87, 89, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 89
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(88, 0, 0, 90);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 90
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 89, 91, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 91
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(90, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 92
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(93, 0, 88, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 93
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(94, 0, 92, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 247 MovieClip "BlueCapt" in Frame 93
onClipEvent (load) {
if (_level0.inhibitmons_ar[_root._currentframe] == 1) {
this._visible = false;
_level0.BlueSword._visible = false;
}
}
onClipEvent (enterFrame) {
_y = (_y - 3);
_level0.BlueSword._y = _level0.BlueSword._y - 3;
if (_y < 0) {
_level0.BlueSword.unloadMovie();
this.unloadMovie();
}
}
Frame 94
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 93, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 95
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 96, 0, 0, 43);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 96
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(95, 97, 0, 103, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 97
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(98, 0, 0, 96);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 98
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(99, 105, 97, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 99
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 98, 100);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 100
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(104, 99, 0, 101);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 101
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 100, 102, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 102
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(101, 0, 103, 113);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 103
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(102, 96, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 104
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 100, 0, 121, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 105
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 106, 0, 98);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 106
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(107, 109, 111, 105);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 107
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 106, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 108
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 109, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 109
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(108, 112, 110, 106);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 110
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(109, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 111
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(106, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 112
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 0, 109);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 43 MovieClip [BlueFlee] in Frame 112
/* no clip actions */
Frame 113
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 102, 0, 114);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 114
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(115, 113, 119, 117);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 115
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 114, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 116
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 117, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 324 MovieClip in Frame 116
onClipEvent (load) {
p = 0;
space = 0;
q = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_global.doublesword < 3) {
_visible = true;
if (p == 0) {
_level0.gogoo = 1;
_level0.createTextField("orbox", 25, 75, 200, 250, 150);
_level0.orbox.text = "There it is.";
}
if (p == 1) {
_level0.orbox.text = "The Green Sword. The most famous sword of all Greendom, the Sword of the line of the greatest green heroes who ever lived, the Grecks.";
}
if (p == 2) {
_level0.orbox.text = "If only I truly knew how to use its greatest powers, taking out the rest of this castle would be even easier than I thought.";
}
if (p == 3) {
_level0.orbox.text = "Even without that knowledge, I cannot possibly fail with such a wonderous sword in my center!";
}
if (p == 4) {
_level0.orbox.removeTextField();
_level0.gogoo = 0;
p = 5;
}
if (hitTest(_level0.Him)) {
if (_global.doublesword == 2) {
p = 10;
q = 10;
}
if (q < 1) {
q = 1;
_global.doublesword = 1;
}
_visible = false;
if (q == 1) {
_level0.gogoo = 1;
_level0.createTextField("orbox", 25, 75, 200, 250, 150);
_level0.orbox.text = "<As you grasp the grand sword in your hands, you immediately recall the terrible battle that made your mission necessary....>";
}
if (q == 2) {
_global.doublesword = 2;
_level0.gotoAndPlay(26);
}
if (q == 10) {
_level0.createTextField("orbox", 25, 75, 200, 250, 150);
_level0.orbox.text = "That plan was for a group of 10 dots to assassinate the blue King Blip in this castle and thus restore balance to the war. But nine of those ten died on the way here....";
_global.doublesword = 2.2;
}
if (q == 11) {
_level0.createTextField("orbox", 25, 75, 200, 250, 150);
_level0.orbox.text = "<You hold your new sword firmly and vow to avenge Greck with his own sword and save all of Greendom in the process.>";
}
if (q == 12) {
_global.doublesword = 3;
_level0.gogoo = 0;
_level0.orbox.removeTextField();
}
}
_level0.orbox.selectable = false;
_level0.orboxform = new TextFormat();
_level0.orboxform.bold = true;
_level0.orboxform.font = "Goodfish";
_level0.orboxform.size = 20;
_level0.orboxform.align = "left";
_level0.orboxform.leftMargin = 5;
_level0.orboxform.rightMargin = 5;
_level0.orbox.multiline = true;
_level0.orbox.selectable = false;
_level0.orbox.wordWrap = true;
_level0.orbox.background = true;
_level0.orbox.border = true;
_level0.orbox.borderColor = 16777215 /* 0xFFFFFF */;
_level0.orbox.backgroundColor = "000000";
_level0.orbox.textColor = "0x00CC00";
_level0.orbox.setTextFormat(_level0.orboxform);
if (Key.isDown(_global.endkey)) {
space = 1;
}
if ((!Key.isDown(_global.endkey)) && (space == 1)) {
space = 0;
p++;
if (q > 0) {
q++;
}
}
} else {
_visible = false;
}
}
Frame 117
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(116, 114, 118, 120);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 118
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(117, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 119
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(114, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 120
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 117, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
_global.trapon = 1;
stop();
Instance of Symbol 28 MovieClip [Bluewand] in Frame 120
onClipEvent (load) {
wand = 1;
}
Instance of Symbol 338 MovieClip in Frame 120
onClipEvent (load) {
p = 0;
space = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_global.iexist == 0) {
_visible = true;
if (hitTest(_level0.Him) && (_global.doublesword < 0.4)) {
if (p == 0) {
_level0.gogoo = 1;
_level0.createTextField("orbox", 25, 50, 100, 300, 200);
_level0.orbox.text = "<As you absorb energy from the orb, you notice a purple key in the mix. Grabbing it, you see a note firmly attached to its back:";
_global.purplekeyfound = 1;
}
if (p == 1) {
_level0.orbox.text = "Do not touch The Green Sword. Its energies will kill any blue it comes into contact with. Soon I will find a way to destroy the sword forever, thus making The Blue Sword completely invulnerable.\r--Wizard";
}
if (p == 2) {
_level0.orbox.removeTextField();
_level0.gogoo = 0;
_global.doublesword = 0.5;
}
_level0.orbox.selectable = false;
_level0.orboxform = new TextFormat();
_level0.orboxform.bold = true;
_level0.orboxform.font = "Goodfish";
_level0.orboxform.size = 25;
if (p == 1) {
_level0.orboxform.size = 20;
}
_level0.orboxform.align = "center";
_level0.orboxform.leftMargin = 5;
_level0.orboxform.rightMargin = 5;
_level0.orbox.multiline = true;
_level0.orbox.selectable = false;
_level0.orbox.wordWrap = true;
_level0.orbox.background = true;
_level0.orbox.border = true;
_level0.orbox.borderColor = 16777215 /* 0xFFFFFF */;
_level0.orbox.backgroundColor = "000000";
_level0.orbox.textColor = "0x00CC00";
if (p == 1) {
_level0.orbox.textColor = "0xFFFFFF";
}
_level0.orbox.setTextFormat(_level0.orboxform);
if (Key.isDown(_global.endkey)) {
space = 1;
}
if ((!Key.isDown(_global.endkey)) && (space == 1)) {
space = 0;
p++;
}
}
}
}
Instance of Symbol 26 MovieClip [flamebold] in Frame 120
onClipEvent (load) {
flame = 1;
}
Instance of Symbol 26 MovieClip [flamebold] in Frame 120
onClipEvent (load) {
flame = 1;
}
Frame 121
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 122, 0, 0, 104);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 122
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(121, 0, 123, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 123
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(122, 125, 127, 124);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 124
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 123, 126, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 125
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 128, 123);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 126
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(124, 127, 129, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 127
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(123, 128, 130, 126);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 128
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(125, 0, 131, 127);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 37 MovieClip [BlueVet] in Frame 128
onClipEvent (load) {
reallygreat = 1;
}
Frame 129
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(126, 130, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 130
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(127, 131, 132, 129);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 131
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(128, 0, 0, 130);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 132
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(130, 0, 0, 0, 133, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Instance of Symbol 37 MovieClip [BlueVet] in Frame 132
onClipEvent (load) {
reallygreat = 1;
}
Instance of Symbol 37 MovieClip [BlueVet] in Frame 132
onClipEvent (load) {
reallygreat = 1;
}
Frame 133
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(0, 0, 134, 0, 0, 132);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 134
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(133, 0, 135, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Frame 135
function checkformons() {
framecounter++;
if (framecounter == 10) {
FPSNUM = Math.round((10 / (getTimer() - thistime)) * 1000);
thistime = getTimer();
framecounter = 0;
}
if (((_currentframe == 94) && (keyboxfound == 1)) && (_global.orangekeyfound < 2)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a YELLOW KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 2;
}
}
if (((_global.iexist == 0) && (_global.kidnums < 1)) || (_global.firstcheckedmon == 0)) {
safe = 1;
toggled = 1;
if (firstloaded[_currentframe] != 1) {
_global.xp = _global.xp + monxp;
firstloaded[_currentframe] = 1;
activatetext = 1;
}
Saver.enabled = true;
Opter.enabled = true;
Helper.enabled = true;
inhibitmons_ar[_currentframe] = 1;
if (_global.roomcondition[_currentframe] < 3) {
_global.roomcondition[_currentframe] = 3;
}
if (((_currentframe == 18) && (_global.chckbxs[18][3] == 1)) && (mapfound != 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found a MAP: Click 'M' to view.>";
setuptext();
}
if (((_currentframe == 23) && (_global.chckbxs[23][1] == 1)) && (_global.orangekeyfound < 1)) {
_global.textactivated = 1;
textbx2.text = "\r\r<You have found an ORANGE KEY>";
setuptext();
if (textactivated == 0) {
_global.orangekeyfound = 1;
}
}
if (savemessage == 1) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (savemessage == 2) {
_global.textactivated = 1;
textbx2.text = "\r\rSAVE FAILED";
setuptext();
if (textactivated == 0) {
savemessage = 0;
}
}
if (Key.isDown(_global.mapkey) && (mapfound == 1)) {
_global.returningframe = _currentframe;
if (_currentframe < 76) {
gotoAndPlay (19);
}
if ((_currentframe >= 76) && (_currentframe <= 94)) {
gotoAndPlay (46);
}
if ((_currentframe >= 95) && (_currentframe <= 120)) {
gotoAndPlay (55);
}
if ((_currentframe >= 121) && (_currentframe <= 132)) {
gotoAndPlay (54);
}
if ((_currentframe >= 133) && (_currentframe <= 135)) {
gotoAndPlay (56);
}
}
}
}
function setuptext() {
textbx2.multiline = true;
textbx2.selectable = false;
textbx2.wordWrap = true;
textbx2.background = true;
textbx2.border = true;
textbx2.borderColor = 16777215 /* 0xFFFFFF */;
textbx2.backgroundColor = "000000";
textbx2.textColor = "0x00CC00";
textbx2.setTextFormat(textbx2form);
if (Key.isDown(_global.endkey)) {
_global.textactivated = 0;
activatetext = 0;
if (_currentframe == 18) {
mapfound = 1;
}
}
}
function mover(a, b, c, d, e, f) {
if (inhibitmons_ar[_currentframe] == 1) {
if (_global.roomcondition[_currentframe] < 4) {
if (e > 0) {
_global.roomcondition[_currentframe] = 5;
}
if (f > 0) {
_global.roomcondition[_currentframe] = 6;
}
if ((e > 0) && (f > 0)) {
_global.roomcondition[_currentframe] = 7;
}
}
}
if (icehit == 1) {
spdmod = 3;
icehit = 0;
} else {
spdmod = 1;
}
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
if (_global.roomcondition[a] < 1) {
_global.roomcondition[a] = 1;
}
if (_global.roomcondition[b] < 1) {
_global.roomcondition[b] = 1;
}
if (_global.roomcondition[c] < 1) {
_global.roomcondition[c] = 1;
}
if (_global.roomcondition[d] < 1) {
_global.roomcondition[d] = 1;
}
if (_global.statup > 0) {
plusser._visible = true;
plusser2._visible = true;
} else {
plusser._visible = false;
plusser2._visible = false;
}
if (_global.level == 1) {
_global.xpcost = 1000;
}
if (_global.xp >= _global.xpcost) {
_global.xpcost = Math.round(_global.xpcost + (1000 * Math.pow(1.2, level)));
_global.level++;
_global.statup++;
}
textbx1.text = (((((((((((((((((((((("Exp: " + _global.xp) + "/") + _global.xpcost) + newline) + newline) + "Speed: ") + _global.herospeed) + newline) + newline) + "Sword: ") + _global.swordspeed) + newline) + newline) + "Parry: ") + _global.parry) + newline) + newline) + "Level: ") + _global.level) + newline) + newline) + "Loss Count: ") + _global.losscount;
textbx1form = new TextFormat();
textbx1form.bold = true;
textbx1form.font = "Arial";
textbx1.selectable = false;
textbx1.setTextFormat(textbx1form);
_root.createTextField("textbx2", 1, 50, 100, 300, 200);
textbx2.selectable = false;
textbx2form = new TextFormat();
textbx2form.bold = true;
textbx2form.font = "Goodfish";
textbx2form.size = 30;
if (_currentframe == 134) {
textbx2form.size = 25;
}
textbx2form.align = "center";
textbx2form.leftMargin = 5;
textbx2form.rightMargin = 5;
if ((activatetext > 0) && (_currentframe == 20)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rI will succeed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 23)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.align = "left";
textbx2.text = "Defending their castle with Red Bugs, I see. Stupid Blues. They'll never expect what I'm going to do to them.";
setuptext();
}
}
if ((_currentframe == 43) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (47);
}
}
if ((_currentframe == 86) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
gotoAndPlay (52);
}
}
if ((_currentframe == 112) && (activatetext > 0)) {
activatetext++;
if (activatetext == 2) {
_global.mether = 1;
gotoAndPlay (59);
}
}
if ((_currentframe == 36) && (activatetext > 0)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2form.size = 20;
textbx2form.align = "left";
textbx2.text = "As you kill the final enemy, you wait a moment, regaining your energy. Your success so far has made you even more set on your goal as it actually seems possible to reach it right now, even if it will require the passing of a good deal more obstacles....";
setuptext();
if (_global.textactivated == 0) {
gotoAndPlay (48);
}
}
}
if ((activatetext > 0) && (_currentframe == 5)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 5) {
textbx2.text = "\r\rThis is so easy.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 13)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 25;
}
if (activatetext > 20) {
textbx2.text = "\rThat was a slightly more exciting battle than the others so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 28)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 50;
}
if (activatetext > 20) {
textbx2.text = "\r\rGreen God! These things are annoying.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 99)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
}
if (activatetext > 20) {
textbx2.text = "\rNice banner. I wonder if they made it for me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 114)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "About time they brought out their ok fighters. This has been way too easy so far.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 115)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
}
if (activatetext > 20) {
textbx2.text = "\r\r<You find a brown key on the body>";
_global.brownkeyfound = 1;
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 120)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<You are about to celebrate the death of one of the worst of Blue's villians when you notice a strange orb now visible.>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 43)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 150;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 87)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 100;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 89)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 90)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 250;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext == 5) {
_global.xp = _global.xp + 350;
activatetext = 0;
_global.textactivated = 0;
}
}
if ((activatetext > 0) && (_currentframe == 16)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\r\rWham, Lots of dead bugs.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 94)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rBlues never learn; cowardice does not pay off.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 91)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rNah, I'd rather not.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 96)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rI hate being pushed.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 100)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rStupid blues can hide, but they can't touch me.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 106)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "Cowardly Blues, allowing themselves to get slaughtered like a tribe of greys.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 109)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rThis is fun.";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 134)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "<A note on the back of the red states: If you are reading this, you must have killed the red. Congratulations. Now you get to fight a battle you actually won't win>";
setuptext();
}
}
if ((activatetext > 0) && (_currentframe == 110)) {
_global.textactivated = 1;
activatetext++;
if (activatetext > 20) {
textbx2.text = "\rWell, I cleared their red infestation problem.";
setuptext();
}
}
if (_global.birthtime == 1) {
_global.birthtime = 0;
birthname = "order1";
_level0.createEmptyMovieClip(birthname, incbirths);
incbirths++;
order1.attachMovie("Bug5", "order1" + incbirths, incbirths, {_x:_global.birthtimex, _y:_global.birthtimey, myframe:_level0._currentframe});
}
checkformons();
if (Him._y < -6) {
_global.notlost = 1;
_global.himypos = 395;
_global.frametoreturnto = a;
gotoAndPlay (2);
}
if (Him._x > 400) {
_global.notlost = 1;
_global.himxpos = 5;
_global.frametoreturnto = b;
gotoAndPlay (2);
}
if (Him._y > 400) {
_global.notlost = 1;
_global.himypos = 5;
_global.frametoreturnto = c;
gotoAndPlay (2);
}
if (Him._x < -6) {
_global.notlost = 1;
_global.himxpos = 395;
_global.frametoreturnto = d;
gotoAndPlay (2);
}
if (_global.stairshit == 1) {
_global.notlost = 1;
_global.frametoreturnto = e;
gotoAndPlay (2);
}
if (_global.stairshitdown == 1) {
_global.notlost = 1;
_global.frametoreturnto = f;
gotoAndPlay (2);
}
if (Him.hitTest(cl_wall)) {
trace("S");
}
}
function moveStuff(a) {
trace(Saver.enabled);
if (Key.isDown(_global.moveleftkey)) {
a._x = a._x - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.left = 1;
testmove(Him, 4);
}
if (Key.isDown(_global.moverightkey)) {
a._x = a._x + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.right = 1;
testmove(Him, 2);
}
if (Key.isDown(_global.moveupkey)) {
a._y = a._y - ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.up = 1;
testmove(Him, 1);
}
if (Key.isDown(_global.movedownkey)) {
a._y = a._y + ((_global.movements * (_global.herospeed / 10)) * spdmod);
_global.down = 1;
testmove(Him, 3);
}
_global.himxpos = Him._x;
_global.himypos = Him._y;
if (Him._visible == false) {
_global.losscount++;
_global.himxpos = _global.frameenterx;
_global.himypos = _global.frameentery;
_global.swordrote = _global.frameenterr;
Him._visible = true;
_global.frametoreturnto = _currentframe;
gotoAndPlay (2);
}
}
function testmove(b, dir, exception) {
i = wallnum;
while (i > -1) {
if (!((_global.wallnums[_currentframe][i].stone == 1) && (exception == 1))) {
if (wallfunc(_global.wallnums[_currentframe][i], b, dir) == true) {
return(true);
}
}
i--;
}
i = shapenum;
while (i > -1) {
if (wallfunc(_global.shapenums[_currentframe][i], b, dir) == true) {
return(true);
}
i--;
}
if (b != Him) {
if ((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0)) {
var _local4 = 0;
while (_local4 == 0) {
if (!((((b._x > 400) || (b._y > 400)) || (b._x < 0)) || (b._y < 0))) {
_local4 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 1;
}
if (dir == 2) {
b._x = b._x - 1;
}
if (dir == 3) {
b._y = b._y - 1;
}
if (dir == 4) {
b._x = b._x + 1;
}
}
}
}
}
function wallfunc(a, b, dir) {
if (a.hitTest(b)) {
var _local3 = 0;
while (_local3 == 0) {
if (!a.hitTest(b)) {
_local3 = 1;
return(true);
}
if (dir == 1) {
b._y = b._y + 0.5;
}
if (dir == 2) {
b._x = b._x - 0.5;
}
if (dir == 3) {
b._y = b._y - 0.5;
}
if (dir == 4) {
b._x = b._x + 0.5;
}
}
}
}
function finder(a) {
mover(134, 0, 0, 0);
}
_global.movements = 5 * ((5 + _global.speedset) / 10);
_global.global_sound = new Sound();
_global.global_sound.attachSound("gamemusic");
if (_global.musicon == 2) {
_global.global_sound.stop();
}
if (_global.realfirstloadedframe[_currentframe] == 0) {
_global.realfirstloadedframe[_currentframe] = 1;
if (_currentframe == 93) {
gotoAndPlay (49);
}
if (_currentframe == 94) {
gotoAndPlay (50);
}
if (_currentframe == 86) {
gotoAndPlay (51);
}
if (_currentframe == 77) {
gotoAndPlay (53);
}
if (_currentframe == 78) {
gotoAndPlay (57);
}
if (_currentframe == 120) {
gotoAndPlay (58);
}
if (_currentframe == 135) {
gotoAndPlay (60);
}
}
plusser._visible = false;
plusser2._visible = false;
Sword._visible = false;
Saver.enabled = false;
Opter.enabled = false;
Helper.enabled = false;
gogoo = 0;
fireprotect = 0;
toggled = 0;
spdmod = 1;
icehit = 0;
nest = 0;
nestx = 0;
armored = 0;
thistime = 0;
framecounter = 0;
FPSNUM = 0;
monxp = 0;
keyboxfound = 0;
randomizer = 0;
nesty = 0;
if (_global.roomcondition[_currentframe] < 2) {
_global.roomcondition[_currentframe] = 2;
}
safe = 0;
shapenum = 0;
wallnum = 0;
blueonesnum = 0;
blueswordnum = 0;
arrownum = 0;
activatetext = 0;
_global.stairshit = 0;
_global.stairshitdown = 0;
_global.trapon = 0;
_global.kidnums = 0;
_global.textactivated = 0;
_global.iexist = 1;
_global.inhibmons = 0;
_global.firstcheckedmon = 0;
if (inhibitmons_ar[_currentframe] == 1) {
_global.inhibmons = 1;
}
_global.frameenterx = _global.himxpos;
_global.frameentery = _global.himypos;
_global.frameenterr = _global.swordrote;
Him.onEnterFrame = finder;
var incbirths = 0;
Him._y = _global.himypos;
Him._x = _global.himxpos;
stop();
Symbol 3 MovieClip [pt1] Frame 1
#initclip 130
Object.registerClass("pt1", cl_swordpt);
#endinitclip
Symbol 4 MovieClip [BlueSwordBig copy] Frame 1
#initclip 52
Object.registerClass("BlueSwordBig copy", cl_bluesword);
#endinitclip
Symbol 6 MovieClip [Bug5] Frame 1
#initclip 53
Object.registerClass("Bug5", cl_bug5);
#endinitclip
Symbol 12 MovieClip [BigBlueSword] Frame 1
#initclip 54
Object.registerClass("BigBlueSword", cl_bluesword);
#endinitclip
Symbol 14 MovieClip [Food] Frame 1
#initclip 55
Object.registerClass("Food", cl_food);
#endinitclip
Symbol 18 MovieClip [BlueKing] Frame 1
#initclip 56
Object.registerClass("BlueKing", cl_blueking);
#endinitclip
Symbol 22 MovieClip [Randomizer] Frame 1
#initclip 57
Object.registerClass("Randomizer", cl_randomizer);
#endinitclip
Symbol 24 MovieClip [BlueWizard] Frame 1
#initclip 58
Object.registerClass("BlueWizard", cl_bluewizard);
#endinitclip
Symbol 26 MovieClip [flamebold] Frame 1
#initclip 59
Object.registerClass("flamebold", cl_arrow);
#endinitclip
Symbol 28 MovieClip [Bluewand] Frame 1
#initclip 60
Object.registerClass("Bluewand", cl_bluebow);
#endinitclip
Symbol 30 MovieClip [LockedWallBrown] Frame 1
#initclip 61
Object.registerClass("LockedWallBrown", cl_box);
#endinitclip
Symbol 32 MovieClip [LockedWallPurple] Frame 1
#initclip 62
Object.registerClass("LockedWallPurple", cl_box);
#endinitclip
Symbol 35 MovieClip [Armory] Frame 1
#initclip 63
Object.registerClass("Armory", cl_armory);
#endinitclip
stop();
Symbol 35 MovieClip [Armory] Frame 2
stop();
Symbol 37 MovieClip [BlueVet] Frame 1
#initclip 64
Object.registerClass("BlueVet", cl_bluevet);
#endinitclip
Symbol 39 MovieClip [Box3] Frame 1
#initclip 65
Object.registerClass("Box3", cl_box);
#endinitclip
Symbol 41 MovieClip [Bed] Frame 1
#initclip 66
Object.registerClass("Bed", cl_wall);
#endinitclip
Symbol 43 MovieClip [BlueFlee] Frame 1
#initclip 67
Object.registerClass("BlueFlee", cl_blueflee);
#endinitclip
Symbol 45 MovieClip [BlueRanged] Frame 1
#initclip 68
Object.registerClass("BlueRanged", cl_blueranged);
#endinitclip
Symbol 47 MovieClip [Bluebow] Frame 1
#initclip 69
Object.registerClass("Bluebow", cl_bluebow);
#endinitclip
Symbol 49 MovieClip [arrow] Frame 1
#initclip 70
Object.registerClass("arrow", cl_arrow);
#endinitclip
Symbol 52 MovieClip [Displacer4] Frame 1
#initclip 71
Object.registerClass("Displacer4", cl_displacer4);
#endinitclip
stop();
Symbol 52 MovieClip [Displacer4] Frame 2
stop();
Symbol 53 MovieClip [Displacer3] Frame 1
#initclip 72
Object.registerClass("Displacer3", cl_displacer3);
#endinitclip
stop();
Symbol 55 MovieClip [Trap5] Frame 1
#initclip 73
Object.registerClass("Trap5", cl_trap);
#endinitclip
Symbol 57 MovieClip [BlueExpert] Frame 1
#initclip 74
Object.registerClass("BlueExpert", cl_blueexpert);
#endinitclip
Symbol 60 MovieClip [Displacer] Frame 1
#initclip 75
Object.registerClass("Displacer", cl_displacer);
#endinitclip
stop();
Symbol 60 MovieClip [Displacer] Frame 2
stop();
Symbol 60 MovieClip [Displacer] Frame 3
stop();
Symbol 60 MovieClip [Displacer] Frame 4
stop();
Symbol 62 MovieClip [Fire2] Frame 1
#initclip 76
Object.registerClass("Fire2", cl_fire);
#endinitclip
Symbol 64 MovieClip [BlueParry] Frame 1
#initclip 77
Object.registerClass("BlueParry", cl_blueparry);
#endinitclip
Symbol 65 MovieClip [Displacer2] Frame 1
#initclip 78
Object.registerClass("Displacer2", cl_displacer2);
#endinitclip
stop();
Symbol 65 MovieClip [Displacer2] Frame 2
stop();
Symbol 65 MovieClip [Displacer2] Frame 3
stop();
Symbol 69 MovieClip [BlueDeath] Frame 1
#initclip 79
Object.registerClass("BlueDeath", cl_wall);
#endinitclip
Symbol 71 MovieClip [wall50] Frame 1
#initclip 80
Object.registerClass("wall50", cl_wall);
#endinitclip
Symbol 72 MovieClip [RopePoint] Frame 1
#initclip 81
Object.registerClass("RopePoint", cl_ropepoint);
#endinitclip
Symbol 73 MovieClip [BlueFast] Frame 1
#initclip 82
Object.registerClass("BlueFast", cl_bluefast);
#endinitclip
Symbol 75 MovieClip [LockedWallBlue] Frame 1
#initclip 83
Object.registerClass("LockedWallBlue", cl_box);
#endinitclip
Symbol 78 MovieClip [NestStone] Frame 1
#initclip 84
Object.registerClass("NestStone", cl_neststone);
#endinitclip
Symbol 80 MovieClip [Goo] Frame 1
#initclip 85
Object.registerClass("Goo", cl_goo);
#endinitclip
Symbol 82 MovieClip [Bug7] Frame 1
#initclip 86
Object.registerClass("Bug7", cl_bug7);
#endinitclip
Symbol 84 MovieClip [Trap4] Frame 1
#initclip 87
Object.registerClass("Trap4", cl_trap);
#endinitclip
Symbol 90 MovieClip [Acid] Frame 1
#initclip 88
Object.registerClass("Acid", cl_acid);
#endinitclip
Symbol 92 MovieClip [BugAcid] Frame 1
#initclip 89
Object.registerClass("BugAcid", cl_bugacid);
#endinitclip
Symbol 94 MovieClip [Understone] Frame 1
#initclip 90
Object.registerClass("Understone", cl_wall);
#endinitclip
Symbol 97 MovieClip [Stone] Frame 1
#initclip 91
Object.registerClass("Stone", cl_stone);
#endinitclip
Instance of Symbol 94 MovieClip [Understone] in Symbol 97 MovieClip [Stone] Frame 1
onClipEvent (load) {
this.stone = 1;
}
Symbol 99 MovieClip [Stuff3] Frame 1
#initclip 92
Object.registerClass("Stuff3", cl_wall);
#endinitclip
Symbol 101 MovieClip [BugLightning] Frame 1
#initclip 93
Object.registerClass("BugLightning", cl_buglightning);
#endinitclip
Symbol 103 MovieClip [Bug6] Frame 1
#initclip 94
Object.registerClass("Bug6", cl_bug6);
#endinitclip
Symbol 105 MovieClip [BlueSwordBig] Frame 1
#initclip 95
Object.registerClass("BlueSwordBig", cl_bluesword);
#endinitclip
Symbol 106 MovieClip [BlueGuardCapt] Frame 1
#initclip 96
Object.registerClass("BlueGuardCapt", cl_blueguardcapt);
#endinitclip
Symbol 108 MovieClip [StairsBoth] Frame 1
#initclip 97
Object.registerClass("StairsBoth", cl_stairsboth);
#endinitclip
Symbol 110 MovieClip [Spike] Frame 1
#initclip 98
Object.registerClass("Spike", cl_fire);
#endinitclip
Symbol 112 MovieClip [Stairs] Frame 1
#initclip 99
Object.registerClass("Stairs", cl_stairs);
#endinitclip
Symbol 114 MovieClip [Sand] Frame 1
#initclip 100
Object.registerClass("Sand", cl_sand);
#endinitclip
Symbol 116 MovieClip [wall300] Frame 1
#initclip 101
Object.registerClass("wall300", cl_wall);
#endinitclip
Symbol 118 MovieClip [Trap3] Frame 1
#initclip 102
Object.registerClass("Trap3", cl_trap);
#endinitclip
Symbol 120 MovieClip [wall120] Frame 1
#initclip 103
Object.registerClass("wall120", cl_wall);
#endinitclip
Symbol 122 MovieClip [Wall] Frame 1
#initclip 104
Object.registerClass("Wall", cl_wall);
#endinitclip
Symbol 123 MovieClip [ToggleWall] Frame 1
#initclip 105
Object.registerClass("ToggleWall", cl_togglewall);
#endinitclip
Symbol 125 MovieClip [TheButton] Frame 1
#initclip 106
Object.registerClass("TheButton", cl_button);
#endinitclip
Symbol 127 MovieClip [StairsDown] Frame 1
#initclip 107
Object.registerClass("StairsDown", cl_stairsdown);
#endinitclip
Symbol 130 MovieClip [Nest] Frame 1
#initclip 108
Object.registerClass("Nest", cl_nest);
#endinitclip
Symbol 132 MovieClip [Ice] Frame 1
#initclip 109
Object.registerClass("Ice", cl_ice);
#endinitclip
Symbol 134 MovieClip [LaserShot] Frame 1
#initclip 110
Object.registerClass("LaserShot", cl_lasershot);
#endinitclip
Symbol 136 MovieClip [LaserBody] Frame 1
#initclip 111
Object.registerClass("LaserBody", cl_wall);
#endinitclip
Symbol 137 MovieClip [Laser] Frame 1
#initclip 112
Object.registerClass("Laser", cl_laser);
#endinitclip
Symbol 139 MovieClip [wall100] Frame 1
#initclip 113
Object.registerClass("wall100", cl_wall);
#endinitclip
Symbol 141 MovieClip [Fire] Frame 1
#initclip 114
Object.registerClass("Fire", cl_fire);
#endinitclip
Symbol 149 MovieClip [Square] Frame 1
#initclip 115
Object.registerClass("Square", cl_square);
#endinitclip
Symbol 151 MovieClip [Blue] Frame 1
#initclip 116
Object.registerClass("Blue", cl_blue);
#endinitclip
Symbol 153 MovieClip [Bluesword] Frame 1
#initclip 117
Object.registerClass("Bluesword", cl_bluesword);
#endinitclip
Symbol 155 MovieClip [BoxTrapped] Frame 1
#initclip 118
Object.registerClass("BoxTrapped", cl_boxtrapped);
#endinitclip
Symbol 157 MovieClip [Box2] Frame 1
#initclip 119
Object.registerClass("Box2", cl_box);
#endinitclip
Symbol 159 MovieClip [Trap2] Frame 1
#initclip 120
Object.registerClass("Trap2", cl_trap);
#endinitclip
Symbol 161 MovieClip [Bug4] Frame 1
#initclip 121
Object.registerClass("Bug4", cl_bug4);
#endinitclip
Symbol 163 MovieClip [wall20] Frame 1
#initclip 122
Object.registerClass("wall20", cl_wall);
#endinitclip
Symbol 164 MovieClip [Bug3] Frame 1
#initclip 123
Object.registerClass("Bug3", cl_bug3);
#endinitclip
Symbol 166 MovieClip [Bug2] Frame 1
#initclip 124
Object.registerClass("Bug2", cl_bug2);
#endinitclip
Symbol 168 MovieClip [wall200] Frame 1
#initclip 125
Object.registerClass("wall200", cl_wall);
#endinitclip
Symbol 170 MovieClip [Trap] Frame 1
#initclip 126
Object.registerClass("Trap", cl_trap);
#endinitclip
Symbol 172 MovieClip [wall60] Frame 1
#initclip 127
Object.registerClass("wall60", cl_wall);
#endinitclip
Symbol 174 MovieClip [Bug] Frame 1
#initclip 128
Object.registerClass("Bug", cl_bug);
#endinitclip
Symbol 175 Button [Saver]
on (release) {
sharedsaver = SharedObject.getLocal("savefile");
sharedsaver.data.saved = 1;
sharedsaver.data.xpcost = _global.xpcost;
sharedsaver.data.parry = _global.parry;
sharedsaver.data.moveleftkey = _global.moveleftkey;
sharedsaver.data.moveupkey = _global.moveupkey;
sharedsaver.data.movedownkey = _global.movedownkey;
sharedsaver.data.moverightkey = _global.moverightkey;
sharedsaver.data.mapkey = _global.mapkey;
sharedsaver.data.losscount = _global.losscount;
sharedsaver.data.rotateleftkey = _global.rotateleftkey;
sharedsaver.data.rotaterightkey = _global.rotaterightkey;
sharedsaver.data.endkey = _global.endkey;
sharedsaver.data.upkey = _global.upkey;
sharedsaver.data.downkey = _global.downkey;
sharedsaver.data.speedset = _global.speedset;
sharedsaver.data.musicon = _global.musicon;
sharedsaver.data.orangekeyfound = _global.orangekeyfound;
sharedsaver.data.brownkeyfound = _global.brownkeyfound;
sharedsaver.data.mether = _global.mether;
sharedsaver.data.purplekeyfound = _global.purplekeyfound;
sharedsaver.data.doublesword = _global.doublesword;
sharedsaver.data.framenow = _currentframe;
sharedsaver.data.mapfound = _level0.mapfound;
sharedsaver.data.statup = _global.statup;
sharedsaver.data.herospeed = _global.herospeed;
sharedsaver.data.swordspeed = _global.swordspeed;
sharedsaver.data.level = _global.level;
sharedsaver.data.xp = _global.xp;
sharedsaver.data.lookat = _level0.lookat;
sharedsaver.data.swordrote = _global.swordrote;
sharedsaver.data.himxpos = _global.himxpos;
sharedsaver.data.himypos = _global.himypos;
sharedsaver.data.lastframe = _global.lastframe;
sharedsaver.data.dirtoframe = _global.dirtoframe;
sharedsaver.data.inhibitmons_ar = _level0.inhibitmons_ar.slice();
sharedsaver.data.roomcondition = _global.roomcondition.slice();
sharedsaver.data.realfirstloadedframe = _global.realfirstloadedframe.slice();
sharedsaver.data.chckbxs = new Array();
var i = 0;
while (i < 1000) {
sharedsaver.data.chckbxs[i] = new Array();
i++;
}
var i = 0;
while (i < 150) {
var a = 0;
while (a < 150) {
sharedsaver.data.chckbxs[i][a] = _global.chckbxs[i][a];
a++;
}
i++;
}
var i = 0;
while (i < 1000) {
sharedsaver.data.shapenums.push(_global.shapenums[i].slice());
sharedsaver.data.wallnums.push(_global.wallnums[i].slice());
sharedsaver.data.mapping.push(_global.mapping[i].slice());
sharedsaver.data.blueones.push(_global.blueones[i].slice());
sharedsaver.data.blueswords.push(_global.blueswords[i].slice());
sharedsaver.data.arrows.push(_global.arrows[i].slice());
i++;
}
sharedsaver.data.firstloaded = _level0.firstloaded.slice();
success = sharedsaver.flush();
if (!success) {
_level0.savemessage = 2;
}
}
Symbol 177 MovieClip [LockedWall] Frame 1
#initclip 129
Object.registerClass("LockedWall", cl_box);
#endinitclip
Symbol 188 Button
on (release) {
sharedsaver = SharedObject.getLocal("savefile");
if (sharedsaver.data.saved != undefined) {
_global.xpcost = sharedsaver.data.xpcost;
_global.parry = sharedsaver.data.parry;
_global.moveleftkey = sharedsaver.data.moveleftkey;
_global.moveupkey = sharedsaver.data.moveupkey;
_global.movedownkey = sharedsaver.data.movedownkey;
_global.moverightkey = sharedsaver.data.moverightkey;
_global.mapkey = sharedsaver.data.mapkey;
_global.rotateleftkey = sharedsaver.data.rotateleftkey;
_global.rotaterightkey = sharedsaver.data.rotaterightkey;
_global.endkey = sharedsaver.data.endkey;
_global.upkey = sharedsaver.data.upkey;
_global.downkey = sharedsaver.data.downkey;
_global.speedset = sharedsaver.data.speedset;
_global.losscount = sharedsaver.data.losscount;
_global.musicon = sharedsaver.data.musicon;
_level0.mapfound = sharedsaver.data.mapfound;
_global.orangekeyfound = sharedsaver.data.orangekeyfound;
_global.brownkeyfound = sharedsaver.data.brownkeyfound;
_global.purplekeyfound = sharedsaver.data.purplekeyfound;
_global.mether = sharedsaver.data.mether;
_global.doublesword = sharedsaver.data.doublesword;
_global.statup = sharedsaver.data.statup;
_global.herospeed = sharedsaver.data.herospeed;
_global.swordspeed = sharedsaver.data.swordspeed;
_global.level = sharedsaver.data.level;
_global.xp = sharedsaver.data.xp;
_level0.lookat = sharedsaver.data.lookat;
_global.swordrote = sharedsaver.data.swordrote;
_global.himxpos = sharedsaver.data.himxpos;
_global.himypos = sharedsaver.data.himypos;
_global.lastframe = sharedsaver.data.lastframe;
_global.dirtoframe = sharedsaver.data.dirtoframe;
_level0.inhibitmons_ar = sharedsaver.data.inhibitmons_ar.slice();
_global.roomcondition = sharedsaver.data.roomcondition.slice();
_global.realfirstloadedframe = sharedsaver.data.realfirstloadedframe.slice();
_global.chckbxs = new Array();
_global.shapenums = new Array();
_global.wallnums = new Array();
_global.blueones = new Array();
_global.blueswords = new Array();
var i = 0;
while (i < 1000) {
_global.chckbxs[i] = new Array();
_global.shapenums[i] = new Array();
_global.wallnums[i] = new Array();
_global.blueones[i] = new Array();
_global.blueswords[i] = new Array();
i++;
}
var i = 0;
while (i < 150) {
var a = 0;
while (a < 150) {
_global.chckbxs[i][a] = sharedsaver.data.chckbxs[i][a];
a++;
}
i++;
}
var i = 0;
while (i < 1000) {
_global.mapping.push(sharedsaver.data.mapping[i].slice());
_global.arrows.push(sharedsaver.data.arrows[i].slice());
i++;
}
_level0.firstloaded = sharedsaver.data.firstloaded.slice();
_global.notlost = 1;
_global.frametoreturnto = sharedsaver.data.framenow;
_level0.startfrombeg = 1;
_global.movements = 5;
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
_level0.textbx1.text = "Experience: " + _global.xp;
_level0.textbx1form = new TextFormat();
_level0.textbx1form.bold = true;
_level0.textbx1form.font = "Arial";
_level0.textbx1.setTextFormat(textbx1form);
_level0.gotoAndPlay(2);
}
}
Symbol 190 Button
on (release) {
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
_global.returningframe = _level0._currentframe;
_level0.gotoAndPlay(24);
}
Symbol 192 Button
on (release) {
_root.gotoAndPlay(3);
}
Symbol 193 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_global.loadedgame = 1;
gotoAndStop ("loaded");
}
Symbol 193 MovieClip Frame 2
_global.loadedgame = 1;
gotoAndPlay (1);
Symbol 339 MovieClip [__Packages.cl_bluesword] Frame 0
class cl_bluesword extends MovieClip
{
var _visible, order, _x, _y, _height, _rotation, hitTest;
function cl_bluesword () {
super();
}
function onLoad() {
_visible = false;
_global.blueswords[_level0._currentframe][_level0.blueswordnum] = this;
order = _level0.blueswordnum;
_level0.blueswordnum++;
}
function onEnterFrame() {
if ((_level0.armored == 1) && (armored == 0)) {
speed = 4;
_global.blueones[_level0._currentframe][order].parry = 3;
armored = 1;
}
if ((_level0.armored == 0) && (armored == 1)) {
speed = 1;
_global.blueones[_level0._currentframe][order].parry = 1;
armored = 0;
}
if (_global.blueones[_level0._currentframe][order]._visible) {
_visible = true;
_x = _global.blueones[_level0._currentframe][order]._x;
_y = _global.blueones[_level0._currentframe][order]._y;
if (_global.blueones[_level0._currentframe][order].blueguardcaptvar == 1) {
_global.blueones[_level0._currentframe][order].blueguardcaptvar = 0;
_height = 60;
speed = 2;
}
if (_global.blueones[_level0._currentframe][order].swing > 1) {
speed = _global.blueones[_level0._currentframe][order].swing;
}
var _local4 = _global.blueones[_level0._currentframe][order]._y - _level0.Him._y;
var _local5 = _level0.Him._x - _global.blueones[_level0._currentframe][order]._x;
var _local3 = 0;
if (_local4 >= 0) {
_local3 = 180 + (Math.atan(_local5 / _local4) / (Math.PI/180));
}
if (_local4 < 0) {
_local3 = Math.atan(_local5 / _local4) / (Math.PI/180);
}
if (_local3 > 180) {
_local3 = -1 * (360 - _local3);
}
if (_rotation == 0) {
if (_local3 > 0) {
_rotation++;
}
if (_local3 < 0) {
_rotation--;
}
}
if (_local3 == 0) {
if (_rotation > 0) {
_rotation--;
}
if (_rotation < 0) {
_rotation++;
}
}
if (((_local3 > 0) && (_rotation > 0)) || ((_local3 < 0) && (_rotation < 0))) {
if (_local3 > _rotation) {
_rotation = _rotation + ((_global.movements / 2) * speed);
dir = 1;
}
if (_local3 < _rotation) {
_rotation = _rotation - ((_global.movements / 2) * speed);
dir = 2;
}
}
if ((_local3 > 0) && (_rotation < 0)) {
if ((_rotation + 180) >= _local3) {
_rotation = _rotation + ((_global.movements / 2) * speed);
dir = 1;
}
if ((_rotation + 180) < _local3) {
_rotation = _rotation - ((_global.movements / 2) * speed);
dir = 2;
}
}
if ((_local3 < 0) && (_rotation > 0)) {
if (((180 - _rotation) * -1) > _local3) {
_rotation = _rotation + ((_global.movements / 2) * speed);
dir = 1;
} else if (((180 - _rotation) * -1) < _local3) {
_rotation = _rotation - ((_global.movements / 2) * speed);
dir = 2;
}
}
if (_global.blueones[_level0._currentframe][order].king) {
_rotation = _local3;
if (!hitTest(_level0.Him)) {
_rotation = _rotation + 10;
if (!hitTest(_level0.Him)) {
_rotation = _rotation - 20;
if (!hitTest(_level0.Him)) {
_rotation = _local3;
}
}
}
if (hitTest(_level0.Him)) {
}
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
if (_global.blueones[_level0._currentframe][order].king) {
_level0.Him._visible = false;
}
}
if ((_global.parry > 0) && (hitTest(_level0.Sword) || (_level0.Sword.hitTest(this)))) {
}
} else {
_visible = false;
}
}
var speed = 1;
var dir = 0;
var armored = 0;
}
Symbol 340 MovieClip [__Packages.cl_bug5] Frame 0
class cl_bug5 extends MovieClip
{
var _visible, myframe, unloadMovie, hitTest, hitrad, _x, _y;
function cl_bug5 () {
super();
}
function onLoad() {
_global.kidnums++;
}
function hittests4(a) {
if (_level0.Sword.hitTest(a) || (a.hitTest(_level0.Sword))) {
a._visible = false;
_global.kidnums--;
}
if (a.hitTest(_level0.Him) || (_level0.Him.hitTest(a))) {
_level0.Him._visible = false;
_visible = false;
}
}
function onEnterFrame() {
if (myframe != _level0._currentframe) {
unloadMovie();
_visible = false;
}
if ((_global.trapon == 0) && (_visible == true)) {
hittests4(this);
_level0.Him._width = _level0.Him._width + 120;
_level0.Him._height = _level0.Him._height + 120;
if (hitTest(_level0.Him)) {
hitrad = 1;
} else {
hitrad = 0;
}
_level0.Him._width = _level0.Him._width - 120;
_level0.Him._height = _level0.Him._height - 120;
if (hitrad == 1) {
if (clockwise == false) {
if (((_x - _global.movements) >= _level0.Him._x) && ((_y - _global.movements) <= _level0.Him._y)) {
if (!((_level0.Sword._rotation > -270) && (_level0.Sword._rotation <= -90))) {
_y = _y - _global.movements;
if (_level0.testmove(this, 1)) {
clockwise = true;
}
} else {
hitrad = 0;
}
}
if (((_x + _global.movements) > _level0.Him._x) && ((_y - _global.movements) >= _level0.Him._y)) {
if (!((_level0.Sword._rotation <= 0) && (_level0.Sword._rotation > -90))) {
_x = _x + _global.movements;
if (_level0.testmove(this, 2) == true) {
clockwise = true;
}
} else {
hitrad = 0;
}
}
if (((_x - _global.movements) < _level0.Him._x) && ((_y + _global.movements) < _level0.Him._y)) {
if (!((_level0.Sword._rotation > 90) && (_level0.Sword._rotation <= 180))) {
_x = _x - _global.movements;
if (_level0.testmove(this, 4) == true) {
clockwise = true;
}
} else {
hitrad = 0;
}
}
if (((_x + _global.movements) <= _level0.Him._x) && ((_y + _global.movements) >= _level0.Him._y)) {
if (!((_level0.Sword._rotation > 0) && (_level0.Sword._rotation <= 90))) {
_y = _y + _global.movements;
if (_level0.testmove(this, 3) == true) {
clockwise = true;
}
} else {
hitrad = 0;
}
}
} else if (clockwise == true) {
if (((_x + _global.movements) >= _level0.Him._x) && ((_y + _global.movements) <= _level0.Him._y)) {
if (!((_level0.Sword._rotation >= -270) && (_level0.Sword._rotation < -90))) {
_x = _x + _global.movements;
if (_level0.testmove(this, 2)) {
clockwise = false;
}
} else {
hitrad = 0;
}
}
if (((_x - _global.movements) > _level0.Him._x) && ((_y + _global.movements) >= _level0.Him._y)) {
if (!((_level0.Sword._rotation < 0) && (_level0.Sword._rotation >= -90))) {
_y = _y + _global.movements;
if (_level0.testmove(this, 3) == true) {
clockwise = false;
}
} else {
hitrad = 0;
}
}
if (((_x + _global.movements) < _level0.Him._x) && ((_y - _global.movements) < _level0.Him._y)) {
if (!((_level0.Sword._rotation >= 90) && (_level0.Sword._rotation < 180))) {
_y = _y - _global.movements;
if (_level0.testmove(this, 1) == true) {
clockwise = false;
}
} else {
hitrad = 0;
}
}
if (((_x - _global.movements) <= _level0.Him._x) && ((_y - _global.movements) > _level0.Him._y)) {
if (!((_level0.Sword._rotation >= 0) && (_level0.Sword._rotation < 90))) {
_x = _x - _global.movements;
if (_level0.testmove(this, 4) == true) {
clockwise = false;
}
} else {
hitrad = 0;
}
}
}
}
if (hitrad == 0) {
if (_level0.Him._x > _x) {
_x = _x + _global.movements;
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - _global.movements;
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + _global.movements;
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - _global.movements;
_level0.testmove(this, 1);
}
}
}
}
var clockwise = true;
}
Symbol 341 MovieClip [__Packages.cl_food] Frame 0
class cl_food extends MovieClip
{
function cl_food () {
super();
}
function onEnterFrame() {
_level0.Him._height = _level0.Him._height + (_global.movements / 30);
_level0.Him._width = _level0.Him._width + (_global.movements / 30);
}
}
Symbol 342 MovieClip [__Packages.cl_blueking] Frame 0
class cl_blueking extends MovieClip
{
var _visible, bord, unloadMovie, reallygreat, hitTest, _x, _y;
function cl_blueking () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.wongame == 1) {
_level0.gotoAndPlay(61);
}
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 50;
if (reallygreat == 1) {
_level0.monxp = _level0.monxp + 50;
}
}
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if (_level0.Him._x > _x) {
_x = _x + (_global.movements * rush);
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - (_global.movements * rush);
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + (_global.movements * rush);
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - (_global.movements * rush);
_level0.testmove(this, 1);
}
}
}
var firsttoframe = 0;
var parry = 0;
var swing = 2;
var rush = 1;
var king = 1;
}
Symbol 343 MovieClip [__Packages.cl_randomizer] Frame 0
class cl_randomizer extends MovieClip
{
function cl_randomizer () {
super();
}
function onEnterFrame() {
if (Math.random() < 0.25) {
_level0.Him._y = _level0.Him._y - ((_global.movements * (_global.herospeed / 10)) * 2.4);
_global.up = 1;
_level0.testmove(_level0.Him, 1);
} else if (Math.random() < 0.5) {
_level0.Him._x = _level0.Him._x + ((_global.movements * (_global.herospeed / 10)) * 2.4);
_global.right = 1;
_level0.testmove(_level0.Him, 2);
} else if (Math.random() < 0.75) {
_level0.Him._y = _level0.Him._y + ((_global.movements * (_global.herospeed / 10)) * 2.4);
_global.down = 1;
_level0.testmove(_level0.Him, 3);
} else {
_level0.Him._x = _level0.Him._x - ((_global.movements * (_global.herospeed / 10)) * 2.4);
_global.left = 1;
_level0.testmove(_level0.Him, 4);
}
}
}
Symbol 344 MovieClip [__Packages.cl_bluewizard] Frame 0
class cl_bluewizard extends MovieClip
{
var _visible, bord, unloadMovie, hitTest;
function cl_bluewizard () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 1200;
}
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
deaths--;
if (deaths == 2) {
_level0.Him._x = 370;
_global.trapon = 0;
}
if (deaths == 1) {
_level0.Him._x = 370;
_global.keyhold = _global.moveupkey;
_global.moveupkey = _global.movedownkey;
_global.movedownkey = _global.keyhold;
_global.keyhold = _global.moverightkey;
_global.moverightkey = _global.moveleftkey;
_global.moveleftkey = _global.keyhold;
}
if (deaths == 0) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
}
}
var firsttoframe = 0;
var deaths = 3;
}
Symbol 345 MovieClip [__Packages.cl_arrow] Frame 0
class cl_arrow extends MovieClip
{
var goal, _visible, order, flame, hitTest, _x, bounds, _y, _rotation, getBounds;
function cl_arrow () {
super();
}
function onLoad() {
goal = new Object();
_visible = false;
_global.arrows[_level0._currentframe][_level0.arrownum] = this;
order = _level0.arrownum;
_level0.arrownum++;
if (flame == 1) {
speedench = ((order * 0.3) + 1) * 1.25;
order = 0;
}
}
function onEnterFrame() {
if ((_global.blueswords[_level0._currentframe][order]._visible && (_global.blueswords[_level0._currentframe][order].bow == 1)) || ((flame == 1) && (_global.blueswords[_level0._currentframe][0]._visible))) {
_visible = true;
if (hitTest(_level0.Him)) {
_level0.Him._visible = false;
}
if (shot == 1) {
if (_global.blueswords[_level0._currentframe][order]._x > goal.x) {
if (_global.blueswords[_level0._currentframe][order]._y > goal.y) {
_x = _x - (((bounds.xMax - bounds.xMin) * (_global.movements / 10)) * speedench);
_y = _y - (((bounds.yMax - bounds.yMin) * (_global.movements / 10)) * speedench);
} else {
_x = _x - (((bounds.xMax - bounds.xMin) * (_global.movements / 10)) * speedench);
_y = _y + (((bounds.yMax - bounds.yMin) * (_global.movements / 10)) * speedench);
}
} else if (_global.blueswords[_level0._currentframe][order]._y > goal.y) {
_x = _x + (((bounds.xMax - bounds.xMin) * (_global.movements / 10)) * speedench);
_y = _y - (((bounds.yMax - bounds.yMin) * (_global.movements / 10)) * speedench);
} else {
_x = _x + (((bounds.xMax - bounds.xMin) * (_global.movements / 10)) * speedench);
_y = _y + (((bounds.yMax - bounds.yMin) * (_global.movements / 10)) * speedench);
}
if ((((_x > 400) || (_y > 400)) || (_x < 0)) || (_y < 0)) {
shot = 0;
}
}
if (shot == 0) {
if (flame == 1) {
_x = _global.blueswords[_level0._currentframe][0]._x;
_y = _global.blueswords[_level0._currentframe][0]._y;
_rotation = _global.blueswords[_level0._currentframe][0]._rotation;
} else {
_x = _global.blueswords[_level0._currentframe][order]._x;
_y = _global.blueswords[_level0._currentframe][order]._y;
_rotation = _global.blueswords[_level0._currentframe][order]._rotation;
}
shot = 1;
goal.x = _level0.Him._x;
goal.y = _level0.Him._y;
bounds = new Object();
bounds = getBounds(_root);
}
}
}
var time = 0;
var shot = 0;
var speedench = 1;
}
Symbol 346 MovieClip [__Packages.cl_bluebow] Frame 0
class cl_bluebow extends MovieClip
{
var _visible, order, wand, _x, _y, _height, _rotation, hitTest;
function cl_bluebow () {
super();
}
function onLoad() {
_visible = false;
_global.blueswords[_level0._currentframe][_level0.blueswordnum] = this;
order = _level0.blueswordnum;
_level0.blueswordnum++;
if (wand == 1) {
speed = 2.5;
}
}
function onEnterFrame() {
if (_global.blueones[_level0._currentframe][order]) {
_visible = true;
_x = _global.blueones[_level0._currentframe][order]._x;
_y = _global.blueones[_level0._currentframe][order]._y;
if (_global.blueones[_level0._currentframe][order].blueguardcaptvar == 1) {
_global.blueones[_level0._currentframe][order].blueguardcaptvar = 0;
_height = 60;
speed = 2;
}
var _local4 = _global.blueones[_level0._currentframe][order]._y - _level0.Him._y;
var _local5 = _level0.Him._x - _global.blueones[_level0._currentframe][order]._x;
var _local3 = 0;
if (_local4 >= 0) {
_local3 = 180 + (Math.atan(_local5 / _local4) / (Math.PI/180));
}
if (_local4 < 0) {
_local3 = Math.atan(_local5 / _local4) / (Math.PI/180);
}
if (_local3 > 180) {
_local3 = -1 * (360 - _local3);
}
if (_rotation == 0) {
if (_local3 > 0) {
_rotation++;
}
if (_local3 < 0) {
_rotation--;
}
}
if (_local3 == 0) {
if (_rotation > 0) {
_rotation--;
}
if (_rotation < 0) {
_rotation++;
}
}
if (((_local3 > 0) && (_rotation > 0)) || ((_local3 < 0) && (_rotation < 0))) {
if (_local3 > _rotation) {
_rotation = _rotation + ((_global.movements / 2) * speed);
dir = 1;
}
if (_local3 < _rotation) {
_rotation = _rotation - ((_global.movements / 2) * speed);
dir = 2;
}
}
if ((_local3 > 0) && (_rotation < 0)) {
if ((_rotation + 180) >= _local3) {
_rotation = _rotation + ((_global.movements / 2) * speed);
dir = 1;
}
if ((_rotation + 180) < _local3) {
_rotation = _rotation - ((_global.movements / 2) * speed);
dir = 2;
}
}
if ((_local3 < 0) && (_rotation > 0)) {
if (((180 - _rotation) * -1) > _local3) {
_rotation = _rotation + ((_global.movements / 2) * speed);
dir = 1;
} else if (((180 - _rotation) * -1) < _local3) {
_rotation = _rotation - ((_global.movements / 2) * speed);
dir = 2;
}
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
}
if ((_global.parry > 0) && (hitTest(_level0.Sword) || (_level0.Sword.hitTest(this)))) {
}
} else {
_visible = false;
}
}
var speed = 1;
var dir = 0;
var bow = 1;
}
Symbol 347 MovieClip [__Packages.cl_box] Frame 0
class cl_box extends MovieClip
{
var exists, unloadMovie, _name, hitTest, _visible, _x, _y;
function cl_box () {
super();
}
function onLoad() {
exists = 0;
_global.shapenums[_root._currentframe][_level0.shapenum] = this;
shapen = _level0.shapenum;
_level0.shapenum++;
if (_global.chckbxs[_root._currentframe][shapen] == 1) {
unloadMovie();
}
}
function onEnterFrame() {
if ((((((_name != "orange1") && (_name != "orange2")) || (_global.orangekeyfound == 1)) && ((_name != "Yellow") || (_global.orangekeyfound > 1))) && (((_name != "Brown") && (_name != "Brown2")) || (_global.brownkeyfound == 1))) && ((_name != "Purple") || (_global.purplekeyfound == 1))) {
if ((_level0.orange1.exists == 2) || (_level0.orange2.exists == 2)) {
_level0.orange2.exists = 2;
_level0.orange1.exists = 2;
_level0.orange2._visible = false;
_level0.orange2._x = -50;
_level0.orange2._y = -50;
_level0.orange1._visible = false;
_level0.orange1._x = -50;
_level0.orange1._y = -50;
}
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
if ((_name == "Brown") || (_name == "Brown2")) {
_level0.Brown2.exists = 2;
_level0.Brown.exists = 2;
_level0.Brown2._visible = false;
_level0.Brown2._x = -50;
_level0.Brown2._y = -50;
_level0.Brown._visible = false;
_level0.Brown._x = -50;
_level0.Brown._y = -50;
}
if ((_root._currentframe == 94) && (shapen == 4)) {
_level0.keyboxfound = 1;
}
if ((_global.iexist == 0) || (_global.firstcheckedmon == 0)) {
_global.xp = _global.xp + 5;
_global.shapenums[_root._currentframe][shapen] = this;
_global.chckbxs[_root._currentframe][shapen] = 1;
}
_visible = false;
_x = -50;
_y = -50;
exists = 2;
}
if ((((_global.iexist == 0) || (_global.firstcheckedmon == 0)) && (exists == 2)) && (_global.chckbxs[_root._currentframe][shapen] != 1)) {
_global.chckbxs[_root._currentframe][shapen] = 1;
_global.xp = _global.xp + 5;
}
}
}
var shapen = 0;
}
Symbol 348 MovieClip [__Packages.cl_armory] Frame 0
class cl_armory extends MovieClip
{
var hitTest, gotoAndStop;
function cl_armory () {
super();
}
function onEnterFrame() {
_level0.armored = 1;
if (hitTest(_level0.Sword)) {
(gotoAndStop(2));// not popped
_level0.armored = 0;
}
}
}
Symbol 349 MovieClip [__Packages.cl_bluevet] Frame 0
class cl_bluevet extends MovieClip
{
var reallygreat, _visible, bord, unloadMovie, hitTest, _x, _y;
function cl_bluevet () {
super();
}
function onLoad() {
if (reallygreat == 1) {
parry = 5;
swing = 5;
rush = 1.2;
}
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 50;
if (reallygreat == 1) {
_level0.monxp = _level0.monxp + 50;
}
}
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if (_level0.Him._x > _x) {
_x = _x + (_global.movements * rush);
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - (_global.movements * rush);
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + (_global.movements * rush);
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - (_global.movements * rush);
_level0.testmove(this, 1);
}
}
}
var firsttoframe = 0;
var parry = 3;
var swing = 2;
var rush = 1;
}
Symbol 350 MovieClip [__Packages.cl_wall] Frame 0
class cl_wall extends MovieClip
{
function cl_wall () {
super();
}
function onLoad() {
_global.wallnums[_root._currentframe][_level0.wallnum] = this;
_level0.wallnum++;
}
function onEnterFrame() {
}
}
Symbol 351 MovieClip [__Packages.cl_blueflee] Frame 0
class cl_blueflee extends MovieClip
{
var _visible, bord, unloadMovie, hitTest, _x, _y;
function cl_blueflee () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 10;
}
if (_global.trapon == 0) {
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if ((_level0.Him._x > _x) && (_x > 10)) {
_x = _x - (_global.movements * 0.7);
_level0.testmove(this, 4);
}
if ((_level0.Him._x < _x) && (_x < 390)) {
_x = _x + (_global.movements * 0.7);
_level0.testmove(this, 2);
}
if ((_level0.Him._y > _y) && (_y > 10)) {
_y = _y - (_global.movements * 0.7);
_level0.testmove(this, 1);
}
if ((_level0.Him._y < _y) && (_y < 390)) {
_y = _y + (_global.movements * 0.7);
_level0.testmove(this, 3);
}
}
}
}
var firsttoframe = 0;
}
Symbol 352 MovieClip [__Packages.cl_blueranged] Frame 0
class cl_blueranged extends MovieClip
{
var _visible, bord, unloadMovie, hitTest;
function cl_blueranged () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 75;
}
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
}
}
var firsttoframe = 0;
}
Symbol 353 MovieClip [__Packages.cl_displacer4] Frame 0
class cl_displacer4 extends MovieClip
{
function cl_displacer4 () {
super();
}
function onEnterFrame() {
_level0.Him._y = _level0.Him._y + ((_global.movements * (_global.herospeed / 10)) * 0.8);
_global.down = 1;
_level0.testmove(_level0.Him, 3);
if ((_global.iexist == 0) && (xpgiven == 0)) {
xpgiven = 1;
_level0.monxp = _level0.monxp + 25;
}
}
var xpgiven = 0;
}
Symbol 354 MovieClip [__Packages.cl_displacer3] Frame 0
class cl_displacer3 extends MovieClip
{
function cl_displacer3 () {
super();
}
function onEnterFrame() {
_level0.Him._x = _level0.Him._x - ((_global.movements * (_global.herospeed / 10)) * 0.8);
_global.left = 1;
_level0.testmove(_level0.Him, 4);
if ((_global.iexist == 0) && (xpgiven == 0)) {
xpgiven = 1;
_level0.monxp = _level0.monxp + 25;
}
}
var xpgiven = 0;
}
Symbol 355 MovieClip [__Packages.cl_trap] Frame 0
class cl_trap extends MovieClip
{
function cl_trap () {
super();
}
function onLoad() {
_global.trapon = 1;
}
function onEnterFrame() {
if (_level0.Him.hitTest(this)) {
_global.trapon = 0;
}
}
}
Symbol 356 MovieClip [__Packages.cl_blueexpert] Frame 0
class cl_blueexpert extends MovieClip
{
var _visible, bord, unloadMovie, hitTest, _x, _y;
function cl_blueexpert () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 35;
}
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if (_level0.Him._x > _x) {
_x = _x + (_global.movements * 0.85);
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - (_global.movements * 0.85);
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + (_global.movements * 0.85);
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - (_global.movements * 0.85);
_level0.testmove(this, 1);
}
}
}
var firsttoframe = 0;
var parry = 2;
}
Symbol 357 MovieClip [__Packages.cl_displacer] Frame 0
class cl_displacer extends MovieClip
{
function cl_displacer () {
super();
}
function onEnterFrame() {
_level0.Him._y = _level0.Him._y - ((_global.movements * (_global.herospeed / 10)) * 0.8);
_global.up = 1;
_level0.testmove(_level0.Him, 1);
if ((_global.iexist == 0) && (xpgiven == 0)) {
xpgiven = 1;
_level0.monxp = _level0.monxp + 25;
}
}
var xpgiven = 0;
}
Symbol 358 MovieClip [__Packages.cl_fire] Frame 0
class cl_fire extends MovieClip
{
var hitTest;
function cl_fire () {
super();
}
function onEnterFrame() {
if ((hitTest(_level0.Him) || (_level0.Him.hitTest(this))) && (_level0.fireprotect == 0)) {
_level0.Him._visible = false;
}
_level0.fireprotect = 0;
if ((_global.iexist == 0) && (xpgiven == 0)) {
xpgiven = 1;
_level0.monxp = _level0.monxp + 2;
}
}
var xpgiven = 0;
}
Symbol 359 MovieClip [__Packages.cl_blueparry] Frame 0
class cl_blueparry extends MovieClip
{
var _visible, bord, unloadMovie, hitTest, _x, _y;
function cl_blueparry () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 20;
}
if (_global.trapon == 0) {
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if (_level0.Him._x > _x) {
_x = _x + (_global.movements * 0.6);
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - (_global.movements * 0.6);
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + (_global.movements * 0.6);
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - (_global.movements * 0.6);
_level0.testmove(this, 1);
}
}
}
}
var firsttoframe = 0;
var parry = 2;
}
Symbol 360 MovieClip [__Packages.cl_displacer2] Frame 0
class cl_displacer2 extends MovieClip
{
function cl_displacer2 () {
super();
}
function onEnterFrame() {
_level0.Him._x = _level0.Him._x + ((_global.movements * (_global.herospeed / 10)) * 0.8);
_global.right = 1;
_level0.testmove(_level0.Him, 2);
if ((_global.iexist == 0) && (xpgiven == 0)) {
xpgiven = 1;
_level0.monxp = _level0.monxp + 25;
}
}
var xpgiven = 0;
}
Symbol 361 MovieClip [__Packages.cl_ropepoint] Frame 0
class cl_ropepoint extends MovieClip
{
var p, _x, _y, _parent;
function cl_ropepoint () {
super();
}
function onEnterFrame() {
p = new Object();
p.x = _x;
p.y = _y;
_parent.localToGlobal(p);
if (_level0.Him.hitTest(p.x, p.y, true)) {
_level0.fireprotect = 1;
}
}
}
Symbol 362 MovieClip [__Packages.cl_bluefast] Frame 0
class cl_bluefast extends MovieClip
{
var _visible, bord, unloadMovie, hitTest, _x, _y;
function cl_bluefast () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 20;
}
if (_global.trapon == 0) {
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if ((_level0.Him._x > _x) && (_x < 396)) {
_x = _x + (_global.movements * 0.8);
_level0.testmove(this, 2);
}
if ((_level0.Him._x < _x) && (_x > 4)) {
_x = _x - (_global.movements * 0.8);
_level0.testmove(this, 4);
}
if ((_level0.Him._y > _y) && (_y < 396)) {
_y = _y + (_global.movements * 0.8);
_level0.testmove(this, 3);
}
if ((_level0.Him._y < _y) && (_y > 4)) {
_y = _y - (_global.movements * 0.8);
_level0.testmove(this, 1);
}
}
}
}
var firsttoframe = 0;
}
Symbol 363 MovieClip [__Packages.cl_neststone] Frame 0
class cl_neststone extends MovieClip
{
var nst, gotoAndStop, _x, _y, hitTest;
function cl_neststone () {
super();
}
function onLoad() {
nst = 0;
_level0.nest++;
if (_global.inhibmons == 1) {
(gotoAndStop(2));// not popped
} else {
(gotoAndStop(1));// not popped
}
}
function onEnterFrame() {
if ((_global.iexist == 0) && (xpgiven == 0)) {
xpgiven = 1;
_level0.monxp = _level0.monxp + 50;
}
if ((nst != 1) && (nst != 2)) {
_level0.nestx = _x;
_level0.nesty = _y;
}
var _local4 = _level0.wallnum;
while (_local4 > -1) {
if ((_global.wallnums[_root._currentframe][_local4].stone == 1) && (nst != 2)) {
if (hitTest(_global.wallnums[_root._currentframe][_local4])) {
_global.wallnums[_root._currentframe][_local4].unloadMovie();
_global.wallnums[_root._currentframe][_local4]._parent.unloadMovie();
nst = 1;
(gotoAndStop(2));// not popped
}
}
_local4--;
}
if ((_global.inhibmons == 1) && (nst != 2)) {
nst = 1;
(gotoAndStop(2));// not popped
}
if (nst == 1) {
nst = 2;
_level0.nest--;
}
}
var xpgiven = 0;
}
Symbol 364 MovieClip [__Packages.cl_goo] Frame 0
class cl_goo extends MovieClip
{
var unloadMovie;
function cl_goo () {
super();
}
function onEnterFrame() {
if (_level0.Him.hitTest(this)) {
if (goo == 0) {
_level0.gogoo = 1;
goo = 100;
}
}
if (goo > 0) {
goo--;
if (goo == 0) {
unloadMovie();
_level0.gogoo = 0;
}
}
}
var goo = 0;
}
Symbol 365 MovieClip [__Packages.cl_bug7] Frame 0
class cl_bug7 extends MovieClip
{
var _visible, _x, _y, unloadMovie, rotdir, radius, rush, ang, oldy, oldx, hitTest, trang, trot;
function cl_bug7 () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function moveme() {
if (_level0.Him._x > _x) {
_x = _x + _global.movements;
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - _global.movements;
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + _global.movements;
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - _global.movements;
_level0.testmove(this, 1);
}
}
function hittests3(a) {
if (_level0.Sword.hitTest(a) || (a.hitTest(_level0.Sword))) {
_global.iexist--;
a.unloadMovie();
}
if (a.hitTest(_level0.Him) || (_level0.Him.hitTest(a))) {
_level0.Him._visible = false;
}
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 18;
rotdir = (Math.PI/90) * (_global.movements / 5);
}
if (_global.trapon == 0) {
_visible = true;
hittests3(this);
radius = Math.pow(Math.pow(_x - _level0.Him._x, 2) + Math.pow(_y - _level0.Him._y, 2), 0.5);
if (radius < 125) {
rush = false;
if (_x <= _level0.Him._x) {
ang = Math.atan((_y - _level0.Him._y) / (_level0.Him._x - _x));
ang = ang + rotdir;
oldy = _y;
oldx = _x;
_y = _level0.Him._y + (radius * Math.sin(ang));
_x = _level0.Him._x - (radius * Math.cos(ang));
if ((((_x > 400) || (_y > 400)) || (_x < 0)) || (_y < 0)) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
var _local4 = _level0.wallnum;
while (_local4 > -1) {
if (hitTest(_global.wallnums[_root._currentframe][_local4])) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
_local4--;
}
_local4 = _level0.shapenum;
while (_local4 > -1) {
if (hitTest(_global.shapenums[_root._currentframe][_local4])) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
_local4--;
}
} else if (_x > _level0.Him._x) {
ang = Math.PI + Math.atan((_y - _level0.Him._y) / (_level0.Him._x - _x));
ang = ang + rotdir;
oldy = _y;
oldx = _x;
_y = _level0.Him._y + (radius * Math.sin(ang));
_x = _level0.Him._x - (radius * Math.cos(ang));
if ((((_x > 400) || (_y > 400)) || (_x < 0)) || (_y < 0)) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
var _local4 = _level0.wallnum;
while (_local4 > -1) {
if (hitTest(_global.wallnums[_root._currentframe][_local4])) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
_local4--;
}
_local4 = _level0.shapenum;
while (_local4 > -1) {
if (hitTest(_global.shapenums[_root._currentframe][_local4])) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
_local4--;
}
}
trang = Math.round((ang / (Math.PI/180)) + 90);
if (_level0.Sword._rotation <= 0) {
trot = -1 * _level0.Sword._rotation;
}
if (_level0.Sword._rotation > 0) {
trot = 360 + (-1 * _level0.Sword._rotation);
}
var _local6 = Math.round(trot - trotrange);
var _local5 = Math.round(trot + trotrange);
if (_local6 < 0) {
_local6 = 360 - (_local6 * -1);
if ((trang < _local6) & (trang > _local5)) {
trotrange = 80;
moveme();
rush = true;
}
} else if (_local5 > 360) {
_local5 = _local5 - 360;
if ((trang < _local6) & (trang > _local5)) {
trotrange = 80;
moveme();
rush = true;
}
} else if ((trang < _local6) || (trang > _local5)) {
trotrange = 80;
moveme();
rush = true;
} else {
trotrange = 120;
}
if (_level0.Sword._rotation >= 90) {
}
if ((radius < 100) && (rush == false)) {
if (_level0.Him._x > _x) {
_x = _x - _global.movements;
_level0.testmove(this, 4);
}
if (_level0.Him._x < _x) {
_x = _x + _global.movements;
_level0.testmove(this, 2);
}
if (_level0.Him._y > _y) {
_y = _y - _global.movements;
_level0.testmove(this, 1);
}
if (_level0.Him._y < _y) {
_y = _y + _global.movements;
_level0.testmove(this, 3);
}
}
} else {
moveme();
}
}
}
}
var clockwise = true;
var firsttoframe = 0;
var trotrange = 120;
}
Symbol 366 MovieClip [__Packages.cl_acid] Frame 0
class cl_acid extends MovieClip
{
var stop, hitTest, gotoAndStop;
function cl_acid () {
super();
}
function onLoad() {
(stop());// not popped
}
function onEnterFrame() {
if (hitTest(_level0.Him)) {
acid++;
} else {
acid = 0;
}
if (acid == 0) {
(gotoAndStop(1));// not popped
}
if (acid == Math.round(10 / (_global.movements / 5))) {
(gotoAndStop(2));// not popped
}
if (acid == Math.round(20 / (_global.movements / 5))) {
(gotoAndStop(3));// not popped
}
if (acid == Math.round(30 / (_global.movements / 5))) {
(gotoAndStop(4));// not popped
}
if (acid == Math.round(40 / (_global.movements / 5))) {
(gotoAndStop(5));// not popped
}
if (acid == Math.round(50 / (_global.movements / 5))) {
_level0.Him._visible = false;
}
}
var acid = 0;
}
Symbol 367 MovieClip [__Packages.cl_bugacid] Frame 0
class cl_bugacid extends MovieClip
{
var _visible, unloadMovie, hitTest, _x, _y;
function cl_bugacid () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 15;
}
if (_global.trapon == 0) {
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_level0.Sword._height = _level0.Sword._height - 2;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if (_level0.Him._x > _x) {
_x = _x + _global.movements;
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - _global.movements;
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + _global.movements;
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - _global.movements;
_level0.testmove(this, 1);
}
}
}
}
var firsttoframe = 0;
}
Symbol 368 MovieClip [__Packages.cl_stone] Frame 0
class cl_stone extends MovieClip
{
var hitTest, _x, _y;
function cl_stone () {
super();
}
function onEnterFrame() {
if (hitTest(_level0.Him)) {
if (_global.right == 1) {
_x = _x + ((_global.movements * (_global.herospeed / 10)) * _level0.spdmod);
_level0.testmove(this, 2, 1);
} else if (_global.left == 1) {
_x = _x - ((_global.movements * (_global.herospeed / 10)) * _level0.spdmod);
_level0.testmove(this, 4, 1);
} else if (_global.up == 1) {
_y = _y - ((_global.movements * (_global.herospeed / 10)) * _level0.spdmod);
_level0.testmove(this, 1, 1);
} else if (_global.down == 1) {
_y = _y + ((_global.movements * (_global.herospeed / 10)) * _level0.spdmod);
_level0.testmove(this, 3, 1);
}
}
}
}
Symbol 369 MovieClip [__Packages.cl_buglightning] Frame 0
class cl_buglightning extends MovieClip
{
var _visible, stup, d, randomm, _x, hitTest, _y;
function cl_buglightning () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function hittests2(a) {
if (_level0.Sword.hitTest(a)) {
if (_level0.nest > 0) {
a._x = _level0.nestx;
a._y = _level0.nesty;
} else {
_visible = false;
stup = 1;
}
}
if (a.hitTest(_level0.Him)) {
_level0.Him._visible = false;
}
}
function onEnterFrame() {
if ((_global.inhibmons == 1) || (stup == 1)) {
if (d != 1) {
d = 1;
_global.iexist--;
}
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 20;
}
if (_global.trapon == 0) {
_visible = true;
hittests2(this);
if (randomm > 0) {
randomm--;
var _local4 = 2;
while (_local4 > 0) {
_local4--;
var _local3 = Math.random();
if (_local3 > 0.75) {
_x = _x + (2.4 * _global.movements);
if (hitTest(_level0.Sword)) {
_x = _x - (2.4 * _global.movements);
} else {
_level0.testmove(this, 2);
}
} else if (_local3 > 0.5) {
_x = _x - (2.4 * _global.movements);
if (hitTest(_level0.Sword)) {
_x = _x + (2.4 * _global.movements);
} else {
_level0.testmove(this, 4);
}
} else if (_local3 > 0.25) {
_y = _y + (2.4 * _global.movements);
if (hitTest(_level0.Sword)) {
_y = _y - (2.4 * _global.movements);
} else {
_level0.testmove(this, 3);
}
} else {
_y = _y - (2.4 * _global.movements);
if (hitTest(_level0.Sword)) {
_y = _y + (2.4 * _global.movements);
} else {
_level0.testmove(this, 1);
}
}
}
} else {
if (_level0.Him._x > _x) {
_x = _x + (2 * _global.movements);
if (hitTest(_level0.Sword)) {
_x = _x - (2 * _global.movements);
randomm = 5;
} else {
_level0.testmove(this, 2);
}
}
if (_level0.Him._y > _y) {
_y = _y + (2 * _global.movements);
if (hitTest(_level0.Sword)) {
_y = _y - (2 * _global.movements);
randomm = 5;
} else {
_level0.testmove(this, 3);
}
}
if (_level0.Him._x < _x) {
_x = _x - (2 * _global.movements);
if (hitTest(_level0.Sword)) {
_x = _x + (2 * _global.movements);
randomm = 5;
} else {
_level0.testmove(this, 4);
}
}
if (_level0.Him._y < _y) {
_y = _y - (2 * _global.movements);
if (hitTest(_level0.Sword)) {
_y = _y + (2 * _global.movements);
randomm = 5;
} else {
_level0.testmove(this, 1);
}
}
}
}
}
}
var firsttoframe = 0;
}
Symbol 370 MovieClip [__Packages.cl_bug6] Frame 0
class cl_bug6 extends MovieClip
{
var _visible, _x, _y, unloadMovie, rotdir, radius, rush, ang, oldy, oldx, hitTest, trang, trot;
function cl_bug6 () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function moveme() {
if (_level0.Him._x > _x) {
_x = _x + (_global.movements * 0.65);
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - (_global.movements * 0.65);
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + (_global.movements * 0.65);
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - (_global.movements * 0.65);
_level0.testmove(this, 1);
}
}
function hittests3(a) {
if (_level0.Sword.hitTest(a) || (a.hitTest(_level0.Sword))) {
_global.iexist--;
a.unloadMovie();
}
if (a.hitTest(_level0.Him) || (_level0.Him.hitTest(a))) {
_level0.Him._visible = false;
}
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 18;
rotdir = (Math.PI/90) * (_global.movements / 5);
}
if (_global.trapon == 0) {
_visible = true;
hittests3(this);
radius = Math.pow(Math.pow(_x - _level0.Him._x, 2) + Math.pow(_y - _level0.Him._y, 2), 0.5);
if (radius < 125) {
rush = false;
if (_x <= _level0.Him._x) {
ang = Math.atan((_y - _level0.Him._y) / (_level0.Him._x - _x));
ang = ang + rotdir;
oldy = _y;
oldx = _x;
_y = _level0.Him._y + (radius * Math.sin(ang));
_x = _level0.Him._x - (radius * Math.cos(ang));
if ((((_x > 400) || (_y > 400)) || (_x < 0)) || (_y < 0)) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
var _local4 = _level0.wallnum;
while (_local4 > -1) {
if (hitTest(_global.wallnums[_root._currentframe][_local4])) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
_local4--;
}
_local4 = _level0.shapenum;
while (_local4 > -1) {
if (hitTest(_global.shapenums[_root._currentframe][_local4])) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
_local4--;
}
} else if (_x > _level0.Him._x) {
ang = Math.PI + Math.atan((_y - _level0.Him._y) / (_level0.Him._x - _x));
ang = ang + rotdir;
oldy = _y;
oldx = _x;
_y = _level0.Him._y + (radius * Math.sin(ang));
_x = _level0.Him._x - (radius * Math.cos(ang));
if ((((_x > 400) || (_y > 400)) || (_x < 0)) || (_y < 0)) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
var _local4 = _level0.wallnum;
while (_local4 > -1) {
if (hitTest(_global.wallnums[_root._currentframe][_local4])) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
_local4--;
}
_local4 = _level0.shapenum;
while (_local4 > -1) {
if (hitTest(_global.shapenums[_root._currentframe][_local4])) {
_y = oldy;
_x = oldx;
rotdir = rotdir * -1;
}
_local4--;
}
}
trang = Math.round((ang / (Math.PI/180)) + 90);
if (_level0.Sword._rotation <= 0) {
trot = -1 * _level0.Sword._rotation;
}
if (_level0.Sword._rotation > 0) {
trot = 360 + (-1 * _level0.Sword._rotation);
}
var _local6 = Math.round(trot - trotrange);
var _local5 = Math.round(trot + trotrange);
if (_local6 < 0) {
_local6 = 360 - (_local6 * -1);
if ((trang < _local6) & (trang > _local5)) {
trotrange = 80;
moveme();
rush = true;
}
} else if (_local5 > 360) {
_local5 = _local5 - 360;
if ((trang < _local6) & (trang > _local5)) {
trotrange = 80;
moveme();
rush = true;
}
} else if ((trang < _local6) || (trang > _local5)) {
trotrange = 80;
moveme();
rush = true;
} else {
trotrange = 120;
}
if (_level0.Sword._rotation >= 90) {
}
if ((radius < 100) && (rush == false)) {
if (_level0.Him._x > _x) {
_x = _x - (_global.movements * 0.65);
_level0.testmove(this, 4);
}
if (_level0.Him._x < _x) {
_x = _x + (_global.movements * 0.65);
_level0.testmove(this, 2);
}
if (_level0.Him._y > _y) {
_y = _y - (_global.movements * 0.65);
_level0.testmove(this, 1);
}
if (_level0.Him._y < _y) {
_y = _y + (_global.movements * 0.65);
_level0.testmove(this, 3);
}
}
} else {
moveme();
}
}
}
}
var clockwise = true;
var firsttoframe = 0;
var trotrange = 120;
}
Symbol 371 MovieClip [__Packages.cl_blueguardcapt] Frame 0
class cl_blueguardcapt extends MovieClip
{
var _visible, bord, unloadMovie, hitTest;
function cl_blueguardcapt () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 200;
}
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
}
}
var firsttoframe = 0;
var blueguardcaptvar = 1;
}
Symbol 372 MovieClip [__Packages.cl_stairsboth] Frame 0
class cl_stairsboth extends MovieClip
{
var z, hitTest;
function cl_stairsboth () {
super();
}
function onLoad() {
if (Key.isDown(_global.downkey) || (Key.isDown(_global.upkey))) {
z = 1;
}
}
function onEnterFrame() {
if (!(Key.isDown(_global.downkey) || (Key.isDown(_global.upkey)))) {
z = 0;
}
if (z == 0) {
if (hitTest(_level0.Him) && (Key.isDown(_global.downkey))) {
_global.stairshitdown = 1;
}
if (hitTest(_level0.Him) && (Key.isDown(_global.upkey))) {
_global.stairshit = 1;
}
}
}
}
Symbol 373 MovieClip [__Packages.cl_stairs] Frame 0
class cl_stairs extends MovieClip
{
var z, hitTest;
function cl_stairs () {
super();
}
function onLoad() {
if (Key.isDown(_global.downkey) || (Key.isDown(_global.upkey))) {
z = 1;
}
}
function onEnterFrame() {
if (!(Key.isDown(_global.downkey) || (Key.isDown(_global.upkey)))) {
z = 0;
}
if (z == 0) {
if (hitTest(_level0.Him) && (Key.isDown(_global.upkey))) {
_global.stairshit = 1;
}
}
}
}
Symbol 374 MovieClip [__Packages.cl_sand] Frame 0
class cl_sand extends MovieClip
{
var hitTest;
function cl_sand () {
super();
}
function onLoad() {
}
function onEnterFrame() {
if (hitTest(_level0.Him)) {
_level0.spdmod = 0.333333333333333;
} else {
_level0.spdmod = 1;
}
}
}
Symbol 375 MovieClip [__Packages.cl_togglewall] Frame 0
class cl_togglewall extends MovieClip
{
var _visible, gotoAndStop;
function cl_togglewall () {
super();
}
function onLoad() {
_visible = false;
}
function onEnterFrame() {
if (_level0.toggled == 0) {
(gotoAndStop(1));// not popped
} else {
(gotoAndStop(2));// not popped
}
ptm++;
if (ptm == 2) {
_visible = true;
}
}
var ptm = 0;
}
Symbol 376 MovieClip [__Packages.cl_button] Frame 0
class cl_button extends MovieClip
{
var hitTest;
function cl_button () {
super();
}
function onEnterFrame() {
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_level0.toggled = 1;
}
}
}
Symbol 377 MovieClip [__Packages.cl_stairsdown] Frame 0
class cl_stairsdown extends MovieClip
{
var z, hitTest;
function cl_stairsdown () {
super();
}
function onLoad() {
if (Key.isDown(_global.downkey) || (Key.isDown(_global.upkey))) {
z = 1;
}
}
function onEnterFrame() {
if (!(Key.isDown(_global.downkey) || (Key.isDown(_global.upkey)))) {
z = 0;
}
if (z == 0) {
if (hitTest(_level0.Him) && (Key.isDown(_global.downkey))) {
_global.stairshitdown = 1;
}
}
}
}
Symbol 378 MovieClip [__Packages.cl_nest] Frame 0
class cl_nest extends MovieClip
{
var nst, gotoAndStop, _x, _y, hitTest;
function cl_nest () {
super();
}
function onLoad() {
nst = 0;
_level0.nest++;
if (_global.inhibmons == 1) {
(gotoAndStop(2));// not popped
} else {
(gotoAndStop(1));// not popped
}
}
function onEnterFrame() {
if ((_global.iexist == 0) && (xpgiven == 0)) {
xpgiven = 1;
_level0.monxp = _level0.monxp + 35;
}
if ((nst != 1) && (nst != 2)) {
_level0.nestx = _x;
_level0.nesty = _y;
}
if (((_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) || (_global.inhibmons == 1)) && (nst != 2)) {
nst = 1;
(gotoAndStop(2));// not popped
}
if (nst == 1) {
nst = 2;
_level0.nest--;
}
}
var xpgiven = 0;
}
Symbol 379 MovieClip [__Packages.cl_ice] Frame 0
class cl_ice extends MovieClip
{
var hitTest;
function cl_ice () {
super();
}
function onLoad() {
}
function onEnterFrame() {
if (hitTest(_level0.Him)) {
_level0.icehit = 1;
}
}
}
Symbol 380 MovieClip [__Packages.cl_lasershot] Frame 0
class cl_lasershot extends MovieClip
{
var hitTest;
function cl_lasershot () {
super();
}
function onEnterFrame() {
if (hitTest(_level0.Him)) {
_level0.Him._visible = false;
}
}
}
Symbol 381 MovieClip [__Packages.cl_laser] Frame 0
class cl_laser extends MovieClip
{
var stop, gotoAndStop;
function cl_laser () {
super();
}
function onLoad() {
(stop());// not popped
}
function onEnterFrame() {
time++;
if (time == Math.round(15 / (_global.movements / 5))) {
(gotoAndStop(2));// not popped
}
if (time == Math.round(30 / (_global.movements / 5))) {
time = 0;
(gotoAndStop(1));// not popped
}
if ((_global.iexist == 0) && (xpgiven == 0)) {
xpgiven = 1;
_level0.monxp = _level0.monxp + 5;
}
}
var time = 0;
var xpgiven = 0;
}
Symbol 382 MovieClip [__Packages.cl_square] Frame 0
class cl_square extends MovieClip
{
var _visible, stop, _name, gotoAndStop;
function cl_square () {
super();
}
function onLoad() {
_level0.textbx1.removeTextField();
_visible = false;
(stop());// not popped
}
function onEnterFrame() {
if (_global.roomcondition[_name.slice(4)] > 0) {
_visible = true;
}
if (_global.roomcondition[_name.slice(4)] == 2) {
(gotoAndStop(2));// not popped
}
if (_global.roomcondition[_name.slice(4)] == 3) {
(gotoAndStop(3));// not popped
}
if (_global.roomcondition[_name.slice(4)] == 5) {
(gotoAndStop(5));// not popped
}
if (_global.roomcondition[_name.slice(4)] == 6) {
(gotoAndStop(6));// not popped
}
if (_global.roomcondition[_name.slice(4)] == 7) {
(gotoAndStop(7));// not popped
}
if (_name.slice(4) == _global.returningframe) {
(gotoAndStop(4));// not popped
}
}
}
Symbol 383 MovieClip [__Packages.cl_blue] Frame 0
class cl_blue extends MovieClip
{
var _visible, bord, unloadMovie, hitTest, _x, _y;
function cl_blue () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
_global.blueones[_level0._currentframe][_level0.blueonesnum] = this;
bord = _level0.blueonesnum;
_level0.blueonesnum++;
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.blueones[_level0._currentframe][bord] = 0;
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 20;
}
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
_visible = false;
_global.blueones[_level0._currentframe][bord] = 0;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if (_level0.Him._x > _x) {
_x = _x + (_global.movements * 0.6);
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - (_global.movements * 0.6);
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + (_global.movements * 0.6);
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - (_global.movements * 0.6);
_level0.testmove(this, 1);
}
}
}
var firsttoframe = 0;
}
Symbol 384 MovieClip [__Packages.cl_boxtrapped] Frame 0
class cl_boxtrapped extends MovieClip
{
var _visible, unloadMovie, hitTest;
function cl_boxtrapped () {
super();
}
function onLoad() {
_global.shapenums[_root._currentframe][_level0.shapenum] = this;
_level0.shapenum++;
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function onEnterFrame() {
_visible = true;
if (_global.inhibmons == 1) {
_global.iexist--;
unloadMovie();
}
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
if ((hittimes == 1) && (_global.kidnums == 0)) {
_global.iexist--;
unloadMovie();
}
if (hittimes == 0) {
_global.birthtime = 1;
_global.birthtimex = 200;
_global.birthtimey = 200;
hittimes++;
}
}
}
var shapen = 0;
var hittimes = 0;
}
Symbol 385 MovieClip [__Packages.cl_bug4] Frame 0
class cl_bug4 extends MovieClip
{
var clbug_mc, _visible, unloadMovie, _x, _y, hitTest;
function cl_bug4 (passed_mc) {
super();
clbug_mc = passed_mc;
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 120;
}
birthtimer++;
_level0.order2._x = 10;
if (birthtimer == Math.round(25 / (_global.movements / 5))) {
_global.birthtime = 1;
_global.birthtimex = _x;
_global.birthtimey = _y;
birthtimer = 0;
}
if (_global.trapon == 0) {
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
if (hittimes == 3) {
_global.iexist--;
unloadMovie();
} else {
hittimes++;
_x = 200;
_y = 200;
}
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if (_level0.Him._x > _x) {
_x = _x - _global.movements;
_level0.testmove(this, 4);
}
if (_level0.Him._x < _x) {
_x = _x + _global.movements;
_level0.testmove(this, 2);
}
if (_level0.Him._y > _y) {
_y = _y - _global.movements;
_level0.testmove(this, 1);
}
if (_level0.Him._y < _y) {
_y = _y + _global.movements;
_level0.testmove(this, 3);
}
}
}
}
var hittimes = 0;
var firsttoframe = 0;
var birthtimer = 0;
}
Symbol 386 MovieClip [__Packages.cl_bug3] Frame 0
class cl_bug3 extends MovieClip
{
var _visible, unloadMovie, hitTest, hitrad, _x, _y;
function cl_bug3 () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function hittests3(a) {
if (_level0.Sword.hitTest(a) || (a.hitTest(_level0.Sword))) {
_global.iexist--;
a.unloadMovie();
}
if (a.hitTest(_level0.Him) || (_level0.Him.hitTest(a))) {
_level0.Him._visible = false;
}
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 15;
}
if (_global.trapon == 0) {
_visible = true;
hittests3(this);
_level0.Him._width = _level0.Him._width + 120;
_level0.Him._height = _level0.Him._height + 120;
if (hitTest(_level0.Him)) {
hitrad = 1;
} else {
hitrad = 0;
}
_level0.Him._width = _level0.Him._width - 120;
_level0.Him._height = _level0.Him._height - 120;
if (hitrad == 1) {
if (clockwise == false) {
if (((_x - _global.movements) >= _level0.Him._x) && ((_y - _global.movements) <= _level0.Him._y)) {
if (!((_level0.Sword._rotation > -270) && (_level0.Sword._rotation <= -90))) {
_y = _y - _global.movements;
if (_level0.testmove(this, 1)) {
clockwise = true;
}
} else {
hitrad = 0;
}
}
if (((_x + _global.movements) > _level0.Him._x) && ((_y - _global.movements) >= _level0.Him._y)) {
if (!((_level0.Sword._rotation <= 0) && (_level0.Sword._rotation > -90))) {
_x = _x + _global.movements;
if (_level0.testmove(this, 2) == true) {
clockwise = true;
}
} else {
hitrad = 0;
}
}
if (((_x - _global.movements) < _level0.Him._x) && ((_y + _global.movements) < _level0.Him._y)) {
if (!((_level0.Sword._rotation > 90) && (_level0.Sword._rotation <= 180))) {
_x = _x - _global.movements;
if (_level0.testmove(this, 4) == true) {
clockwise = true;
}
} else {
hitrad = 0;
}
}
if (((_x + _global.movements) <= _level0.Him._x) && ((_y + _global.movements) >= _level0.Him._y)) {
if (!((_level0.Sword._rotation > 0) && (_level0.Sword._rotation <= 90))) {
_y = _y + _global.movements;
if (_level0.testmove(this, 3) == true) {
clockwise = true;
}
} else {
hitrad = 0;
}
}
} else if (clockwise == true) {
if (((_x + _global.movements) >= _level0.Him._x) && ((_y + _global.movements) <= _level0.Him._y)) {
if (!((_level0.Sword._rotation >= -270) && (_level0.Sword._rotation < -90))) {
_x = _x + _global.movements;
if (_level0.testmove(this, 2)) {
clockwise = false;
}
} else {
hitrad = 0;
}
}
if (((_x - _global.movements) > _level0.Him._x) && ((_y + _global.movements) >= _level0.Him._y)) {
if (!((_level0.Sword._rotation < 0) && (_level0.Sword._rotation >= -90))) {
_y = _y + _global.movements;
if (_level0.testmove(this, 3) == true) {
clockwise = false;
}
} else {
hitrad = 0;
}
}
if (((_x + _global.movements) < _level0.Him._x) && ((_y - _global.movements) < _level0.Him._y)) {
if (!((_level0.Sword._rotation >= 90) && (_level0.Sword._rotation < 180))) {
_y = _y - _global.movements;
if (_level0.testmove(this, 1) == true) {
clockwise = false;
}
} else {
hitrad = 0;
}
}
if (((_x - _global.movements) <= _level0.Him._x) && ((_y - _global.movements) > _level0.Him._y)) {
if (!((_level0.Sword._rotation >= 0) && (_level0.Sword._rotation < 90))) {
_x = _x - _global.movements;
if (_level0.testmove(this, 4) == true) {
clockwise = false;
}
} else {
hitrad = 0;
}
}
}
}
if (hitrad == 0) {
if (_level0.Him._x > _x) {
_x = _x + _global.movements;
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - _global.movements;
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + _global.movements;
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - _global.movements;
_level0.testmove(this, 1);
}
}
}
}
}
var clockwise = true;
var firsttoframe = 0;
}
Symbol 387 MovieClip [__Packages.cl_bug2] Frame 0
class cl_bug2 extends MovieClip
{
var _visible, stup, d, randomm, _x, hitTest, _y;
function cl_bug2 () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function hittests2(a) {
if (_level0.Sword.hitTest(a)) {
if (_level0.nest > 0) {
a._x = _level0.nestx;
a._y = _level0.nesty;
} else {
_visible = false;
stup = 1;
}
}
if (a.hitTest(_level0.Him)) {
_level0.Him._visible = false;
}
}
function onEnterFrame() {
if ((_global.inhibmons == 1) || (stup == 1)) {
if (d != 1) {
d = 1;
_global.iexist--;
}
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 12;
}
if (_global.trapon == 0) {
_visible = true;
hittests2(this);
if (randomm > 0) {
randomm--;
var _local4 = 2;
while (_local4 > 0) {
_local4--;
var _local3 = Math.random();
if (_local3 > 0.75) {
_x = _x + (1.2 * _global.movements);
if (hitTest(_level0.Sword)) {
_x = _x - (1.2 * _global.movements);
} else {
_level0.testmove(this, 2, 1);
}
} else if (_local3 > 0.5) {
_x = _x - (1.2 * _global.movements);
if (hitTest(_level0.Sword)) {
_x = _x + (1.2 * _global.movements);
} else {
_level0.testmove(this, 4, 1);
}
} else if (_local3 > 0.25) {
_y = _y + (1.2 * _global.movements);
if (hitTest(_level0.Sword)) {
_y = _y - (1.2 * _global.movements);
} else {
_level0.testmove(this, 3, 1);
}
} else {
_y = _y - (1.2 * _global.movements);
if (hitTest(_level0.Sword)) {
_y = _y + (1.2 * _global.movements);
} else {
_level0.testmove(this, 1, 1);
}
}
}
} else {
if (_level0.Him._x > _x) {
_x = _x + _global.movements;
if (hitTest(_level0.Sword)) {
_x = _x - _global.movements;
randomm = 5;
} else {
_level0.testmove(this, 2, 1);
}
}
if (_level0.Him._y > _y) {
_y = _y + _global.movements;
if (hitTest(_level0.Sword)) {
_y = _y - _global.movements;
randomm = 5;
} else {
_level0.testmove(this, 3, 1);
}
}
if (_level0.Him._x < _x) {
_x = _x - _global.movements;
if (hitTest(_level0.Sword)) {
_x = _x + _global.movements;
randomm = 5;
} else {
_level0.testmove(this, 4, 1);
}
}
if (_level0.Him._y < _y) {
_y = _y - _global.movements;
if (hitTest(_level0.Sword)) {
_y = _y + _global.movements;
randomm = 5;
} else {
_level0.testmove(this, 1, 1);
}
}
}
}
}
}
var firsttoframe = 0;
}
Symbol 388 MovieClip [__Packages.cl_bug] Frame 0
class cl_bug extends MovieClip
{
var _visible, unloadMovie, hitTest, _x, _y;
function cl_bug () {
super();
}
function onLoad() {
_visible = false;
if (_global.firstcheckedmon == 0) {
_global.firstcheckedmon = 1;
} else {
_global.iexist++;
}
}
function onEnterFrame() {
if (_global.inhibmons == 1) {
_global.iexist--;
unloadMovie();
} else {
if (firsttoframe == 0) {
firsttoframe = 1;
_level0.monxp = _level0.monxp + 8;
}
if (_global.trapon == 0) {
_visible = true;
if (_level0.Sword.hitTest(this) || (hitTest(_level0.Sword))) {
_global.iexist--;
unloadMovie();
}
if (hitTest(_level0.Him) || (_level0.Him.hitTest(this))) {
_level0.Him._visible = false;
}
if (_level0.Him._x > _x) {
_x = _x + _global.movements;
_level0.testmove(this, 2);
}
if (_level0.Him._x < _x) {
_x = _x - _global.movements;
_level0.testmove(this, 4);
}
if (_level0.Him._y > _y) {
_y = _y + _global.movements;
_level0.testmove(this, 3);
}
if (_level0.Him._y < _y) {
_y = _y - _global.movements;
_level0.testmove(this, 1);
}
}
}
}
var firsttoframe = 0;
}
Symbol 389 MovieClip [__Packages.cl_swordpt] Frame 0
class cl_swordpt extends MovieClip
{
var p, _x, _y, _parent;
function cl_swordpt () {
super();
}
function onEnterFrame() {
p = new Object();
p.x = _x;
p.y = _y;
_parent.localToGlobal(p);
if (_level0.Him.hitTest(p.x, p.y, true) && (_parent._visible == true)) {
_level0.Him._visible = false;
}
var _local4 = _level0.Sword._rotation;
_local4 = 90 - _local4;
if (_local4 < 0) {
_local4 = _local4 + 360;
}
var _local6 = _level0.Sword._y - (40 * Math.sin(_local4 * (Math.PI/180)));
var _local7 = _level0.Sword._x + (40 * Math.cos(_local4 * (Math.PI/180)));
var _local3 = 1;
while (_local3 < 5) {
if (Math.round(p.y / 10) == Math.round((_level0.Sword._y - ((10 * _local3) * Math.sin(_local4 * (Math.PI/180)))) / 10)) {
if (Math.round(p.x / 10) == Math.round((_level0.Sword._x + ((10 * _local3) * Math.cos(_local4 * (Math.PI/180)))) / 10)) {
var _local5 = 1;
}
}
_local3++;
}
if (_local5 == 1) {
if (_global.rotatedir == 1) {
_parent._rotation = _parent._rotation + (((_global.movements * 2) * _parent.speed) * _global.parry);
} else if (_global.rotatedir == 2) {
_parent._rotation = _parent._rotation - (((_global.movements * 2) * _parent.speed) * _global.parry);
}
if (((((_global.rotatedir == 1) || (_global.rotatedir == 2)) && (_global.mether == 1)) && (_global.doublesword == 3)) && (_parent._name == "sob")) {
_level0.Sword._height = _level0.Sword._height + 100;
_global.wongame = 1;
}
if (_global.blueones[_level0._currentframe][_parent.order].parry > 0) {
if (_parent.dir == 1) {
_global.swordrote = _global.swordrote + (((_global.movements * 2) * _parent.speed) * _global.blueones[_level0._currentframe][_parent.order].parry);
}
if (_parent.dir == 2) {
_global.swordrote = _global.swordrote - (((_global.movements * 2) * _parent.speed) * _global.blueones[_level0._currentframe][_parent.order].parry);
}
}
}
}
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 203 MovieClip [Box] Frame 1
#initclip 131
Object.registerClass("Box", cl_box);
#endinitclip
Symbol 209 Button
on (release) {
sharedsaver = SharedObject.getLocal("savefile");
if (sharedsaver.data.saved != undefined) {
_global.xpcost = sharedsaver.data.xpcost;
_global.parry = sharedsaver.data.parry;
_global.moveleftkey = sharedsaver.data.moveleftkey;
_global.moveupkey = sharedsaver.data.moveupkey;
_global.movedownkey = sharedsaver.data.movedownkey;
_global.moverightkey = sharedsaver.data.moverightkey;
_global.mapkey = sharedsaver.data.mapkey;
_global.rotateleftkey = sharedsaver.data.rotateleftkey;
_global.rotaterightkey = sharedsaver.data.rotaterightkey;
_global.endkey = sharedsaver.data.endkey;
_global.upkey = sharedsaver.data.upkey;
_global.downkey = sharedsaver.data.downkey;
_global.speedset = sharedsaver.data.speedset;
_global.losscount = sharedsaver.data.losscount;
_global.musicon = sharedsaver.data.musicon;
_level0.mapfound = sharedsaver.data.mapfound;
_global.orangekeyfound = sharedsaver.data.orangekeyfound;
_global.brownkeyfound = sharedsaver.data.brownkeyfound;
_global.purplekeyfound = sharedsaver.data.purplekeyfound;
_global.mether = sharedsaver.data.mether;
_global.doublesword = sharedsaver.data.doublesword;
_global.statup = sharedsaver.data.statup;
_global.herospeed = sharedsaver.data.herospeed;
_global.swordspeed = sharedsaver.data.swordspeed;
_global.level = sharedsaver.data.level;
_global.xp = sharedsaver.data.xp;
_level0.lookat = sharedsaver.data.lookat;
_global.swordrote = sharedsaver.data.swordrote;
_global.himxpos = sharedsaver.data.himxpos;
_global.himypos = sharedsaver.data.himypos;
_global.lastframe = sharedsaver.data.lastframe;
_global.dirtoframe = sharedsaver.data.dirtoframe;
_level0.inhibitmons_ar = sharedsaver.data.inhibitmons_ar.slice();
_global.roomcondition = sharedsaver.data.roomcondition.slice();
_global.realfirstloadedframe = sharedsaver.data.realfirstloadedframe.slice();
_global.chckbxs = new Array();
_global.shapenums = new Array();
_global.wallnums = new Array();
_global.blueones = new Array();
_global.blueswords = new Array();
var i = 0;
while (i < 1000) {
_global.chckbxs[i] = new Array();
_global.shapenums[i] = new Array();
_global.wallnums[i] = new Array();
_global.blueones[i] = new Array();
_global.blueswords[i] = new Array();
i++;
}
var i = 0;
while (i < 150) {
var a = 0;
while (a < 150) {
_global.chckbxs[i][a] = sharedsaver.data.chckbxs[i][a];
a++;
}
i++;
}
var i = 0;
while (i < 1000) {
_global.mapping.push(sharedsaver.data.mapping[i].slice());
_global.arrows.push(sharedsaver.data.arrows[i].slice());
i++;
}
_level0.firstloaded = sharedsaver.data.firstloaded.slice();
_global.notlost = 1;
_global.frametoreturnto = sharedsaver.data.framenow;
_level0.startfrombeg = 1;
_global.movements = 5;
_root.createTextField("textbx1", 1000, 415, 15, 100, 200);
_level0.textbx1.text = "Experience: " + _global.xp;
_level0.textbx1form = new TextFormat();
_level0.textbx1form.bold = true;
_level0.textbx1form.font = "Arial";
_level0.textbx1.setTextFormat(textbx1form);
_level0.gotoAndPlay(2);
}
}
Symbol 213 Button
on (release) {
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
_global.returningframe = _level0._currentframe;
_level0.gotoAndPlay(24);
}
Symbol 217 Button
on (release) {
_level0.textbx1.removeTextField();
_level0.textbx2.removeTextField();
_global.returningframe = _level0._currentframe;
_level0.gotoAndPlay(45);
}
Symbol 220 Button
on (release) {
_global.statup--;
_global.herospeed++;
}
Symbol 221 Button
on (release) {
_global.statup--;
_global.swordspeed++;
}
Symbol 223 MovieClip [Stuff] Frame 1
#initclip 132
Object.registerClass("Stuff", cl_wall);
#endinitclip
Symbol 235 Button
on (release) {
gotoAndPlay(_global.returningframe);
}
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 2
stop();
Instance of Symbol 243 MovieClip "Flee" in Symbol 245 MovieClip Frame 2
onClipEvent (load) {
p = 0;
space = 0;
}
onClipEvent (enterFrame) {
if (p == 0) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "STOP!!!!!";
}
if (p == 1) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Stop?";
}
if (p == 2) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Yes! Stop! Please listen!";
}
if (p == 3) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "I will not stop! I won't stop until I slaughter every last blue in this castle, ending with King Blip himself!";
}
if (p == 4) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Great Green hero!";
}
if (p == 5) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Flattery won't save you! Blue has wronged Green again and again. Every blue must be slaughtered!";
}
if (p == 6) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Great Green hero! Its not flattery! Do you think everyone here likes King Blip and Blue Hero?";
}
if (p == 7) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "It matters not! All Blues are dishonorable scum to the last. Purifying the world of their taint is a must. Prepare to die!";
}
if (p == 8) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "You have accomplished an amazing feat, killing all these blues while you remain unscathed...you are truly a supreme hero.";
}
if (p == 9) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Nothing you say will save Blue.";
}
if (p == 10) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "It is not Blue I want to save! I hate Blip! He abuses all of us, treating us like we're hardly above the greys. I wish I was Green!";
}
if (p == 11) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "What?!";
}
if (p == 12) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = " I wish I was green, the color of such amazing heroes as you...I know Blue Hero, he could never do anything like you have.";
}
if (p == 13) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "You...your tricks won't...work on me.";
}
if (p == 14) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Green Hero...you are such a massive, powerful swordsdot...looking at you, I am filled with such astonishment....";
}
if (p == 15) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "You notice her perfect borders...so precisely circular. Yes, she's blue, but...of all possible shades of blue, the one on her body must be the least noxious>";
}
if (p == 16) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "You are the most perfect dot ever...drop your sword...let me come closer...";
}
if (p == 17) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "<You hear your sword fall to the ground>";
_level0.Sword._visible = false;
}
if ((p > 17) && (p < 21)) {
_level0.Flee._x = _level0.Flee._x - 3;
p = 18;
if (Math.round(_level0.Flee._x) == 138) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "Even if you kill me right after this I will die happily by your sword....";
p = 21;
}
}
if (p == 22) {
_level0.Green = _level0.Green + 3;
if (Math.round(_level0.Green._x) == 138) {
}
}
if (p == 0) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "STOP!!!!!";
}
if (p == 1) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Stop?";
}
if (p == 0) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "STOP!!!!!";
}
if (p == 1) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Stop?";
}
if (p == 0) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "STOP!!!!!";
}
if (p == 1) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Stop?";
}
if (p == 0) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "STOP!!!!!";
}
if (p == 1) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Stop?";
}
if (p == 0) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "STOP!!!!!";
}
if (p == 1) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Stop?";
}
if (p == 0) {
_root.createTextField("plottext", 25, 200, 10, 250, 150);
_root.plottext.text = "STOP!!!!!";
}
if (p == 1) {
_root.createTextField("plottext", 25, 10, 10, 250, 150);
_root.plottext.text = "Stop?";
}
_root.plottext.selectable = false;
plottextform = new TextFormat();
plottextform.bold = true;
plottextform.font = "Perpetua";
plottextform.size = 20;
plottextform.align = "left";
plottextform.leftMargin = 5;
_root.plottext.multiline = true;
_root.plottext.selectable = false;
_root.plottext.wordWrap = true;
_root.plottext.background = true;
_root.plottext.border = true;
_root.plottext.borderColor = 16777215 /* 0xFFFFFF */;
_root.plottext.backgroundColor = "000000";
if (Math.round(p / 2) == (p / 2)) {
_root.plottext.textColor = "0xCCFFFF";
} else {
_root.plottext.textColor = "0x00FF33";
}
_root.plottext.setTextFormat(plottextform);
if (p == 110) {
_root.plottext.removeTextField();
_global.frametoreturnto = 112;
_global.notlost = 1;
_root.gotoAndPlay(2);
}
if (Key.isDown(32)) {
space = 1;
}
if ((space == 1) && (!Key.isDown(32))) {
space = 0;
p++;
}
}
Symbol 245 MovieClip Frame 3
stop();
Symbol 251 Button
on (release) {
gotoAndPlay(_global.returningframe);
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 3
stop();
Symbol 287 MovieClip Frame 4
stop();
Symbol 287 MovieClip Frame 5
stop();
Symbol 287 MovieClip Frame 6
stop();
Symbol 287 MovieClip Frame 7
stop();
Symbol 287 MovieClip Frame 8
stop();
Symbol 287 MovieClip Frame 9
stop();
Symbol 287 MovieClip Frame 10
stop();
Symbol 287 MovieClip Frame 11
stop();
Symbol 309 MovieClip Frame 1
stop();