Frame 1
play();
Frame 2
perc = (getBytesLoaded() / getBytesTotal()) * 100;
percodan = int(perc) + "%";
if (perc < 100) {
if (perc < 50) {
l1.gotoAndStop(int(perc * 6));
l2.gotoAndStop(0);
} else {
l1.gotoAndStop(300);
l2.gotoAndStop(int((perc - 50) * 6));
}
} else {
l1.gotoAndStop(300);
l2.gotoAndStop(300);
gotoAndStop (4);
}
play();
Frame 3
gotoAndPlay (2);
Frame 4
swish = new Sound();
swish.attachSound("swish");
function playmusic(n) {
if (musicon == 1) {
music.gotoAndPlay("track" + n);
}
}
if (Key.isDown(Key.SHIFT)) {
musicon = 0;
} else {
musicon = 1;
}
Frame 9
playmusic(0);
Frame 23
stop();
Frame 40
_root.attachMovie("herostats", "herostats", 1);
_root.attachMovie("bestiary", "bestiary", 2);
_root.attachMovie("formations", "formations", 3);
_root.attachMovie("maps", "maps", 4);
flag = new Array(10);
n = 0;
while (n < 10) {
flag[n] = false;
n++;
}
currenttrack = 0;
Instance of Symbol 624 MovieClip "keys" in Frame 40
onClipEvent (load) {
function pressed(k) {
if (eval (k) == 1) {
Set(k, 2);
return(true);
}
return(false);
}
select = 0;
}
onClipEvent (keyDown) {
}
onClipEvent (keyUp) {
if (Key.getCode() == Key.UP) {
up = 0;
}
if (Key.getCode() == Key.DOWN) {
down = 0;
}
if (Key.getCode() == Key.LEFT) {
left = 0;
}
if (Key.getCode() == Key.RIGHT) {
right = 0;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
if (select < 1) {
select = 1;
}
} else {
select = 0;
}
if (Key.isDown(Key.UP)) {
if (up < 2) {
up = up + 1;
}
} else {
up = 0;
}
if (Key.isDown(Key.DOWN)) {
if (down < 2) {
down = down + 1;
}
} else {
down = 0;
}
if (Key.isDown(Key.LEFT)) {
if (left < 2) {
left = left + 1;
}
} else {
left = 0;
}
if (Key.isDown(Key.RIGHT)) {
if (right < 2) {
right = right + 1;
}
} else {
right = 0;
}
}
Frame 41
stop();
Frame 43
this.attachMovie("battlestage", "stage", 107);
stage._x = 225;
stage._y = 150;
stop();
Instance of Symbol 635 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (!_root.stage) {
_root.gotoAndStop("world");
}
}
Frame 44
stage.removeMovieClip();
playmusic(7);
Frame 58
stop();
Instance of Symbol 641 MovieClip in Frame 58
onClipEvent (keyDown) {
_root.play();
}
onClipEvent (mouseDown) {
_root.play();
}
Frame 73
gotoAndPlay (9);
Instance of Symbol 7 MovieClip "bottom" in Symbol 123 MovieClip [hmbattle] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y - _parent.z;
if (0 < eval (_parent.stats).hp) {
_parent.swapDepths((int(_parent.y) * 10) + _parent.depthoffset);
}
if ((_parent.timer < 100) && (_parent._parent.queue.queuesize == 0)) {
_parent.timer = (_parent.timer + 1) + (eval (_parent.stats).spd / 20);
}
if (100 < _parent.timer) {
_parent.timer = 100;
}
if ((_parent.timer == 100) && (_parent.acting == 0)) {
_parent.acting = 1;
_root.stage.menuqueue.queuepush(_parent.number);
}
}
Symbol 123 MovieClip [hmbattle] Frame 120
gotoAndPlay (1);
Symbol 123 MovieClip [hmbattle] Frame 123
gotoAndPlay (121);
Symbol 123 MovieClip [hmbattle] Frame 134
stop();
Symbol 123 MovieClip [hmbattle] Frame 149
randx = eval (targ).x;
randy = eval (targ).y;
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("impact1", randx, randy);
}
Symbol 123 MovieClip [hmbattle] Frame 156
gotoAndPlay (1);
Instance of Symbol 49 MovieClip in Symbol 123 MovieClip [hmbattle] Frame 207
onClipEvent (enterFrame) {
_parent._parent.AddParticle("hmsmoke", _parent._x + this._x, _parent._y + this._y);
}
Symbol 123 MovieClip [hmbattle] Frame 223
stop();
Symbol 123 MovieClip [hmbattle] Frame 239
gotoAndPlay (1);
Symbol 123 MovieClip [hmbattle] Frame 257
gotoAndPlay (1);
Symbol 123 MovieClip [hmbattle] Frame 268
gotoAndPlay (258);
Symbol 123 MovieClip [hmbattle] Frame 280
gotoAndPlay (1);
Symbol 123 MovieClip [hmbattle] Frame 363
_parent.attachMovie("fadetowhite", "fadetowhite", 15002);
Symbol 123 MovieClip [hmbattle] Frame 414
stop();
stopAllSounds();
_root.gotoAndPlay("dead");
Symbol 123 MovieClip [hmbattle] Frame 447
_parent.attachMovie("shiningfinger", "shiningfinger", 5000);
_parent.shiningfinger.attacker = this;
Symbol 123 MovieClip [hmbattle] Frame 486
gotoAndPlay (1);
Instance of Symbol 127 MovieClip "bottom" in Symbol 182 MovieClip [turnip] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y - _parent.z;
_parent.swapDepths((int(_parent.y) * 10) + _parent.depthoffset);
if (0 < _parent.hp) {
if (((_parent.timer < 100) && (_parent._parent.queue.queuesize == 0)) && (_parent._parent.targeton == 0)) {
_parent.timer = (_parent.timer + 1) + (eval (_parent.stats).spd / 20);
}
if (100 < _parent.timer) {
_parent.timer = 100;
}
if ((_parent.timer == 100) && (_parent.acting == 0)) {
_parent.acting = 1;
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "begin", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "dash", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "attack", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "moveback", "null");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "reset", "null");
}
}
}
Symbol 182 MovieClip [turnip] Frame 40
gotoAndPlay (1);
Symbol 182 MovieClip [turnip] Frame 58
gotoAndPlay (50);
Symbol 182 MovieClip [turnip] Frame 63
randx = eval (targ).x;
randy = eval (targ).y;
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("bloodspray", randx, randy);
}
Symbol 182 MovieClip [turnip] Frame 90
gotoAndPlay (1);
Symbol 182 MovieClip [turnip] Frame 107
gotoAndPlay (1);
Symbol 182 MovieClip [turnip] Frame 147
gotoAndPlay (1);
Symbol 182 MovieClip [turnip] Frame 165
gotoAndPlay (1);
Symbol 182 MovieClip [turnip] Frame 186
stop();
Instance of Symbol 185 MovieClip "bottom" in Symbol 242 MovieClip [bird] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y - _parent.z;
_parent.swapDepths((int(_parent.y) * 10) + _parent.depthoffset);
if (0 < _parent.hp) {
if (((_parent.timer < 100) && (_parent._parent.queue.queuesize == 0)) && (_parent._parent.targeton == 0)) {
_parent.timer = (_parent.timer + 1) + (eval (_parent.stats).spd / 20);
}
if (100 < _parent.timer) {
_parent.timer = 100;
}
if ((_parent.timer == 100) && (_parent.acting == 0)) {
_parent.acting = 1;
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "begin", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "move", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "attack", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "moveback", "null");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "reset", "null");
}
}
}
Symbol 242 MovieClip [bird] Frame 13
gotoAndPlay (1);
Symbol 242 MovieClip [bird] Frame 45
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 48
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 51
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 54
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 56
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 59
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 61
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 63
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 65
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 68
randx = (eval (targ).x + (Math.random() * eval (targ)._width)) - (eval (targ)._width / 2);
randy = (eval (targ).y + (Math.random() * eval (targ)._height)) - (eval (targ)._height / 2);
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("sparks1", randx, randy);
}
Symbol 242 MovieClip [bird] Frame 100
gotoAndPlay (8);
Symbol 242 MovieClip [bird] Frame 120
gotoAndPlay (1);
Symbol 242 MovieClip [bird] Frame 140
gotoAndPlay (1);
Symbol 242 MovieClip [bird] Frame 205
stop();
Instance of Symbol 244 MovieClip "bottom" in Symbol 279 MovieClip [frog] Frame 1
onClipEvent (load) {
patternpart = 1;
}
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y - _parent.z;
_parent.swapDepths((int(_parent.y) * 10) + _parent.depthoffset);
if (0 < _parent.hp) {
if (((_parent.timer < 100) && (_parent._parent.queue.queuesize == 0)) && (_parent._parent.targeton == 0)) {
_parent.timer = (_parent.timer + 1) + (eval (_parent.stats).spd / 20);
}
if (100 < _parent.timer) {
_parent.timer = 100;
}
if ((_parent.timer == 100) && (_parent.acting == 0)) {
_parent.acting = 1;
if (patternpart == 1) {
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "begin", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "jump", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "attack", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "jumpback", "null");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "reset", "null");
}
if (patternpart == 2) {
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "begin", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "magic", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "rain", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "reset", "null");
}
if (patternpart == eval (_parent.stats).patternsize) {
patternpart = 1;
} else {
patternpart = patternpart + 1;
}
}
}
}
Symbol 279 MovieClip [frog] Frame 40
gotoAndPlay (1);
Symbol 279 MovieClip [frog] Frame 53
stop();
Symbol 279 MovieClip [frog] Frame 71
randx = eval (targ).x;
randy = eval (targ).y;
if (_parent.Damage(this, targ, "physical", randx, randy)) {
_parent.AddParticle("impact1", randx, randy);
}
Symbol 279 MovieClip [frog] Frame 95
gotoAndPlay (1);
Symbol 279 MovieClip [frog] Frame 135
gotoAndPlay (1);
Symbol 279 MovieClip [frog] Frame 152
gotoAndPlay (1);
Symbol 279 MovieClip [frog] Frame 190
gotoAndPlay (1);
Symbol 279 MovieClip [frog] Frame 237
stop();
Symbol 299 MovieClip Frame 1
herono = 1;
Instance of Symbol 298 MovieClip "calc" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
hero = eval ("_root.herostats.party.char" + _parent.herono);
_parent.heroname = eval (hero).name;
hplag = eval (hero).hp / eval (hero).maxhp;
hptext = (eval (hero).hp + "/") + eval (hero).maxhp;
_parent.hptext = hptext;
_parent.lifebar._width = 90 * hpp;
_parent.lifebar._x = 16.7 + ((90 * hpp) / 2);
}
onClipEvent (enterFrame) {
if (eval (hero).hp < 0) {
eval (hero).hp = 0;
}
hptext = (eval (hero).hp + "/") + eval (hero).maxhp;
hpp = eval (hero).hp / eval (hero).maxhp;
tp = eval ("_parent._parent.hero" + _parent.herono).timer / 100;
lp = eval (eval ("_parent._parent.hero" + _parent.herono).stats).limit / 300;
if (hpp < hplag) {
if ((hplag - hpp) < 1) {
hplag = hpp;
} else {
hplag = hplag - 1;
}
} else if (hplag < hpp) {
if ((hpp - hplag) < 1) {
hplag = hpp;
} else {
hplag = hplag + 1;
}
}
_parent.hptext = hptext;
_parent.lifebar._width = 90 * hpp;
_parent.lifebar._x = 16.7 + ((90 * hpp) / 2);
_parent.timebar._width = 140 * tp;
_parent.timebar._x = ((140 * tp) / 2) - 123.7;
_parent.limitbar._width = 230.3 * lp;
_parent.limitbar._x = ((230.3 * lp) / 2) - 123.7;
}
Symbol 307 Button
on (release) {
_parent.targeting.reset();
}
Symbol 309 MovieClip [battlestage] Frame 1
function AddParticle(name, x, y) {
particleno = particleno + 1;
if (particleno == particlemax) {
particleno = 0;
}
this.attachMovie(name, "particle" + particleno, 2000 + particleno);
eval ("particle" + particleno)._x = x;
eval ("particle" + particleno)._y = y;
eval ("particle" + particleno).x = x;
eval ("particle" + particleno).y = y;
return(eval ("particle" + particleno));
}
function AddDamage(dam, x, y) {
this.attachMovie("damagedisplay", "damage" + damageno, 2500 + damageno);
eval ("damage" + damageno).x = x;
eval ("damage" + damageno).y = y;
eval ("damage" + damageno).damage = dam;
damageno = damageno + 1;
if (damageno == damagemax) {
damageno = 0;
}
if (0 < dam) {
if (30 < totodamage._currentframe) {
totodamage.removeMovieClip();
}
if (!totodamage) {
this.attachMovie("totaldamage", "totodamage", 2500 + damagemax);
totodamage.x = 0;
totodamage.y = -40;
totodamage.damage = dam;
} else {
totodamage.damage = totodamage.damage + dam;
totodamage.gotoAndPlay(1);
}
}
}
function Damage(attacker, target, type, x, y, multiplier) {
if (0 >= multiplier) {
multiplier = 100;
}
if (type == "physical") {
basedamage = eval (eval (attacker + ".stats")).atk - (eval (eval (target + ".stats")).def / 2);
if (0 < eval (eval (target + ".stats")).dog) {
baseacc = (eval (eval (attacker + ".stats")).aim * 4) / eval (eval (target + ".stats")).dog;
perfect = 0;
} else {
baseacc = 1;
perfect = 100;
}
}
hitrand = (Math.random() * 100) - 50;
if (type == "critical") {
basedamage = eval (eval (attacker + ".stats")).atk - (eval (eval (target + ".stats")).def / 2);
baseacc = 1;
perfect = 100;
hitrand = (Math.random() * 10) + 40;
}
if (baseacc < 1) {
baseacc = 1;
}
if (hitrand < 0) {
totaldamage = Math.round(basedamage - ((hitrand * hitrand) * (basedamage / 5000)));
} else {
totaldamage = Math.round(basedamage + ((hitrand * hitrand) * (basedamage / 5000)));
}
if (0 >= totaldamage) {
totaldamage = 1;
}
totaldamage = totaldamage * (multiplier / 100);
if (((100 - (100 / baseacc)) + perfect) < (Math.abs(hitrand) * 2)) {
missed = true;
} else {
missed = false;
}
if (eval (eval (target + ".stats")).class == "enemy") {
if (missed == false) {
eval (target).hp = eval (target).hp - totaldamage;
if (0 < eval (target).hp) {
if (hitrand < 40) {
eval (target).gotoAndPlay("hit");
} else {
eval (target).gotoAndPlay("hitcritical");
}
} else if (!eval (target).dead) {
eval (target).gotoAndPlay("die");
}
AddDamage(totaldamage, x, y);
} else if (!eval (target).dead) {
eval (target).gotoAndPlay("dodge");
AddDamage(-1, x, y);
}
} else if (missed == false) {
eval (eval (target + ".stats")).hp = eval (eval (target + ".stats")).hp - totaldamage;
eval (eval (target + ".stats")).limit = eval (eval (target + ".stats")).limit + (5 * totaldamage);
if (300 < eval (eval (target + ".stats")).limit) {
eval (eval (target + ".stats")).limit = 300;
}
if (0 < eval (eval (target + ".stats")).hp) {
if (hitrand < 40) {
eval (target).gotoAndPlay("hit");
} else {
eval (target).gotoAndPlay("hitcritical");
}
} else if (!eval (target).dead) {
_root.music.stop();
this.attachMovie("fadetoblack", "fadetoblack", 14999);
hero1.swapDepths(15000);
totodamage.swapDepths(15001);
n = 1;
while (eval (("_root.formations.form" + formno) + ".enemcount") >= n) {
eval ("enemy" + n).stop();
n++;
}
queue.ceased = true;
menuqueue.ceased = true;
commandmenu.removeMovieClip();
targeting = 0;
n = 0;
while (n < 10) {
eval ("reticle" + n).removeMovieClip();
n++;
}
eval (target).gotoAndPlay("die");
}
AddDamage(totaldamage, x, y);
} else if (!eval (target).dead) {
eval (target).gotoAndPlay("dodge");
AddDamage(-1, x, y);
}
if (missed) {
return(false);
}
return(true);
}
n = 1;
while (n < 6) {
eval ("enemy" + n).removeMovieClip();
n++;
}
n = 0;
while (n < 10) {
eval ("reticle" + n).removeMovieClip();
n++;
}
formno = _root.bform;
bg.gotoAndStop(eval (("_root.formations.form" + formno) + ".background"));
this.attachMovie("fadefromwhite", "fadefromwhite", 15005);
queue.ceased = false;
menuqueue.ceased = false;
particleno = 0;
particlemax = 100;
damageno = 0;
damagemax = 50;
targeton = 0;
targeted = 9;
targetzone = 1;
menuisup = false;
hero1stats = _root.herostats.party.char1;
this.attachMovie(eval (hero1stats).obj, "hero1", 203);
hero1.stats = hero1stats;
hero1.timer = eval (hero1.stats).spd;
hero1.acting = 0;
hero1.number = 1;
hero1.stationx = 170;
hero1.stationy = 15;
hero1.x = 170;
hero1.y = 15;
hero1.depthoffset = 53;
this.attachMovie("reticle", "reticle0", 2600);
reticle0.target = hero1;
reticle0._visible = false;
n = 1;
while (eval (("_root.formations.form" + formno) + ".enemcount") >= n) {
enemystats = "_root.bestiary." + eval ((("_root.formations.form" + formno) + ".enem") + n);
this.attachMovie(eval (enemystats).obj, "enemy" + n, (eval (((("_root.formations.form" + formno) + ".enem") + n) + "y") * 10) + 59);
eval ("enemy" + n).stats = enemystats;
eval ("enemy" + n).hp = eval (enemystats).hp;
eval ("enemy" + n).maxhp = eval (enemystats).maxhp;
eval ("enemy" + n).mp = eval (enemystats).mp;
eval ("enemy" + n).maxmp = eval (enemystats).maxmp;
eval ("enemy" + n).timer = eval (enemystats).spd;
eval ("enemy" + n).number = n;
eval ("enemy" + n).acting = 0;
eval ("enemy" + n).stationx = eval (((("_root.formations.form" + formno) + ".enem") + n) + "x");
eval ("enemy" + n).stationy = eval (((("_root.formations.form" + formno) + ".enem") + n) + "y");
eval ("enemy" + n).x = eval ("enemy" + n).stationx;
eval ("enemy" + n).y = eval ("enemy" + n).stationy;
eval ("enemy" + n).depthoffset = 60 - n;
this.attachMovie("reticle", "reticle" + (n + 3), 2603 + n);
eval ("reticle" + (n + 3)).target = eval ("enemy" + n);
eval ("reticle" + (n + 3))._visible = false;
n++;
}
Instance of Symbol 300 MovieClip "queue" in Symbol 309 MovieClip [battlestage] Frame 1
onClipEvent (load) {
function queuepush(actor, action, target) {
queuesize = queuesize + 1;
Set("event" + queuesize, new Array(actor, action, target));
}
function queuepop() {
n = 2;
while (queuesize >= n) {
eval ("event" + (n - 1))[0] = eval ("event" + n)[0];
eval ("event" + (n - 1))[1] = eval ("event" + n)[1];
eval ("event" + (n - 1))[2] = eval ("event" + n)[2];
n++;
}
delete eval ("event" + queuesize);
queuesize = queuesize - 1;
process = 0;
}
queuesize = 0;
process = 0;
ceased = false;
running = false;
}
onClipEvent (enterFrame) {
if ((0 < queuesize) && (ceased == false)) {
if (running == true) {
running = false;
_parent.hero1.gotoAndPlay("idle");
_parent.hero1._xscale = 100;
}
if (0 < process) {
if ((event1[1] == "begin") && (_parent.targeton == 0)) {
queuepop();
}
if (event1[1] == "move") {
if (process == 1) {
startpointx = eval (event1[0]).x;
startpointy = eval (event1[0]).y;
if (eval (event1[0]).x < eval (event1[2]).x) {
endpointx = eval (event1[2]).x - (eval (event1[0])._width / 2);
} else {
endpointx = (eval (event1[2]).x + (eval (event1[2])._width / 2)) + (eval (event1[0])._width / 2);
}
endpointy = (eval (event1[2]).y + eval (event1[2]).bottom._y) - eval (event1[0]).bottom._y;
dist = Math.sqrt(((endpointx - startpointx) * (endpointx - startpointx)) + ((endpointy - startpointy) * (endpointy - startpointy)));
velx = (endpointx - startpointx) / (dist / 10);
vely = (endpointy - startpointy) / (dist / 10);
timer = 0;
process = 2;
if (event1[0] == event1[2]) {
queuepop();
process = 0;
}
}
if (process == 2) {
eval (event1[0]).x = startpointx + (timer * velx);
eval (event1[0]).y = startpointy + (timer * vely);
timer = timer + 1;
if (((((endpointx - Math.abs(velx)) < eval (event1[0]).x) && (eval (event1[0]).x < (endpointx + Math.abs(velx)))) && ((endpointy - Math.abs(vely)) < eval (event1[0]).y)) && (eval (event1[0]).y < (endpointy + Math.abs(vely)))) {
eval (event1[0]).x = endpointx;
eval (event1[0]).y = endpointy;
queuepop();
process = 0;
}
}
}
if (event1[1] == "dash") {
if (process == 1) {
eval (event1[0]).gotoAndPlay("dash");
startpointx = eval (event1[0]).x;
startpointy = eval (event1[0]).y;
if (eval (event1[0]).x < eval (event1[2]).x) {
endpointx = eval (event1[2]).x - (eval (event1[0])._width / 2);
} else {
endpointx = (eval (event1[2]).x + (eval (event1[2])._width / 2)) + (eval (event1[0])._width / 2);
}
endpointy = (eval (event1[2]).y + eval (event1[2]).bottom._y) - eval (event1[0]).bottom._y;
dist = Math.sqrt(((endpointx - startpointx) * (endpointx - startpointx)) + ((endpointy - startpointy) * (endpointy - startpointy)));
velx = (endpointx - startpointx) / (dist / 10);
vely = (endpointy - startpointy) / (dist / 10);
timer = 0;
process = 2;
if (event1[0] == event1[2]) {
eval (event1[0]).gotoAndPlay("idle");
queuepop();
process = 0;
}
}
if (process == 2) {
eval (event1[0]).x = startpointx + (timer * velx);
eval (event1[0]).y = startpointy + (timer * vely);
timer = timer + 1;
if (((((endpointx - Math.abs(velx)) < eval (event1[0]).x) && (eval (event1[0]).x < (endpointx + Math.abs(velx)))) && ((endpointy - Math.abs(vely)) < eval (event1[0]).y)) && (eval (event1[0]).y < (endpointy + Math.abs(vely)))) {
eval (event1[0]).x = endpointx;
eval (event1[0]).y = endpointy;
queuepop();
process = 0;
}
}
}
if (event1[1] == "jump") {
if (process == 1) {
eval (event1[0]).gotoAndPlay("jump");
startpointx = eval (event1[0]).x;
startpointy = eval (event1[0]).y;
if (eval (event1[0]).x < eval (event1[2]).x) {
endpointx = eval (event1[2]).x - eval (event1[0])._width;
} else {
endpointx = (eval (event1[2]).x + (eval (event1[2])._width / 2)) + (eval (event1[0])._width / 2);
}
endpointy = (eval (event1[2]).y + eval (event1[2]).bottom._y) - eval (event1[0]).bottom._y;
dist = Math.sqrt(((endpointx - startpointx) * (endpointx - startpointx)) + ((endpointy - startpointy) * (endpointy - startpointy)));
velx = (endpointx - startpointx) / (dist / 10);
vely = (endpointy - startpointy) / (dist / 10);
timer = 0;
process = 2;
if (event1[0] == event1[2]) {
queuepop();
process = 0;
}
}
if ((process == 2) && (eval (event1[0]).endpoint)) {
process = 3;
}
if (process == 3) {
eval (event1[0]).x = startpointx + (timer * velx);
eval (event1[0]).y = startpointy + (timer * vely);
eval (event1[0]).z = (-((timer - (dist / 20)) * (timer - (dist / 20)))) + ((dist / 20) * (dist / 20));
timer = timer + 1;
if (((((endpointx - Math.abs(velx)) < eval (event1[0]).x) && (eval (event1[0]).x < (endpointx + Math.abs(velx)))) && ((endpointy - Math.abs(vely)) < eval (event1[0]).y)) && (eval (event1[0]).y < (endpointy + Math.abs(vely)))) {
eval (event1[0]).x = endpointx;
eval (event1[0]).y = endpointy;
eval (event1[0]).z = 0;
queuepop();
process = 0;
}
}
}
if (event1[1] == "jumpfront") {
if (process == 1) {
eval (event1[0]).gotoAndPlay("jump");
startpointx = eval (event1[0]).x;
startpointy = eval (event1[0]).y;
endpointx = 120;
endpointy = 82 - eval (event1[0]).bottom._y;
dist = Math.sqrt(((endpointx - startpointx) * (endpointx - startpointx)) + ((endpointy - startpointy) * (endpointy - startpointy)));
velx = (endpointx - startpointx) / (dist / 10);
vely = (endpointy - startpointy) / (dist / 10);
timer = 0;
process = 2;
if (event1[0] == event1[2]) {
eval (event1[0]).gotoAndPlay("idle");
queuepop();
process = 0;
}
}
if ((process == 2) && (eval (event1[0]).endpoint)) {
process = 3;
}
if (process == 3) {
eval (event1[0]).x = startpointx + (timer * velx);
eval (event1[0]).y = startpointy + (timer * vely);
eval (event1[0]).z = (-((timer - (dist / 20)) * (timer - (dist / 20)))) + ((dist / 20) * (dist / 20));
timer = timer + 1;
if (((((endpointx - Math.abs(velx)) < eval (event1[0]).x) && (eval (event1[0]).x < (endpointx + Math.abs(velx)))) && ((endpointy - Math.abs(vely)) < eval (event1[0]).y)) && (eval (event1[0]).y < (endpointy + Math.abs(vely)))) {
eval (event1[0]).gotoAndPlay("idle");
eval (event1[0]).x = endpointx;
eval (event1[0]).y = endpointy;
eval (event1[0]).z = 0;
queuepop();
process = 0;
}
}
}
if (event1[1] == "moveback") {
if (process == 1) {
startpointx = eval (event1[0]).x;
startpointy = eval (event1[0]).y;
endpointx = eval (event1[0]).stationx;
endpointy = eval (event1[0]).stationy;
dist = Math.sqrt(((endpointx - startpointx) * (endpointx - startpointx)) + ((endpointy - startpointy) * (endpointy - startpointy)));
velx = (endpointx - startpointx) / (dist / 10);
vely = (endpointy - startpointy) / (dist / 10);
timer = 0;
process = 2;
if (event1[0] == event1[2]) {
queuepop();
process = 0;
}
}
if (process == 2) {
eval (event1[0]).x = startpointx + (timer * velx);
eval (event1[0]).y = startpointy + (timer * vely);
timer = timer + 1;
if (((((endpointx - Math.abs(velx)) < eval (event1[0]).x) && (eval (event1[0]).x < (endpointx + Math.abs(velx)))) && ((endpointy - Math.abs(vely)) < eval (event1[0]).y)) && (eval (event1[0]).y < (endpointy + Math.abs(vely)))) {
eval (event1[0]).x = endpointx;
eval (event1[0]).y = endpointy;
queuepop();
process = 0;
}
}
}
if (event1[1] == "jumpback") {
if (process == 1) {
eval (event1[0]).gotoAndPlay("jump");
startpointx = eval (event1[0]).x;
startpointy = eval (event1[0]).y;
endpointx = eval (event1[0]).stationx;
endpointy = eval (event1[0]).stationy;
dist = Math.sqrt(((endpointx - startpointx) * (endpointx - startpointx)) + ((endpointy - startpointy) * (endpointy - startpointy)));
velx = (endpointx - startpointx) / (dist / 10);
vely = (endpointy - startpointy) / (dist / 10);
timer = 0;
process = 2;
if (event1[0] == event1[2]) {
eval (event1[0]).gotoAndPlay("idle");
queuepop();
process = 0;
}
}
if ((process == 2) && (eval (event1[0]).endpoint)) {
process = 3;
}
if (process == 3) {
eval (event1[0]).x = startpointx + (timer * velx);
eval (event1[0]).y = startpointy + (timer * vely);
eval (event1[0]).z = (-((timer - (dist / 20)) * (timer - (dist / 20)))) + ((dist / 20) * (dist / 20));
timer = timer + 1;
if (((((endpointx - Math.abs(velx)) < eval (event1[0]).x) && (eval (event1[0]).x < (endpointx + Math.abs(velx)))) && ((endpointy - Math.abs(vely)) < eval (event1[0]).y)) && (eval (event1[0]).y < (endpointy + Math.abs(vely)))) {
eval (event1[0]).gotoAndPlay("idle");
eval (event1[0]).x = endpointx;
eval (event1[0]).y = endpointy;
eval (event1[0]).z = 0;
queuepop();
process = 0;
}
}
}
if (event1[1] == "attack") {
if (process == 1) {
eval (event1[0]).targ = event1[2];
eval (event1[0]).gotoAndPlay("attack");
process = 2;
}
if (process == 2) {
if (eval (event1[0]).endpoint) {
queuepop();
process = 0;
}
}
}
if (event1[1] == "magic") {
if (process == 1) {
eval (event1[0]).targ = event1[2];
eval (event1[0]).gotoAndPlay("magic");
process = 2;
}
if (process == 2) {
if (eval (event1[0]).endpoint) {
queuepop();
process = 0;
listenformagic = true;
}
}
}
if (event1[1] == "limit") {
if (process == 1) {
eval (event1[0]).targ = event1[2];
eval (event1[0]).gotoAndPlay("limit");
process = 2;
}
if (process == 2) {
if (eval (event1[0]).endpoint) {
queuepop();
process = 0;
}
}
}
if (listenformagic) {
if (process == 1) {
particle = _parent.AddParticle(event1[1], eval (event1[2]).x, eval (event1[2]).y);
eval (particle).attacker = event1[0];
eval (particle).targ = event1[2];
process = 2;
}
if (process == 2) {
if (!eval (particle)) {
queuepop();
process = 0;
listenformagic = false;
}
}
}
if (event1[1] == "limitsign") {
if (process == 1) {
eval (eval (event1[0] + ".stats")).limit = 0;
_parent.attachMovie("limitbar", "limitbar", 5000);
process = 2;
}
if (process == 2) {
if (!_parent.limitbar) {
queuepop();
process = 0;
}
}
}
if (event1[1] == "reset") {
eval (event1[0]).timer = 0;
eval (event1[0]).acting = 0;
queuepop();
process = 0;
}
} else if (eval (event1[0]).dead) {
queuepop();
} else {
process = 1;
}
} else if (ceased == false) {
if (Key.isDown(Key.SHIFT) && (_parent.targeton == 0)) {
if (running == false) {
running = true;
_parent.hero1.gotoAndPlay("dash");
_parent.hero1._xscale = -100;
}
if (5 < _parent.hero1.timer) {
_parent.hero1.timer = _parent.hero1.timer - 5;
}
if (int(Math.random() * 50) == 1) {
ceased = true;
_parent.attachMovie("fadetoblack", "fadetoblack", 15555);
}
} else if (running == true) {
running = false;
_parent.hero1.gotoAndPlay("idle");
_parent.hero1._xscale = 100;
}
clean = true;
money = 0;
exp = 0;
n = 1;
while (_parent.targeting.maxenems >= n) {
money = money + eval (eval ("_parent.enemy" + n).stats).money;
exp = exp + eval (eval ("_parent.enemy" + n).stats).exp;
if (!eval ("_parent.enemy" + n).dead) {
clean = false;
}
n++;
}
if (clean) {
ceased = true;
_parent.menuqueue.ceased = true;
_parent.targeting = 0;
_parent.hero1.gotoAndPlay("victory");
_parent.commandmenu.removeMovieClip();
_parent.attachMovie("victory", "victory", 15555);
_parent.victory.money = money;
_parent.victory.exp = exp;
}
}
if (ceased && (running)) {
_parent.hero1.x = _parent.hero1.x + 5;
if (260 < _parent.hero1.x) {
_parent.enemy1.removeMovieClip();
_parent.enemy2.removeMovieClip();
_parent.enemy3.removeMovieClip();
_parent.enemy4.removeMovieClip();
_parent.enemy5.removeMovieClip();
_parent.enemy6.removeMovieClip();
_parent.hero1.removeMovieClip();
_parent.removeMovieClip();
_root.gotoAndStop("world");
}
}
}
Instance of Symbol 301 MovieClip "menuqueue" in Symbol 309 MovieClip [battlestage] Frame 1
onClipEvent (load) {
function queuepush(actor) {
queuesize = queuesize + 1;
Set("event" + queuesize, actor);
}
function queuepop() {
n = 2;
while (queuesize >= n) {
Set("event" + (n - 1), eval ("event" + n));
n++;
}
delete eval ("event" + queuesize);
queuesize = queuesize - 1;
}
queuesize = 0;
process = 0;
ceased = false;
}
onClipEvent (enterFrame) {
if ((0 < queuesize) && (ceased == false)) {
if (0 < process) {
if (process == 1) {
_parent.attachMovie("commandmenu", "commandmenu", 2611);
_parent.commandmenu.player = event1;
menuisup = true;
process = 2;
}
if ((process == 2) && (menuisup == false)) {
eval (event1).acting = 0;
process = 0;
queuepop();
}
} else {
process = 1;
}
}
if (_parent.targeton == 2) {
commandno = eval ((((eval (eval (_parent.herocommander) + ".stats") + ".submenu") + _parent.herocommandset) + "a") + _parent.herocommand).length;
n = 0;
while (n < commandno) {
_parent.queue.queuepush(_parent.herocommander, eval ((((eval (eval (_parent.herocommander) + ".stats") + ".submenu") + _parent.herocommandset) + "a") + _parent.herocommand)[n], _parent.chosentarget);
n++;
}
delete _parent.herocommand;
delete _parent.herocommandset;
delete _parent.herocommander;
delete _parent.chosentarget;
_parent.targeton = 0;
menuisup = false;
}
}
Instance of Symbol 302 MovieClip "targeting" in Symbol 309 MovieClip [battlestage] Frame 1
onClipEvent (load) {
function reset() {
_parent.targeton = 0;
_parent.menuqueue.process = 1;
revis();
}
function revis() {
if ((_parent.targetzone == 1) || (_parent.targetzone == 2)) {
n = 0;
while (n < 10) {
if (((((2 - _parent.targetzone) * 4) + _parent.targeted) - 1) == n) {
eval ("_parent.reticle" + n)._visible = true;
} else {
eval ("_parent.reticle" + n)._visible = false;
}
n++;
}
}
}
n = 1;
while (4 >= n) {
if (eval ("_parent.hero" + n)) {
maxheroes = maxheroes + 1;
}
n++;
}
maxenems = eval (("_root.formations.form" + _parent.formno) + ".enemcount");
yorder = new Array(maxenems);
n = 1;
while (maxenems >= n) {
yorder[n - 1] = 10 - n;
n++;
}
n = 1;
while (n < maxenems) {
m = n + 1;
while (maxenems >= m) {
if (eval ("_parent.enemy" + m).y < eval ("_parent.enemy" + n).y) {
temp = yorder[n - 1];
yorder[m - 1] = temp;
yorder[n - 1] = yorder[m - 1];
}
m++;
}
n++;
}
clear = 1;
}
onClipEvent (keyDown) {
}
onClipEvent (enterFrame) {
if (_parent.targeton == 1) {
if (_root.keys.right == 1) {
if (_parent.targetzone == 1) {
highest = _parent.targeted;
lower = _parent.targeted;
n = 1;
while (maxenems >= n) {
if (eval ("_parent.enemy" + n) && (!eval ("_parent.enemy" + n).dead)) {
if (eval ("_parent.enemy" + n).x < eval ("_parent.enemy" + highest).x) {
highest = n;
}
if (lower == _parent.targeted) {
if (eval ("_parent.enemy" + _parent.targeted).x < eval ("_parent.enemy" + n).x) {
lower = n;
}
} else if ((eval ("_parent.enemy" + n).x < eval ("_parent.enemy" + lower).x) && (eval ("_parent.enemy" + _parent.targeted).x < eval ("_parent.enemy" + n).x)) {
lower = n;
}
}
n++;
}
if (lower == _parent.targeted) {
_parent.targetzone = 2;
_parent.targeted = 1;
} else {
_parent.targeted = lower;
}
} else if (_parent.targetzone == 2) {
if (_parent.targeted < maxheroes) {
_parent.targeted = _parent.targeted + 1;
} else {
_parent.targeted = 1;
}
}
revis();
}
if (_root.keys.left == 1) {
if (_parent.targetzone == 1) {
higher = _parent.targeted;
lowest = _parent.targeted;
n = 1;
while (maxenems >= n) {
if (eval ("_parent.enemy" + n) && (!eval ("_parent.enemy" + n).dead)) {
if (eval ("_parent.enemy" + lowest).x < eval ("_parent.enemy" + n).x) {
lowest = n;
}
if (higher == _parent.targeted) {
if (eval ("_parent.enemy" + n).x < eval ("_parent.enemy" + _parent.targeted).x) {
higher = n;
}
} else if ((eval ("_parent.enemy" + higher).x < eval ("_parent.enemy" + n).x) && (eval ("_parent.enemy" + n).x < eval ("_parent.enemy" + _parent.targeted).x)) {
higher = n;
}
}
n++;
}
if (higher == _parent.targeted) {
} else {
_parent.targeted = higher;
}
} else if (_parent.targetzone == 2) {
if (1 < _parent.targeted) {
_parent.targeted = _parent.targeted - 1;
} else {
_parent.targetzone = 1;
_parent.targeted = 1;
settg = 0;
n = 1;
while (maxenems >= n) {
if (eval ("_parent.enemy" + _parent.targeted).dead) {
_parent.targeted = n;
}
if ((eval ("_parent.enemy" + n).x >= eval ("_parent.enemy" + _parent.targeted).x) && (!eval ("_parent.enemy" + n).dead)) {
_parent.targeted = n;
settg = 1;
} else if ((n == maxenems) && (settg == 0)) {
_parent.targetzone = 2;
_parent.targeted = 1;
}
n++;
}
}
}
revis();
}
if (_root.keys.down == 1) {
if (_parent.targetzone == 1) {
highest = _parent.targeted;
lower = _parent.targeted;
n = 1;
while (maxenems >= n) {
if (eval ("_parent.enemy" + n) && (!eval ("_parent.enemy" + n).dead)) {
if (eval ("_parent.enemy" + n).y < eval ("_parent.enemy" + highest).y) {
highest = n;
}
if (lower == _parent.targeted) {
if (eval ("_parent.enemy" + _parent.targeted).y < eval ("_parent.enemy" + n).y) {
lower = n;
}
} else if ((eval ("_parent.enemy" + n).y < eval ("_parent.enemy" + lower).y) && (eval ("_parent.enemy" + _parent.targeted).y < eval ("_parent.enemy" + n).y)) {
lower = n;
}
}
n++;
}
if (lower == _parent.targeted) {
_parent.targeted = highest;
} else {
_parent.targeted = lower;
}
} else if (_parent.targetzone == 2) {
if (_parent.targeted < maxheroes) {
_parent.targeted = _parent.targeted + 1;
} else {
_parent.targeted = 1;
}
}
revis();
}
if (_root.keys.up == 1) {
if (_parent.targetzone == 1) {
higher = _parent.targeted;
lowest = _parent.targeted;
n = 1;
while (maxenems >= n) {
if (eval ("_parent.enemy" + n) && (!eval ("_parent.enemy" + n).dead)) {
if (eval ("_parent.enemy" + lowest).y < eval ("_parent.enemy" + n).y) {
lowest = n;
}
if (higher == _parent.targeted) {
if (eval ("_parent.enemy" + n).y < eval ("_parent.enemy" + _parent.targeted).y) {
higher = n;
}
} else if ((eval ("_parent.enemy" + higher).y < eval ("_parent.enemy" + n).y) && (eval ("_parent.enemy" + n).y < eval ("_parent.enemy" + _parent.targeted).y)) {
higher = n;
}
}
n++;
}
if (higher == _parent.targeted) {
_parent.targeted = lowest;
} else {
_parent.targeted = higher;
}
} else if (_parent.targetzone == 2) {
if (1 < _parent.targeted) {
_parent.targeted = _parent.targeted - 1;
} else {
_parent.targeted = maxheroes;
}
}
revis();
}
if (Key.isDown(Key.SHIFT)) {
trace((((_parent.targeted + " ") + eval (eval ("_parent.enemy" + _parent.targeted).stats).name) + " ") + this);
reset();
}
}
if (_root.keys.pressed("select")) {
_parent.chosentarget = eval ("_parent.reticle" + ((((2 - _parent.targetzone) * 4) + _parent.targeted) - 1)).target;
_parent.targeton = 2;
}
if ((clear == 1) && (_parent.targeton != 1)) {
n = 1;
while (10 >= n) {
eval ("_parent.reticle" + (n - 1))._visible = false;
n++;
}
}
if (_parent.targeton == 1) {
clear = 1;
n = 1;
while (10 >= n) {
if (4 >= n) {
if (eval ("_parent.hero" + n).hitTest(_root._xmouse, _root._ymouse, false)) {
_parent.targetzone = 2;
_parent.targeted = n;
revis();
break;
}
} else if (eval ("_parent.enemy" + (n - 4)).hitTest(_root._xmouse, _root._ymouse, false) && (0 < eval ("_parent.enemy" + (n - 4)).hp)) {
_parent.targetzone = 1;
_parent.targeted = n - 4;
revis();
break;
}
n++;
}
_parent.cancel._visible = true;
} else {
_parent.cancel._visible = false;
clear = 0;
}
}
onClipEvent (unload) {
eval ("_parent.reticle" + (n - 1))._visible = true;
eval ("_parent.reticle" + (14 - n))._visible = true;
}
Symbol 314 MovieClip [herostats] Frame 1
n = 5;
Instance of Symbol 311 MovieClip "hero1" in Symbol 314 MovieClip [herostats] Frame 1
onClipEvent (load) {
name = "HOUSEMASTER!!!";
obj = "hmbattle";
class = "hero";
level = 0;
exp = 0;
hp = 100;
maxhp = 100;
mp = 20;
maxmp = 20;
limit = 0;
atk = 30;
aim = 20;
def = 20;
dog = 20;
mag = 20;
wil = 20;
spd = 20;
hpo = 100;
maxhpo = 100;
mpo = 20;
maxmpo = 20;
atko = 30;
aimo = 20;
defo = 20;
dogo = 20;
mago = 20;
wilo = 20;
spdo = 20;
hpm = 500;
maxhpm = 500;
mpm = 100;
maxmpm = 100;
atkm = 50;
aimm = 40;
defm = 40;
dogm = 40;
magm = 40;
wilm = 40;
spdm = 40;
menu1 = "ATACK";
submenu1size = 1;
submenu1n1 = "ATACK";
submenu1a1 = new Array("dash", "attack", "jumpback", "reset");
submenu1t1 = "single";
menu2 = "LYTNING";
submenu2size = "1";
submenu2n1 = "LYTNING";
submenu2a1 = new Array("magic", "lightning", "reset");
submenu2t1 = "single";
menu5 = "SMGRPO";
submenu5size = "1";
submenu5n1 = "SMGRPO";
submenu5a1 = new Array("jumpfront", "limitsign", "limit", "jumpback", "reset");
submenu5t1 = "all";
}
Instance of Symbol 312 MovieClip "party" in Symbol 314 MovieClip [herostats] Frame 1
onClipEvent (load) {
char1 = "_root.herostats.hero1";
money = 0;
mapno = 0;
mapx = 12;
mapy = 48;
}
Instance of Symbol 313 MovieClip "expchart" in Symbol 314 MovieClip [herostats] Frame 1
onClipEvent (load) {
function getlevel(prevlevel, exp) {
lev = prevlevel;
while (lev < 100) {
if (exp < explevel[lev]) {
break;
}
lev++;
}
return(lev - 1);
}
explevel = new Array(100);
explevel[0] = 0;
explevel[1] = 30;
tnl = 30;
totl = 30;
n = 2;
while (99 >= n) {
tnl = (tnl * 1.2) + 5;
totl = totl + int(tnl);
explevel[n] = totl;
n++;
}
}
Instance of Symbol 315 MovieClip "bird" in Symbol 319 MovieClip [bestiary] Frame 1
onClipEvent (load) {
name = "Bird";
obj = "bird";
class = "enemy";
money = 10;
exp = 11;
hp = 30;
maxhp = 30;
mp = 20;
maxmp = 20;
atk = 10;
aim = 10;
def = 10;
dog = 0;
mag = 10;
wil = 10;
spd = 19;
patternsize = 1;
pattern = new Array(patternsize);
pattern[0] = "attack";
}
Instance of Symbol 316 MovieClip "turnip" in Symbol 319 MovieClip [bestiary] Frame 1
onClipEvent (load) {
name = "Turnip";
obj = "turnip";
class = "enemy";
money = 10;
exp = 15;
hp = 50;
maxhp = 50;
mp = 10;
maxmp = 10;
atk = 15;
aim = 10;
def = 10;
dog = 10;
mag = 10;
wil = 10;
spd = 19;
patternsize = 1;
pattern = new Array(patternsize);
pattern[0] = "attack";
}
Instance of Symbol 317 MovieClip "frog" in Symbol 319 MovieClip [bestiary] Frame 1
onClipEvent (load) {
name = "Frog";
obj = "frog";
class = "enemy";
money = 10;
exp = 19;
hp = 40;
maxhp = 40;
mp = 10;
maxmp = 10;
atk = 10;
aim = 10;
def = 0;
dog = 0;
mag = 10;
wil = 10;
spd = 19;
patternsize = 2;
pattern = new Array(patternsize);
pattern[0] = "attack";
}
Instance of Symbol 318 MovieClip "evilkitty" in Symbol 319 MovieClip [bestiary] Frame 1
onClipEvent (load) {
name = "EIVL KITTY!!!";
obj = "evilkitty";
class = "enemy";
money = 32767;
exp = 32767;
hp = 500;
maxhp = 500;
mp = 0;
maxmp = 0;
atk = 3;
aim = 10;
def = 9;
dog = 0;
mag = 3;
wil = 0;
spd = 20;
patternsize = 3;
pattern = new Array(patternsize);
pattern[0] = "attack";
}
Instance of Symbol 320 MovieClip "form1" in Symbol 324 MovieClip [formations] Frame 1
onClipEvent (load) {
background = 1;
music = 3;
enemcount = 2;
enem1 = "frog";
enem1x = -120;
enem1y = 5;
enem2 = "bird";
enem2x = 0;
enem2y = 50;
}
Instance of Symbol 321 MovieClip "form2" in Symbol 324 MovieClip [formations] Frame 1
onClipEvent (load) {
background = 1;
music = 3;
enemcount = 3;
enem1 = "bird";
enem1x = -120;
enem1y = 50;
enem2 = "frog";
enem2x = -60;
enem2y = 10;
enem3 = "frog";
enem3x = 10;
enem3y = 90;
}
Instance of Symbol 322 MovieClip "form3" in Symbol 324 MovieClip [formations] Frame 1
onClipEvent (load) {
background = 1;
music = 5;
enemcount = 4;
enem1 = "turnip";
enem1x = -60;
enem1y = 50;
enem2 = "bird";
enem2x = -110;
enem2y = 5;
enem3 = "frog";
enem3x = -100;
enem3y = 100;
enem4 = "turnip";
enem4x = 20;
enem4y = 10;
}
Instance of Symbol 323 MovieClip "form4" in Symbol 324 MovieClip [formations] Frame 1
onClipEvent (load) {
background = 2;
music = 6;
enemcount = 1;
enem1 = "evilkitty";
enem1x = -70;
enem1y = 21.9;
}
Instance of Symbol 330 MovieClip in Symbol 333 MovieClip [sparks1] Frame 1
onClipEvent (load) {
_parent._x = _parent.x;
_parent._y = _parent.y;
}
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y;
}
Symbol 333 MovieClip [sparks1] Frame 15
this.removeMovieClip();
Symbol 345 MovieClip Frame 1
this._x = x;
this._y = y;
Instance of Symbol 335 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y;
}
Instance of Symbol 348 MovieClip in Symbol 349 MovieClip [totaldamage] Frame 1
onClipEvent (load) {
function reset() {
if (9999 < _parent.damage) {
_parent.damage = 9999;
}
_parent.onedigit.gotoAndStop((_parent.damage % 10) + 1);
_parent.tendigit.gotoAndStop((((_parent.damage % 100) - (_parent.damage % 10)) / 10) + 1);
_parent.hundigit.gotoAndStop((((_parent.damage % 1000) - (_parent.damage % 100)) / 100) + 1);
_parent.thoudigit.gotoAndStop((((_parent.damage % 10000) - (_parent.damage % 1000)) / 1000) + 1);
_parent.onedigit.x = 15;
_parent.tendigit.x = 5;
_parent.hundigit.x = -5;
_parent.thoudigit.x = -15;
_parent.onedigit._visible = true;
_parent.tendigit._visible = true;
_parent.hundigit._visible = true;
_parent.thoudigit._visible = true;
if (_parent.damage < 1000) {
_parent.thoudigit._visible = false;
_parent.onedigit.x = _parent.onedigit.x - 5;
_parent.tendigit.x = _parent.tendigit.x - 5;
_parent.hundigit.x = _parent.hundigit.x - 5;
if (_parent.damage < 100) {
_parent.hundigit._visible = false;
_parent.onedigit.x = _parent.onedigit.x - 5;
_parent.tendigit.x = _parent.tendigit.x - 5;
if (_parent.damage < 10) {
_parent.tendigit._visible = false;
_parent.onedigit.x = _parent.onedigit.x - 5;
if (_parent.damage < 0) {
_parent.onedigit._visible = false;
}
}
}
}
_parent.onedigit._x = _parent.onedigit.x;
_parent.tendigit._x = _parent.tendigit.x;
_parent.hundigit._x = _parent.hundigit.x;
_parent.thoudigit._x = _parent.thoudigit.x;
_parent.total._alpha = 100;
}
reset();
_parent._x = _parent.x;
_parent._y = _parent.y;
_parent._xscale = 150;
_parent._yscale = 150;
}
onClipEvent (enterFrame) {
if (2 >= _parent._currentframe) {
reset();
}
if ((30 < _parent._currentframe) && (_parent._currentframe < 45)) {
_parent.total._alpha = 100 - ((_parent._currentframe - 30) * 6.66666666666667);
}
if (45 < _parent._currentframe) {
_parent._xscale = 150 + ((_parent._currentframe - 45) * 15);
_parent._yscale = 150 + ((_parent._currentframe - 45) * 15);
_parent._alpha = 100 - ((_parent._currentframe - 45) * 6.66666666666667);
_parent._rotation = (_parent._currentframe - 45) * 5;
_parent.total._alpha = 0;
} else {
_parent._xscale = 150;
_parent._yscale = 150;
}
_parent._x = _parent.x;
_parent._y = _parent.y;
}
Symbol 349 MovieClip [totaldamage] Frame 60
this.removeMovieClip();
Instance of Symbol 330 MovieClip in Symbol 351 MovieClip Frame 1
onClipEvent (load) {
_parent._x = _parent.x;
_parent._y = _parent.y;
}
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y;
}
Instance of Symbol 352 MovieClip in Symbol 353 MovieClip [damagedisplay] Frame 1
onClipEvent (load) {
if (9999 < _parent.damage) {
_parent.damage = 9999;
}
_parent.onedigit.gotoAndStop((_parent.damage % 10) + 1);
_parent.tendigit.gotoAndStop((((_parent.damage % 100) - (_parent.damage % 10)) / 10) + 1);
_parent.hundigit.gotoAndStop((((_parent.damage % 1000) - (_parent.damage % 100)) / 100) + 1);
_parent.thoudigit.gotoAndStop((((_parent.damage % 10000) - (_parent.damage % 1000)) / 1000) + 1);
_parent.onedigit.x = 15;
_parent.tendigit.x = 5;
_parent.hundigit.x = -5;
_parent.thoudigit.x = -15;
_parent.miss.x = 0;
_parent.miss._visible = false;
if (_parent.damage < 1000) {
_parent.thoudigit._visible = false;
_parent.onedigit.x = _parent.onedigit.x - 5;
_parent.tendigit.x = _parent.tendigit.x - 5;
_parent.hundigit.x = _parent.hundigit.x - 5;
if (_parent.damage < 100) {
_parent.hundigit._visible = false;
_parent.onedigit.x = _parent.onedigit.x - 5;
_parent.tendigit.x = _parent.tendigit.x - 5;
if (_parent.damage < 10) {
_parent.tendigit._visible = false;
_parent.onedigit.x = _parent.onedigit.x - 5;
if (_parent.damage < 0) {
_parent.onedigit._visible = false;
_parent.miss._visible = true;
}
}
}
}
_parent.onedigit._alpha = 6.66666666666667;
_parent.tendigit._alpha = 0;
_parent.hundigit._alpha = 0;
_parent.thoudigit._alpha = 0;
_parent.miss._alpha = 6.66666666666667;
_parent._x = _parent.x;
_parent._y = _parent.y;
}
onClipEvent (enterFrame) {
if (15 >= _parent._currentframe) {
_parent.onedigit._alpha = _parent._currentframe * 6.66666666666667;
_parent.onedigit.y = (((_parent._currentframe - 7.5) * (_parent._currentframe - 7.5)) - 56.25) * 0.177777777777778;
_parent.miss._alpha = _parent._currentframe * 6.66666666666667;
_parent.miss.y = (((_parent._currentframe - 7.5) * (_parent._currentframe - 7.5)) - 56.25) * 0.177777777777778;
}
if ((16 >= _parent._currentframe) && (1 < _parent._currentframe)) {
_parent.tendigit._alpha = (_parent._currentframe - 1) * 6.66666666666667;
_parent.tendigit.y = (((_parent._currentframe - 8.5) * (_parent._currentframe - 8.5)) - 56.25) * 0.177777777777778;
}
if ((17 >= _parent._currentframe) && (2 < _parent._currentframe)) {
_parent.hundigit._alpha = (_parent._currentframe - 2) * 6.66666666666667;
_parent.hundigit.y = (((_parent._currentframe - 9.5) * (_parent._currentframe - 9.5)) - 56.25) * 0.177777777777778;
}
if ((18 >= _parent._currentframe) && (3 < _parent._currentframe)) {
_parent.thoudigit._alpha = (_parent._currentframe - 3) * 6.66666666666667;
_parent.thoudigit.y = (((_parent._currentframe - 10.5) * (_parent._currentframe - 10.5)) - 56.25) * 0.177777777777778;
}
if (45 < _parent._currentframe) {
_parent._xscale = 100 - ((_parent._currentframe - 45) * 5);
_parent._yscale = 100 - ((_parent._currentframe - 45) * 5);
_parent._alpha = 100 - ((_parent._currentframe - 45) * 6.66666666666667);
_parent._rotation = (_parent._currentframe - 45) * 5;
}
_parent._x = _parent.x;
_parent._y = _parent.y;
}
Symbol 353 MovieClip [damagedisplay] Frame 60
this.removeMovieClip();
Instance of Symbol 356 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent._y = -49.8 + (_parent._parent.selection * 20);
}
Symbol 362 Button
on (rollOver) {
_parent.selection = number;
}
on (release) {
_parent.select(number);
}
Symbol 367 Button
on (release) {
if (_parent.limiton == false) {
_parent.limiton = true;
_parent.command1.command = eval (_parent.hero).menu5;
} else if (_parent.limiton == true) {
_parent.limiton = false;
_parent.command1.command = eval (_parent.hero).menu1;
}
}
Symbol 375 MovieClip [commandmenu] Frame 1
function select(m) {
if (limiton == true) {
m = 5;
}
if (eval (("hero.submenu" + m) + "size") == 1) {
_parent.herocommandset = m;
_parent.herocommand = 1;
_parent.herocommander = eval ("_parent.hero" + player);
_parent.targeton = 1;
_parent.targeted = 1;
_parent.targetzone = 1;
settg = 0;
if (eval (("hero.submenu" + m) + "t1") == "single") {
n = 1;
while (_parent.targeting.maxenems >= n) {
if (eval ("_parent.enemy" + _parent.targeted).dead) {
_parent.targeted = n;
}
if ((eval ("_parent.enemy" + n).x >= eval ("_parent.enemy" + _parent.targeted).x) && (!eval ("_parent.enemy" + n).dead)) {
_parent.targeted = n;
settg = 1;
} else if ((n == _parent.targeting.maxenems) && (settg == 0)) {
_parent.targetzone = 2;
_parent.targeted = 1;
}
n++;
}
}
if (eval (("hero.submenu" + m) + "t1") == "all") {
_parent.targeton = 2;
_parent.targeted = 1;
_parent.targetzone = 0;
}
_parent.targeting.revis();
this.removeMovieClip();
}
}
this._x = 140;
this._y = -100;
selection = 1;
limiton = false;
hero = eval (eval (("_parent.hero" + player) + ".stats"));
heroname = eval (hero).name;
if (eval (hero).limit == 300) {
limitarrow._visible = true;
} else {
limitarrow._visible = false;
}
command1.number = 1;
command2.number = 2;
command3.number = 3;
command4.number = 4;
command1.command = eval (hero).menu1;
command2.command = eval (hero).menu2;
command3.command = eval (hero).menu3;
command4.command = eval (hero).menu4;
if (0 < command2.command.length) {
command2._visible = true;
} else {
command2._visible = false;
}
if (0 < command3.command.length) {
command3._visible = true;
} else {
command3._visible = false;
}
if (0 < command4.command.length) {
command4._visible = true;
} else {
command4._visible = false;
}
Instance of Symbol 374 MovieClip in Symbol 375 MovieClip [commandmenu] Frame 1
onClipEvent (keyDown) {
if (Key.isDown(Key.DOWN)) {
_parent.selection = _parent.selection + 1;
if ((_parent.selection == 2) && (_parent.command2._visible == false)) {
_parent.selection = 3;
}
if ((_parent.selection == 3) && (_parent.command3._visible == false)) {
_parent.selection = 4;
}
if ((_parent.selection == 4) && (_parent.command4._visible == false)) {
_parent.selection = 1;
}
if (_parent.selection == 5) {
_parent.selection = 1;
}
}
if (Key.isDown(Key.UP)) {
_parent.selection = _parent.selection - 1;
if (_parent.selection == 0) {
_parent.selection = 4;
}
if ((_parent.selection == 4) && (_parent.command4._visible == false)) {
_parent.selection = 3;
}
if ((_parent.selection == 3) && (_parent.command3._visible == false)) {
_parent.selection = 2;
}
if ((_parent.selection == 2) && (_parent.command2._visible == false)) {
_parent.selection = 1;
}
}
if (((Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) && (eval (_parent.hero).limit == 300)) && (_parent.selection == 1)) {
if (_parent.limiton == false) {
_parent.limiton = true;
_parent.command1.command = eval (_parent.hero).menu5;
} else if (_parent.limiton == true) {
_parent.limiton = false;
_parent.command1.command = eval (_parent.hero).menu1;
}
}
}
onClipEvent (enterFrame) {
if (_root.keys.pressed("select")) {
_parent.select(_parent.selection);
}
if (eval (_parent.hero).limit == 300) {
_parent.limitarrow._visible = true;
} else {
_parent.limitarrow._visible = false;
}
}
Symbol 381 Button
on (release) {
_parent.chosentarget = target;
_parent.targeton = 2;
}
Symbol 383 MovieClip [reticle] Frame 1
this._x = target.x;
this._y = target.y;
name = eval (target.stats).name;
Instance of Symbol 379 MovieClip in Symbol 383 MovieClip [reticle] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent.target.x;
_parent._y = _parent.target.y;
}
Symbol 387 MovieClip [impact1] Frame 1
n = 1;
while (10 >= n) {
this.attachMovie("spark1", "spark" + n, n);
eval ("spark" + n)._rotation = Math.random() * 360;
n++;
}
Instance of Symbol 330 MovieClip in Symbol 387 MovieClip [impact1] Frame 1
onClipEvent (load) {
_parent._x = _parent.x;
_parent._y = _parent.y;
}
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y;
}
Symbol 387 MovieClip [impact1] Frame 16
this.removeMovieClip();
Symbol 390 MovieClip [spark1] Frame 7
this.removeMovieClip();
Symbol 398 MovieClip [lightning] Frame 1
_parent.AddParticle("flash1", 0, 0);
Instance of Symbol 396 MovieClip in Symbol 398 MovieClip [lightning] Frame 3
onClipEvent (enterFrame) {
randx = ((Math.random() * eval (_parent.targ)._width) - (eval (_parent.targ)._width / 2)) + eval (_parent.targ).center._x;
randy = ((Math.random() * eval (_parent.targ)._height) - (eval (_parent.targ)._height / 2)) + eval (_parent.targ).center._y;
_parent.attachMovie("lightningwisp", "lwisp" + _parent._currentframe, _parent._currentframe);
eval ("_parent.lwisp" + _parent._currentframe)._x = randx;
eval ("_parent.lwisp" + _parent._currentframe)._y = randy;
eval ("_parent.lwisp" + _parent._currentframe)._rotation = Math.random() * 360;
eval ("_parent.lwisp" + _parent._currentframe)._xscale = Math.random() * 100;
eval ("_parent.lwisp" + _parent._currentframe)._yscale = Math.random() * 100;
if ((_parent._currentframe % 3) == 0) {
randx = ((Math.random() * eval (_parent.targ)._width) - (eval (_parent.targ)._width / 2)) + eval (_parent.targ).center._x;
randy = ((Math.random() * eval (_parent.targ)._height) - (eval (_parent.targ)._height / 2)) + eval (_parent.targ).center._y;
_parent.attachMovie("lightningspark", "lspark" + _parent._currentframe, 30 + _parent._currentframe);
eval ("_parent.lspark" + _parent._currentframe)._x = randx;
eval ("_parent.lspark" + _parent._currentframe)._y = randy;
_parent._parent.Damage(_parent.attacker, _parent.targ, "physical", eval (_parent.targ).x + randx, eval (_parent.targ).y + randy);
}
}
Symbol 398 MovieClip [lightning] Frame 45
this.removeMovieClip();
Symbol 401 MovieClip [lightningwisp] Frame 10
this.removeMovieClip();
Symbol 407 MovieClip [lightningspark] Frame 1
needle1._rotation = Math.random() * 360;
needle2._rotation = Math.random() * 360;
needle3._rotation = Math.random() * 360;
Symbol 407 MovieClip [lightningspark] Frame 5
this.removeMovieClip();
Symbol 411 MovieClip [hmsmoke] Frame 1
rot = Math.random() * 360;
vrot = (Math.random() * 90) - 45;
vx = ((Math.random() * 10) - 10) / 2;
vy = ((Math.random() * 10) - 10) / 4;
_x = x;
_y = y;
_rotation = rot;
Instance of Symbol 409 MovieClip in Symbol 411 MovieClip [hmsmoke] Frame 1
onClipEvent (enterFrame) {
_parent.x = _parent.x + _parent.vx;
_parent.y = _parent.y + _parent.vy;
_parent.rot = _parent.rot + _parent.vrot;
_parent._x = _parent.x;
_parent._y = _parent.y;
_parent._rotation = _parent.rot;
}
Symbol 411 MovieClip [hmsmoke] Frame 11
this.removeMovieClip();
Symbol 421 MovieClip [shiningfinger] Frame 4
enemon = new Array(7);
n = 0;
while (6 >= n) {
if (eval ("_parent.enemy" + n) && (!eval ("_parent.enemy" + n).dead)) {
enemon[n] = true;
} else {
enemon[n] = false;
}
n++;
}
n = 0;
while (6 >= n) {
if (enemon[n]) {
fire = _parent.AddParticle("shiningfire", eval ("_parent.enemy" + n).x + eval ("_parent.enemy" + n).center._x, eval ("_parent.enemy" + n).y);
eval (fire)._height = eval ("_parent.enemy" + n)._height;
}
n++;
}
Instance of Symbol 417 MovieClip in Symbol 421 MovieClip [shiningfinger] Frame 10
onClipEvent (enterFrame) {
n = 0;
while (6 >= n) {
if (int(Math.random() * 5) == 2) {
if (_parent.enemon[n]) {
_parent._parent.AddParticle("shiningblast", ((eval ("_parent._parent.enemy" + n).x + eval ("_parent._parent.enemy" + n).center._x) + (Math.random() * 10)) - 5, (eval ("_parent._parent.enemy" + n).y + (Math.random() * 10)) - 5);
}
}
n++;
}
}
Symbol 421 MovieClip [shiningfinger] Frame 30
n = 0;
while (6 >= n) {
if (enemon[n]) {
fire = _parent.AddParticle("shiningfire", eval ("_parent.enemy" + n).x + eval ("_parent.enemy" + n).center._x, eval ("_parent.enemy" + n).y);
eval (fire)._height = eval ("_parent.enemy" + n)._height;
_parent.Damage(attacker, eval ("_parent.enemy" + n), "physical", eval ("_parent.enemy" + n).x + eval ("_parent.enemy" + n).center._x, eval ("_parent.enemy" + n).y, 500);
}
n++;
}
Symbol 421 MovieClip [shiningfinger] Frame 61
this.removeMovieClip();
Symbol 423 MovieClip [flash1] Frame 2
this.removeMovieClip();
Symbol 426 MovieClip [fadetoblack] Frame 20
stop();
Symbol 428 MovieClip [fadetowhite] Frame 16
stop();
Symbol 438 MovieClip [bloodspray] Frame 9
this.removeMovieClip();
Symbol 446 MovieClip [raindrop] Frame 8
_parent._parent.Damage(_parent.attacker, _parent.targ, "physical", eval (_parent.targ).x + this._x, eval (_parent.targ).y + this._y);
Symbol 446 MovieClip [raindrop] Frame 21
this.removeMovieClip();
Instance of Symbol 447 MovieClip in Symbol 448 MovieClip [rain] Frame 1
onClipEvent (enterFrame) {
if ((_parent._currentframe % 3) == 0) {
randx = (Math.random() * eval (_parent.targ)._width) - (eval (_parent.targ)._width / 2);
randy = (Math.random() * eval (_parent.targ)._height) - (eval (_parent.targ)._height / 2);
_parent.attachMovie("raindrop", "raindrop" + _parent._currentframe, 30 + _parent._currentframe);
eval ("_parent.raindrop" + _parent._currentframe)._x = randx;
eval ("_parent.raindrop" + _parent._currentframe)._y = randy;
}
}
Symbol 448 MovieClip [rain] Frame 51
this.removeMovieClip();
Symbol 459 MovieClip [limitbar] Frame 37
this.removeMovieClip();
Symbol 477 MovieClip [shiningfire] Frame 36
this.removeMovieClip();
Instance of Symbol 479 MovieClip in Symbol 481 MovieClip [shiningblast] Frame 1
onClipEvent (load) {
_parent._x = _parent.x;
_parent._y = _parent.y;
_parent.xvel = -5;
_parent.yvel = (Math.random() * 10) - 5;
}
onClipEvent (enterFrame) {
_parent.x = _parent.x + _parent.xvel;
_parent.y = _parent.y + _parent.yvel;
_parent._x = _parent.x;
_parent._y = _parent.y;
}
Symbol 481 MovieClip [shiningblast] Frame 8
this.removeMovieClip();
Instance of Symbol 483 MovieClip in Symbol 486 MovieClip [tile] Frame 1
onClipEvent (enterFrame) {
_parent.xoffset = _parent.scrx - 6;
_parent.yoffset = _parent.scry - 4;
tilex = _parent._parent.camx + _parent.xoffset;
tiley = _parent._parent.camy + _parent.yoffset;
_parent.gotoAndStop(_parent._parent.gettile(tilex, tiley));
_parent._x = ((_parent.scrx * 40) - _parent._parent.camox) - 225;
_parent._y = ((_parent.scry * 40) - _parent._parent.camoy) - 150;
}
Instance of Symbol 487 MovieClip "map0" in Symbol 488 MovieClip [maps] Frame 1
onClipEvent (load) {
name = "ARFENHOUSE!!1";
width = 25;
height = 50;
map = new Array(50);
map[0] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
map[1] = new Array(2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2);
n = 2;
while (48 >= n) {
map[n] = new Array(2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2);
n++;
}
map[49] = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
maxnpcs = 5;
npc = new Array(5);
npc[0] = new Array(1, 12, 47, 1, 1);
npc[1] = new Array(1, 12, 49, 1, 1);
npc[2] = new Array(1, 11, 48, 1, 1);
npc[3] = new Array(1, 13, 48, 1, 1);
npc[4] = new Array(2, 12, 2, 2, 0);
}
Symbol 492 MovieClip [npc] Frame 1
function activate() {
if (0 < text) {
_root.textbox.activate(text);
}
}
ox = 0;
oy = 0;
moving = "none";
Instance of Symbol 489 MovieClip in Symbol 492 MovieClip [npc] Frame 1
onClipEvent (enterFrame) {
if (_parent.moving == "up") {
_parent.oy = _parent.oy - 5;
}
if (_parent.moving == "down") {
_parent.oy = _parent.oy + 5;
}
if (_parent.moving == "left") {
_parent.ox = _parent.ox - 5;
}
if (_parent.moving == "right") {
_parent.ox = _parent.ox + 5;
}
if (_parent.ox < 0) {
_parent.x = _parent.x - 1;
_parent.ox = _parent.ox + 40;
}
if (_parent.ox >= 40) {
_parent.x = _parent.x + 1;
_parent.ox = _parent.ox - 40;
}
if (_parent.oy < 0) {
_parent.y = _parent.y - 1;
_parent.oy = _parent.oy + 40;
}
if (_parent.oy >= 40) {
_parent.y = _parent.y + 1;
_parent.oy = _parent.oy - 40;
}
if (((_parent.ox == 0) && (_parent.oy == 0)) && (_parent.moving != "none")) {
_parent.moving = "none";
}
_parent._x = ((((_parent.x * 40) + _parent.ox) - _parent._parent.camox) - (_parent._parent.camx * 40)) + 15;
_parent._y = ((((_parent.y * 40) + _parent.oy) - _parent._parent.camoy) - (_parent._parent.camy * 40)) + 10;
if ((245 < Math.abs(_parent._x)) || (170 < Math.abs(_parent._y))) {
_parent._visible = false;
} else {
_parent._visible = true;
}
if (_root.flag[_parent.killflag]) {
_parent.removeMovieClip();
}
}
Symbol 494 MovieClip [partyego] Frame 1
x = _root.herostats.party.mapx;
y = _root.herostats.party.mapy;
ox = 0;
oy = 0;
moving = "none";
Instance of Symbol 493 MovieClip in Symbol 494 MovieClip [partyego] Frame 1
onClipEvent (enterFrame) {
if (_parent.moving == "up") {
_parent.oy = _parent.oy - 5;
}
if (_parent.moving == "down") {
_parent.oy = _parent.oy + 5;
}
if (_parent.moving == "left") {
_parent.ox = _parent.ox - 5;
}
if (_parent.moving == "right") {
_parent.ox = _parent.ox + 5;
}
if (_parent.ox < 0) {
_parent.x = _parent.x - 1;
_parent.ox = _parent.ox + 40;
}
if (_parent.ox >= 40) {
_parent.x = _parent.x + 1;
_parent.ox = _parent.ox - 40;
}
if (_parent.oy < 0) {
_parent.y = _parent.y - 1;
_parent.oy = _parent.oy + 40;
}
if (_parent.oy >= 40) {
_parent.y = _parent.y + 1;
_parent.oy = _parent.oy - 40;
}
if (((_parent.ox == 0) && (_parent.oy == 0)) && (_parent.moving != "none")) {
_parent.moving = "none";
_root.herostats.party.mapx = _parent.x;
_root.herostats.party.mapy = _parent.y;
if (int(Math.random() * 10) == 1) {
_parent._parent.RandomBattle();
}
}
_parent._x = ((((_parent.x * 40) + _parent.ox) - _parent._parent.camox) - (_parent._parent.camx * 40)) + 15;
_parent._y = ((((_parent.y * 40) + _parent.oy) - _parent._parent.camoy) - (_parent._parent.camy * 40)) + 10;
if ((245 < Math.abs(_parent._x)) || (170 < Math.abs(_parent._y))) {
_parent._visible = false;
} else {
_parent._visible = true;
}
}
Symbol 497 MovieClip [fadefromblack] Frame 15
this.removeMovieClip();
Symbol 500 MovieClip [fadefromwhite] Frame 15
this.removeMovieClip();
Symbol 507 MovieClip Frame 20
expandcash = ((("RECIEVED " + _parent.exp) + " EXP AND $") + _parent.money) + "!";
stop();
Instance of Symbol 534 MovieClip in Symbol 535 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.oldlevel < _parent._parent._parent.newlevel) {
_parent._visible = true;
if (_parent._parent._parent.newlevel == (_parent._parent._parent.oldlevel + 1)) {
_parent.levelup = "LEVEL UP!";
} else {
_parent.levelup = ("LEVEL UP x" + (_parent._parent._parent.newlevel - _parent._parent._parent.oldlevel)) + "!";
}
} else {
_parent._visible = false;
}
}
Instance of Symbol 530 MovieClip in Symbol 536 MovieClip Frame 1
onClipEvent (load) {
hero = _parent.hero;
}
onClipEvent (enterFrame) {
_parent.name = eval (hero).name;
_parent.level = "LV " + eval (hero).level;
_parent.hpmp = (((((("HP " + eval (hero).hp) + "/") + eval (hero).maxhp) + " MP ") + eval (hero).mp) + "/") + eval (hero).maxmp;
_parent.exp = "EXP " + eval (hero).exp;
_parent.next = "NEXT " + (_root.herostats.expchart.explevel[eval (hero).level + 1] - eval (hero).exp);
_parent.atk = eval (hero).atk;
_parent.aim = eval (hero).aim;
_parent.def = eval (hero).def;
_parent.dog = eval (hero).dog;
_parent.mag = eval (hero).mag;
_parent.wil = eval (hero).wil;
_parent.spd = eval (hero).spd;
_parent.limit = int((eval (hero).limit / 300) * 100) + "%";
}
Symbol 540 MovieClip [victory] Frame 10
_root.playmusic(4);
Symbol 540 MovieClip [victory] Frame 40
herostats1.hero = eval (_parent.hero1.stats);
Instance of Symbol 537 MovieClip in Symbol 540 MovieClip [victory] Frame 70
onClipEvent (load) {
oldexp = eval (_parent._parent.hero1.stats).exp;
oldlevel = eval (_parent._parent.hero1.stats).level;
}
onClipEvent (enterFrame) {
eval (_parent._parent.hero1.stats).exp = oldexp + int(((_parent._currentframe - 70) / 30) * _parent.exp);
eval (_parent._parent.hero1.stats).level = _root.herostats.expchart.getlevel(oldlevel, eval (_parent._parent.hero1.stats).exp);
_parent.oldlevel = oldlevel;
_parent.newlevel = eval (_parent._parent.hero1.stats).level;
if (oldlevel != eval (_parent._parent.hero1.stats).level) {
eval (_parent._parent.hero1.stats).hp = int(eval (_parent._parent.hero1.stats).hpo + ((eval (_parent._parent.hero1.stats).hpm - eval (_parent._parent.hero1.stats).hpo) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).maxhp = int(eval (_parent._parent.hero1.stats).maxhpo + ((eval (_parent._parent.hero1.stats).maxhpm - eval (_parent._parent.hero1.stats).maxhpo) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).mp = int(eval (_parent._parent.hero1.stats).mpo + ((eval (_parent._parent.hero1.stats).mpm - eval (_parent._parent.hero1.stats).mpo) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).maxmp = int(eval (_parent._parent.hero1.stats).maxmpo + ((eval (_parent._parent.hero1.stats).maxmpm - eval (_parent._parent.hero1.stats).maxmpo) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).atk = int(eval (_parent._parent.hero1.stats).atko + ((eval (_parent._parent.hero1.stats).atkm - eval (_parent._parent.hero1.stats).atko) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).aim = int(eval (_parent._parent.hero1.stats).aimo + ((eval (_parent._parent.hero1.stats).aimm - eval (_parent._parent.hero1.stats).aimo) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).def = int(eval (_parent._parent.hero1.stats).defo + ((eval (_parent._parent.hero1.stats).defm - eval (_parent._parent.hero1.stats).defo) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).dog = int(eval (_parent._parent.hero1.stats).dogo + ((eval (_parent._parent.hero1.stats).dogm - eval (_parent._parent.hero1.stats).dogo) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).mag = int(eval (_parent._parent.hero1.stats).mago + ((eval (_parent._parent.hero1.stats).magm - eval (_parent._parent.hero1.stats).mago) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).wil = int(eval (_parent._parent.hero1.stats).wilo + ((eval (_parent._parent.hero1.stats).wilm - eval (_parent._parent.hero1.stats).wilo) * (eval (_parent._parent.hero1.stats).level / 100)));
eval (_parent._parent.hero1.stats).spd = int(eval (_parent._parent.hero1.stats).spdo + ((eval (_parent._parent.hero1.stats).spdm - eval (_parent._parent.hero1.stats).spdo) * (eval (_parent._parent.hero1.stats).level / 100)));
}
}
Symbol 540 MovieClip [victory] Frame 121
stop();
Instance of Symbol 538 MovieClip in Symbol 540 MovieClip [victory] Frame 121
onClipEvent (keyDown) {
_parent.play();
}
onClipEvent (mouseDown) {
_parent.play();
}
Symbol 540 MovieClip [victory] Frame 135
_parent.enemy1.removeMovieClip();
_parent.enemy2.removeMovieClip();
_parent.enemy3.removeMovieClip();
_parent.enemy4.removeMovieClip();
_parent.enemy5.removeMovieClip();
_parent.enemy6.removeMovieClip();
_parent.hero1.removeMovieClip();
_parent.removeMovieClip();
_root.gotoAndStop("world");
Instance of Symbol 545 MovieClip "bottom" in Symbol 581 MovieClip [evilkitty] Frame 1
onClipEvent (load) {
patternpart = 1;
}
onClipEvent (enterFrame) {
_parent._x = _parent.x;
_parent._y = _parent.y - _parent.z;
_parent.swapDepths((int(_parent.y) * 10) + _parent.depthoffset);
if (0 < _parent.hp) {
if (((_parent.timer < 100) && (_parent._parent.queue.queuesize == 0)) && (_parent._parent.targeton == 0)) {
_parent.timer = (_parent.timer + 1) + (eval (_parent.stats).spd / 20);
}
if (100 < _parent.timer) {
_parent.timer = 100;
}
if ((_parent.timer == 100) && (_parent.acting == 0)) {
_parent.acting = 1;
if (patternpart == 1) {
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "begin", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "dash", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "attack", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "moveback", "null");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "reset", "null");
}
if (patternpart == 2) {
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "begin", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "magic", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "null", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "reset", "null");
}
if (patternpart == 3) {
if (_parent.hp < 200) {
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "begin", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "limit", "_root.stage.hero1");
_root.stage.queue.queuepush("_root.stage.enemy" + _parent.number, "reset", "null");
} else {
patternpart = 0;
_parent.acting = 0;
}
}
if (patternpart == eval (_parent.stats).patternsize) {
patternpart = 1;
} else {
patternpart = patternpart + 1;
}
}
}
}
Symbol 581 MovieClip [evilkitty] Frame 70
gotoAndPlay (1);
Symbol 581 MovieClip [evilkitty] Frame 87
gotoAndPlay (71);
Symbol 581 MovieClip [evilkitty] Frame 88
c = 0;
Symbol 581 MovieClip [evilkitty] Frame 93
randx = eval (targ).x;
randy = eval (targ).y;
if (_parent.Damage(this, targ, "physical", randx, randy)) {
scr = _parent.AddParticle("catscratch", randx, randy);
eval (scr).sno = 1;
c = 1;
}
Symbol 581 MovieClip [evilkitty] Frame 101
randx = eval (targ).x;
randy = eval (targ).y;
if (_parent.Damage(this, targ, "physical", randx, randy)) {
scr = _parent.AddParticle("catscratch", randx, randy);
eval (scr).sno = 2;
c = 1;
}
Symbol 581 MovieClip [evilkitty] Frame 109
randx = eval (targ).x;
randy = eval (targ).y;
if (_parent.Damage(this, targ, "physical", randx, randy)) {
scr = _parent.AddParticle("catscratch", randx, randy);
eval (scr).sno = 3;
c = 1;
}
Symbol 581 MovieClip [evilkitty] Frame 117
randx = eval (targ).x;
randy = eval (targ).y;
if (_parent.Damage(this, targ, "physical", randx, randy)) {
scr = _parent.AddParticle("catscratch", randx, randy);
eval (scr).sno = 4;
c = 1;
}
Symbol 581 MovieClip [evilkitty] Frame 128
randx = eval (targ).x;
randy = eval (targ).y;
if (c == 1) {
_parent.AddParticle("bloodspray", randx, randy);
}
Symbol 581 MovieClip [evilkitty] Frame 130
gotoAndPlay (1);
Symbol 581 MovieClip [evilkitty] Frame 159
randx = eval (targ).x;
randy = eval (targ).y;
if (_parent.Damage(this, targ, "physical", randx, randy, 1000)) {
scr = _parent.AddParticle("impact1", randx, randy);
}
Symbol 581 MovieClip [evilkitty] Frame 170
gotoAndPlay (1);
Instance of Symbol 558 MovieClip in Symbol 581 MovieClip [evilkitty] Frame 190
onClipEvent (enterFrame) {
randx = (Math.random() * _parent._width) - (_parent._width / 2);
randy = (Math.random() * _parent._height) - (_parent._height / 2);
_parent.attachMovie("lightningwisp", "lwisp" + _parent._currentframe, _parent._currentframe);
eval ("_parent.lwisp" + _parent._currentframe)._x = randx;
eval ("_parent.lwisp" + _parent._currentframe)._y = randy;
eval ("_parent.lwisp" + _parent._currentframe)._rotation = Math.random() * 360;
eval ("_parent.lwisp" + _parent._currentframe)._xscale = Math.random() * 100;
eval ("_parent.lwisp" + _parent._currentframe)._yscale = Math.random() * 100;
}
Symbol 581 MovieClip [evilkitty] Frame 321
randx = eval (targ).x + eval (targ).bottom._x;
randy = eval (targ).y + eval (targ).bottom._y;
if (_parent.Damage(this, targ, "critical", randx, randy, 3000)) {
scr = _parent.AddParticle("bat", randx, randy);
}
Symbol 581 MovieClip [evilkitty] Frame 351
gotoAndPlay (1);
Symbol 581 MovieClip [evilkitty] Frame 365
gotoAndPlay (1);
Symbol 581 MovieClip [evilkitty] Frame 391
gotoAndPlay (1);
Symbol 581 MovieClip [evilkitty] Frame 415
gotoAndPlay (1);
Symbol 581 MovieClip [evilkitty] Frame 456
stop();
Symbol 586 MovieClip [catscratch] Frame 1
_rotation = (Math.random() * 360);
Symbol 586 MovieClip [catscratch] Frame 11
if (sno == 4) {
this.removeMovieClip();
}
Symbol 586 MovieClip [catscratch] Frame 19
if (sno == 3) {
this.removeMovieClip();
}
Symbol 586 MovieClip [catscratch] Frame 27
if (sno == 2) {
this.removeMovieClip();
}
Symbol 586 MovieClip [catscratch] Frame 35
if (sno == 1) {
this.removeMovieClip();
}
Symbol 590 MovieClip [bat] Frame 20
this.removeMovieClip();
Symbol 591 MovieClip [null] Frame 1
this.removeMovieClip();
Instance of Symbol 592 MovieClip in Symbol 593 MovieClip Frame 1
onClipEvent (load) {
n = 1;
while (10 >= n) {
_parent.attachMovie("star", "star" + n, n);
eval ("_parent.star" + n).gotoAndStop(random(3) + 1);
eval ("_parent.star" + n).xpos = random(400) - 200;
eval ("_parent.star" + n)._x = eval ("_parent.star" + n).xpos;
eval ("_parent.star" + n).ypos = random(300) - 150;
eval ("_parent.star" + n)._y = eval ("_parent.star" + n).ypos;
n++;
}
}
onClipEvent (enterFrame) {
if (random(10) == 1) {
n = n + 1;
_parent.attachMovie("star", "star" + n, n);
eval ("_parent.star" + n).gotoAndStop(random(3) + 1);
eval ("_parent.star" + n).xpos = 215;
eval ("_parent.star" + n)._x = eval ("_parent.star" + n).xpos;
eval ("_parent.star" + n).ypos = random(300) - 150;
eval ("_parent.star" + n)._y = eval ("_parent.star" + n).ypos;
if (n == 100) {
n = 1;
}
}
}
Symbol 606 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 300
stop();
Symbol 609 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 300
stop();
Symbol 619 Button
on (release) {
play();
}
Symbol 623 MovieClip Frame 20
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 902
stop();
Symbol 625 MovieClip Frame 1330
stop();
Symbol 625 MovieClip Frame 2136
stop();
Symbol 626 MovieClip Frame 1
stop();
vol = new Sound(this);
Symbol 626 MovieClip Frame 1128
gotoAndPlay (2);
Symbol 626 MovieClip Frame 1927
gotoAndPlay (1139);
Symbol 626 MovieClip Frame 2236
gotoAndPlay (1938);
Symbol 626 MovieClip Frame 3221
gotoAndPlay (2247);
Symbol 626 MovieClip Frame 4352
gotoAndPlay (3229);
Symbol 630 MovieClip Frame 1
function activate(n) {
textno = n;
textf = text[n];
_root.music.vol.setVolume(25);
_visible = true;
if (0 < textbits[n][3]) {
_root.dialogue.gotoAndPlay("dialogue" + n);
}
}
_visible = false;
text = new Array(4);
textbits = new Array(4);
text[1] = "THIS IS THE HOUSE THEY CALL ARFENHOUSE\rYOU AREE HOUSEMASTER WHO TAKES CARE OF\rTHE HOUSER AND KEEP IT PEACEFUL BUT ON\rE DAY BROKE IN AND TOOK OVER!!! LOL!!!\rSO YOU GOTTA STOP THE CAT BEFORE ITS \rTOO LATE! GOOOD LUUUUUCK!!!!!! LOL! \rGO NORTH!!! HURRY!!!!";
textbits[1] = new Array(0, 1, 0, 1);
text[2] = "EVIL KITTY: I BAT YOUU!!!!\r\rHOUSEMASTER: I DON'T THINK SO! YOU\rINVADED MY NOUSE! PREPARE TO DIE!\r\rEVIL KITTY: OH, BUT YOU FORGOT ABOUT \rTHE TIME YOU AN DYOUR FATHDR AT ZOO\rPNAD!!!!!!! LOL!!!1 NOW WE FIGHT!!!!!";
textbits[2] = new Array(3, 0, 4, 2);
text[3] = "EVIL KITTY: I\"LL GE TYOU NEST TIM!!!!\r\rTHE END!!!!! i WROTE TE BOS SMUSIC\rMYSELF TOO!!!!11 LOL! IF YOU WANT THE\rREJIJITSTERED VERSION, YOU HFATA SEND ME\r32 DOLLARS ADN DONT TAKE MY WIRK BECUS I\rKNOW WERE U LIVE ILL FUKKN KILL U CUZ\rIM FROM EAST SIIIDW YO! GIMME UR MONEY!!!!!";
textbits[3] = new Array(0, 0, 0, 3);
Instance of Symbol 629 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
suspend = 0;
}
onClipEvent (enterFrame) {
if (_parent._visible) {
if (_root.keys.pressed("select")) {
bit0 = _parent.textbits[_parent.textno][0];
bit1 = _parent.textbits[_parent.textno][1];
bit2 = _parent.textbits[_parent.textno][2];
if (0 < bit0) {
_parent.activate(bit0);
} else {
_root.dialogue.stop();
_root.music.vol.setVolume(100);
_parent._visible = false;
}
if (0 < bit1) {
_root.flag[bit1] = !_root.flag[bit1];
}
if (0 < bit2) {
_root.world.SetBattle(bit2);
if (0 < bit0) {
_root.dialogue.stop();
_root.music.vol.setVolume(100);
_parent._visible = false;
suspend = bit0;
}
}
}
}
if (0 < suspend) {
if (_root.world && (_root.world.swirling == false)) {
_parent.activate(suspend);
suspend = 0;
}
}
}
Symbol 633 MovieClip Frame 1
function gettile(x, y) {
return(eval (map).map[y][x]);
}
function RandomBattle() {
swirling = true;
rot = 0;
timer = 0;
_root.bform = random(3) + 1;
_root.swish.start();
_root.playmusic(eval ("_root.formations.form" + _root.bform).music);
}
function SetBattle(n) {
swirling = true;
rot = 0;
timer = 0;
_root.bform = n;
_root.swish.start();
_root.playmusic(eval ("_root.formations.form" + _root.bform).music);
}
function checkfornpcs(x, y) {
n = 0;
while (n < eval (map).maxnpcs) {
if ((eval ("npc" + n).x == x) && (eval ("npc" + n).y == y)) {
return(n);
}
n++;
}
return(-1);
}
_root.playmusic(2);
colorer = new Color(this);
colort = new Object();
colort = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
this.attachMovie("fadefromblack", "fadefromblack", 15005);
mapno = 0;
map = eval ("_root.maps.map" + mapno);
camx = 6;
camy = 4;
camox = 0;
camoy = 0;
swirling = false;
n = 0;
while (n < 13) {
m = 0;
while (m < 9) {
this.attachMovie("tile", ("tile" + (n * 9)) + m, (n * 9) + m);
eval (("tile" + (n * 9)) + m).scrx = n;
eval (("tile" + (n * 9)) + m).scry = m;
m++;
}
n++;
}
this.attachMovie("partyego", "partyego", 120);
n = 0;
while (n < eval (map).maxnpcs) {
this.attachMovie("npc", "npc" + n, 200 + n);
eval ("npc" + n).gotoAndStop(eval (map).npc[n][0]);
eval ("npc" + n).x = eval (map).npc[n][1];
eval ("npc" + n).y = eval (map).npc[n][2];
eval ("npc" + n).text = eval (map).npc[n][3];
eval ("npc" + n).killflag = eval (map).npc[n][4];
n++;
}
Instance of Symbol 632 MovieClip in Symbol 633 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.swirling == false) {
if ((_parent.partyego.moving == "none") && (!_root.textbox._visible)) {
if (Key.isDown(Key.UP)) {
if (2 < _parent.partyego.y) {
if (_parent.checkfornpcs(_parent.partyego.x, _parent.partyego.y - 1) < 0) {
_parent.partyego.moving = "up";
} else {
eval ("_parent.npc" + _parent.checkfornpcs(_parent.partyego.x, _parent.partyego.y - 1)).activate();
}
}
}
if (Key.isDown(Key.DOWN)) {
if (_parent.partyego.y < 48) {
if (_parent.checkfornpcs(_parent.partyego.x, _parent.partyego.y + 1) < 0) {
_parent.partyego.moving = "down";
} else {
eval ("_parent.npc" + _parent.checkfornpcs(_parent.partyego.x, _parent.partyego.y + 1)).activate();
}
}
}
if (Key.isDown(Key.LEFT)) {
if (1 < _parent.partyego.x) {
if (_parent.checkfornpcs(_parent.partyego.x - 1, _parent.partyego.y) < 0) {
_parent.partyego.moving = "left";
} else {
eval ("_parent.npc" + _parent.checkfornpcs(_parent.partyego.x - 1, _parent.partyego.y)).activate();
}
}
}
if (Key.isDown(Key.RIGHT)) {
if (_parent.partyego.x < 23) {
if (_parent.checkfornpcs(_parent.partyego.x + 1, _parent.partyego.y) < 0) {
_parent.partyego.moving = "right";
} else {
eval ("_parent.npc" + _parent.checkfornpcs(_parent.partyego.x + 1, _parent.partyego.y)).activate();
}
}
}
}
if (_parent.partyego.ox < 0) {
_parent.partyego.x = _parent.partyego.x - 1;
_parent.partyego.ox = _parent.partyego.ox + 40;
}
if (_parent.partyego.ox >= 40) {
_parent.partyego.x = _parent.partyego.x + 1;
_parent.partyego.ox = _parent.partyego.ox - 40;
}
if (_parent.partyego.oy < 0) {
_parent.partyego.y = _parent.partyego.y - 1;
_parent.partyego.oy = _parent.partyego.oy + 40;
}
if (_parent.partyego.oy >= 40) {
_parent.partyego.y = _parent.partyego.y + 1;
_parent.partyego.oy = _parent.partyego.oy - 40;
}
_parent.camx = _parent.partyego.x;
_parent.camy = _parent.partyego.y;
_parent.camox = _parent.partyego.ox + 20;
_parent.camoy = _parent.partyego.oy + 15;
if (_parent.camox < 0) {
_parent.camx = _parent.camx - 1;
_parent.camox = _parent.camox + 40;
}
if (_parent.camox >= 40) {
_parent.camx = _parent.camx + 1;
_parent.camox = _parent.camox - 40;
}
if (_parent.camoy < 0) {
_parent.camy = _parent.camy - 1;
_parent.camoy = _parent.camoy + 40;
}
if (_parent.camoy >= 40) {
_parent.camy = _parent.camy + 1;
_parent.camoy = _parent.camoy - 40;
}
if (_parent.camx < 6) {
_parent.camx = 6;
_parent.camox = 0;
}
if (_parent.camx >= (eval (_parent.map).width - 6)) {
_parent.camx = eval (_parent.map).width - 6;
_parent.camox = 0;
}
if (_parent.camy < 4) {
_parent.camy = 4;
_parent.camoy = 0;
}
if (_parent.camy >= (eval (_parent.map).height - 4)) {
_parent.camy = eval (_parent.map).height - 4;
_parent.camoy = 0;
}
} else {
_parent.timer = _parent.timer + 1;
_parent.rot = _parent.timer * _parent.timer;
_parent._rotation = _parent.rot;
_parent._xscale = 100 + (_parent.timer * 16.6666666666667);
_parent._yscale = 100 + (_parent.timer * 16.6666666666667);
_parent.colort.rb = _parent.timer * 8.5;
_parent.colort.gb = _parent.timer * 8.5;
_parent.colort.bb = _parent.timer * 8.5;
_parent.colorer.setTransform(_parent.colort);
if (_parent.timer == 30) {
_root.gotoAndStop("battle");
}
}
}
Symbol 638 MovieClip Frame 899
stop();