Frame 1
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root._visible = false;
}
}
urls_allowed = ["www.1manstudio.net", "www.newgrounds.com", "www.genesis.1manstudio.net", "1manstudio.net", "newgrounds.com", "uploads.newgrounds.com", "www.uploads.newgrounds.com", "genesis.1manstudio.net"];
stop();
var loaderCount = 0;
loader_mv.onEnterFrame = function () {
totalByte = _root.getBytesTotal();
loadedByte = _root.getBytesLoaded();
loaderCount = Math.round((loadedByte / totalByte) * 100);
if (loadedByte == totalByte) {
enter_btn._visible = true;
begin._visible = true;
loader_mv._visible = false;
} else {
begin._visible = false;
enter_btn._visible = false;
loader_mv._visible = true;
}
};
enter_btn.onRelease = function () {
gotoAndPlay ("2");
};
next_btn.onRelease = function () {
getURL ("http://www.1manstudio.net/genesis/");
};
Frame 2
stop();
new_game.onRelease = function () {
whitebox.gotoAndPlay(2);
};
fscommand ("DirectDraw.SetDisplayMode", "640, 480, 32");
fscommand ("Win.SetPosition", "0,0");
Frame 3
children_music = new Sound();
children_music.attachSound("children_music");
battle_music = new Sound();
battle_music.attachSound("battle_music");
small_sound = new Sound();
small_sound.attachSound("small_sound");
big_sound = new Sound();
big_sound.attachSound("big_sound");
children_music.start(0, 9999);
treeTimer = 0;
skip.onRelease = function () {
whitebox.gotoAndPlay(2);
};
tree.onEnterFrame = function () {
if (treeTimer == 50) {
dream.gotoAndPlay(2);
}
if (treeTimer == 200) {
escape.gotoAndPlay(2);
}
if (treeTimer == 350) {
but.gotoAndPlay(2);
}
if (treeTimer == 500) {
enternal.gotoAndPlay(2);
}
if (treeTimer == 650) {
welcome.gotoAndPlay(2);
}
if (treeTimer == 800) {
tree.gotoAndPlay(2);
}
if (treeTimer == 1100) {
whitebox.gotoAndPlay(2);
}
if (treeTimer > 1200) {
treeTimer = 1200;
} else {
treeTimer++;
}
};
Frame 4
children_music.stop();
_root._quality = "medium";
allow_control = false;
event_1_happened = false;
stop();
_root.onEnterFrame = function () {
if (((Key.isDown(39) && (Key.isDown(37) == false)) && (ground_mv._x >= -380)) && (allow_control == true)) {
fg._x = fg._x - 15;
waterfall_mc._x = waterfall_mc._x - 9;
water._x = water._x - 10;
ground_mv._x = ground_mv._x - 10;
priestess._x = priestess._x - 10;
event_1._x = event_1._x - 10;
bg._x = bg._x - 5;
nera._x = nera._x + 6;
if (nera._currentframe == 1) {
nera.gotoAndStop("run");
nera._xscale = -75;
}
} else if (((Key.isDown(37) && (Key.isDown(39) == false)) && (ground_mv._x <= 130.25)) && (allow_control == true)) {
fg._x = fg._x + 15;
waterfall_mc._x = waterfall_mc._x + 9;
water._x = water._x + 10;
ground_mv._x = ground_mv._x + 10;
priestess._x = priestess._x + 10;
event_1._x = event_1._x + 10;
bg._x = bg._x + 5;
nera._x = nera._x - 6;
nera.gotoAndStop("run");
nera._xscale = 75;
} else {
nera.gotoAndStop(1);
}
if (nera.hitTest(event_1) && (event_1_happened == false)) {
event_1_happened = true;
allow_control = false;
dialogue_mv._visible = true;
dialogue_mv.gotoAndStop(15);
priestess.gotoAndPlay(2);
}
};
Frame 9
_root._quality = "medium";
player_id = "nera";
enemy_id = "magician";
energy_orb = 4;
phrase = "Move";
want_tutorial = true;
tutorial2_seen = false;
tutorial3_seen = false;
nera_lvl = 1;
nera_live = true;
nera_status = "player";
nera_role = "ATTACKER";
nera_skill1_cost = 0;
nera_skill2_cost = 2;
nera_ele = "blue";
nera_against_fire = 0.5;
nera_against_ice = 0.75;
nera_against_lightening = 1.75;
nera_against_magic = 1;
nera_against_physical = 1;
nera_pow = 6;
nera_end = 3;
nera_agi = 14;
nera_mac = 4;
nera_mov = 3;
nera_type = "walker";
nera_maxHP = (15000 * (((nera_end * 1.5) + (nera_pow / 2)) / 100)) + (nera_lvl * 80);
nera_HP = nera_maxHP;
nera_def = nera_end * 15;
nera_mdef = nera_mac * 15;
nera_dodge = ((nera_agi * 20) + 80) + (nera_lvl * 4);
nera_accC_3 = false;
nera_accC_4 = false;
nera_accC_5 = false;
nera_accB_1 = false;
nera_accB_5 = false;
nera_accB_6 = false;
nera_accB_7 = false;
nera_accB_8 = false;
nera_accA_1 = false;
nera_accA_2 = false;
nera_accA_3 = false;
nera_accA_4 = false;
nera_accA_5 = false;
nera_accA_6 = false;
nera_accS_1 = false;
nera_accS_2 = false;
nera_accS_3 = false;
priestess_lvl = 1;
priestess_live = false;
priestess_status = "enemy";
priestess_role = "ATTACKER";
priestess_skill1_cost = 0;
priestess_skill2_cost = 1;
priestess_ele = "blue";
priestess_against_fire = 0.5;
priestess_against_ice = 0.75;
priestess_against_lightening = 1.75;
priestess_against_magic = 1;
priestess_against_physical = 1;
priestess_pow = 5;
priestess_end = 5;
priestess_agi = 15;
priestess_mac = 6;
priestess_mov = 5;
priestess_type = "flyer";
priestess_maxHP = (15000 * (((priestess_end * 1.5) + (priestess_pow / 2)) / 100)) + (priestess_lvl * 80);
priestess_HP = priestess_maxHP;
priestess_def = priestess_end * 15;
priestess_mdef = priestess_mac * 15;
priestess_dodge = (priestess_agi * 20) + 0;
fool_lvl = 1;
fool_live = true;
fool_status = "enemy";
fool_ele = "black";
fool_against_fire = 1.25;
fool_against_ice = 1.25;
fool_against_lightening = 1.25;
fool_against_magic = 1.5;
fool_against_physical = 0.75;
fool_pow = 6;
fool_end = 5;
fool_agi = 7;
fool_mac = 5;
fool_mov = 2;
fool_type = "walker";
fool_maxHP = (15000 * (((fool_end * 1.5) + (fool_pow / 2)) / 100)) + (fool_lvl * 80);
fool_HP = fool_maxHP;
fool_def = (fool_end * 15) + 100;
fool_mdef = fool_mac * 15;
fool_dodge = fool_agi * 20;
magician_lvl = 1;
magician_live = true;
magician_status = "enemy";
magician_ele = "red";
magician_against_fire = 0.75;
magician_against_ice = 1.75;
magician_against_lightening = 0.5;
magician_against_magic = 1;
magician_against_physical = 1;
magician_pow = 1;
magician_end = 4;
magician_agi = 7;
magician_mac = 12;
magician_mov = 2;
magician_type = "walker";
magician_maxHP = (15000 * (((magician_end * 1.5) + (magician_pow / 2)) / 100)) + (magician_lvl * 80);
magician_HP = magician_maxHP;
magician_def = magician_end * 15;
magician_mdef = (magician_mac * 15) + 100;
magician_dodge = magician_agi * 20;
golem_lvl = 4;
golem_live = true;
golem_status = "enemy";
golem_ele = "black";
golem_against_fire = 1.25;
golem_against_ice = 1.25;
golem_against_lightening = 1.75;
golem_against_magic = 1.25;
golem_against_physical = 0.75;
golem_pow = 10;
golem_end = 10;
golem_agi = 4;
golem_mac = 1;
golem_maxHP = 3850;
golem_HP = 3850;
golem_def = 450;
golem_mdef = 0;
golem_dodge = 0;
swordGuard_lvl = 1;
swordGuard_live = true;
swordGuard_status = "enemy";
swordGuard_ele = "yellow";
swordGuard_against_fire = 1.75;
swordGuard_against_ice = 0.5;
swordGuard_against_lightening = 0.75;
swordGuard_against_magic = 1;
swordGuard_against_physical = 1;
swordGuard_pow = 7;
swordGuard_end = 5;
swordGuard_agi = 7;
swordGuard_mac = 3;
swordGuard_maxHP = 2350;
swordGuard_HP = 2350;
swordGuard_def = 220;
swordGuard_mdef = 80;
swordGuard_dodge = 180;
sea_wolf_lvl = 1;
sea_wolf_live = true;
sea_wolf_status = "enemy";
sea_wolf_role = "ATTACKER";
sea_wolf_ele = "blue";
sea_wolf_against_fire = 0.5;
sea_wolf_against_ice = 0.75;
sea_wolf_against_lightening = 2;
sea_wolf_against_magic = 1;
sea_wolf_against_physical = 1;
sea_wolf_pow = 6;
sea_wolf_end = 3;
sea_wolf_agi = 10;
sea_wolf_mac = 5;
sea_wolf_mov = 4;
sea_wolf_type = "walker";
sea_wolf_maxHP = 2225;
sea_wolf_HP = sea_wolf_maxHP;
sea_wolf_def = 185;
sea_wolf_mdef = 88;
sea_wolf_dodge = 315;
check_acc = function (id, enemy_id) {
if (_root[id + "_accS_1"] == true) {
_root[id + "_against_fire"] = _root[id + "_against_fire"] - 0.25;
_root[id + "_against_ice"] = _root[id + "_against_ice"] - 0.25;
_root[id + "_against_lightening"] = _root[id + "_against_lightening"] - 0.25;
_root[id + "_pow"] = _root[id + "_pow"] + 2;
_root[id + "_end"] = _root[id + "_end"] + 2;
_root[id + "_agi"] = _root[id + "_agi"] + 2;
_root[id + "_mac"] = _root[id + "_mac"] + 2;
_root[enemy_id + "_dodge"] = 0;
_root[id + "_def"] = _root[id + "_end"] * 15;
_root[id + "_mdef"] = _root[id + "_mac"] * 15;
_root[id + "_dodge"] = _root[id + "_agi"] * 15;
_root[id + "_maxHP"] = (20000 * (((_root[id + "_end"] * 1.5) + (_root[id + "_pow"] / 2)) / 100)) + (_root[id + "_lvl"] * 80);
_root[id + "_HP"] = _root[id + "_maxHP"];
}
if (_root[id + "_accS_3"] == true) {
_root[id + "_mac"] = _root[id + "_mac"] + 8;
_root[enemy_id + "_mdef"] = 0;
_root[id + "_mdef"] = _root[id + "_mac"] * 15;
}
if (_root[id + "_accC_1"] == true) {
_root[id + "_pow"] = _root[id + "_pow"] + 2;
_root[id + "_maxHP"] = (20000 * (((_root[id + "_end"] * 1.5) + (_root[id + "_pow"] / 2)) / 100)) + (_root[id + "_lvl"] * 80);
_root[id + "_HP"] = _root[id + "_maxHP"];
}
if (_root[id + "_accC_3"] == true) {
_root[id + "_agi"] = _root[id + "_agi"] + 2;
_root[id + "_dodge"] = _root[id + "_agi"] * 15;
}
if (_root[id + "_accC_4"] == true) {
_root[id + "_end"] = _root[id + "_end"] + 4;
_root[id + "_def"] = _root[id + "_end"] * 15;
_root[id + "_maxHP"] = (20000 * (((_root[id + "_end"] * 1.5) + (_root[id + "_pow"] / 2)) / 100)) + (_root[id + "_lvl"] * 80);
_root[id + "_HP"] = _root[id + "_maxHP"];
}
if (_root[id + "_accC_5"] == true) {
_root[id + "_mac"] = _root[id + "_mac"] + 4;
_root[id + "_mdef"] = _root[id + "_mac"] * 15;
}
if (_root[id + "_accB_1"] == true) {
_root[enemy_id + "_dodge"] = _root[enemy_id + "_dodge"] / 2;
}
if (_root[id + "_accB_3"] == true) {
_root[enemy_id + "_mdef"] = _root[enemy_id + "_mdef"] * 0.75;
}
if (_root[id + "_accB_5"] == true) {
_root[id + "_mdef"] = _root[id + "_mdef"] + 200;
}
if (_root[id + "_accC_2"] == true) {
_root[id + "_def"] = _root[id + "_def"] + 100;
}
if (_root[id + "_accA_1"] == true) {
_root[enemy_id + "_def"] = _root[enemy_id + "_def"] / 2;
}
if (_root[id + "_accA_2"] == true) {
_root[id + "_def"] = _root[id + "_def"] + 150;
_root[id + "_mdef"] = _root[id + "_mdef"] + 150;
}
if (_root[id + "_accA_4"] == true) {
_root[id + "_ele"] = "red";
_root[id + "_against_fire"] = 0.75;
_root[id + "_against_ice"] = 1.75;
_root[id + "_against_lightening"] = 0.5;
_root[id + "_against_magic"] = 1;
_root[id + "_against_physical"] = 1;
}
if (_root[id + "_accA_5"] == true) {
_root[id + "_ele"] = "blue";
_root[id + "_against_fire"] = 0.5;
_root[id + "_against_ice"] = 0.75;
_root[id + "_against_lightening"] = 1.75;
_root[id + "_against_magic"] = 1;
_root[id + "_against_physical"] = 1;
}
if (_root[id + "_accA_6"] == true) {
_root[id + "_ele"] = "yellow";
_root[id + "_against_fire"] = 1.75;
_root[id + "_against_ice"] = 0.5;
_root[id + "_against_lightening"] = 0.75;
_root[id + "_against_magic"] = 1;
_root[id + "_against_physical"] = 1;
}
if (_root[id + "_accC_6"] == true) {
_root[id + "_against_fire"] = _root[id + "_against_fire"] - 0.25;
}
if (_root[id + "_accC_7"] == true) {
_root[id + "_against_ice"] = _root[id + "_against_ice"] - 0.25;
}
if (_root[id + "_accC_8"] == true) {
_root[id + "_against_lightening"] = _root[id + "_against_lightening"] - 0.25;
}
if (_root[id + "_accB_2"] == true) {
_root[id + "_dodge"] = _root[id + "_dodge"] + 100;
}
if (_root[id + "_accS_2"] == true) {
_root[id + "_pow"] = _root[id + "_pow"] + (8 + ((_root[enemy_id + "_mdef"] / 100) * 2));
_root[enemy_id + "_def"] = 0;
_root[id + "_maxHP"] = (20000 * (((_root[id + "_end"] * 1.5) + (_root[id + "_pow"] / 2)) / 100)) + (_root[id + "_lvl"] * 80);
_root[id + "_HP"] = _root[id + "_maxHP"];
}
if (_root[id + "_accA_3"] == true) {
_root[id + "_agi"] = _root[id + "_agi"] + 2;
_root[id + "_pow"] = _root[id + "_pow"] + 8;
_root[id + "_mac"] = _root[id + "_mac"] + 8;
_root[id + "_dodge"] = 0;
_root[id + "_mdef"] = 0;
_root[id + "_def"] = 0;
}
if (_root[id + "_accB_4"] == true) {
_root[id + "_pow"] = _root[id + "_pow"] + _root[id + "_mac"];
_root[id + "_end"] = _root[id + "_end"] + _root[id + "_agi"];
_root[id + "_def"] = _root[id + "_end"] * 15;
_root[id + "_maxHP"] = (20000 * (((_root[id + "_end"] * 1.5) + (_root[id + "_pow"] / 2)) / 100)) + (_root[id + "_lvl"] * 80);
_root[id + "_HP"] = _root[id + "_maxHP"];
_root[id + "_agi"] = 1;
_root[id + "_mac"] = 0;
_root[id + "_mdef"] = 0;
_root[id + "_dodge"] = 0;
}
};
battle_report._visible = false;
battle_report_isOpened = false;
battle_report.onEnterFrame = function () {
if ((_root.sea_wolf_live == false) && (battle_report_isOpened == false)) {
battle_report_isOpened = true;
battle_report._visible = true;
battle_report.gotoAndStop("win");
}
if ((_root.nera_live == false) && (battle_report_isOpened == false)) {
battle_report_isOpened = true;
battle_report._visible = true;
battle_report.gotoAndStop("lose");
}
};
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root._visible = false;
}
}
urls_allowed = ["www.1manstudio.net", "www.newgrounds.com"];
char_profile._visible = false;
stop();
_root._quality = "medium";
grid._visible = true;
battle._visible = false;
Instance of Symbol 1102 MovieClip "battle" in Frame 9
/* no clip actions */
Symbol 51 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 10)) + ((8 * (_root.battle.nelly._pow / 4)) * (_root.battle.nelly._pow / 4))) * (1 - (_root.battle.nelly2._def / 1000))) * _root.battle.nelly2._against_physical) * 1.5;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._HP = _root.battle.nelly._HP + (_root.battle.nelly._damage / 3);
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 10)) + ((8 * (_root.battle.nelly2._pow / 4)) * (_root.battle.nelly2._pow / 4))) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._HP = _root.battle.nelly2._HP + (_root.battle.nelly2._damage / 3);
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 51 MovieClip Frame 29
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 51 MovieClip Frame 30
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 54 MovieClip Frame 30
gotoAndPlay (25);
Symbol 83 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_2)) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("blue");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = ((((30 + (Math.random() * 10)) + ((8 * (_root.battle.nelly._mac / 3)) * (_root.battle.nelly._mac / 3))) * (1 - (_root.battle.nelly2._def / 1000))) * _root.battle.nelly2._against_ice) * 1.5;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_2)) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("blue");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly2._damage = (((30 + (Math.random() * 10)) + ((8 * (_root.battle.nelly2._mac / 3)) * (_root.battle.nelly2._mac / 3))) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_ice;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 83 MovieClip Frame 79
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 83 MovieClip Frame 80
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 85 MovieClip Frame 10
_parent.gotoAndPlay("stand");
Symbol 87 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 87 MovieClip Frame 49
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 87 MovieClip Frame 50
_parent.attack = false;
_parent.removeMovieClip();
Symbol 88 MovieClip [sea_wolf] Frame 1
stop();
Symbol 88 MovieClip [sea_wolf] Frame 5
stop();
Symbol 88 MovieClip [sea_wolf] Frame 10
stop();
Symbol 88 MovieClip [sea_wolf] Frame 15
stop();
Symbol 88 MovieClip [sea_wolf] Frame 35
stop();
Symbol 88 MovieClip [sea_wolf] Frame 40
stop();
Symbol 112 MovieClip Frame 10
_parent.gotoAndPlay("stand");
Symbol 113 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 113 MovieClip Frame 49
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 113 MovieClip Frame 50
_parent.attack = false;
_parent.removeMovieClip();
Symbol 116 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 30)) + ((_root.battle.nelly._pow * _root.battle.nelly._pow) * 2)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 30)) + ((_root.battle.nelly2._pow * _root.battle.nelly2._pow) * 2)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 116 MovieClip Frame 23
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 116 MovieClip Frame 24
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 117 MovieClip [rider] Frame 1
stop();
Symbol 117 MovieClip [rider] Frame 5
stop();
Symbol 117 MovieClip [rider] Frame 10
stop();
Symbol 117 MovieClip [rider] Frame 15
stop();
Symbol 117 MovieClip [rider] Frame 20
stop();
Symbol 135 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 135 MovieClip Frame 59
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 135 MovieClip Frame 60
_parent.attack = false;
_parent.removeMovieClip();
Symbol 136 MovieClip Frame 10
_parent.gotoAndPlay("stand");
Symbol 137 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 30)) + ((_root.battle.nelly._pow * _root.battle.nelly._pow) * 2)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 30)) + ((_root.battle.nelly2._pow * _root.battle.nelly2._pow) * 2)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 137 MovieClip Frame 49
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 137 MovieClip Frame 50
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 151 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_2)) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_3)) {
this.hit_chance = 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("yellow");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = (_root.battle.nelly._mac * 2) + (((((Math.random() * 2) + 1) * (1 - (_root.battle.nelly2._mdef / 1000))) * 1.5) * _root.battle.nelly2._against_lightening);
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_2)) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_3)) {
this.hit_chance = 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("yellow");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (_root.battle.nelly2._mac * 2) + ((((Math.random() * 2) + 1) * (1 - (_root.battle.nelly._mdef / 1000))) * _root.battle.nelly._against_lightening);
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 151 MovieClip Frame 79
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 151 MovieClip Frame 80
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 152 MovieClip [swordGuard] Frame 1
stop();
Symbol 152 MovieClip [swordGuard] Frame 5
stop();
Symbol 152 MovieClip [swordGuard] Frame 10
stop();
Symbol 152 MovieClip [swordGuard] Frame 15
stop();
Symbol 152 MovieClip [swordGuard] Frame 21
stop();
Symbol 152 MovieClip [swordGuard] Frame 25
stop();
Symbol 165 MovieClip Frame 11
_parent.gotoAndStop("stand");
Symbol 166 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 166 MovieClip Frame 59
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 166 MovieClip Frame 60
_parent.attack = false;
_parent.removeMovieClip();
Symbol 171 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit2_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit2_2)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("red");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly2._HP = _root.battle.nelly2._HP - (((((4 * _root.battle.nelly._pow) - (Math.random() * 20)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_fire);
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit2_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit2_2)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("red");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly._HP = _root.battle.nelly._HP - ((((4 * _root.battle.nelly2._pow) - (Math.random() * 20)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_fire);
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 171 MovieClip Frame 96
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 171 MovieClip Frame 97
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 185 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit2_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit2_2)) {
this.hit_chance = 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("yellow");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly2._HP = _root.battle.nelly2._HP - ((((_root.battle.nelly._pow + (Math.random() * 0.5)) * (1 - (_root.battle.nelly2._mdef / 1000))) * 1.5) * _root.battle.nelly2._against_lightening);
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit2_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit2_2)) {
this.hit_chance = 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("yellow");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly._HP = _root.battle.nelly._HP - (((_root.battle.nelly2._pow + (Math.random() * 0.5)) * (1 - (_root.battle.nelly._mdef / 1000))) * _root.battle.nelly._against_lightening);
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 185 MovieClip Frame 104
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 185 MovieClip Frame 105
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 186 MovieClip [golem] Frame 1
stop();
Symbol 186 MovieClip [golem] Frame 5
stop();
Symbol 186 MovieClip [golem] Frame 10
stop();
Symbol 186 MovieClip [golem] Frame 15
stop();
Symbol 186 MovieClip [golem] Frame 20
stop();
Symbol 223 MovieClip Frame 1
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = ((((80 + (Math.random() * 10)) + ((8 * (_root.battle.nelly._pow / 4)) * (_root.battle.nelly._pow / 4))) * (1 - (_root.battle.nelly2._def / 1000))) * _root.battle.nelly2._against_physical) * 1.5;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly2._damage = (((80 + (Math.random() * 10)) + ((8 * (_root.battle.nelly2._pow / 4)) * (_root.battle.nelly2._pow / 4))) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 223 MovieClip Frame 59
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 223 MovieClip Frame 60
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 232 MovieClip Frame 24
stop();
Symbol 233 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_2)) {
this.hit_chance = 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("blue");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = (((((Math.random() * 5) + (_root.battle.nelly._pow * 0.75)) + (_root.battle.nelly._mac * 0.75)) * (1 - (_root.battle.nelly2._mdef / 1000))) * 1.5) * _root.battle.nelly2._against_ice;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_2)) {
this.hit_chance = 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("blue");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly2._damage = ((((Math.random() * 5) + (_root.battle.nelly2._pow * 0.75)) + (_root.battle.nelly2._mac * 0.75)) * (1 - (_root.battle.nelly._mdef / 1000))) * _root.battle.nelly._against_ice;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 233 MovieClip Frame 56
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 233 MovieClip Frame 57
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 234 MovieClip Frame 10
_parent.gotoAndPlay("stand");
Symbol 235 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 235 MovieClip Frame 49
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 235 MovieClip Frame 50
_parent.attack = false;
_parent.removeMovieClip();
Symbol 236 MovieClip [nera] Frame 1
stop();
Symbol 236 MovieClip [nera] Frame 10
stop();
Symbol 236 MovieClip [nera] Frame 15
stop();
Symbol 236 MovieClip [nera] Frame 45
stop();
Symbol 236 MovieClip [nera] Frame 50
stop();
Symbol 285 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("white");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = (((2.5 + _root.battle.nelly._mac) * (1 - (_root.battle.nelly2._mdef / 1000))) * 1.5) * _root.battle.nelly2._against_magic;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("white");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly._HP = _root.battle.nelly._HP - (((2.5 + _root.battle.nelly2._mac) * (1 - (_root.battle.nelly._mdef / 1000))) * _root.battle.nelly._against_magic);
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
};
}
Symbol 285 MovieClip Frame 84
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 285 MovieClip Frame 85
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 288 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit2_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit2_2)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly2._HP = _root.battle.nelly2._HP - ((((((((28 * _root.battle.nelly._pow) / 6) * (_root.battle.nelly._pow / 6)) + 40) + (Math.random() * 20)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical);
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit2_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit2_2)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly._HP = _root.battle.nelly._HP - (((((((28 * _root.battle.nelly2._pow) / 6) * (_root.battle.nelly2._pow / 6)) + 40) + (Math.random() * 20)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical);
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 288 MovieClip Frame 74
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 288 MovieClip Frame 75
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 289 MovieClip Frame 10
_parent.gotoAndPlay("stand");
Symbol 290 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 290 MovieClip Frame 79
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 290 MovieClip Frame 80
_parent.attack = false;
_parent.removeMovieClip();
Symbol 291 MovieClip Frame 11
gotoAndPlay (5);
Symbol 292 MovieClip [fool] Frame 1
stop();
Symbol 292 MovieClip [fool] Frame 5
stop();
Symbol 292 MovieClip [fool] Frame 10
stop();
Symbol 292 MovieClip [fool] Frame 15
stop();
Symbol 292 MovieClip [fool] Frame 20
stop();
Symbol 345 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = ((((50 + (Math.random() * 5)) + (10 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((50 + (Math.random() * 5)) + (10 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 345 MovieClip Frame 48
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 345 MovieClip Frame 49
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 353 MovieClip Frame 1
birdRate = 70;
birdCount = 1;
this.onEnterFrame = function () {
bchance = Math.random() * 100;
if (bchance < birdRate) {
birdCount++;
birdCount = birdCount % 200;
bnm = "bird" + birdCount;
this.attachMovie("bird_gp", bnm, birdCount);
this[bnm].alpha = (Math.random() * 60) + 40;
this[bnm].xspeed = (Math.random() * 10) - 30;
this[bnm].yspeed = (Math.random() * 20) - 30;
this[bnm].rotation = Math.random() * 360;
this[bnm]._scale = (Math.random() * 60) + 40;
this[bnm].onEnterFrame = function () {
this._xscale = this._scale;
this._yscale = this._scale;
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
this._alpha = this.alpha;
this.rotation = this.rotation + 2;
if (this._y >= 450) {
this.removeMovieClip();
}
};
}
};
Symbol 354 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < 100) {
var _local3 = "bird" + _local2;
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack2.iceFly[_local3])) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("blue");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = (((0.1 + (0.12 * _root.battle.nelly._mac)) * (1 - (_root.battle.nelly2._mdef / 1000))) * 1.5) * _root.battle.nelly2._against_ice;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
_local2++;
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < 100) {
var _local3 = "bird" + _local2;
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack2.iceFly[_local3])) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("blue");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = ((0.1 + (0.12 * _root.battle.nelly2._mac)) * (1 - (_root.battle.nelly._mdef / 1000))) * _root.battle.nelly._against_ice;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
_local2++;
}
};
}
Instance of Symbol 353 MovieClip "iceFly" in Symbol 354 MovieClip Frame 20
/* no clip actions */
Symbol 354 MovieClip Frame 98
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 354 MovieClip Frame 100
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 355 MovieClip Frame 10
_parent.gotoAndPlay("stand");
Symbol 356 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 356 MovieClip Frame 49
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 356 MovieClip Frame 50
_parent.attack = false;
_parent.removeMovieClip();
Symbol 357 MovieClip Frame 19
stop();
Symbol 358 MovieClip Frame 77
_root.grid.timerRunning = true;
Symbol 358 MovieClip Frame 78
_parent.gotoAndStop("stand");
Symbol 359 MovieClip Frame 24
_root.grid.timerRunning = true;
Symbol 359 MovieClip Frame 25
_root.grid.priestess.removeMovieClip();
Symbol 363 MovieClip Frame 22
_root.grid.attachMovie("blue_light", "blue_light", 100003);
_root.grid.blue_light._xscale = 50;
_root.grid.blue_light._x = _root.grid.nera._x;
_root.grid.blue_light._y = _root.grid.nera._y;
_root.nera_HP = _root.nera_HP + Math.round(_root.nera_maxHP / 4);
if (_root.nera_HP >= _root.nera_maxHP) {
_root.nera_HP = _root.nera_maxHP;
}
_root.energy_orb = _root.energy_orb - 8;
Symbol 363 MovieClip Frame 65
_root.grid.blue_light.removeMovieClip();
_root.grid.timerRunning = true;
Symbol 363 MovieClip Frame 75
_parent.gotoAndPlay("stand");
Symbol 364 MovieClip [priestess] Frame 1
stop();
Symbol 364 MovieClip [priestess] Frame 5
stop();
Symbol 364 MovieClip [priestess] Frame 11
stop();
Symbol 364 MovieClip [priestess] Frame 16
stop();
Symbol 364 MovieClip [priestess] Frame 21
stop();
Symbol 364 MovieClip [priestess] Frame 26
stop();
Symbol 364 MovieClip [priestess] Frame 31
stop();
Symbol 364 MovieClip [priestess] Frame 36
stop();
Symbol 394 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly2._HP = _root.battle.nelly2._HP - ((((Math.random() * 20) + _root.battle.nelly2._mdef) * 0.7) * 1.5);
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly._HP = _root.battle.nelly._HP - (((Math.random() * 20) + _root.battle.nelly._mdef) * 0.7);
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 394 MovieClip Frame 39
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 394 MovieClip Frame 40
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 408 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
var _local3 = 0;
while (_local3 < 100) {
var _local4 = "fire" + _local3;
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack2[_local4])) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("red");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly2._HP = _root.battle.nelly2._HP - (((((Math.random() * 20) + (_root.battle.nelly._mac * 8)) * (1 - (_root.battle.nelly2._mdef / 1000))) * 1.5) * _root.battle.nelly2._against_fire);
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
_local3++;
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
var _local3 = 0;
while (_local3 < 100) {
var _local4 = "fire" + _local3;
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack2[_local4])) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("red");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly._HP = _root.battle.nelly._HP - ((((Math.random() * 20) + (_root.battle.nelly2._mac * 8)) * (1 - (_root.battle.nelly._mdef / 1000))) * _root.battle.nelly._against_fire);
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
_local3++;
}
};
}
Symbol 408 MovieClip Frame 77
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 408 MovieClip Frame 78
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 409 MovieClip Frame 10
_parent.gotoAndPlay("stand");
Symbol 410 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 410 MovieClip Frame 59
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 410 MovieClip Frame 60
_parent.attack = false;
_parent.removeMovieClip();
Symbol 413 MovieClip Frame 10
stop();
Symbol 414 MovieClip [magician] Frame 1
stop();
Symbol 414 MovieClip [magician] Frame 5
stop();
Symbol 414 MovieClip [magician] Frame 10
stop();
Symbol 414 MovieClip [magician] Frame 15
stop();
Symbol 414 MovieClip [magician] Frame 20
stop();
Symbol 418 MovieClip [tile] Frame 1
stop();
Symbol 418 MovieClip [tile] Frame 5
stop();
Symbol 418 MovieClip [tile] Frame 10
stop();
Symbol 418 MovieClip [tile] Frame 15
stop();
Symbol 418 MovieClip [tile] Frame 20
stop();
Symbol 418 MovieClip [tile] Frame 25
stop();
Symbol 418 MovieClip [tile] Frame 30
stop();
Symbol 418 MovieClip [tile] Frame 35
stop();
Symbol 418 MovieClip [tile] Frame 40
stop();
Symbol 418 MovieClip [tile] Frame 45
stop();
Symbol 418 MovieClip [tile] Frame 50
stop();
Symbol 418 MovieClip [tile] Frame 55
stop();
Symbol 466 MovieClip Frame 30
stop();
Symbol 469 MovieClip Frame 25
stop();
Symbol 472 MovieClip Frame 25
stop();
Symbol 473 MovieClip Frame 40
stop();
Symbol 477 MovieClip Frame 30
stop();
Symbol 478 MovieClip Frame 15
stop();
Symbol 480 MovieClip Frame 1
leaveRate = 10;
leaveCount = 1;
this.onEnterFrame = function () {
chance = Math.random() * 100;
if (chance < leaveRate) {
leaveCount++;
leaveCount = leaveCount % 100;
lnm = "leave_gp" + leaveCount;
this.attachMovie("leave_gp", lnm, leaveCount);
this[lnm].alpha = (Math.random() * 60) + 40;
this[lnm].xspeed = (Math.random() * 8) - 4;
this[lnm].yspeed = (Math.random() * 1.5) + 1.5;
this[lnm].rotation = Math.random() * 360;
this[lnm]._scale = (Math.random() * 60) + 40;
this[lnm].onEnterFrame = function () {
this._xscale = this._scale;
this._yscale = this._scale;
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
this._alpha = this.alpha;
this.rotation = this.rotation + 2;
this._rotation = this.rotation;
if (this._y <= -300) {
this.removeMovieClip();
}
};
}
};
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 40
stop();
_root.gotoAndStop("nera_falling_scene");
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 80
stop();
_parent.nera_falling.gotoAndPlay(31);
Symbol 683 MovieClip Frame 85
stop();
Symbol 684 MovieClip Frame 30
gotoAndPlay (1);
Symbol 684 MovieClip Frame 136
stop();
Symbol 686 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 40
stop();
_root.music.gotoAndStop("stop");
_root.gotoAndPlay("angel_fall_scene");
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 180
stop();
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 180
stop();
Symbol 697 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 180
stop();
Symbol 700 MovieClip Frame 1
stop();
Symbol 700 MovieClip Frame 180
stop();
Symbol 704 MovieClip Frame 1
stop();
Symbol 704 MovieClip Frame 180
stop();
Symbol 709 MovieClip Frame 40
stop();
Symbol 731 MovieClip Frame 80
gotoAndPlay (30);
Symbol 738 MovieClip Frame 1
stop();
Symbol 738 MovieClip Frame 25
stop();
Symbol 755 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = ((((80 + (Math.random() * 10)) + ((8 * (_root.battle.nelly._pow / 4)) * (_root.battle.nelly._pow / 4))) * (1 - (_root.battle.nelly2._def / 1000))) * _root.battle.nelly2._against_physical) * 1.5;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_3)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly2._damage = (((80 + (Math.random() * 10)) + ((8 * (_root.battle.nelly._pow / 4)) * (_root.battle.nelly._pow / 4))) * (1 - (_root.battle.nelly2._def / 1000))) * _root.battle.nelly2._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 755 MovieClip Frame 59
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 755 MovieClip Frame 60
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 762 MovieClip Frame 24
stop();
Symbol 763 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if (_root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack2.hit1_2)) {
this.hit_chance = 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("blue");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndStop("hit");
_root.battle.nelly._damage = (((((Math.random() * 5) + (_root.battle.nelly._pow * 0.75)) + (_root.battle.nelly._mac * 0.75)) * (1 - (_root.battle.nelly2._mdef / 1000))) * 1.5) * _root.battle.nelly2._against_ice;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if (_root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack2.hit1_2)) {
this.hit_chance = 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("blue");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndStop("hit");
_root.battle.nelly2._damage = ((((Math.random() * 5) + (_root.battle.nelly2._pow * 0.75)) + (_root.battle.nelly2._mac * 0.75)) * (1 - (_root.battle.nelly._mdef / 1000))) * _root.battle.nelly._against_ice;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 763 MovieClip Frame 56
_parent._parent._isattacking = false;
this._parent._isattacking1 = false;
Symbol 763 MovieClip Frame 57
_parent.attack = false;
_parent.gotoAndStop("stand");
Symbol 764 MovieClip Frame 10
_parent.gotoAndPlay("stand");
Symbol 766 MovieClip Frame 1
_parent._parent._isattacking = true;
this._parent._isattacking1 = true;
_root.battle.nelly2._oldHP = _root.battle.nelly2._HP;
_root.battle.nelly._oldHP = _root.battle.nelly._HP;
if (_parent._name == "nelly") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_1) or _root.battle.nelly2.hitTest(_root.battle.nelly.attack1.hit1_2)) && (_root.battle.nelly2._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly2._dodge / 10)) {
_root.battle.nelly_damage._visible = true;
_root.battle.nelly_damage.gotoAndPlay(1);
_root.battle.nelly_damage.nelly_damage_inside.gotoAndStop("black");
_root.battle.nelly_damage._y = _root.battle.nelly2._y - (_root.battle.nelly2._height - 50);
_root.battle.nelly2.gotoAndPlay("hit");
_root.battle.nelly._damage = ((((20 + (Math.random() * 5)) + (8 * _root.battle.nelly._pow)) * (1 - (_root.battle.nelly2._def / 1000))) * 1.5) * _root.battle.nelly2._against_physical;
_root.battle.nelly2._HP = _root.battle.nelly2._HP - _root.battle.nelly._damage;
_root.battle.nelly._disDamage = Math.abs(Math.round(_root.battle.nelly2._HP - _root.battle.nelly2._oldHP));
}
}
};
}
if (_parent._name == "nelly2") {
_root.onEnterFrame = function () {
if ((_root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_1) or _root.battle.nelly.hitTest(_root.battle.nelly2.attack1.hit1_2)) && (_root.battle.nelly._currentframe == 1)) {
this.hit_chance = Math.random() * 100;
if (this.hit_chance >= (_root.battle.nelly._dodge / 10)) {
_root.battle.nelly2_damage._visible = true;
_root.battle.nelly2_damage.gotoAndPlay(1);
_root.battle.nelly2_damage.nelly2_damage_inside.gotoAndStop("black");
_root.battle.nelly2_damage._y = _root.battle.nelly._y - (_root.battle.nelly._height - 50);
_root.battle.nelly.gotoAndPlay("hit");
_root.battle.nelly2._damage = (((20 + (Math.random() * 5)) + (8 * _root.battle.nelly2._pow)) * (1 - (_root.battle.nelly._def / 1000))) * _root.battle.nelly._against_physical;
_root.battle.nelly._HP = _root.battle.nelly._HP - _root.battle.nelly2._damage;
_root.battle.nelly2._disDamage = Math.abs(Math.round(_root.battle.nelly._HP - _root.battle.nelly._oldHP));
}
}
};
}
Symbol 766 MovieClip Frame 49
_parent._parent._isattacking = false;
_parent._parent.timecounter = 103;
Symbol 766 MovieClip Frame 50
_parent.attack = false;
_parent.removeMovieClip();
Symbol 767 MovieClip Frame 1
stop();
Symbol 767 MovieClip Frame 5
stop();
Symbol 767 MovieClip Frame 10
stop();
Symbol 767 MovieClip Frame 30
stop();
Symbol 767 MovieClip Frame 40
stop();
Symbol 796 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 40
stop();
Symbol 813 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 16
stop();
Symbol 855 MovieClip Frame 1
stop();
next_btn.onRelease = function () {
gotoAndStop (5);
};
Symbol 855 MovieClip Frame 5
stop();
next_btn.onRelease = function () {
gotoAndStop (10);
};
Symbol 855 MovieClip Frame 10
stop();
next_btn.onRelease = function () {
gotoAndStop (12);
};
Symbol 855 MovieClip Frame 12
next_btn.onRelease = function () {
_parent.dialogue_mv._visible = false;
_parent.allow_control = true;
};
Symbol 855 MovieClip Frame 15
stop();
next_btn.onRelease = function () {
gotoAndStop (25);
_parent.nera._xscale = 75;
};
Symbol 855 MovieClip Frame 20
stop();
next_btn.onRelease = function () {
gotoAndPlay (25);
};
Symbol 855 MovieClip Frame 25
stop();
next_btn.onRelease = function () {
gotoAndPlay (30);
};
Symbol 855 MovieClip Frame 30
stop();
next_btn.onRelease = function () {
gotoAndStop (35);
};
Symbol 855 MovieClip Frame 35
stop();
next_btn.onRelease = function () {
gotoAndStop (40);
};
Symbol 855 MovieClip Frame 40
stop();
next_btn.onRelease = function () {
gotoAndStop (45);
};
Symbol 855 MovieClip Frame 45
stop();
next_btn.onRelease = function () {
gotoAndStop (50);
};
Symbol 855 MovieClip Frame 50
stop();
next_btn.onRelease = function () {
gotoAndStop (55);
};
Symbol 855 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
gotoAndStop (60);
};
Symbol 855 MovieClip Frame 60
stop();
next_btn.onRelease = function () {
gotoAndStop (65);
};
Symbol 855 MovieClip Frame 65
stop();
next_btn.onRelease = function () {
gotoAndStop (70);
_parent.nera._xscale = -75;
_parent.wolf.gotoAndPlay(2);
_parent.wolf2.gotoAndPlay(2);
};
Symbol 855 MovieClip Frame 70
next_btn.onRelease = function () {
gotoAndStop (75);
_parent.sword.gotoAndPlay(2);
};
Symbol 855 MovieClip Frame 75
next_btn.onRelease = function () {
gotoAndStop (80);
};
Symbol 855 MovieClip Frame 80
stop();
next_btn.onRelease = function () {
_parent.gotoAndStop("pre_battle1");
};
Symbol 858 MovieClip Frame 30
stop();
Symbol 859 MovieClip Frame 8
stop();
Symbol 884 MovieClip Frame 5
stop();
Symbol 885 MovieClip Frame 1
next_btn.onRelease = function () {
_root.gotoAndStop("battle_1_scene");
};
Symbol 891 MovieClip Frame 30
stop();
Symbol 892 MovieClip Frame 8
stop();
Symbol 961 MovieClip Frame 1
stop();
Symbol 974 MovieClip Frame 1
char_info.swapDepths(100000);
char_info_btn.swapDepths(100001);
orb_info.swapDepths(100002);
orb_info_btn.swapDepths(100003);
nera_menu._visible = false;
priestess_menu._visible = false;
char_info_btn.onRelease = function () {
if (char_info._visible == true) {
char_info._visible = false;
} else {
char_info._visible = true;
}
};
orb_info_btn.onRelease = function () {
if (orb_info._visible == true) {
orb_info._visible = false;
} else {
orb_info._visible = true;
}
};
priestess_menu.skill1.onRelease = function () {
if ((_root.phrase == "Action") && (_root.energy_orb >= 8)) {
priestess.gotoAndStop("blessing");
}
};
function overallMinimum(twoDimensionalArray) {
var _local3 = rowMinimum(twoDimensionalArray[0]);
var _local1 = 1;
while (_local1 < twoDimensionalArray.length) {
var _local2 = rowMinimum(twoDimensionalArray[_local1]);
if (_local2 < _local3) {
_local3 = _local2;
}
_local1++;
}
return(_local3);
}
function rowMinimum(array) {
var _local3 = array[0];
var _local1 = 1;
while (_local1 < array.length) {
if (array[_local1] < _local3) {
_local3 = array[_local1];
}
_local1++;
}
return(_local3);
}
maxValue = function (array) {
mxm = array[0];
i = 0;
while (i < array.length) {
if (array[i] > mxm) {
mxm = array[i];
}
i++;
}
return(mxm);
};
minValue = function (array) {
mn = array[0];
i = 0;
while (i < array.length) {
if (array[i] < mn) {
mn = array[i];
}
i++;
}
return(mn);
};
function cleanArray() {
col = 0;
while (col < numCols) {
row = 0;
while (row < numRows) {
theTile = eval ((("tile_" + col) + "_") + row);
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
row++;
}
col++;
}
}
function getClosestEnemy(computer, target_1, target_2) {
target_1_distance = Math.abs(_root.grid[target_1].row - computer.row) + Math.abs(_root.grid[target_1].col - computer.col);
target_2_distance = Math.abs(_root.grid[target_2].row - computer.row) + Math.abs(_root.grid[target_2].col - computer.col);
if (target_1_distance < target_2_distance) {
closest_target = target_1;
} else if (target_1_distance > target_2_distance) {
closest_target = target_2;
} else {
closest_target = target_1;
}
}
function AI_Moving(unitName, type, mov, range, enemy2) {
enemy = _root.grid[enemy2];
optionTimer++;
optionTimer = optionTimer % 100;
if ((optionTimer == 99) && (canAct == false)) {
timerRunning = true;
}
bestOption = overallMinimum(AIOption);
col = 0;
while (col < numCols) {
row = 0;
while (row < numRows) {
theTile = eval ((("tile_" + col) + "_") + row);
theTile.distance = Math.abs(theTile.row - unitName.row) + Math.abs(theTile.col - unitName.col);
theTile.enemyDistance = Math.abs(theTile.row - enemy.row) + Math.abs(theTile.col - enemy.col);
tileType = board[row][col];
theTile.gotoAndStop(tileName[tileType]);
optionDistance = (Math.abs(enemy.row - unitName.row) + Math.abs(enemy.col - unitName.col)) - mov;
atkDistance = Math.abs(enemy.row - unitName.row) + Math.abs(enemy.col - unitName.col);
if (optionDistance <= 0) {
optionDistance = 1;
}
if ((atkDistance == 1) && (isMoving == false)) {
canAct = true;
_root.player_id = current_moving;
_root.enemy_id = enemy2;
if ((_root.battle._visible == false) && (optionTimer == 70)) {
_root.battle.gotoAndPlay(1);
_root.battle._visible = true;
_root.grid._visible = false;
_root.battle_music.start(0, 9999);
}
} else {
if (((board[theTile.row][theTile.col] >= 2) or ((theTile.row == unitName.row) && (theTile.col == unitName.col))) && (theTile.enemyDistance == 1)) {
theTile.option = 1;
AIOption[theTile.row][theTile.col] = 1;
} else if (board[theTile.row][theTile.col] == mov) {
theTile.option = theTile.enemyDistance;
AIOption[theTile.row][theTile.col] = theTile.enemyDistance;
}
if (optionDistance == 1) {
if (((theTile.option == optionDistance) && (isMoving == false)) && (board[theTile.row][theTile.col] >= 2)) {
tempRow = theTile.row;
tempCol = theTile.col;
unitName.row = tempRow;
unitName.col = tempCol;
isMoving = true;
canAct = true;
target2 = unitName;
endpoint2 = _root.grid[(("tile_" + tempCol) + "_") + tempRow];
speed2 = 20;
scale2 = 60;
}
if ((atkDistance == 1) && (isMoving == false)) {
_root.player_id = current_moving;
_root.enemy_id = enemy2;
_root.battle._visible = true;
_root.grid._visible = false;
}
}
if (optionDistance > 1) {
if (((theTile.option == optionDistance) && (isMoving == false)) && (board[theTile.row][theTile.col] >= 2)) {
tempRow = theTile.row;
tempCol = theTile.col;
unitName.row = tempRow;
unitName.col = tempCol;
isMoving = true;
canAct = true;
target2 = unitName;
endpoint2 = _root.grid[(("tile_" + tempCol) + "_") + tempRow];
speed2 = 20;
scale2 = 60;
timerRunning = true;
}
}
}
theTile.onRelease = function () {
trace("Option:" + this.option);
trace("EnemyDistance:" + this.enemyDistance);
trace("Type:" + board[this.row][this.col]);
trace(optionDistance);
};
if ((type == "walk") && (mov == 6)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 3) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 3;
}
if (((theTile.distance == 4) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 3) or (board[theTile.row - 1][theTile.col] == 3)) or (board[theTile.row][theTile.col + 1] == 3)) or (board[theTile.row][theTile.col - 1] == 3))) {
board[theTile.row][theTile.col] = 4;
}
if (((theTile.distance == 5) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 4) or (board[theTile.row - 1][theTile.col] == 4)) or (board[theTile.row][theTile.col + 1] == 4)) or (board[theTile.row][theTile.col - 1] == 4))) {
board[theTile.row][theTile.col] = 5;
}
if (((theTile.distance == 6) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 5) or (board[theTile.row - 1][theTile.col] == 5)) or (board[theTile.row][theTile.col + 1] == 5)) or (board[theTile.row][theTile.col - 1] == 5))) {
board[theTile.row][theTile.col] = 6;
}
if (((theTile.distance > 6) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 5)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 3) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 3;
}
if (((theTile.distance == 4) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 3) or (board[theTile.row - 1][theTile.col] == 3)) or (board[theTile.row][theTile.col + 1] == 3)) or (board[theTile.row][theTile.col - 1] == 3))) {
board[theTile.row][theTile.col] = 4;
}
if (((theTile.distance == 5) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 4) or (board[theTile.row - 1][theTile.col] == 4)) or (board[theTile.row][theTile.col + 1] == 4)) or (board[theTile.row][theTile.col - 1] == 4))) {
board[theTile.row][theTile.col] = 5;
}
if (((theTile.distance > 5) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 4)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 3) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 3;
}
if (((theTile.distance == 4) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 3) or (board[theTile.row - 1][theTile.col] == 3)) or (board[theTile.row][theTile.col + 1] == 3)) or (board[theTile.row][theTile.col - 1] == 3))) {
board[theTile.row][theTile.col] = 4;
}
if (((theTile.distance > 4) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 3)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 3) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 3;
}
if (((theTile.distance > 3) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 2)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance > 2) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 1)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance > 1) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if (type == "fly") {
if ((theTile.distance <= mov) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance > mov) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
row++;
}
col++;
}
}
optionTimer = 0;
canAct = false;
AIOption = new Array(new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20), new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20));
function attackFunction(unitAttacker, attackRange) {
if (Key.isDown(32) && (_root.battle._visible == false)) {
timerRunning = true;
}
col = 0;
while (col < numCols) {
row = 0;
while (row < numRows) {
theTile = eval ((("tile_" + col) + "_") + row);
theTile.distance = Math.abs(theTile.row - unitAttacker.row) + Math.abs(theTile.col - unitAttacker.col);
tileType = board[row][col];
theTile.gotoAndStop(tileName[tileType]);
theTile.isTaken = "none";
if ((theTile.distance <= attackRange) && (isMoving == false)) {
board[theTile.row][theTile.col] = 11;
}
if (((theTile.distance > attackRange) && (theTile.isTaken == "none")) or (isMoving == true)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
theTile.onRelease = function () {
if ((((this.distance <= attackRange) && (unitPosition[this.row][this.col] != "none")) && (unitPosition[this.row][this.col] != "priestess")) && (unitPosition[this.row][this.col] != "nera")) {
_root.small_sound.start(0, 1);
_root.player_id = current_moving;
_root.enemy_id = unitPosition[this.row][this.col];
_root.battle._visible = true;
_root.battle.gotoAndPlay(1);
_root.grid._visible = false;
_root.grid_tutorial._visible = false;
_root.battle_music.start(0, 9999);
}
};
row++;
}
col++;
}
}
function unitMoving(unitName, type, mov) {
col = 0;
while (col < numCols) {
row = 0;
while (row < numRows) {
theTile = eval ((("tile_" + col) + "_") + row);
theTile.distance = Math.abs(theTile.row - unitName.row) + Math.abs(theTile.col - unitName.col);
tileType = board[row][col];
theTile.gotoAndStop(tileName[tileType]);
theTile._alreadyChecked = false;
theTile._mouseOn = false;
theTile.onRollOver = function () {
char_info.gotoAndStop(unitPosition[this.row][this.col]);
};
theTile.onRelease = function () {
if (((((((((board[this.row][this.col] == 2) or (board[this.row][this.col] == 3)) or (board[this.row][this.col] == 4)) or (board[this.row][this.col] == 5)) or (board[this.row][this.col] == 6)) or (board[this.row][this.col] == 7)) or (board[this.row][this.col] == 8)) or (board[this.row][this.col] == 9)) or (board[this.row][this.col] == 10)) {
_root.small_sound.start(0, 1);
timerRunning = true;
isMoving = true;
unitName.row = this.row;
unitName.col = this.col;
target = unitName;
endpoint = this;
speed = 20;
scale = -60;
}
};
if ((type == "walk") && (mov == 6)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 3) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 3;
}
if ((board[theTile.row][theTile.col] == 1) && ((((board[theTile.row + 1][theTile.col] == 3) or (board[theTile.row - 1][theTile.col] == 3)) or (board[theTile.row][theTile.col + 1] == 3)) or (board[theTile.row][theTile.col - 1] == 3))) {
board[theTile.row][theTile.col] = 4;
}
if ((board[theTile.row][theTile.col] == 1) && ((((board[theTile.row + 1][theTile.col] == 4) or (board[theTile.row - 1][theTile.col] == 4)) or (board[theTile.row][theTile.col + 1] == 4)) or (board[theTile.row][theTile.col - 1] == 4))) {
board[theTile.row][theTile.col] = 5;
}
if ((board[theTile.row][theTile.col] == 1) && ((((board[theTile.row + 1][theTile.col] == 5) or (board[theTile.row - 1][theTile.col] == 5)) or (board[theTile.row][theTile.col + 1] == 5)) or (board[theTile.row][theTile.col - 1] == 5))) {
board[theTile.row][theTile.col] = 6;
}
if (((theTile.distance > 6) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 5)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 3) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 3;
}
if ((board[theTile.row][theTile.col] == 1) && ((((board[theTile.row + 1][theTile.col] == 3) or (board[theTile.row - 1][theTile.col] == 3)) or (board[theTile.row][theTile.col + 1] == 3)) or (board[theTile.row][theTile.col - 1] == 3))) {
board[theTile.row][theTile.col] = 4;
}
if ((board[theTile.row][theTile.col] == 1) && ((((board[theTile.row + 1][theTile.col] == 4) or (board[theTile.row - 1][theTile.col] == 4)) or (board[theTile.row][theTile.col + 1] == 4)) or (board[theTile.row][theTile.col - 1] == 4))) {
board[theTile.row][theTile.col] = 5;
}
if (((theTile.distance > 5) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 4)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 3) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 3;
}
if ((board[theTile.row][theTile.col] == 1) && ((((board[theTile.row + 1][theTile.col] == 3) or (board[theTile.row - 1][theTile.col] == 3)) or (board[theTile.row][theTile.col + 1] == 3)) or (board[theTile.row][theTile.col - 1] == 3))) {
board[theTile.row][theTile.col] = 4;
}
if (((theTile.distance > 4) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 3)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 3) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 3;
}
if (((theTile.distance > 3) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 2)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance == 2) && (board[theTile.row][theTile.col] == 1)) && ((((board[theTile.row + 1][theTile.col] == 2) or (board[theTile.row - 1][theTile.col] == 2)) or (board[theTile.row][theTile.col + 1] == 2)) or (board[theTile.row][theTile.col - 1] == 2))) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance > 2) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if ((type == "walk") && (mov == 1)) {
if ((theTile.distance == 1) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance > 1) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
if (type == "fly") {
if ((theTile.distance <= mov) && (board[theTile.row][theTile.col] == 1)) {
board[theTile.row][theTile.col] = 2;
}
if (((theTile.distance > mov) && (theTile.isTaken == "none")) or (board[theTile.row][theTile.col] == 11)) {
board[theTile.row][theTile.col] = map[theTile.row][theTile.col];
}
}
row++;
}
col++;
}
}
moveObjects = function (target, endpoint, speed, scale) {
xdistance = Math.round(target._x - endpoint._x);
ydistance = Math.round(target._y - endpoint._y);
xspeed = Math.round(xdistance / speed);
yspeed = Math.round(ydistance / speed);
if (xdistance < 1) {
target._x = target._x + (-xspeed);
target._xscale = -60;
if (xdistance == -10) {
target._x = endpoint._x;
}
}
if (xdistance > 1) {
target._x = target._x - xspeed;
target._xscale = 60;
if (xdistance == 9) {
target._x = endpoint._x;
}
}
if (ydistance > 0) {
target._y = target._y - yspeed;
}
if (ydistance < 0) {
target._y = target._y + (-yspeed);
}
if (((xspeed > 1) or (xspeed < -1)) or ((yspeed > 1) or (yspeed < -1))) {
target.gotoAndStop("run");
} else {
xspeed = 0;
yspeed = 0;
target._x = endpoint._x;
target._y = endpoint._y;
target._xscale = scale;
isMoving = false;
if (target._currentframe == 5) {
target.gotoAndStop("stand");
}
}
};
function setup_battle_1() {
rowOffset = 200;
colOffset = 30;
numRows = 10;
numCols = 10;
tileName = new Array("non_walkable", "walkable", "isOpen_step1", "isOpen_step2", "isOpen_step3", "isOpen_step4", "isOpen_step5", "isOpen_step6", "isOpen_step7", "isOpen_step8", "isOpen_step9", "red");
map = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 1, 1, 0, 0, 0, 0, 0, 0), new Array(0, 1, 1, 1, 1, 0, 0, 0, 0, 0), new Array(0, 1, 0, 0, 1, 1, 0, 0, 0, 0), new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), new Array(0, 1, 1, 1, 1, 1, 0, 0, 0, 0), new Array(0, 1, 1, 1, 1, 0, 0, 0, 0, 0), new Array(0, 0, 1, 1, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
board = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 1, 1, 0, 0, 0, 0, 0, 0), new Array(0, 1, 1, 1, 1, 0, 0, 0, 0, 0), new Array(0, 1, 0, 0, 1, 1, 0, 0, 0, 0), new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), new Array(0, 1, 1, 1, 1, 1, 0, 0, 0, 0), new Array(0, 1, 1, 1, 1, 0, 0, 0, 0, 0), new Array(0, 0, 1, 1, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
boardDepth = new Array(new Array(9110, 9111, 9112, 9113, 9114, 9115, 9116, 9117, 9118, 9119), new Array(9120, 9121, 9122, 9123, 9124, 9125, 9126, 9127, 9128, 9129), new Array(9130, 9131, 9132, 9133, 9134, 9135, 9136, 9137, 9138, 9139), new Array(9140, 9141, 9142, 9143, 9144, 9145, 9146, 9147, 9148, 9149), new Array(9150, 9151, 9152, 9153, 9154, 9155, 9156, 9157, 9158, 9159), new Array(9160, 9161, 9162, 9163, 9164, 9165, 9166, 9167, 9168, 9169), new Array(9170, 9171, 9172, 9173, 9174, 9175, 9176, 9177, 9178, 9179), new Array(9180, 9181, 9182, 9183, 9184, 9185, 9186, 9187, 9188, 9189), new Array(9190, 9191, 9192, 9193, 9194, 9195, 9196, 9197, 9198, 9199), new Array(9200, 9201, 9202, 9203, 9204, 9205, 9206, 9207, 9208, 9209));
unitPosition = new Array(new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"), new Array("none", "none", "none", "none", "none", "none", "none", "none", "none", "none"));
player_id = "nera";
enemy_id = "sea_wolf";
current_moving = "nera";
current_attacking = "none";
timer = 0;
timerRunning = true;
if (_root.fistTime2 != false) {
_root.fistTime2 = false;
init();
}
nera_menu.skip_turn.onRelease = function () {
timerRunning = true;
};
nera_menu.profile.onRelease = function () {
_root.char_profile._visible = true;
_root.grid._visible = false;
_root.grid_tutorial._visible = false;
_root._quality = "high";
};
priestess_menu.skip_turn.onRelease = function () {
timerRunning = true;
};
this.attachMovie("nera", "nera", 99999);
nera._xscale = -60;
nera._yscale = 60;
nera.row = 4;
nera.col = 2;
board[nera.row][nera.col] = 0;
this.attachMovie("sea_wolf", "sea_wolf", 99998);
sea_wolf._xscale = 60;
sea_wolf._yscale = 60;
sea_wolf.row = 4;
sea_wolf.col = 9;
board[sea_wolf.row][sea_wolf.col] = 0;
this.attachMovie("tree1", "tree1", 9142);
tree1._xscale = 100;
tree1._yscale = 100;
tree1.row = 2;
tree1.col = 3;
tree1._x = 170;
tree1._y = 330;
nera_menu.dismiss.onRelease = function () {
priestess.gotoAndStop("disappear");
_root.priestess_live = false;
};
nera_menu.high_priestess_btn.onRelease = function () {
if ((((_root.priestess_live == false) && (_root.priestess_HP > 0)) && (board[nera.row][nera.col + 1] == 11)) && (unitPosition[nera.row][nera.col + 1] == "none")) {
_root.priestess_live = true;
_root.grid.attachMovie("priestess", "priestess", 99996);
priestess._xscale = -60;
priestess._yscale = 60;
priestess.row = nera.row;
priestess.col = nera.col + 1;
priestess.gotoAndStop("appear");
board[priestess.row][priestess.col] = 0;
col = 0;
while (col < numCols) {
row = 0;
while (row < numRows) {
this.attachMovie("tile", (("tile_" + col) + "_") + row, (100 * col) + row);
theTile = eval ((("tile_" + col) + "_") + row);
theTile._x = (col * theTile._width) + colOffset;
theTile._y = (row * theTile._height) + rowOffset;
theTile.row = row;
theTile.col = col;
if ((theTile.row == priestess.row) && (theTile.col == priestess.col)) {
priestess._x = theTile._x;
priestess._y = theTile._y;
priestess.swapDepths(boardDepth[priestess.row][priestess.col]);
unitPosition[priestess.row][priestess.col] = "priestess";
}
row++;
}
col++;
}
}
};
col = 0;
while (col < numCols) {
row = 0;
while (row < numRows) {
this.attachMovie("tile", (("tile_" + col) + "_") + row, (100 * col) + row);
theTile = eval ((("tile_" + col) + "_") + row);
theTile._x = (col * theTile._width) + colOffset;
theTile._y = (row * theTile._height) + rowOffset;
theTile.row = row;
theTile.col = col;
tileType1 = map[row][col];
theTile.gotoAndStop(tileName[tileType1]);
if ((theTile.row == nera.row) && (theTile.col == nera.col)) {
nera._x = theTile._x;
nera._y = theTile._y;
nera.swapDepths(boardDepth[nera.row][nera.col]);
unitPosition[nera.row][nera.col] = "nera";
} else if ((theTile.row == sea_wolf.row) && (theTile.col == sea_wolf.col)) {
sea_wolf._x = theTile._x;
sea_wolf._y = theTile._y;
sea_wolf.swapDepths(boardDepth[sea_wolf.row][sea_wolf.col]);
unitPosition[sea_wolf.row][sea_wolf.col] = "sea_wolf";
} else if ((theTile.row == priestess.row) && (theTile.col == priestess.col)) {
priestess._x = theTile._x;
priestess._y = theTile._y;
priestess.swapDepths(boardDepth[priestess.row][priestess.col]);
unitPosition[priestess.row][priestess.col] = "priestess";
} else if ((theTile.row == golem.row) && (theTile.col == golem.col)) {
golem._x = theTile._x;
golem._y = theTile._y;
golem.swapDepths(boardDepth[golem.row][golem.col]);
unitPosition[golem.row][golem.col] = "golem";
} else {
unitPosition[theTile.row][theTile.col] = "none";
}
row++;
}
col++;
}
}
setup_battle_1();
this.onEnterFrame = function () {
cursor._x = _xmouse;
cursor._y = _ymouse;
cursor.swapDepths(1000);
moveObjects(nera, _root.grid[(("tile_" + nera.col) + "_") + nera.row], speed, scale);
moveObjects(priestess, _root.grid[(("tile_" + priestess.col) + "_") + priestess.row], speed, scale);
moveObjects(target2, endpoint2, speed2, scale2);
if (board[sea_wolf.row][sea_wolf.col] != 11) {
board[sea_wolf.row][sea_wolf.col] = 0;
}
if (board[nera.row][nera.col] != 11) {
board[nera.row][nera.col] = 0;
}
if (board[priestess.row][priestess.col] != 11) {
board[priestess.row][priestess.col] = 0;
}
if (board[golem.row][golem.col] != 11) {
board[golem.row][golem.col] = 0;
}
nera.swapDepths(boardDepth[nera.row][nera.col]);
priestess.swapDepths(boardDepth[priestess.row][priestess.col]);
golem.swapDepths(boardDepth[golem.row][golem.col]);
sea_wolf.swapDepths(boardDepth[sea_wolf.row][sea_wolf.col]);
col = 0;
while (col < numCols) {
row = 0;
while (row < numRows) {
theTile = eval ((("tile_" + col) + "_") + row);
if ((theTile.row == nera.row) && (theTile.col == nera.col)) {
nera.swapDepths(boardDepth[nera.row][nera.col]);
unitPosition[nera.row][nera.col] = "nera";
} else if ((theTile.row == sea_wolf.row) && (theTile.col == sea_wolf.col)) {
sea_wolf.swapDepths(boardDepth[sea_wolf.row][sea_wolf.col]);
unitPosition[sea_wolf.row][sea_wolf.col] = "sea_wolf";
} else if ((theTile.row == priestess.row) && (theTile.col == priestess.col)) {
priestess.swapDepths(boardDepth[priestess.row][priestess.col]);
unitPosition[priestess.row][priestess.col] = "priestess";
} else if ((theTile.row == golem.row) && (theTile.col == golem.col)) {
golem.swapDepths(boardDepth[golem.row][golem.col]);
unitPosition[golem.row][golem.col] = "golem";
} else {
unitPosition[theTile.row][theTile.col] = "none";
}
row++;
}
col++;
}
if (timerRunning == true) {
timer++;
timer = timer % 20;
}
if ((timer == 1) && (_root.nera_live == true)) {
nera_menu._visible = true;
priestess_menu._visible = false;
_root.phrase = "Move";
timerRunning = false;
current_moving = "nera";
unitMoving(this[current_moving], "walk", 3);
}
if ((timer == 2) && (_root.nera_live == true)) {
timerRunning = false;
if (_root.phrase == "Move") {
_root.phrase = "Action";
_root.energy_orb = _root.energy_orb + _root.nera_mac;
}
attackFunction(this[current_moving], 1);
}
if (timer == 3) {
canAct = false;
cleanArray();
}
if ((timer == 4) && (_root.sea_wolf_live == true)) {
nera_menu._visible = false;
priestess_menu._visible = false;
_root.phrase = "A.I";
current_moving = "sea_wolf";
timerRunning = false;
getClosestEnemy(this[current_moving], "nera", "priestess");
AI_Moving(this[current_moving], "walk", 4, 1, closest_target);
}
if ((timer == 5) && (_root.priestess_live == true)) {
nera_menu._visible = false;
priestess_menu._visible = true;
_root.phrase = "Move";
timerRunning = false;
current_moving = "priestess";
unitMoving(this[current_moving], "fly", 5);
}
if ((timer == 6) && (_root.priestess_live == true)) {
timerRunning = false;
_root.phrase = "Action";
attackFunction(this[current_moving], 1);
}
};
Symbol 983 MovieClip Frame 1
stop();
gotoAndPlay(_root.player_id);
Symbol 983 MovieClip Frame 14
stop();
Symbol 983 MovieClip Frame 26
stop();
Symbol 983 MovieClip Frame 37
stop();
Symbol 984 MovieClip Frame 1
stop();
gotoAndPlay(_root.enemy_id);
Symbol 984 MovieClip Frame 14
stop();
Symbol 984 MovieClip Frame 26
stop();
Symbol 984 MovieClip Frame 37
stop();
Symbol 1015 MovieClip Frame 1
stop();
next_btn.onRelease = function () {
gotoAndStop (5);
};
Symbol 1015 MovieClip Frame 5
stop();
next_btn.onRelease = function () {
gotoAndStop (10);
};
Symbol 1015 MovieClip Frame 10
stop();
next_btn.onRelease = function () {
gotoAndStop (15);
};
Symbol 1015 MovieClip Frame 15
stop();
next_btn.onRelease = function () {
if ((_parent.player_choice_2 == "attack2") && (_parent.player_choice_3 == "attack2")) {
gotoAndStop (20);
}
};
Symbol 1015 MovieClip Frame 20
stop();
next_btn.onRelease = function () {
gotoAndPlay (25);
};
Symbol 1015 MovieClip Frame 25
stop();
next_btn.onRelease = function () {
gotoAndPlay (30);
};
Symbol 1015 MovieClip Frame 30
stop();
next_btn.onRelease = function () {
_root.want_tutorial = false;
gotoAndStop (35);
};
Symbol 1015 MovieClip Frame 35
stop();
next_btn.onRelease = function () {
gotoAndStop (40);
};
Symbol 1015 MovieClip Frame 40
stop();
next_btn.onRelease = function () {
gotoAndStop (45);
};
Symbol 1015 MovieClip Frame 45
stop();
next_btn.onRelease = function () {
if (_root.priestess_live == true) {
gotoAndStop (50);
}
};
Symbol 1015 MovieClip Frame 50
stop();
next_btn.onRelease = function () {
if (_root.phrase == "Action") {
gotoAndStop (55);
}
};
Symbol 1015 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
gotoAndStop (60);
};
Symbol 1023 MovieClip Frame 1
stop();
Symbol 1023 MovieClip Frame 5
stop();
Symbol 1023 MovieClip Frame 10
stop();
Symbol 1023 MovieClip Frame 15
stop();
Symbol 1023 MovieClip Frame 20
stop();
Symbol 1032 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.nelly1._HP >= 0) {
this._width = (_parent.nelly._HP / _parent.nelly._maxHP) * 300;
}
if (_parent.nelly1._HP < 0) {
this._width = 0;
}
};
Symbol 1034 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.nelly2._HP >= 0) {
this._width = (_parent.nelly2._HP / _parent.nelly2._maxHP) * 300;
}
if (_parent.nelly2._HP <= 0) {
this._width = 0;
}
};
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 5
stop();
Symbol 1051 MovieClip Frame 10
stop();
Symbol 1051 MovieClip Frame 15
stop();
Symbol 1051 MovieClip Frame 20
stop();
Symbol 1051 MovieClip Frame 25
stop();
Symbol 1052 MovieClip Frame 30
this._visible = false;
Symbol 1056 MovieClip Frame 1
stop();
Symbol 1056 MovieClip Frame 5
stop();
Symbol 1056 MovieClip Frame 10
stop();
Symbol 1056 MovieClip Frame 15
stop();
Symbol 1056 MovieClip Frame 20
stop();
Symbol 1056 MovieClip Frame 25
stop();
Symbol 1057 MovieClip Frame 30
this._visible = false;
Symbol 1101 MovieClip Frame 1
stop();
Symbol 1101 MovieClip Frame 6
stop();
Symbol 1102 MovieClip Frame 2
tutorial._visible = false;
if (_root.tutorial2_seen == false) {
_root.tutorial2_seen = true;
tutorial._visible = true;
}
tutorial.onEnterFrame = function () {
if (_root.want_tutorial == false) {
tutorial._visible = false;
}
};
stop();
start_btn.onRelease = function () {
gotoAndStop ("battle_scene");
};
lower._xscale = -100;
control.action6._visible = false;
control.action7._visible = false;
control.action8._visible = false;
control.action9._visible = false;
control.action10._visible = false;
enemy_choice_1 = "attack1";
enemy_choice_2 = "attack1";
enemy_choice_3 = "attack1";
enemy_choice_4 = "attack1";
enemy_choice_5 = "attack1";
enemy_choice_6 = "attack0";
enemy_choice_7 = "attack0";
enemy_choice_8 = "attack0";
enemy_choice_9 = "attack0";
enemy_choice_10 = "attack0";
player_choice_1 = "attack1";
player_choice_2 = "attack1";
player_choice_3 = "attack1";
player_choice_4 = "attack1";
player_choice_5 = "attack1";
player_choice_6 = "attack0";
player_choice_7 = "attack0";
player_choice_8 = "attack0";
player_choice_9 = "attack0";
player_choice_10 = "attack0";
getID = function (id) {
player_lvl = _root[id + "_lvl"];
player_ele = _root[id + "_ele"];
player_against_fire = _root[id + "_against_fire"];
player_against_ice = _root[id + "_against_ice"];
player_against_lightening = _root[id + "_against_lightening"];
player_against_magic = _root[id + "_against_magic"];
player_against_physical = _root[id + "_against_physical"];
player_skill1_cost = _root[id + "_skill1_cost"];
player_skill2_cost = _root[id + "_skill2_cost"];
player_skill3_cost = _root[id + "_skill3_cost"];
player_skill4_cost = _root[id + "_skill4_cost"];
player_skill5_cost = _root[id + "_skill5_cost"];
player_skill6_cost = _root[id + "_skill6_cost"];
player_pow = _root[id + "_pow"];
player_end = _root[id + "_end"];
player_agi = _root[id + "_agi"];
player_mac = _root[id + "_mac"];
player_maxHP = _root[id + "_maxHP"];
player_HP = _root[id + "_HP"];
player_def = _root[id + "_def"];
player_mdef = _root[id + "_mdef"];
player_dodge = _root[id + "_dodge"];
};
getEnemyID = function (id) {
enemy_lvl = _root[id + "_lvl"];
enemy_ele = _root[id + "_ele"];
enemy_against_fire = _root[id + "_against_fire"];
enemy_against_ice = _root[id + "_against_ice"];
enemy_against_lightening = _root[id + "_against_lightening"];
enemy_against_magic = _root[id + "_against_magic"];
enemy_against_physical = _root[id + "_against_physical"];
enemy_skill1_cost = _root[id + "_skill1_cost"];
enemy_skill2_cost = _root[id + "_skill2_cost"];
enemy_skill3_cost = _root[id + "_skill3_cost"];
enemy_skill4_cost = _root[id + "_skill4_cost"];
enemy_skill5_cost = _root[id + "_skill5_cost"];
enemy_skill6_cost = _root[id + "_skill6_cost"];
enemy_pow = _root[id + "_pow"];
enemy_end = _root[id + "_end"];
enemy_agi = _root[id + "_agi"];
enemy_mac = _root[id + "_mac"];
enemy_maxHP = _root[id + "_maxHP"];
enemy_HP = _root[id + "_HP"];
enemy_def = _root[id + "_def"];
enemy_mdef = _root[id + "_mdef"];
enemy_dodge = _root[id + "_dodge"];
};
_root.onEnterFrame = function () {
check_acc(_root.player_id, _root.enemy_id);
check_acc(_root.enemy_id, _root.player_id);
getID(_root.player_id);
getEnemyID(_root.enemy_id);
if (_root.player_id == "priestess") {
control.gotoAndStop("priestess");
_root.priestess_role = "ATTACKER";
}
if (_root.enemy_id == "priestess") {
control.gotoAndStop("priestess");
_root.priestess_role = "DEFENDER";
}
if (_root.player_id == "nera") {
control.gotoAndStop("nera");
_root.nera_role = "ATTACKER";
}
if (_root.enemy_id == "nera") {
control.gotoAndStop("nera");
_root.nera_role = "DEFENDER";
}
if (_root.player_id == "sea_wolf") {
enemy_data.gotoAndStop("sea_wolf");
_root.sea_wolf_role = "ATTACKER";
}
if (_root.enemy_id == "sea_wolf") {
enemy_data.gotoAndStop("sea_wolf");
_root.sea_wolf_role = "DEFENDER";
}
};
Symbol 1102 MovieClip Frame 5
function computerBeingAttacker() {
if ((Math.random() * 100) <= 40) {
nelly.gotoAndStop("attack1");
} else {
nelly.gotoAndStop("attack2");
}
}
function computerBeingDefender() {
if ((Math.random() * 100) <= 40) {
nelly2.gotoAndStop("attack1");
} else {
nelly2.gotoAndStop("attack2");
}
}
function controlAttacker() {
_root.big_sound.start(0, 1);
_isattacking = true;
ability_menu._visible = true;
ability_menu.ability1.onRelease = function () {
if (_root.energy_orb >= player_skill1_cost) {
timecounter++;
nelly.gotoAndStop("attack1");
ability_menu._visible = false;
_root.energy_orb = _root.energy_orb - player_skill1_cost;
}
};
ability_menu.ability2.onRelease = function () {
if (_root.energy_orb >= player_skill2_cost) {
timecounter++;
nelly.gotoAndStop("attack2");
ability_menu._visible = false;
_root.energy_orb = _root.energy_orb - player_skill2_cost;
}
};
}
function controlDefender() {
_root.big_sound.start(0, 1);
_isattacking = true;
ability_menu._visible = true;
ability_menu.ability1.onRelease = function () {
if (_root.energy_orb >= enemy_skill1_cost) {
timecounter++;
nelly2.gotoAndStop("attack1");
ability_menu._visible = false;
_root.energy_orb = _root.energy_orb - enemy_skill1_cost;
}
};
ability_menu.ability2.onRelease = function () {
if (_root.energy_orb >= enemy_skill2_cost) {
timecounter++;
nelly2.gotoAndStop("attack2");
ability_menu._visible = false;
_root.energy_orb = _root.energy_orb - enemy_skill2_cost;
}
};
}
stop();
timecounter = -1;
_isattacking = false;
_isattacking1 = false;
attacknumber = 0;
this.nelly_damage._visible = false;
this.nelly2_damage._visible = false;
if (_root.player_id == "sea_wolf") {
player_choice_1 = "attack1";
player_choice_2 = "attack2";
player_choice_3 = "attack1";
player_choice_4 = "attack2";
player_choice_5 = "attack1";
}
if (_root.enemy_id == "sea_wolf") {
enemy_choice_1 = "attack1";
enemy_choice_2 = "attack2";
enemy_choice_3 = "attack1";
enemy_choice_4 = "attack2";
enemy_choice_5 = "attack1";
}
if (player_ele == "blue") {
nelly_indicator.gotoAndStop("ice");
}
if (player_ele == "red") {
nelly_indicator.gotoAndStop("fire");
}
if (player_ele == "yellow") {
nelly_indicator.gotoAndStop("lightening");
}
if (player_ele == "white") {
nelly_indicator.gotoAndStop("magic");
}
if (player_ele == "black") {
nelly_indicator.gotoAndStop("physical");
}
if (enemy_ele == "blue") {
nelly2_indicator.gotoAndStop("ice");
}
if (enemy_ele == "red") {
nelly2_indicator.gotoAndStop("fire");
}
if (enemy_ele == "yellow") {
nelly2_indicator.gotoAndStop("lightening");
}
if (enemy_ele == "white") {
nelly2_indicator.gotoAndStop("magic");
}
if (enemy_ele == "black") {
nelly2_indicator.gotoAndStop("physical");
}
this.attachMovie(_root.player_id, "nelly", 2);
nelly._x = 300;
nelly._y = 300;
nelly._xscale = 100;
nelly._yscale = 100;
nelly._lvl = player_lvl;
nelly._ele = player_ele;
nelly._against_fire = player_against_fire;
nelly._against_ice = player_against_ice;
nelly._against_lightening = player_against_lightening;
nelly._against_magic = player_against_magic;
nelly._against_physical = player_against_physical;
nelly.skill1_cost = player_skill1_cost;
nelly.skill2_cost = player_skill2_cost;
nelly.skill3_cost = player_skill3_cost;
nelly.skill4_cost = player_skill4_cost;
nelly.skill5_cost = player_skill5_cost;
nelly.skill6_cost = player_skill6_cost;
nelly._pow = player_pow;
nelly._end = player_end;
nelly._agi = player_agi;
nelly._mac = player_mac;
nelly._HP = player_HP;
nelly._maxHP = player_maxHP;
nelly._def = player_def;
nelly._mdef = player_mdef;
nelly._dodge = player_dodge;
nelly._delay = 20 + (40 - (nelly._agi * 2));
_root.battle.nelly._disHP = Math.round(_root.battle.nelly._HP);
this.attachMovie(_root.enemy_id, "nelly2", 1);
nelly2._x = -125;
nelly2._y = 300;
nelly2._xscale = -100;
nelly2._yscale = 100;
nelly2._lvl = enemy_lvl;
nelly2._ele = enemy_ele;
nelly2._against_fire = enemy_against_fire;
nelly2._against_ice = enemy_against_ice;
nelly2._against_lightening = enemy_against_lightening;
nelly2._against_magic = enemy_against_magic;
nelly2._against_physical = enemy_against_physical;
nelly2.skill1_cost = enemy_skill1_cost;
nelly2.skill2_cost = enemy_skill2_cost;
nelly2.skill3_cost = enemy_skill3_cost;
nelly2.skill4_cost = enemy_skill4_cost;
nelly2.skill5_cost = enemy_skill5_cost;
nelly2.skill6_cost = enemy_skill6_cost;
nelly2._pow = enemy_pow;
nelly2._end = enemy_end;
nelly2._agi = enemy_agi;
nelly2._mac = enemy_mac;
nelly2._HP = enemy_HP;
nelly2._maxHP = enemy_maxHP;
nelly2._def = enemy_def;
nelly2._mdef = enemy_mdef;
nelly2._dodge = enemy_dodge;
nelly2._delay = 20 + (40 - (nelly2._agi * 2));
_root.battle.nelly2._disHP = Math.round(_root.battle.nelly2._HP);
if ((_root.player_id == "nera") or (_root.player_id == "priestess")) {
ability_menu._visible = false;
ability_menu._x = nelly._x - 25;
ability_menu._y = nelly._y - nelly._height;
ability_menu.gotoAndPlay(_root.player_id);
} else {
ability_menu._visible = false;
ability_menu._x = nelly2._x - 25;
ability_menu._y = nelly2._y - nelly2._height;
ability_menu.gotoAndPlay(_root.enemy_id);
}
shortcut_keys = new Object();
Key.addListener(shortcut_keys);
shortcut_keys.onKeyDown = function () {
if (ability_menu._visible == true) {
if ((_root.player_id == "nera") or (_root.player_id == "priestess")) {
keyPressed = Key.getCode();
if (keyPressed == 49) {
if (_root.energy_orb >= player_skill1_cost) {
timecounter++;
nelly.gotoAndStop("attack1");
ability_menu._visible = false;
_root.energy_orb = _root.energy_orb - player_skill1_cost;
}
}
if (keyPressed == 50) {
if (_root.energy_orb >= player_skill2_cost) {
timecounter++;
nelly.gotoAndStop("attack2");
ability_menu._visible = false;
_root.energy_orb = _root.energy_orb - player_skill2_cost;
}
}
} else {
keyPressed = Key.getCode();
if (keyPressed == 49) {
if (_root.energy_orb >= enemy_skill1_cost) {
timecounter++;
nelly2.gotoAndStop("attack1");
ability_menu._visible = false;
_root.energy_orb = _root.energy_orb - enemy_skill1_cost;
}
}
if (keyPressed == 50) {
if (_root.energy_orb >= enemy_skill2_cost) {
timecounter++;
nelly2.gotoAndStop("attack2");
ability_menu._visible = false;
_root.energy_orb = _root.energy_orb - enemy_skill2_cost;
}
}
}
}
};
nelly.onEnterFrame = function () {
_root.battle.nelly2._disHP = Math.round(_root.battle.nelly2._HP);
_root.battle.nelly._disHP = Math.round(_root.battle.nelly._HP);
if ((_root.player_id == "nera") or (_root.player_id == "priestess")) {
if ((timecounter == this._delay) && (_isattacking == false)) {
controlAttacker();
}
if ((timecounter == (this._delay * 2)) && (_isattacking == false)) {
controlAttacker();
}
if ((timecounter == (this._delay * 3)) && (_isattacking == false)) {
controlAttacker();
}
if ((timecounter == (this._delay * 4)) && (_isattacking == false)) {
controlAttacker();
}
if ((timecounter == (this._delay * 5)) && (_isattacking == false)) {
controlAttacker();
}
if (nelly._agi == nelly2._agi) {
if ((timecounter == (nelly2._delay + 1)) && (_isattacking == false)) {
}
} else if ((timecounter == (nelly2._delay + 1)) && (_isattacking == false)) {
computerBeingDefender();
}
if ((timecounter == ((nelly2._delay * 2) + 1)) && (_isattacking == false)) {
computerBeingDefender();
}
if ((timecounter == ((nelly2._delay * 3) + 1)) && (_isattacking == false)) {
computerBeingDefender();
}
if ((timecounter == ((nelly2._delay * 4) + 1)) && (_isattacking == false)) {
computerBeingDefender();
}
if ((timecounter == ((nelly2._delay * 5) + 1)) && (_isattacking == false)) {
computerBeingDefender();
}
} else {
if ((timecounter == nelly2._delay) && (_isattacking == false)) {
controlDefender();
}
if ((timecounter == (nelly2._delay * 2)) && (_isattacking == false)) {
controlDefender();
}
if ((timecounter == (nelly2._delay * 3)) && (_isattacking == false)) {
controlDefender();
}
if ((timecounter == (nelly2._delay * 4)) && (_isattacking == false)) {
controlDefender();
}
if ((timecounter == (nelly2._delay * 5)) && (_isattacking == false)) {
controlDefender();
}
if (nelly._agi == nelly2._agi) {
if ((timecounter == (nelly._delay + 1)) && (_isattacking == false)) {
computerBeingAttacker();
}
} else if ((timecounter == (nelly._delay + 1)) && (_isattacking == false)) {
computerBeingAttacker();
}
if ((timecounter == ((nelly._delay * 2) + 1)) && (_isattacking == false)) {
computerBeingAttacker();
}
if ((timecounter == ((nelly._delay * 3) + 1)) && (_isattacking == false)) {
computerBeingAttacker();
}
if ((timecounter == ((nelly._delay * 4) + 1)) && (_isattacking == false)) {
computerBeingAttacker();
}
if ((timecounter == ((nelly._delay * 5) + 1)) && (_isattacking == false)) {
computerBeingAttacker();
}
}
};
timer1.onEnterFrame = function () {
if (nelly._HP <= 0) {
nelly._HP = 0;
}
if (nelly2._HP <= 0) {
nelly2._HP = 0;
}
if (_isattacking == false) {
timecounter++;
timer1.play();
}
if (_isattacking == true) {
timer1.stop();
}
if (nelly._HP <= 0) {
nelly.gotoAndStop("die");
}
if (nelly2._HP <= 0) {
nelly2.gotoAndStop("die");
}
if ((timecounter > 103) && (_isattacking == false)) {
if (nelly._HP <= 0) {
_root[_parent.player_id + "_live"] = false;
_root.grid[_root.player_id].removeMovieClip();
_root.battle_music.stop();
}
if (nelly2._HP <= 0) {
_root[_parent.enemy_id + "_live"] = false;
_root.grid[_root.enemy_id].removeMovieClip();
_root.battle_music.stop();
}
_root.grid.timerRunning = true;
timecounter = 103;
timer1.stop();
_root[_parent.player_id + "_HP"] = Math.round(nelly._HP);
_root[_parent.enemy_id + "_HP"] = Math.round(nelly2._HP);
_root.battle._visible = false;
_root.grid._visible = true;
_root.battle.gotoAndStop("select_scene");
nelly.removeMovieClip();
nelly2.removeMovieClip();
_root.battle_music.stop();
}
};
Symbol 1515 MovieClip Frame 1
stop();
next_btn.onRelease = function () {
gotoAndStop (5);
};
no_btn.onRelease = function () {
_root.char_profile.tutorial._visible = false;
};
Symbol 1515 MovieClip Frame 5
stop();
next_btn.onRelease = function () {
gotoAndStop (10);
};
Symbol 1515 MovieClip Frame 10
stop();
next_btn.onRelease = function () {
gotoAndStop (15);
};
Symbol 1515 MovieClip Frame 15
stop();
next_btn.onRelease = function () {
gotoAndStop (20);
};
Symbol 1515 MovieClip Frame 20
stop();
next_btn.onRelease = function () {
gotoAndPlay (25);
};
Symbol 1515 MovieClip Frame 25
stop();
next_btn.onRelease = function () {
gotoAndPlay (30);
};
Symbol 1515 MovieClip Frame 30
stop();
next_btn.onRelease = function () {
gotoAndStop (35);
};
Symbol 1515 MovieClip Frame 35
stop();
next_btn.onRelease = function () {
gotoAndStop (40);
};
Symbol 1515 MovieClip Frame 40
stop();
next_btn.onRelease = function () {
gotoAndStop (45);
};
Symbol 1515 MovieClip Frame 45
stop();
next_btn.onRelease = function () {
gotoAndStop (50);
};
Symbol 1515 MovieClip Frame 50
stop();
next_btn.onRelease = function () {
gotoAndStop (55);
};
Symbol 1515 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
gotoAndStop (60);
};
Symbol 1515 MovieClip Frame 60
stop();
next_btn.onRelease = function () {
_root.char_profile.tutorial._visible = false;
};
Symbol 1545 MovieClip Frame 1
close_btn.onRelease = function () {
_root.char_profile._visible = false;
_root.grid._visible = true;
if (_root.want_tutorial == true) {
_root.grid_tutorial._visible = true;
_root.grid_tutorial.gotoAndPlay(30);
}
_root._quality = "medium";
};
priestess.onRelease = function () {
gotoAndStop ("priestess");
};
nera.onRelease = function () {
gotoAndStop ("nera");
};
tutorial._visible = false;
if (_root.tutorial3_seen == false) {
_root.tutorial3_seen = true;
tutorial._visible = true;
}
tutorial.onEnterFrame = function () {
if (_root.want_tutorial == false) {
tutorial._visible = false;
}
};
stop();
Symbol 1545 MovieClip Frame 5
stop();
Symbol 1561 MovieClip Frame 1
stop();
next_btn.onRelease = function () {
gotoAndStop (5);
};
no_btn.onRelease = function () {
_root.want_tutorial = false;
_root.grid_tutorial._visible = false;
};
Symbol 1561 MovieClip Frame 5
stop();
next_btn.onRelease = function () {
gotoAndStop (10);
};
Symbol 1561 MovieClip Frame 10
stop();
next_btn.onRelease = function () {
gotoAndStop (15);
};
Symbol 1561 MovieClip Frame 15
stop();
next_btn.onRelease = function () {
gotoAndStop (20);
};
Symbol 1561 MovieClip Frame 20
stop();
next_btn.onRelease = function () {
gotoAndPlay (25);
};
Symbol 1561 MovieClip Frame 25
stop();
next_btn.onRelease = function () {
if (_root.tutorial3_seen == true) {
gotoAndPlay (30);
}
};
Symbol 1561 MovieClip Frame 30
stop();
next_btn.onRelease = function () {
if (_root.phrase == "Action") {
gotoAndStop (35);
}
};
Symbol 1561 MovieClip Frame 35
stop();
next_btn.onRelease = function () {
gotoAndStop (40);
};
Symbol 1561 MovieClip Frame 40
stop();
next_btn.onRelease = function () {
gotoAndStop (45);
};
Symbol 1561 MovieClip Frame 45
stop();
next_btn.onRelease = function () {
if (_root.priestess_live == true) {
gotoAndStop (50);
}
};
Symbol 1561 MovieClip Frame 50
stop();
next_btn.onRelease = function () {
if (_root.phrase == "Action") {
gotoAndStop (55);
}
};
Symbol 1561 MovieClip Frame 55
stop();
next_btn.onRelease = function () {
gotoAndStop (60);
};
Symbol 1584 MovieClip Frame 1
stop();
Symbol 1584 MovieClip Frame 5
proceed.onRelease = function () {
gotoAndStop ("msg");
};
Symbol 1584 MovieClip Frame 10
retry.onRelease = function () {
_root.battle_music.stop();
_root.gotoAndStop("pre_battle1");
setup_battle_1();
};
quit.onRelease = function () {
_root.battle_music.stop();
_root.gotoAndStop("tittle_scene");
setup_battle_1();
};
Symbol 1584 MovieClip Frame 15
stop();
retry.onRelease = function () {
_root.battle_music.stop();
_root.gotoAndStop("tittle_scene");
setup_battle_1();
};