Frame 1
stop();
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (load) {
load = false;
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
_yscale = ((loaded / total) * 100);
_root.percent_txt.text = Math.ceil(_yscale) + "%";
if ((_yscale == 100) && (!load)) {
load = true;
_root.claw.gotoAndPlay(1);
}
}
Frame 3
stop();
vol = 100;
_root.BGM0 = new Sound();
_root.BGM0.attachSound("animal_spooky");
_root.BGM0.start();
_root.BGM0.onSoundComplete = function () {
_root.BGM0.start(9);
};
distraction = true;
lang = "eng";
Instance of Symbol 24 MovieClip in Frame 3
on (press) {
_root.distraction = false;
_root.gotoAndPlay("genesis");
}
Frame 4
function initialize() {
i = 0;
while (i <= 5) {
if (_root.party[i].hp >= 0) {
block = eval ("_root.block" + _root.party[i].pos);
char = eval ("_root.char" + i);
char._x = block._x;
char._y = block._y;
char.num = i;
frame = _root.party[i].card;
char.face.gotoAndStop(frame);
frame = _root.party[i].at;
char.attack.gotoAndStop(frame);
frame = _root.party[i].spec + 2;
char.spec.gotoAndStop(frame);
}
i++;
}
}
function e_initialize() {
i = 0;
while (i <= 2) {
block = eval ("_root.e_block" + i);
if (_root.e_party[i].hp >= 0) {
enemy = eval ("_root.enemy" + i);
enemy._x = block._x;
enemy._y = block._y;
enemy.num = i;
frame = _root.e_party[i].card;
enemy.face.gotoAndStop(frame);
frame = _root.e_party[i].at;
enemy.attack.gotoAndStop(frame);
frame = _root.e_party[i].spec + 2;
enemy.spec.gotoAndStop(frame);
}
i++;
}
i = 3;
while (i <= 5) {
block = eval ("_root.e_block" + i);
if (_root.e_party[i].hp >= 0) {
enemy = eval ("_root.enemy" + i);
enemy._x = block._x;
enemy._y = block._y;
enemy.num = i;
frame = _root.e_party[i].card;
enemy.face.gotoAndStop(frame);
frame = _root.e_party[i].at;
enemy.attack.gotoAndStop(frame);
frame = _root.e_party[i].spec + 2;
enemy.spec.gotoAndStop(frame);
}
i++;
}
}
function setup_initialize() {
i = 0;
while (i <= 5) {
if (_root.party[i].hp >= 0) {
block = eval ("_root.block" + _root.party[i].pos);
duplicateMovieClip (_root.char_b, "char_b" + i, 2000 + i);
char_b = eval ("_root.char_b" + i);
char_b._x = block._x;
char_b._y = block._y;
char_b.num = i;
frame = _root.party[i].card;
char_b.face.gotoAndStop(frame);
frame = _root.party[i].at;
char_b.attack.gotoAndStop(frame);
frame = _root.party[i].spec + 2;
char_b.spec.gotoAndStop(frame);
}
i++;
}
}
function spare_initialize(num) {
char_b = eval ("_root.char_b" + num);
frame = _root.party[num].card;
char_b.face.gotoAndStop(frame);
frame = _root.party[num].at;
char_b.attack.gotoAndStop(frame);
frame = _root.party[num].spec + 2;
char_b.spec.gotoAndStop(frame);
}
function e_deathcheck() {
if (_root.e_party[this.num].hp <= 0) {
this.death._visible = true;
} else {
this.death._visible = false;
}
}
function deathcheck() {
if (_root.party[this.num].hp <= 0) {
this.death._visible = true;
} else {
this.death._visible = false;
}
}
function readycheck() {
if (_root.party[this.num].ready == 0) {
this.dark._visible = true;
} else {
this.dark._visible = false;
}
}
function e_readycheck() {
if (_root.e_party[this.num].ready == 0) {
this.dark._visible = true;
} else {
this.dark._visible = false;
}
}
function readyall() {
i = 0;
while (i <= 5) {
_root.party[i].ready = _root.party[i].ap;
_root.e_party[i].ready = _root.e_party[i].ap;
if (_root.party[i].spec == _root.terrain_ap) {
_root.party[i].ready++;
}
if (_root.e_party[i].spec == _root.terrain_ap) {
_root.e_party[i].ready++;
}
i++;
}
}
function victorycheck() {
victory = true;
i = 0;
while (i <= 5) {
if (_root.e_party[i].hp > 0) {
victory = false;
}
i++;
}
return(victory);
}
function clear_e_lights() {
i = 0;
while (i <= 5) {
block = eval ("_root.e_block" + i);
block.outline._visible = false;
block.outline_tough._visible = false;
block.outline_random._visible = false;
i++;
}
}
function clear_lights() {
i = 0;
while (i <= 5) {
block = eval ("_root.e_block" + i);
block.outline._visible = false;
block.outline_tough._visible = false;
block.outline_random._visible = false;
char = eval ("_root.char" + i);
char.outline._visible = false;
char.outline_white._visible = false;
char.outline_white2._visible = false;
enemy = eval ("_root.enemy" + i);
enemy.outline._visible = false;
i++;
}
}
function startshake() {
if (this.shake > 0) {
if ((this.shake % 2) == 0) {
this._x = this.homex + 3;
} else {
this._x = this.homex - 3;
}
this.shake--;
if (this.shake == 0) {
this._x = this.homex;
}
} else {
this.homex = this._x;
}
}
function castles_beaten() {
total = 0;
if (_root.map1[11] == 0) {
total++;
}
if (_root.map2[5] == 0) {
total++;
}
if (_root.map3[16] == 0) {
total++;
}
if (_root.map4[15] == 0) {
total++;
}
if (_root.map5[9] == 0) {
total++;
}
if (_root.map6[9] == 0) {
total++;
}
if (_root.map7[9] == 0) {
total++;
}
if (_root.map8[3] == 0) {
total++;
}
if (_root.map8[5] == 0) {
total++;
}
if (_root.map8[7] == 0) {
total++;
}
if (_root.map8[8] == 0) {
total++;
}
if (_root.map8[9] == 0) {
total++;
}
return(total);
}
function getSpec(num) {
total = 0;
i = 0;
while (i <= 5) {
if (_root.party[i].spec == num) {
total++;
}
i++;
}
if (_root.terrain_mag == num) {
total++;
}
switch (num) {
case 1 :
total = total + _root.item_brute_plus;
break;
case 2 :
total = total + _root.item_water_plus;
break;
case 3 :
total = total + _root.item_fire_plus;
break;
case 4 :
total = total + _root.item_mag_plus;
}
return(total);
}
function randomize(num) {
_root.fx6.stop("effect6");
_root.fx6.start();
_root.party[num].card = random(_root.selectable_animals) + 1;
_root.party[num].level = 0;
_root.set_card(_root.party[num].card, _root.party[num], true);
_root.initialize(num);
_root.magiclist();
}
function randomize_limited(num) {
_root.fx6.stop("effect6");
_root.fx6.start();
seed = random(_root.enemylist.length);
_root.party[num].card = _root.enemylist[seed];
_root.set_card(_root.party[num].card, _root.party[num], true);
_root.lev_adjust(num);
_root.initialize(num);
_root.magiclist();
}
function setup_party() {
_root.fx5.stop("effect5");
_root.fx5.start();
i = 0;
while (i <= 5) {
_root.party[i] = new Object();
_root.party[i].card = random(_root.selectable_animals) + 1;
_root.party[i].level = 0;
_root.party[i].pos = i;
_root.set_card(_root.party[i].card, _root.party[i], true);
i++;
}
}
function create_party() {
_root.party = new Array();
_root.fx5.stop("effect5");
_root.fx5.start();
i = 0;
while (i <= 5) {
_root.party[i].card = random(_root.selectable_animals) + 1;
_root.party[i].level = 0;
_root.party[i].pos = i;
_root.set_card(_root.party[i].card, _root.party[i], true);
i++;
}
}
function create_e_party_skirmish() {
i = 0;
while (i <= 5) {
level = _root.enemylevel + (random(11) - 5);
if (level < 0) {
level = 0;
}
if (level > 50) {
level = 50;
}
_root.e_party[i].card = random(max_animals) + 1;
_root.e_party[i].level = level;
_root.e_party[i].pos = i;
_root.set_card(_root.e_party[i].card, _root.e_party[i], false);
_root.e_lev_adjust(i);
i++;
}
}
function create_e_party_random() {
i = 0;
while (i <= 5) {
level = _root.enemylevel + (random(11) - 5);
if (level < 0) {
level = 0;
}
if (level > 50) {
level = 50;
}
seed = random(_root.enemylist.length);
_root.e_party[i].card = _root.enemylist[seed];
_root.e_party[i].level = level;
_root.e_party[i].pos = i;
_root.set_card(_root.e_party[i].card, _root.e_party[i], false);
_root.e_lev_adjust(i);
i++;
}
}
function create_e_party_control(enemyarray, num) {
i = 0;
while (i <= 5) {
level = num + (random(3) - 1);
if (level < 0) {
level = 0;
}
if (level > 50) {
level = 50;
}
_root.e_party[i].card = enemyarray[i];
_root.e_party[i].level = level;
_root.e_party[i].pos = i;
_root.set_card(_root.e_party[i].card, _root.e_party[i], false);
_root.e_lev_adjust(i);
i++;
}
}
function lev_adjust(num) {
_root.party[num].hpmax = _root.party[num].hpmax + Math.floor(_root.party[num].level / 5);
_root.party[num].hpmax = _root.party[num].hpmax + _root.item_heart;
_root.party[num].hp = _root.party[num].hpmax;
if (_root.party[num].level >= 20) {
_root.party[num].counter++;
}
if (_root.party[num].level >= 35) {
_root.party[num].st++;
}
if (_root.party[num].level >= 50) {
_root.party[num].ap++;
}
}
function e_lev_adjust(num) {
_root.e_party[num].hpmax = _root.e_party[num].hpmax + Math.floor(_root.e_party[num].level / 5);
if (_root.terrain == "castle") {
_root.e_party[num].hpmax = _root.e_party[num].hpmax + 5;
}
_root.e_party[num].hp = _root.e_party[num].hpmax;
if (_root.e_party[num].level >= 20) {
_root.e_party[num].counter++;
}
if (_root.e_party[num].level >= 35) {
_root.e_party[num].st++;
}
if (_root.e_party[num].level >= 50) {
_root.e_party[num].ap++;
}
}
function prepswitch() {
if ((_root.party[this.num].ready > 0) || (_root.party[this.num].hp == 0)) {
if (_root.switch1 < 0) {
this.outline_white._visible = true;
_root.switch1 = this.num;
_root.switchpos1 = _root.party[this.num].pos;
} else {
_root.switch2 = this.num;
_root.switchpos2 = _root.party[this.num].pos;
_root.switchchars(_root.switch1, _root.switchpos1, _root.switch2, _root.switchpos2);
}
}
}
function set_card(num, card, good) {
card.counter = 0;
card.spec = 0;
switch (num) {
case 1 :
card.name = "Cat";
card.hpmax = 24;
card.st = 2;
card.at = 4;
card.ap = 2;
break;
case 2 :
card.name = "Eagle";
card.hpmax = 20;
card.st = 3;
card.at = 2;
card.ap = 2;
break;
case 3 :
card.name = "Dragon";
card.hpmax = 30;
card.st = 6;
card.at = 2;
card.ap = 1;
card.spec = 3;
card.counter = 1;
break;
case 4 :
card.name = "Grizzly";
card.hpmax = 28;
card.st = 5;
card.at = 3;
card.ap = 1;
card.spec = 1;
break;
case 5 :
card.name = "Penguin";
card.hpmax = 22;
card.st = 3;
card.at = 1;
card.ap = 2;
card.spec = 2;
break;
case 6 :
card.name = "Unicorn";
card.hpmax = 20;
card.st = 3;
card.at = 1;
card.ap = 2;
card.spec = 4;
card.counter = 1;
break;
case 7 :
card.name = "Croc";
card.hpmax = 32;
card.st = 6;
card.at = 1;
card.ap = 1;
card.counter = 1;
break;
case 8 :
card.name = "Octopus";
card.hpmax = 24;
card.st = 2;
card.at = 4;
card.ap = 3;
card.spec = 2;
break;
case 9 :
card.name = "T-Rex";
card.hpmax = 26;
card.st = 4;
card.at = 1;
card.ap = 2;
card.spec = 1;
break;
case 10 :
card.name = "Polar Bear";
card.hpmax = 30;
card.st = 7;
card.at = 1;
card.ap = 1;
card.counter = 1;
break;
case 11 :
card.name = "Elephant";
card.hpmax = 28;
card.st = 6;
card.at = 3;
card.ap = 1;
break;
case 12 :
card.name = "Fire Beetle";
card.hpmax = 18;
card.st = 6;
card.at = 1;
card.ap = 1;
card.spec = 3;
card.counter = 3;
break;
case 13 :
card.name = "Fairy";
card.hpmax = 20;
card.st = 1;
card.at = 2;
card.ap = 4;
card.spec = 4;
break;
case 14 :
card.name = "Puppet";
card.hpmax = 30;
card.st = 3;
card.at = 3;
card.ap = 2;
card.spec = 4;
break;
case 15 :
card.name = "Phoenix";
card.hpmax = 25;
card.st = 4;
card.at = 3;
card.ap = 1;
card.spec = 3;
card.counter = 2;
break;
case 16 :
card.name = "Trike";
card.hpmax = 32;
card.st = 8;
card.at = 1;
card.ap = 1;
card.spec = 1;
card.counter = 1;
break;
case 17 :
card.name = "Python";
card.hpmax = 28;
card.st = 1;
card.at = 1;
card.ap = 2;
card.counter = 4;
break;
case 18 :
card.name = "Gold Dragon";
card.hpmax = 34;
card.st = 6;
card.at = 2;
card.ap = 1;
card.spec = 1;
card.counter = 1;
break;
case 19 :
card.name = "Blue Dragon";
card.hpmax = 30;
card.st = 6;
card.at = 2;
card.ap = 1;
card.spec = 2;
card.counter = 1;
break;
case 20 :
card.name = "Gorilla";
card.hpmax = 28;
card.st = 4;
card.at = 1;
card.ap = 2;
break;
case 21 :
card.name = "Lion";
card.hpmax = 24;
card.st = 7;
card.at = 3;
card.ap = 1;
card.counter = 1;
break;
case 22 :
card.name = "Storm Mare";
card.hpmax = 34;
card.st = 5;
card.at = 1;
card.ap = 1;
card.spec = 3;
card.counter = 1;
break;
case 23 :
card.name = "Battering Ram";
card.hpmax = 20;
card.st = 12;
card.at = 1;
card.ap = 1;
card.spec = 3;
break;
case 24 :
card.name = "Camel";
card.hpmax = 28;
card.st = 4;
card.at = 1;
card.ap = 2;
card.spec = 3;
break;
case 25 :
card.name = "Foxbat";
card.hpmax = 22;
card.st = 2;
card.at = 2;
card.ap = 3;
card.spec = 3;
break;
case 26 :
card.name = "Ghost";
card.hpmax = 24;
card.st = 5;
card.at = 4;
card.ap = 1;
card.spec = 4;
break;
case 27 :
card.name = "Shark";
card.hpmax = 26;
card.st = 7;
card.at = 1;
card.ap = 1;
card.spec = 2;
card.counter = 2;
break;
case 28 :
card.name = "Whale";
card.hpmax = 30;
card.st = 3;
card.at = 3;
card.ap = 2;
card.spec = 2;
break;
case 29 :
card.name = "Frog";
card.hpmax = 22;
card.st = 3;
card.at = 2;
card.ap = 3;
break;
case 30 :
card.name = "Cobra";
card.hpmax = 26;
card.st = 4;
card.at = 2;
card.ap = 1;
card.spec = 5;
card.counter = 4;
break;
case 31 :
card.name = "Cyclops";
card.hpmax = 28;
card.st = 5;
card.at = 3;
card.ap = 2;
card.spec = 5;
break;
case 32 :
card.name = "Golem";
card.hpmax = 32;
card.st = 4;
card.at = 1;
card.ap = 2;
card.spec = 5;
break;
case 33 :
card.name = "Shadow";
card.hpmax = 24;
card.st = 4;
card.at = 4;
card.ap = 2;
card.spec = 5;
break;
case 34 :
card.name = "Skeleton";
card.hpmax = 22;
card.st = 3;
card.at = 1;
card.ap = 3;
card.spec = 5;
break;
case 35 :
card.name = "Vulture";
card.hpmax = 24;
card.st = 4;
card.at = 2;
card.ap = 2;
card.spec = 5;
break;
case 36 :
card.name = "Werewolf";
card.hpmax = 26;
card.st = 5;
card.at = 1;
card.ap = 2;
card.spec = 5;
card.counter = 1;
break;
case 37 :
card.name = "Raptor";
card.hpmax = 28;
card.st = 6;
card.at = 1;
card.ap = 1;
card.spec = 5;
card.counter = 2;
break;
case 38 :
card.name = "Arma";
card.hpmax = 68;
card.st = 7;
card.at = 2;
card.ap = 2;
card.counter = 2;
break;
case 39 :
card.name = "Belomy";
card.hpmax = 64;
card.st = 3;
card.at = 4;
card.ap = 4;
break;
case 40 :
card.name = "N-SAN";
card.hpmax = 68;
card.st = 4;
card.at = 3;
card.ap = 3;
card.counter = 4;
break;
case 41 :
card.name = "Void";
card.hpmax = 70;
card.st = 8;
card.at = 1;
card.ap = 2;
card.counter = 1;
break;
case 42 :
card.name = "Trivarian";
card.hpmax = 84;
card.st = 10;
card.at = 2;
card.ap = 2;
card.counter = 3;
}
if (good) {
switch (card.spec) {
case 1 :
card.st = card.st + _root.item_brute_pw;
break;
case 2 :
card.hpmax = card.hpmax + _root.item_water_hp;
break;
case 3 :
card.counter = card.counter + _root.item_fire_ct;
break;
case 4 :
card.ac = card.ac + _root.item_mag_ac;
}
}
card.hp = card.hpmax;
card.ready = card.ap;
}
function item_st_adjust() {
i = 0;
while (i <= 5) {
if (_root.party[i].spec == 1) {
_root.party[i].st = _root.party[i].st + _root.item_brute_pw;
}
i++;
}
}
function item_hp_adjust() {
i = 0;
while (i <= 5) {
if (_root.party[i].spec == 2) {
_root.party[i].hpmax = _root.party[i].hpmax + _root.item_water_hp;
_root.party[i].hp = _root.party[i].hp + _root.item_water_hp;
}
i++;
}
}
function item_heart_adjust() {
i = 0;
while (i <= 5) {
_root.party[i].hpmax = _root.party[i].hpmax + _root.item_heart;
_root.party[i].hp = _root.party[i].hp + _root.item_heart;
i++;
}
}
function item_ct_adjust() {
i = 0;
while (i <= 5) {
if (_root.party[i].spec == 3) {
_root.party[i].counter = _root.party[i].counter + _root.item_fire_ct;
}
i++;
}
}
function item_ac_adjust() {
i = 0;
while (i <= 5) {
if (_root.party[i].spec == 4) {
_root.party[i].ap = _root.party[i].ap + _root.item_mag_ac;
_root.party[i].ready = _root.party[i].ready + _root.item_mag_ac;
}
i++;
}
}
function statshow(party) {
_root.stat_box.targetx = 536;
_root.stat_box.level_txt.text = party.level;
if (party.level == 50) {
_root.stat_box.level_txt.text = " MAX";
}
_root.stat_box.name_txt.text = party.name;
_root.stat_box.heart_txt.text = (party.hp + " / ") + party.hpmax;
power = party.st + _root.p_boost_st;
if (party.spec == _root.terrain_st) {
power++;
}
_root.stat_box.fist_txt.text = power;
_root.stat_box.foot_txt.text = party.ready;
counter_num = party.counter + _root.p_counterboost;
if (party.spec == 1) {
counter_num = counter_num + _root.p_counterboost_brute;
}
if (party.spec == _root.terrain_ct) {
counter_num++;
}
if (counter_num > 0) {
_root.stat_box.counter._visible = true;
_root.stat_box.counter_txt.text = counter_num;
} else {
_root.stat_box.counter._visible = false;
_root.stat_box.counter_txt.text = "";
}
}
function e_statshow(party) {
_root.stat_box.targetx = 540;
_root.stat_box.level_txt.text = party.level;
if (party.level == 50) {
_root.stat_box.level_txt.text = " MAX";
}
_root.stat_box.name_txt.text = party.name;
_root.stat_box.heart_txt.text = (party.hp + " / ") + party.hpmax;
power = party.st;
if (party.spec == _root.terrain_st) {
power++;
}
_root.stat_box.fist_txt.text = power;
_root.stat_box.foot_txt.text = party.ready;
counter_num = party.counter;
if (party.spec == _root.terrain_ct) {
counter_num++;
}
if (counter_num > 0) {
_root.stat_box.counter._visible = true;
_root.stat_box.counter_txt.text = counter_num;
} else {
_root.stat_box.counter._visible = false;
_root.stat_box.counter_txt.text = "";
}
}
function stathide() {
_root.stat_box.targetx = 680;
_root.stat_box.heart_txt.text = "";
_root.stat_box.fist_txt.text = "";
_root.stat_box.foot_txt.text = "";
_root.stat_box.counter._visible = false;
_root.stat_box.counter_txt.text = "";
}
function setup_clear_lights() {
i = 0;
while (i <= 6) {
char = eval ("_root.char" + i);
char.outline._visible = false;
char.outline_white._visible = false;
char.outline_white2._visible = false;
i++;
}
}
function setup_prepswitch() {
if ((_root.party[this.num].ready > 0) || (_root.party[this.num].hp == 0)) {
if (_root.switch1 < 0) {
this.outline_white._visible = true;
_root.switch1 = this.num;
_root.switchpos1 = _root.party[this.num].pos;
} else {
_root.switch2 = this.num;
_root.switchpos2 = _root.party[this.num].pos;
_root.setup_switchchars(_root.switch1, _root.switchpos1, _root.switch2, _root.switchpos2);
}
}
}
function setup_switchchars(switch1, switchpos1, switch2, switchpos2) {
if (switch1 != switch2) {
_root.sfx_smack1.start();
duplicateMovieClip (_root.switch_fx, "switch_fx1", 3001);
effect = _root.switch_fx1;
block = eval ("_root.block" + switchpos2);
effect._x = block._x;
effect._y = block._y;
card1 = eval ("_root.char" + switch1);
card2 = eval ("_root.char" + switch2);
target1 = eval ("_root.block" + switchpos2);
target2 = eval ("_root.block" + switchpos1);
card1._x = target1._x;
card1._y = target1._y;
card2._x = target2._x;
card2._y = target2._y;
_root.party[switch1].pos = switchpos2;
_root.party[switch2].pos = switchpos1;
}
_root.switch1 = -1;
}
function level_up() {
i = 0;
while (i <= 5) {
oldlevel = Math.floor(_root.party[i].level);
if (_root.party[i].hp > 0) {
if (_root.party[i].level < 50) {
_root.party[i].level++;
if ((_root.party[i].level % 5) == 0) {
_root.party[i].hpmax = _root.party[i].hpmax + 1;
_root.party[i].hp = _root.party[i].hp + 1;
}
if (_root.party[i].level == 20) {
_root.party[i].counter++;
}
if (_root.party[i].level == 35) {
_root.party[i].st++;
}
if (_root.party[i].level == 50) {
_root.party[i].ap++;
_root.party[i].ready = _root.party[i].ap;
}
}
}
i++;
}
}
party = new Array();
e_party = new Array();
enemylist = new Array();
terrain_st = -1;
terrain_ap = -1;
terrain_hp = -1;
terrain_ct = -1;
terrain_mag = -1;
finished = false;
currentmap = 1;
hero_pos = 1;
hero_lastpos = 1;
victory = true;
autoheal_amount = 10;
food = 6;
shot = 3;
item_autoheal = 0;
item_magicstart = 0;
item_max_spells = 3;
item_brute_plus = 0;
item_fire_plus = 0;
item_mag_plus = 0;
item_water_plus = 0;
item_brute_pw = 0;
item_fire_ct = 0;
item_mag_ac = 0;
item_water_hp = 0;
item_heart = 0;
i = 0;
while (i <= 5) {
_root.party[i] = new Object();
_root.e_party[i] = new Object();
i++;
}
map1 = new Array();
i = 1;
while (i <= 20) {
map1[i] = 1;
i++;
}
map1[3] = 100;
map1[8] = 150;
map1[10] = 100;
map1[6] = 200;
map1[12] = 200;
map1[11] = 10;
map2 = new Array();
i = 1;
while (i <= 20) {
map2[i] = 1;
i++;
}
map2[1] = 150;
map2[14] = 150;
map2[8] = 200;
map2[11] = 100;
map2[12] = 200;
map2[5] = 10;
map3 = new Array();
i = 1;
while (i <= 20) {
map3[i] = 1;
i++;
}
map3[5] = 100;
map3[17] = 100;
map3[9] = 200;
map3[14] = 150;
map3[19] = 150;
map3[6] = 200;
map3[16] = 10;
map4 = new Array();
i = 1;
while (i <= 20) {
map4[i] = 1;
i++;
}
map4[15] = 10;
map4[7] = 100;
map4[2] = 100;
map4[12] = 150;
map4[19] = 150;
map4[14] = 200;
map4[5] = 200;
map5 = new Array();
i = 1;
while (i <= 20) {
map5[i] = 1;
i++;
}
map5[9] = 10;
map5[1] = 100;
map5[10] = 100;
map5[5] = 150;
map5[19] = 150;
map5[14] = 200;
map5[12] = 200;
map6 = new Array();
i = 1;
while (i <= 20) {
map6[i] = 1;
i++;
}
map6[9] = 10;
map6[7] = 100;
map6[5] = 100;
map6[4] = 150;
map6[14] = 200;
map6[19] = 200;
map6[12] = 200;
map7 = new Array();
i = 1;
while (i <= 20) {
map7[i] = 1;
i++;
}
map7[9] = 10;
map7[1] = 150;
map7[13] = 100;
map7[18] = 100;
map7[4] = 150;
map7[19] = 200;
map7[14] = 200;
map8 = new Array();
i = 1;
while (i <= 20) {
map8[i] = 1;
i++;
}
map8[6] = 100;
map8[9] = 10;
map8[5] = 10;
map8[7] = 10;
map8[3] = 10;
map8[8] = 10;
map8[14] = 200;
map8[18] = 200;
gotoAndStop ("menu");
Frame 16
function loadgame(num) {
totalmaps = 8;
savedata = SharedObject.getLocal("animal" + num);
if (savedata.data.checkdata) {
_root.finished = savedata.data.finished;
if (_root.finished != true) {
_root.finished = false;
}
_root.item_autoheal = savedata.data.item_autoheal;
_root.item_magicstart = savedata.data.item_magicstart;
_root.item_max_spells = savedata.data.item_max_spells;
_root.item_brute_plus = savedata.data.item_brute_plus;
_root.item_fire_plus = savedata.data.item_fire_plus;
_root.item_mag_plus = savedata.data.item_mag_plus;
_root.item_water_plus = savedata.data.item_water_plus;
_root.item_brute_pw = savedata.data.item_brute_pw;
_root.item_fire_ct = savedata.data.item_fire_ct;
_root.item_mag_ac = savedata.data.item_mag_ac;
_root.item_water_hp = savedata.data.item_water_hp;
_root.item_heart = savedata.data.item_heart;
_root.food = savedata.data.food;
_root.shot = savedata.data.shot;
_root.currentmap = savedata.data.currentmap;
_root.hero_pos = savedata.data.hero_pos;
_root.hero_lastpos = savedata.data.hero_lastpos;
_root.reward = savedata.data.reward;
_root.randomlimit = savedata.data.randomlimit;
i = 0;
while (i <= 5) {
_root.party[i].card = savedata.data.party[i].card;
_root.party[i].level = savedata.data.party[i].level;
_root.party[i].pos = savedata.data.party[i].pos;
_root.party[i].hp = savedata.data.party[i].hp;
_root.set_card(_root.party[i].card, _root.party[i], true);
_root.lev_adjust(i);
i++;
}
i = 1;
while (i <= totalmaps) {
datamap = eval ("savedata.data.map" + i);
map = eval ("_root.map" + i);
ii = 1;
while (ii <= 20) {
map[ii] = datamap[ii];
ii++;
}
i++;
}
}
_root.gotoAndStop("map" + _root.currentmap);
}
function savegame(num) {
savedata = SharedObject.getLocal("animal" + num);
savedata.data.finished = _root.finished;
totalmaps = 8;
savedata.data.map1 = new Array();
savedata.data.map2 = new Array();
savedata.data.map3 = new Array();
savedata.data.map4 = new Array();
savedata.data.map5 = new Array();
savedata.data.map6 = new Array();
savedata.data.map7 = new Array();
savedata.data.map8 = new Array();
savedata.data.checkdata = true;
savedata.data.party = new Array();
i = 0;
while (i <= 5) {
savedata.data.party[i] = new Object();
savedata.data.party[i].card = _root.party[i].card;
savedata.data.party[i].level = _root.party[i].level;
savedata.data.party[i].pos = _root.party[i].pos;
savedata.data.party[i].hp = _root.party[i].hp;
i++;
}
savedata.data.item_autoheal = _root.item_autoheal;
savedata.data.item_magicstart = _root.item_magicstart;
savedata.data.item_max_spells = _root.item_max_spells;
savedata.data.item_brute_plus = _root.item_brute_plus;
savedata.data.item_fire_plus = _root.item_fire_plus;
savedata.data.item_mag_plus = _root.item_mag_plus;
savedata.data.item_water_plus = _root.item_water_plus;
savedata.data.item_brute_pw = _root.item_brute_pw;
savedata.data.item_fire_ct = _root.item_fire_ct;
savedata.data.item_mag_ac = _root.item_mag_ac;
savedata.data.item_water_hp = _root.item_water_hp;
savedata.data.item_heart = _root.item_heart;
savedata.data.food = _root.food;
savedata.data.shot = _root.shot;
savedata.data.currentmap = _root.currentmap;
savedata.data.hero_pos = _root.hero_pos;
savedata.data.hero_lastpos = _root.hero_lastpos;
savedata.data.reward = _root.reward;
savedata.data.randomlimit = _root.randomlimit;
i = 1;
while (i <= totalmaps) {
datamap = eval ("savedata.data.map" + i);
map = eval ("_root.map" + i);
ii = 1;
while (ii <= 20) {
datamap[ii] = map[ii];
ii++;
}
i++;
}
savedata.data.castles = _root.castles_beaten();
}
function deletedata(num) {
savedata = SharedObject.getLocal("animal" + num);
savedata.data.checkdata = false;
}
function tracesavedata() {
}
BGM0.setVolume(_root.vol);
BGM1.stop();
music_offset = 0;
actionmode = "menu";
stop();
enemylevel = 0;
skirmish = false;
if (!distraction) {
_root.BGM0.stop();
_root.BGM0.start(9.1);
}
distraction = false;
_root.BGM0.onSoundComplete = function () {
_root.BGM0.start(9.1);
};
Instance of Symbol 48 MovieClip "sound_controller" in Frame 16
onClipEvent (load) {
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM2 = new Sound();
_root.BGM2.attachSound("animal_battle");
_root.BGM3 = new Sound();
_root.BGM3.attachSound("animal_battle2");
_root.BGM4 = new Sound();
_root.BGM4.attachSound("animal_tutorial");
_root.BGM5 = new Sound();
_root.BGM5.attachSound("brute_finish");
_root.sfx_smack = new Sound();
_root.sfx_smack.attachSound("smack");
_root.sfx_smack1 = new Sound();
_root.sfx_smack1.attachSound("smack1");
_root.sfx_smack2 = new Sound();
_root.sfx_smack2.attachSound("smack2");
_root.sfx_smack3 = new Sound();
_root.sfx_smack3.attachSound("smack3");
_root.sfx_smack4 = new Sound();
_root.sfx_smack4.attachSound("smack4");
_root.sfx_smack5 = new Sound();
_root.sfx_smack5.attachSound("smack5");
_root.sfx_counter = new Sound();
_root.sfx_counter.attachSound("counter");
_root.fx1 = new Sound();
_root.fx1.attachSound("effect1");
_root.fx2 = new Sound();
_root.fx2.attachSound("effect2");
_root.fx3 = new Sound();
_root.fx3.attachSound("effect3");
_root.fx4 = new Sound();
_root.fx4.attachSound("effect4");
_root.fx5 = new Sound();
_root.fx5.attachSound("effect5");
_root.fx6 = new Sound();
_root.fx6.attachSound("effect6");
_root.fx7 = new Sound();
_root.fx7.attachSound("effect7");
_root.fx8 = new Sound();
_root.fx8.attachSound("effect8");
_root.fx9 = new Sound();
_root.fx9.attachSound("effect9");
_root.fx10 = new Sound();
_root.fx10.attachSound("effect10");
_root.fx11 = new Sound();
_root.fx11.attachSound("effect11");
}
onClipEvent (enterFrame) {
if (_root.lang == "eng") {
_root.in_txt.text = "Instructions";
_root.lg_txt.text = "Load Game";
_root.nc_txt.text = "New Campaign";
_root.sb_txt.text = "Single Battle";
_root.el_txt.text = "Enemy Level";
}
if (_root.lang == "esp") {
_root.in_txt.text = "Instrucciones";
_root.lg_txt.text = "Cargar Juego";
_root.nc_txt.text = "Juego Nuevo";
_root.sb_txt.text = "Solo una Batalla";
_root.el_txt.text = "Nivel del Enemigo";
}
}
Instance of Symbol 56 MovieClip in Frame 16
onClipEvent (load) {
speed = (random(2) / 2) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 2) + 0.2;
}
}
Instance of Symbol 58 MovieClip in Frame 16
onClipEvent (load) {
speed = (random(2) / 2) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 2) + 0.2;
}
}
Instance of Symbol 82 MovieClip "button3" in Frame 16
onClipEvent (load) {
targetx = _x;
refx = 300;
speedmax = 30;
}
onClipEvent (enterFrame) {
if ((targetx - _x) > 1) {
speed = Math.abs((refx - _x) / 2);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x + speed);
}
if (_x > 640) {
_x = 640;
_root.actionmode = "next";
}
}
on (press) {
if (_root.actionmode == "menu") {
if (_root.actionmode != "next") {
refx = 298;
targetx = 640;
}
}
}
on (rollOver) {
if (_root.actionmode == "menu") {
_root.help_box.help_txt.text = "Start Campaign Mode";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Comience el juego nuevo.";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 86 MovieClip "e_level" in Frame 16
onClipEvent (enterFrame) {
level_txt.text = _root.enemylevel;
}
on (press) {
if (_root.actionmode == "menu") {
_root.enemylevel = _root.enemylevel + 5;
if (_root.enemylevel > 50) {
_root.enemylevel = 0;
}
}
}
on (rollOver) {
if (_root.actionmode == "menu") {
_root.help_box.help_txt.text = "Skirmish Enemy Level. Click to change.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Nivel de los enemigos. Haz click para cambiar.";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 82 MovieClip "button3" in Frame 16
onClipEvent (load) {
targetx = _x;
refx = 300;
speedmax = 30;
}
onClipEvent (enterFrame) {
if ((targetx - _x) > 1) {
speed = Math.abs((refx - _x) / 2);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x + speed);
}
if (_x > 640) {
_x = 640;
_root.skirmish = true;
_root.actionmode = "next";
}
}
on (press) {
if (_root.actionmode == "menu") {
if (_root.actionmode != "next") {
refx = 298;
targetx = 640;
}
}
}
on (rollOver) {
if (_root.actionmode == "menu") {
_root.help_box.help_txt.text = "Skirmish Battle";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Comience la batalla.";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 93 MovieClip in Frame 16
on (press) {
if (_root.actionmode == "menu") {
play();
_root.help_box.help_txt.text = "";
_root.actionmode = "load";
}
}
on (rollOver) {
if (_root.actionmode == "menu") {
_root.help_box.help_txt.text = "Load game";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Cargar el Juego";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 98 MovieClip "button1" in Frame 16
on (press) {
if (_root.actionmode == "menu") {
_root.gotoAndStop("tutorial");
}
}
on (rollOver) {
if (_root.actionmode == "menu") {
_root.help_box.help_txt.text = "Instruction";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "instrucciones";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 16
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 107 MovieClip in Frame 16
onClipEvent (load) {
stop();
if (_root.lang == "esp") {
this.gotoAndStop("eng");
} else {
this.gotoAndStop("esp");
}
}
on (release) {
if (_root.actionmode == "menu") {
if (_root.lang == "eng") {
this.gotoAndStop("eng");
_root.lang = "esp";
_root.help_box.help_txt.text = "Idioma = Espa\u00F1ol";
} else {
this.gotoAndStop("esp");
_root.lang = "eng";
_root.help_box.help_txt.text = "Language = English";
}
}
}
on (rollOver) {
if (_root.actionmode == "menu") {
_root.help_box.help_txt.text = "Language = English";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Idioma = Espa\u00F1ol";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 16
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "load") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 207 MovieClip in Frame 16
onClipEvent (load) {
}
onClipEvent (enterFrame) {
data_txt.text = "LOAD GAME";
if (_root.lang == "esp") {
data_txt.text = "CARGAR";
}
if (_root.actionmode == "load") {
targety = 200;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 16
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 16
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
} else if (_x > xtarget) {
_x = (_x - speed);
}
}
Instance of Symbol 213 MovieClip in Frame 16
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
_root.gotoAndStop("setup");
}
} else if (_x < xtarget) {
_x = (_x + speed);
}
}
Frame 17
BGM0.setVolume(_root.vol);
BGM1.stop();
BGM4.start();
BGM4.onSoundComplete = function () {
BGM4.start(0.1);
};
pic = 0;
currenttext = 1;
message1 = "Hi! My name is Otis. I'm here to help you get through your grueling journey to the top of Mt. Asio. If you're looking for answers, you've come to the right place.";
message2 = "Choose a topic on the right and I'll see if I can explain it to you.";
message3 = "I'll try to use small words, because...";
message4 = "Well...";
message5 = "I'm an owl (as you can see), and we have a reputation you know.";
message6 = "I like to keep up the cliche's and stereotypes - for the benefit of my posterity of course! It's all for the children.";
message7 = "But anyway, I'll try to use small words because they take up less space and they're easier to pronounce (usually). So, pick a topic and ask away!";
message8 = "";
if (_root.lang == "esp") {
message1 = "\u00A1Hola! Mi nombre es Otis. Yo estoy aqui para ayudarte a pasar este riesgoso viaje a la cumbre de Mt. Asio. Si buscas respuestas, este es el lugar correcto.";
message2 = "Escoge un tema a tu derecha y tratar\u00E9 de explic\u00E1rtelo.";
message3 = "Tratar\u00E9 de usar peque\u00F1as palabras, porque...";
message4 = "Bueno...";
message5 = "Soy un b\u00FAho (como puedes ver), y nosotros tenemos una muy buena reputaci\u00F3n.";
message6 = "\u00A1Me gusta mantener el clich\u00E9 y estereotipos - a beneficio de mi posteridad por supuesto! Todo para los ni\u00F1os.";
message7 = "Pero tratar\u00E9 de usar peque\u00F1as palabras porque estas toman menos espacio y son m\u00E1s f\u00E1ciles para pronunciarse (por lo general). Escoge ahora el tema que quieres saber. \u00A1Buena suerte!";
message8 = "";
}
_root.text_box.help_txt.text = message1;
Instance of Symbol 48 MovieClip "party_controller" in Frame 17
onClipEvent (load) {
if (_root.lang == "esp") {
_root.inst_txt.text = "INSTRUCCIONES";
_root.topics.ov_txt.text = "Informaci\u00F3n";
_root.topics.an_txt.text = "Info del Animal";
_root.topics.co_txt.text = "Combate";
_root.topics.cl_txt.text = "Clanes";
_root.topics.ma_txt.text = "Magia";
_root.topics.wo_txt.text = "Mapa Mundial";
_root.topics.ad_txt.text = "Consejos";
}
}
on (press) {
_root.currenttext = 1;
_root.text_box.help_txt.text = _root.message1;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 17
on (press) {
_root.gotoAndStop("menu");
}
on (rollOver) {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 211 MovieClip "help_box" in Frame 17
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 231 MovieClip "topics" in Frame 17
onClipEvent (load) {
targetx = 680;
speed = 20;
}
onClipEvent (enterFrame) {
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if (_root.text_box.help_txt.text != "") {
targetx = 700;
} else {
_root.pic = 0;
targetx = 520;
}
}
Instance of Symbol 306 MovieClip "display" in Frame 17
onClipEvent (load) {
stop();
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.pic == 0) {
_visible = false;
} else {
_visible = true;
this.gotoAndStop(_root.pic);
}
}
Instance of Symbol 316 MovieClip "text_box" in Frame 17
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (help_txt.text != "") {
if (_currentframe == 1) {
this.gotoAndPlay(2);
}
}
}
on (press) {
_root.currenttext++;
if (_root.pic > 0) {
_root.pic++;
}
newtext = eval ("_root.message" + _root.currenttext);
if (newtext == "") {
if (_currentframe == 6) {
this.gotoAndPlay(7);
}
} else {
help_txt.text = newtext;
}
}
Instance of Symbol 103 MovieClip in Frame 17
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Frame 18
function getBruteNum() {
return(_root.getSpec(1) + _root.item_brute_plus);
}
function getWaterNum() {
return(_root.getSpec(2) + _root.item_water_plus);
}
function getFireNum() {
return(_root.getSpec(3) + _root.item_fire_plus);
}
function getMagNum() {
return(_root.getSpec(4) + _root.item_mag_plus);
}
BGM0.setVolume(_root.vol);
stop();
reward = 100;
max_animals = 37;
if (_root.finished) {
selectable_animals = 37;
} else {
selectable_animals = 29;
}
p_boost_st = 0;
p_big_gems = 300;
p_counterboost = 0;
randomlimit = 10;
if (skirmish || (_root.finished)) {
randomlimit = 99;
}
p_drain = 0;
p_boost_st = 0;
p_boost_st_brute = 0;
p_counterboost = 0;
p_counterboost_brute = 0;
actionmode = "transin";
switch1 = -1;
setup_party();
Instance of Symbol 48 MovieClip "party_controller" in Frame 18
onClipEvent (load) {
_root.initialize();
_root.magiclist();
if (_root.lang == "esp") {
_root.title.title_txt.text = "Sistema de Equipo";
}
}
onClipEvent (enterFrame) {
_root.random_txt.text = _root.randomlimit;
_root.debug_txt.text = _root.actionmode;
}
Instance of Symbol 330 MovieClip "block3" in Frame 18
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block4" in Frame 18
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block5" in Frame 18
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block2" in Frame 18
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block1" in Frame 18
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block0" in Frame 18
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 361 MovieClip "char0" in Frame 18
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char2" in Frame 18
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char4" in Frame 18
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char1" in Frame 18
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char3" in Frame 18
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char5" in Frame 18
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 376 MovieClip "stat_box" in Frame 18
onClipEvent (load) {
targetx = 680;
speed = 20;
}
onClipEvent (enterFrame) {
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if ((_root.actionmode != "play") && (_root.actionmode != "switch")) {
targetx = 680;
_x = 680;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 18
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 384 MovieClip in Frame 18
onClipEvent (load) {
collision._visible = false;
collision2._visible = false;
target_x = -100;
_x = target_x;
home_rot = _rotation;
target_rotation = _rotation;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "switch") {
target_x = -14;
} else {
target_x = -100;
}
if (_x > target_x) {
_x = (_x - ((_x - target_x) / 2));
}
if (_x < target_x) {
_x = (_x + ((target_x - _x) / 2));
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 3;
} else {
ydist = (ydist - 5) / 3;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
}
Instance of Symbol 442 MovieClip in Frame 18
onClipEvent (load) {
targetx = 728;
speed = 20;
}
onClipEvent (enterFrame) {
targetx = 728;
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.actionmode == "switch") {
targetx = 500;
}
}
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if (_root.actionmode != "switch") {
targetx = 728;
_x = 728;
}
}
Instance of Symbol 446 MovieClip "mag" in Frame 18
onClipEvent (load) {
targetx = 680;
speed = 20;
}
onClipEvent (enterFrame) {
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if (_root.actionmode != "switch") {
targetx = 680;
_x = 680;
}
}
Instance of Symbol 452 MovieClip "switch_fx" in Frame 18
onClipEvent (load) {
}
onClipEvent (enterFrame) {
}
Instance of Symbol 103 MovieClip in Frame 18
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 213 MovieClip in Frame 18
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 18
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "switch";
}
}
if (_root.actionmode == "next") {
_root.finished = false;
if (_x > 300) {
_x = (_x - speed);
} else if (_root.skirmish) {
_root.create_e_party_skirmish();
_root.randomlimit = 0;
_root.gotoAndStop("main");
} else {
_root.randomlimit = 0;
_root.gotoAndStop("map1");
}
}
}
Frame 19
function e_damagetarget() {
thispos = this.num;
switch (_root.e_party[thispos].at) {
case 1 :
if (thispos <= 2) {
targetnum = _root.targetpos(thispos);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], false);
} else {
targetnum = _root.targetpos(thispos + 3);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], false);
} else {
_root.enemy_controller.timer = _root.enemy_controller.timer + 1;
_root.enemy_controller.skipgems = _root.enemy_controller.skipgems + _root.e_party[thispos].ready;
_root.e_party[thispos].ready = 0;
_root.enemy_controller.skipnum++;
}
}
} else if (_root.e_party[thispos - 3].hp == 0) {
targetnum = _root.targetpos(thispos - 3);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], true);
} else {
targetnum = _root.targetpos(thispos);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], true);
} else {
_root.enemy_controller.timer = _root.enemy_controller.timer + 1;
_root.enemy_controller.skipgems = _root.enemy_controller.skipgems + _root.e_party[thispos].ready;
_root.e_party[thispos].ready = 0;
_root.enemy_controller.skipnum++;
}
}
} else {
_root.enemy_controller.timer = _root.enemy_controller.timer + 1;
_root.enemy_controller.skipgems = _root.enemy_controller.skipgems + _root.e_party[thispos].ready;
_root.e_party[thispos].ready = 0;
_root.enemy_controller.skipnum++;
}
break;
case 2 :
if (thispos <= 2) {
targetnum = _root.targetpos(thispos + 3);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], false);
} else {
_root.enemy_controller.timer = _root.enemy_controller.timer + 1;
_root.enemy_controller.skipgems = _root.enemy_controller.skipgems + _root.e_party[thispos].ready;
_root.e_party[thispos].ready = 0;
_root.enemy_controller.skipnum++;
}
} else {
targetnum = _root.targetpos(thispos - 3);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], false);
} else {
_root.enemy_controller.timer = _root.enemy_controller.timer + 1;
_root.enemy_controller.skipgems = _root.enemy_controller.skipgems + _root.e_party[thispos].ready;
_root.e_party[thispos].ready = 0;
_root.enemy_controller.skipnum++;
}
}
break;
case 3 :
hit = 0;
if (thispos <= 2) {
targetnum = _root.targetpos(thispos);
if (_root.party[targetnum].hp > 0) {
hit = 1;
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], false);
}
if (thispos > 0) {
targetnum = _root.targetpos(thispos - 1);
if (_root.party[targetnum].hp > 0) {
hit = 1;
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], false);
}
}
if (thispos < 2) {
targetnum = _root.targetpos(thispos + 1);
if (_root.party[targetnum].hp > 0) {
hit = 1;
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], false);
}
}
if (hit > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
} else {
targetnum = _root.targetpos(thispos + 3);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], false);
} else {
_root.enemy_controller.timer = _root.enemy_controller.timer + 1;
_root.enemy_controller.skipgems = _root.enemy_controller.skipgems + _root.e_party[thispos].ready;
_root.e_party[thispos].ready = 0;
_root.enemy_controller.skipnum++;
}
}
} else if (_root.e_party[thispos - 3].hp == 0) {
targetnum = _root.targetpos(thispos - 3);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], true);
} else {
targetnum = _root.targetpos(thispos);
if (_root.party[targetnum].hp > 0) {
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
enemy = eval ("_root.char" + targetnum);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetnum], true);
} else {
_root.enemy_controller.timer = _root.enemy_controller.timer + 1;
_root.enemy_controller.skipgems = _root.enemy_controller.skipgems + _root.e_party[thispos].ready;
_root.e_party[thispos].ready = 0;
_root.enemy_controller.skipnum++;
}
}
} else {
_root.enemy_controller.timer = _root.enemy_controller.timer + 1;
_root.enemy_controller.skipgems = _root.enemy_controller.skipgems + _root.e_party[thispos].ready;
_root.e_party[thispos].ready = 0;
_root.enemy_controller.skipnum++;
}
break;
case 4 :
targetarray = new Array();
targetlength = 0;
i = 0;
while (i <= 5) {
if (_root.party[i].hp > 0) {
targetlength = targetarray.push(i);
}
i++;
}
_root.e_party[thispos].ready--;
if (_root.e_party[thispos].ready < 0) {
_root.e_party[thispos].ready = 0;
}
target = random(targetlength);
enemy = eval ("_root.char" + targetarray[target]);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.e_party[thispos], _root.party[targetarray[target]], false);
}
if (_root.failcheck()) {
_root.faildance();
} else if (_root.victorycheck()) {
_root.victorydance();
}
}
function targetpos(target) {
num = -1;
i = 0;
while (i <= 5) {
if (_root.party[i].pos == target) {
if (_root.party[i].hp > 0) {
num = i;
}
}
i++;
}
return(num);
}
function got_spec(num, party) {
total = 0;
i = 0;
while (i <= 5) {
if (party[i].spec == num) {
total++;
}
i++;
}
return(total);
}
function spell_overload(party, target, amount) {
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
if (party[i].spec == 3) {
_root.fx10.stop("effect10");
_root.fx10.start();
if (party[i].hp < amount) {
amount = party[i].hp;
}
if (party[i].hp >= amount) {
party[i].hp = random(amount) + 1;
} else {
party[i].hp = random(party[i].hp) + 1;
}
firetarget = eval (target + i);
duplicateMovieClip (_root.xplode_fire, "fire" + i, 3000 + i);
fire = eval ("_root.fire" + i);
fire._x = firetarget._x;
fire._y = firetarget._y;
firetarget.shake = 6;
}
}
i++;
}
if (_root.victorycheck()) {
_root.victorydance();
}
}
function spell_drain(party, target, amount) {
_root.p_drain = amount;
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
_root.fx4.stop("effect4");
_root.fx4.start();
swirltarget = eval (target + i);
duplicateMovieClip (_root.swirl_fx, "swirl_fx" + i, 3000 + i);
swirl = eval ("_root.swirl_fx" + i);
swirl._x = swirltarget._x;
swirl._y = swirltarget._y;
}
i++;
}
}
function spell_lifewell(party1, party2, target1, target2, amount) {
total = 0;
i = 0;
while (i <= 5) {
if (party2[i].spec == 2) {
total = total + amount;
watertarget = eval (target2 + i);
duplicateMovieClip (_root.xplode_water, "water" + i, 3000 + i);
water = eval ("_root.water" + i);
water._x = watertarget._x;
water._y = watertarget._y;
}
i++;
}
if (total > 12) {
total = 12;
}
i = 0;
while (i <= 5) {
if (party1[i].hp > 0) {
_root.fx2.stop("effect2");
_root.fx2.start();
party1[i].hp = party1[i].hp + total;
if (party1[i].hp > party[i].hpmax) {
party1[i].hp = party[i].hpmax;
}
sparktarget = eval (target1 + i);
duplicateMovieClip (_root.sparkles, "sparkles" + i, 3500 + i);
spark = eval ("_root.sparkles" + i);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
i++;
}
}
function spell_ap(party, target, amount) {
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
if (party[i].spec == 1) {
_root.fx4.stop("effect4");
_root.fx4.start();
party[i].ready = party[i].ready + (Math.floor(amount / 2) + 1);
} else {
_root.fx4.stop("effect4");
_root.fx4.start();
party[i].ready = party[i].ready + Math.ceil(amount / 2);
}
swirltarget = eval (target + i);
duplicateMovieClip (_root.swirl_fx, "swirl_fx" + i, 3000 + i);
swirl = eval ("_root.swirl_fx" + i);
swirl._x = swirltarget._x;
swirl._y = swirltarget._y;
}
i++;
}
}
function spell_st(party, target, amount) {
_root.p_boost_st = amount;
_root.p_boost_st_brute = 1;
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
_root.fx4.stop("effect4");
_root.fx4.start();
swirltarget = eval (target + i);
duplicateMovieClip (_root.swirl_fx, "swirl_fx" + i, 3000 + i);
swirl = eval ("_root.swirl_fx" + i);
swirl._x = swirltarget._x;
swirl._y = swirltarget._y;
}
i++;
}
}
function spell_counter(party, target, amount) {
_root.p_counterboost_brute = 1;
_root.p_counterboost = amount;
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
_root.fx4.stop("effect4");
_root.fx4.start();
swirltarget = eval (target + i);
duplicateMovieClip (_root.swirl_fx, "swirl_fx" + i, 3000 + i);
swirl = eval ("_root.swirl_fx" + i);
swirl._x = swirltarget._x;
swirl._y = swirltarget._y;
}
i++;
}
}
function spell_raise(party, target, amount, chance) {
revive = 0;
i = 0;
while (i <= 5) {
if (party[i].hp == 0) {
if (random(100) < chance) {
revive++;
_root.fx5.stop("effect5");
_root.fx5.start();
party[i].hp = Math.ceil(party[i].hpmax * (amount / 100));
party[i].ready = 0;
_root.deathcheck();
sparktarget = eval (target + i);
duplicateMovieClip (_root.ring_fx, "ring_fx" + i, 3000 + i);
spark = eval ("_root.ring_fx" + i);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
}
i++;
}
if (revive == 0) {
_root.fx8.stop("effect8");
_root.fx8.start();
}
}
function spell_timestop(amount) {
_root.timestop = amount;
_root.fx4.stop("effect4");
_root.fx4.start();
duplicateMovieClip (_root.swirl_fx, "swirl_fx" + i, 3000 + i);
swirl = eval ("_root.swirl_fx" + i);
swirl._x = _root.circle._x;
swirl._y = _root.circle._y;
}
function spell_heal(party, target, amount) {
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
_root.fx6.stop("effect6");
_root.fx6.start();
party[i].hp = party[i].hp + amount;
if (party[i].hp > party[i].hpmax) {
party[i].hp = party[i].hpmax;
}
sparktarget = eval (target + i);
duplicateMovieClip (_root.sparkles, "sparkles" + i, 3000 + i);
spark = eval ("_root.sparkles" + i);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
i++;
}
}
function spell_heal2(party, target, amount) {
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
_root.fx6.stop("effect6");
_root.fx6.start();
party[i].hp = party[i].hp + amount;
if (party[i].spec == 4) {
party[i].hp = party[i].hp + (Math.ceil(amount / 2) + 1);
}
if (party[i].hp > party[i].hpmax) {
party[i].hp = party[i].hpmax;
}
sparktarget = eval (target + i);
duplicateMovieClip (_root.p_sparkles, "p_sparkles" + i, 3000 + i);
spark = eval ("_root.p_sparkles" + i);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
i++;
}
}
function spell_damage(party, target, amount, type) {
if (type == "fire") {
spec_except = 3;
spec_crit = 2;
}
if (type == "water") {
spec_except = 2;
spec_crit = 3;
}
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
_root.fx1.stop("effect1");
_root.fx1.start();
if (party[i].spec != spec_except) {
party[i].hp = party[i].hp - amount;
if (party[i].spec == spec_crit) {
party[i].hp = party[i].hp - Math.ceil(amount / 2);
}
if (party[i].hp < 0) {
party[i].hp = 0;
}
firetarget = eval (target + i);
if (type == "fire") {
duplicateMovieClip (_root.xplode_fire, "fire" + i, 3000 + i);
}
if (type == "water") {
duplicateMovieClip (_root.xplode_water, "fire" + i, 3000 + i);
}
fire = eval ("_root.fire" + i);
fire._x = firetarget._x;
fire._y = firetarget._y;
firetarget.shake = 6;
}
}
i++;
}
if (_root.victorycheck()) {
_root.victorydance();
}
}
function spell_timesteal(party) {
_root.turnlimit = _root.turnlimit - 2;
if (_root.turnlimit < 0) {
_root.turnlimit = 0;
}
_root.fx2.stop("effect2");
_root.fx2.start();
i = 0;
while (i <= 5) {
if (party[i].hp > 0) {
if (party[i].spec == 5) {
party[i].ready++;
firetarget = eval ("_root.char" + i);
duplicateMovieClip (_root.xplode_shadow, "fire" + i, 3000 + i);
fire = eval ("_root.fire" + i);
fire._x = firetarget._x;
fire._y = firetarget._y;
}
}
i++;
}
}
function spell_flee(amount) {
_root.fx4.start();
_root.actionmode = "flee";
i = 0;
while (i <= 5) {
if (_root.party[i].hp > 0) {
_root.party[i].hp = _root.party[i].hp + amount;
if (_root.party[i].hp > _root.party[i].hpmax) {
_root.party[i].hp = _root.party[i].hpmax;
}
sparktarget = eval ("_root.char" + i);
duplicateMovieClip (_root.p_sparkles, "p_sparkles" + i, 3000 + i);
spark = eval ("_root.p_sparkles" + i);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
i++;
}
}
function spell_raiseall(amount) {
i = 0;
while (i <= 5) {
if (_root.party[i].hp == 0) {
_root.party[i].hp = Math.ceil(_root.party[i].hpmax * (amount / 100));
_root.deathcheck();
_root.fx2.stop("effect2");
_root.fx2.start();
sparktarget = eval ("_root.char" + i);
duplicateMovieClip (_root.ring_fx, "ring_fx" + i, 3000 + i);
spark = eval ("_root.ring_fx" + i);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
if (_root.e_party[i].hp == 0) {
_root.e_party[i].hp = Math.ceil(_root.e_party[i].hpmax * (amount / 100));
_root.e_deathcheck();
_root.fx2.stop("effect2");
_root.fx2.start();
sparktarget = eval ("_root.enemy" + i);
duplicateMovieClip (_root.ring_fx, "ring2_fx" + i, 3010 + i);
spark = eval ("_root.ring2_fx" + i);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
i++;
}
}
function terrain_bonus() {
switch (_root.terrain) {
case "grass" :
_root.terrain_st = 1;
_root.terrain_ct = 1;
break;
case "forest" :
_root.terrain_mag = 4;
_root.terrain_ct = 4;
break;
case "water" :
_root.terrain_st = 2;
_root.terrain_mag = 2;
break;
case "tundra" :
_root.terrain_st = 1;
_root.terrain_mag = 2;
break;
case "waste" :
_root.terrain_st = 5;
_root.terrain_mag = 3;
break;
case "lava" :
_root.terrain_ct = 3;
_root.terrain_mag = 3;
break;
case "snowfield" :
_root.terrain_st = 1;
_root.terrain_ct = 2;
break;
case "cave" :
_root.terrain_st = 5;
_root.terrain_ct = 5;
break;
case "cavelava" :
_root.terrain_st = 5;
_root.terrain_mag = 3;
break;
case "cavewater" :
_root.terrain_ct = 5;
_root.terrain_mag = 2;
break;
case "cloud" :
_root.terrain_ap = 4;
_root.terrain_mag = 4;
}
}
function prepswitch() {
if ((_root.party[this.num].ready > 0) || (_root.party[this.num].hp == 0)) {
if (_root.switch1 < 0) {
this.outline_white._visible = true;
_root.switch1 = this.num;
_root.switchpos1 = _root.party[this.num].pos;
} else {
_root.switch2 = this.num;
_root.switchpos2 = _root.party[this.num].pos;
_root.switchchars(_root.switch1, _root.switchpos1, _root.switch2, _root.switchpos2);
}
}
}
function e_movecheck(enemy) {
moved1 = -1;
moved2 = -1;
newpos = -1;
switch (enemy.at) {
case 1 :
if (enemy.pos >= 3) {
if (_root.e_party[0].hp == 0) {
moved1 = 0;
newpos = 0;
}
if (_root.e_party[2].hp == 0) {
moved1 = 2;
newpos = 2;
}
if (_root.e_party[1].hp == 0) {
moved1 = 1;
newpos = 1;
}
if (_root.e_party[enemy.pos - 3].hp == 0) {
moved1 = enemy.pos - 3;
newpos = enemy.pos - 3;
}
}
deadcheck = 0;
if (enemy.pos >= 3) {
if (_root.targetpos(enemy.pos - 3) < 0) {
deadcheck++;
}
if (_root.targetpos(enemy.pos) < 0) {
deadcheck++;
}
} else {
if (_root.targetpos(enemy.pos) < 0) {
deadcheck++;
}
if (_root.targetpos(enemy.pos + 3) < 0) {
deadcheck++;
}
}
if (deadcheck >= 2) {
i = 0;
while (i <= 5) {
if (_root.party[i].hp > 0) {
att_pos = _root.party[i].pos % 3;
if (_root.e_party[att_pos].hp == 0) {
moved1 = att_pos;
newpos = att_pos;
}
}
i++;
}
}
break;
case 2 :
mustmove = false;
if (enemy.pos < 3) {
i = 0;
while (i <= 5) {
if (_root.party[i].pos == (enemy.pos + 3)) {
if (_root.party[i].hp == 0) {
mustmove = true;
}
}
i++;
}
} else {
i = 0;
while (i <= 5) {
if (_root.party[i].pos == (enemy.pos - 3)) {
if (_root.party[i].hp == 0) {
mustmove = true;
}
}
i++;
}
}
if (mustmove) {
i = 0;
while (i <= 5) {
if (_root.party[i].hp > 0) {
if (_root.e_party[_root.party[i].pos - 3].hp == 0) {
moved1 = _root.party[i].pos - 3;
newpos = _root.party[i].pos - 3;
}
if (_root.e_party[_root.party[i].pos + 3].hp == 0) {
moved1 = _root.party[i].pos + 3;
newpos = _root.party[i].pos + 3;
}
}
i++;
}
}
break;
case 3 :
if (enemy.pos >= 3) {
if (_root.e_party[0].hp == 0) {
moved1 = 0;
newpos = 0;
}
if (_root.e_party[2].hp == 0) {
moved1 = 2;
newpos = 2;
}
if (_root.e_party[1].hp == 0) {
moved1 = 1;
newpos = 1;
}
if (_root.e_party[enemy.pos - 3].hp == 0) {
moved1 = enemy.pos - 3;
newpos = enemy.pos - 3;
}
}
deadcheck = 0;
if (enemy.pos >= 3) {
if (_root.targetpos(enemy.pos - 3) < 0) {
deadcheck = deadcheck + 2;
}
if (_root.targetpos(enemy.pos) < 0) {
deadcheck = deadcheck + 2;
}
} else {
if (enemy.pos < 1) {
if (_root.targetpos(enemy.pos + 1) < 0) {
deadcheck = 2;
}
} else {
if (enemy.pos > 1) {
if (_root.targetpos(enemy.pos - 1) < 0) {
deadcheck = 2;
}
}
if (enemy.pos == 1) {
if (_root.targetpos(enemy.pos + 1) < 0) {
deadcheck++;
}
if (_root.targetpos(enemy.pos - 1) < 0) {
deadcheck++;
}
}
}
if (_root.targetpos(enemy.pos) < 0) {
deadcheck++;
}
if (_root.targetpos(enemy.pos + 3) < 0) {
deadcheck++;
}
}
if (deadcheck >= 4) {
i = 0;
while (i <= 5) {
if (_root.party[i].hp > 0) {
att_pos = _root.party[i].pos % 3;
if (_root.e_party[att_pos].hp == 0) {
moved1 = att_pos;
newpos = att_pos;
}
}
i++;
}
}
break;
case 4 :
}
if (newpos >= 0) {
_root.enemyswitch(enemy.pos, newpos);
_root.e_party[moved1].ready--;
_root.e_party[moved2].ready--;
}
}
function enemyswitch(pos1, pos2) {
_root.sfx_smack1.start();
duplicateMovieClip (_root.switch_fx, "switch_fx1", 3001);
effect = _root.switch_fx1;
block = eval ("_root.e_block" + pos2);
effect._x = block._x;
effect._y = block._y;
_root.e_party[7] = new Object();
_root.copy_char(_root.e_party[pos1], _root.e_party[7]);
_root.copy_char(_root.e_party[pos2], _root.e_party[pos1]);
_root.copy_char(_root.e_party[7], _root.e_party[pos2]);
target1 = eval ("_root.enemy" + pos1);
target2 = eval ("_root.enemy" + pos2);
_root.minitialize(target1, _root.e_party[pos1]);
_root.minitialize(target2, _root.e_party[pos2]);
}
function copy_char(obj1, obj2) {
obj2.name = obj1.name;
obj2.level = obj1.level;
obj2.num = obj1.num;
obj2.card = obj1.card;
obj2.spec = obj1.spec;
obj2.counter = obj1.counter;
obj2.hpmax = obj1.hpmax;
obj2.st = obj1.st;
obj2.at = obj1.at;
obj2.ap = obj1.ap;
obj2.hp = obj1.hp;
obj2.ready = obj1.ready;
}
function minitialize(obj, party) {
frame = party.card;
obj.face.gotoAndStop(frame);
frame = party.at;
obj.attack.gotoAndStop(frame);
frame = party.spec + 2;
obj.spec.gotoAndStop(frame);
}
function switchchars(switch1, switchpos1, switch2, switchpos2) {
if (switch1 != switch2) {
_root.sfx_smack1.start();
duplicateMovieClip (_root.switch_fx, "switch_fx1", 3001);
effect = _root.switch_fx1;
block = eval ("_root.block" + switchpos2);
effect._x = block._x;
effect._y = block._y;
card1 = eval ("_root.char" + switch1);
card2 = eval ("_root.char" + switch2);
target1 = eval ("_root.block" + switchpos2);
target2 = eval ("_root.block" + switchpos1);
card1._x = target1._x;
card1._y = target1._y;
card2._x = target2._x;
card2._y = target2._y;
_root.party[switch1].pos = switchpos2;
_root.party[switch2].pos = switchpos1;
_root.party[switch1].ready--;
if (_root.party[switch1].ready < 0) {
_root.party[switch1].ready = 0;
}
_root.party[switch2].ready--;
if (_root.party[switch2].ready < 0) {
_root.party[switch2].ready = 0;
}
}
_root.setup_clear_lights();
_root.switch1 = -1;
}
function failcheck() {
fail = true;
i = 0;
while (i <= 5) {
if (_root.party[i].hp > 0) {
fail = false;
}
i++;
}
return(fail);
}
function enemies_ready() {
i = 0;
while (i <= 5) {
ready = false;
if (_root.e_party[i].ready > 0) {
ready = true;
}
i++;
}
return(ready);
}
function damageupdate() {
mult = 100 / _root.party[this.num].hpmax;
this.damage._yscale = (_root.party[this.num].hpmax - _root.party[this.num].hp) * mult;
if (this.damage._yscale > 100) {
this.damage._yscale = 100;
}
if (this.damage._yscale < 0) {
this.damage._yscale = 0;
}
}
function e_damageupdate() {
mult = 100 / _root.e_party[this.num].hpmax;
this.damage._yscale = (_root.e_party[this.num].hpmax - _root.e_party[this.num].hp) * mult;
if (this.damage._yscale > 100) {
this.damage._yscale = 100;
}
if (this.damage._yscale < 0) {
this.damage._yscale = 0;
}
}
function seetargets() {
thispos = _root.party[this.num].pos;
switch (_root.party[this.num].at) {
case 1 :
if (thispos <= 2) {
if (_root.e_party[thispos].hp > 0) {
char = eval ("_root.e_block" + thispos);
char.outline._visible = true;
} else if (_root.e_party[thispos + 3].hp > 0) {
char = eval ("_root.e_block" + (thispos + 3));
char.outline._visible = true;
}
} else {
targetnum = _root.targetpos(thispos - 3);
if (_root.party[targetnum].hp <= 0) {
if (_root.e_party[thispos - 3].hp > 0) {
char = eval ("_root.e_block" + (thispos - 3));
char.outline_tough._visible = true;
} else if (_root.e_party[thispos].hp > 0) {
char = eval ("_root.e_block" + thispos);
char.outline_tough._visible = true;
}
}
}
return;
case 2 :
if (thispos <= 2) {
if (_root.e_party[thispos + 3].hp > 0) {
char = eval ("_root.e_block" + (_root.party[this.num].pos + 3));
char.outline._visible = true;
}
} else if (_root.e_party[thispos - 3].hp > 0) {
char = eval ("_root.e_block" + (_root.party[this.num].pos - 3));
char.outline._visible = true;
}
return;
case 3 :
targets = 0;
if (thispos <= 2) {
if (_root.e_party[thispos].hp > 0) {
targets = 1;
char = eval ("_root.e_block" + _root.party[this.num].pos);
char.outline._visible = true;
}
if (thispos > 0) {
if (_root.e_party[thispos - 1].hp > 0) {
targets = 1;
char = eval ("_root.e_block" + (_root.party[this.num].pos - 1));
char.outline._visible = true;
}
}
if (thispos < 2) {
if (_root.e_party[thispos + 1].hp > 0) {
targets = 1;
char = eval ("_root.e_block" + (_root.party[this.num].pos + 1));
char.outline._visible = true;
}
}
} else {
targetnum = _root.targetpos(thispos - 3);
if (_root.party[targetnum].hp <= 0) {
if (_root.e_party[thispos - 3].hp > 0) {
targets = 1;
char = eval ("_root.e_block" + (thispos - 3));
char.outline_tough._visible = true;
} else if (_root.e_party[thispos].hp > 0) {
targets = 1;
char = eval ("_root.e_block" + thispos);
char.outline_tough._visible = true;
}
}
}
if (targets <= 0) {
if (_root.e_party[thispos + 3].hp > 0) {
char = eval ("_root.e_block" + (thispos + 3));
char.outline._visible = true;
}
}
return;
case 4 :
i = 0;
for(;;){
if (i > 5) {
break;
}
if (_root.e_party[i].hp > 0) {
char = eval ("_root.e_block" + i);
char.outline_random._visible = true;
char.outline_random.gotoAndPlay(i * 2);
}
i++;
};
}
}
function damagetarget() {
thispos = _root.party[this.num].pos;
switch (_root.party[this.num].at) {
case 1 :
if (_root.party[this.num].pos <= 2) {
if (_root.e_party[thispos].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + thispos);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos], false);
} else if (_root.e_party[thispos + 3].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + (thispos + 3));
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos + 3], false);
}
} else {
targetnum = _root.targetpos(thispos - 3);
if (_root.party[targetnum].hp <= 0) {
if (_root.e_party[thispos - 3].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + (thispos - 3));
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos - 3], true);
} else if (_root.e_party[thispos].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + thispos);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos], true);
}
}
}
break;
case 2 :
if (_root.party[this.num].pos <= 2) {
if (_root.e_party[thispos + 3].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + (thispos + 3));
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos + 3], false);
}
} else if (_root.e_party[thispos - 3].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + (thispos - 3));
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos - 3], false);
}
break;
case 3 :
hit = 0;
if (_root.party[this.num].pos <= 2) {
if (_root.e_party[thispos].hp > 0) {
hit = 1;
enemy = eval ("_root.enemy" + thispos);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos], false);
}
if (_root.party[this.num].pos > 0) {
if (_root.e_party[thispos - 1].hp > 0) {
hit = 1;
enemy = eval ("_root.enemy" + (thispos - 1));
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos - 1], false);
}
}
if (_root.party[this.num].pos < 2) {
if (_root.e_party[thispos + 1].hp > 0) {
hit = 1;
enemy = eval ("_root.enemy" + (thispos + 1));
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos + 1], false);
}
}
if (hit > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
} else if (_root.e_party[thispos + 3].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + (thispos + 3));
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos + 3], false);
}
} else {
targetnum = _root.targetpos(thispos - 3);
if (_root.party[targetnum].hp <= 0) {
if (_root.e_party[thispos - 3].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + (thispos - 3));
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos - 3], true);
} else if (_root.e_party[thispos].hp > 0) {
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
enemy = eval ("_root.enemy" + thispos);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[thispos], true);
}
}
}
break;
case 4 :
damagearray = new Array();
targetlength = 0;
i = 0;
while (i <= 5) {
if (_root.e_party[i].hp > 0) {
targetlength = damagearray.push(i);
}
i++;
}
_root.party[this.num].ready--;
if (_root.party[this.num].ready < 0) {
_root.party[this.num].ready = 0;
}
target = random(targetlength);
enemy = eval ("_root.enemy" + damagearray[target]);
enemy.shake = 6;
this.shake = 6;
_root.damage_calc(_root.party[this.num], _root.e_party[damagearray[target]], false);
}
if (_root.victorycheck()) {
_root.victorydance();
}
}
function damage_calc(party1, target1, tough) {
switch (party1.at) {
case 1 :
_root.sfx_smack4.start();
break;
case 2 :
_root.fx10.start();
break;
case 3 :
_root.sfx_smack2.start();
break;
case 4 :
_root.sfx_smack5.start();
}
damage = party1.st;
if (party1.spec == _root.terrain_st) {
damage++;
}
damage = damage + _root.p_boost_st;
damage = damage + _root.p_boost_st_brute;
if (tough) {
damage = Math.ceil(damage / 2);
}
damage = damage + (random(3) - 1);
if (damage < 1) {
damage = 1;
}
target1.hp = target1.hp - damage;
if (target1.hp < 0) {
target1.hp = 0;
}
if (_root.p_drain > 0) {
party1.hp = party1.hp + Math.ceil(damage * _root.p_drain);
if (party1.hp > party1.hpmax) {
party1.hp = party1.hpmax;
}
}
if (party1.spec != 5) {
party1.hp = party1.hp - target1.counter;
if (target1.spec == _root.terrain_ct) {
party1.hp--;
}
if (party1.hp < 1) {
party1.hp = 1;
}
}
if (_root.actionmode == "enemyturn") {
party1.hp = party1.hp - _root.p_counterboost;
party1.hp = party1.hp - _root.p_counterboost_brute;
if (party1.hp < 1) {
party1.hp = 1;
}
}
}
function endturncheck() {
end = true;
i = 0;
while (i <= 5) {
if (_root.party[i].ready > 0) {
if (_root.party[i].hp > 0) {
end = false;
}
}
i++;
}
if (end) {
_root.endturn();
}
}
function endturn() {
_root.actionmode = "enemymagic";
extras = 50;
if (_root.p_gems >= 100) {
extras = 100;
}
_root.p_gems = _root.p_gems + extras;
if (_root.p_gems > (100 * _root.max_spells)) {
_root.p_gems = 100 * _root.max_spells;
}
_root.readyall();
_root.p_boost_st = 0;
_root.p_boost_st_brute = 0;
_root.p_drain = 0;
}
function e_endturn() {
this.timer = (-this.interval) + 1;
_root.p_counterboost = 0;
_root.p_counterboost_brute = 0;
_root.actionmode = "play";
_root.readyall();
if (_root.timestop == 0) {
_root.turnlimit--;
_root.circle.play();
} else {
_root.timestop--;
}
if (_root.turnlimit < 0) {
if (!_root.victorycheck()) {
_root.drawdance();
}
}
}
function victorydance() {
_root.debug2_txt.text = "VICTORY!";
_root.actionmode = "victory";
}
function faildance() {
_root.debug2_txt.text = "FAILURE!";
_root.actionmode = "fail";
}
function drawdance() {
_root.debug2_txt.text = "DRAW";
_root.actionmode = "draw";
}
function get_enemy_lev() {
level = 0;
i = 0;
while (i <= 5) {
level = level + _root.e_party[i].level;
i++;
}
return(level);
}
function get_lev() {
level = 0;
i = 0;
while (i <= 5) {
level = level + _root.party[i].level;
i++;
}
return(level);
}
function loot_calc(base) {
e_level = _root.get_enemy_lev();
p_level = _root.get_lev();
level = Math.floor((e_level * 1.5) - p_level);
loot = base + (_root.turnlimit * 3);
loot = loot + (random(9) - 4);
i = 0;
while (i <= 5) {
if (_root.e_party[i].hp == 0) {
loot = loot + 1;
}
if (_root.party[i].hp == 0) {
loot = loot - 3;
}
i++;
}
loot = loot + Math.floor(level / 6);
if (loot == 1) {
loot++;
}
if (loot == -1) {
loot--;
}
_root.loot = loot;
return(loot);
}
function level_down() {
i = 0;
while (i <= 5) {
if (_root.party[i].hp == 0) {
_root.level_down_single(i);
}
i++;
}
}
function level_down_single(num) {
if (_root.party[num].level > 0) {
_root.party[num].level--;
if ((_root.party[num].level % 5) == 4) {
_root.party[num].hpmax = _root.party[num].hpmax - 1;
}
if (_root.party[num].level == 19) {
_root.party[num].counter--;
}
if (_root.party[num].level == 34) {
_root.party[num].st--;
}
if (_root.party[num].level == 49) {
_root.party[num].ap--;
}
}
}
BGM0.setVolume(_root.vol);
music_offset = BGM1.position / 1000;
BGM1.stop();
BGM3.start();
BGM3.onSoundComplete = function () {
BGM3.start(0.1);
};
old_reward = reward;
max_spells = item_max_spells;
stop();
loot = 0;
item1 = 0;
item2 = 0;
item3 = 0;
turnlimit = random(4) + 8;
p_drain = 0;
p_boost_st = 0;
p_boost_st_brute = 0;
p_counterboost = 0;
p_counterboost_brute = 0;
p_gems = item_magicstart;
p_big_gems = 0;
e_gems = 0;
timestop = 0;
terrain_st = -1;
terrain_ap = -1;
terrain_hp = -1;
terrain_ct = -1;
terrain_mag = -1;
if (skirmish) {
terrain = "none";
}
terrain_bonus();
_root.stat_txt.text = "";
actionmode = "transin";
switch1 = -1;
victory = false;
readyall();
Instance of Symbol 464 MovieClip in Frame 19
onClipEvent (load) {
targetx = -100;
_x = -100;
speedmax = 40;
this.gotoAndStop(1);
if (_root.terrain == "castle") {
this.gotoAndStop(4);
}
if (_root.terrain == "grass") {
this.gotoAndStop(3);
}
if (_root.terrain == "forest") {
this.gotoAndStop(3);
}
if (_root.terrain == "water") {
this.gotoAndStop(5);
}
if (_root.terrain == "tundra") {
this.gotoAndStop(6);
}
if (_root.terrain == "waste") {
this.gotoAndStop(7);
}
if (_root.terrain == "lava") {
this.gotoAndStop(7);
}
if (_root.skirmish) {
_visible = false;
}
if (_root.terrain == "snowfield") {
this.gotoAndStop(6);
}
if (_root.terrain == "cave") {
this.gotoAndStop(8);
}
if (_root.terrain == "cavelava") {
this.gotoAndStop(8);
}
if (_root.terrain == "cavewater") {
this.gotoAndStop(8);
}
if (_root.terrain == "cloud") {
this.gotoAndStop(9);
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "play") {
targetx = 460;
}
if ((targetx - _x) > 1) {
speed = Math.abs((targetx - _x) / 3);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x + speed);
}
}
Instance of Symbol 478 MovieClip in Frame 19
onClipEvent (load) {
targetx = 800;
refx = 440;
_x = 800;
speedmax = 30;
gotoAndStop (38);
if (_root.terrain == "castle") {
this.gotoAndStop(1);
}
if (_root.terrain == "grass") {
this.gotoAndStop(2);
}
if (_root.terrain == "forest") {
this.gotoAndStop(3);
}
if (_root.terrain == "water") {
this.gotoAndStop(4);
}
if (_root.terrain == "tundra") {
this.gotoAndStop(5);
}
if (_root.terrain == "waste") {
this.gotoAndStop(6);
}
if (_root.terrain == "lava") {
this.gotoAndStop(7);
}
if (_root.terrain == "snowfield") {
this.gotoAndStop(8);
}
if (_root.terrain == "cavelava") {
this.gotoAndStop(7);
}
if (_root.terrain == "cavewater") {
this.gotoAndStop(4);
}
if (_root.terrain == "cave") {
this.gotoAndStop(9);
}
if (_root.terrain == "cloud") {
this.gotoAndStop(10);
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "play") {
targetx = 440;
}
if ((_x - targetx) > 1) {
speed = Math.abs((_x - refx) / 3);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x - speed);
}
}
Instance of Symbol 330 MovieClip "e_block0" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "e_block1" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "e_block2" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "e_block5" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "e_block4" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "e_block3" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block3" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block4" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block5" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block2" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block1" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block0" in Frame 19
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 48 MovieClip "party_controller" in Frame 19
onClipEvent (load) {
_root.initialize();
_root.magiclist();
}
onClipEvent (enterFrame) {
if (_root.turnlimit >= 0) {
_root.turns_txt.text = _root.turnlimit;
}
_root.debug_txt.text = _root.actionmode;
_root.debug2_txt.text = _root.p_gems;
}
Instance of Symbol 48 MovieClip "enemy_controller" in Frame 19
onClipEvent (load) {
_root.e_initialize();
interval = 20;
timer = (-interval) + 1;
skipnum = 0;
skipmax = 0;
skipgems = 0;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "enemymagic") {
_root.actionmode = "enemyturn";
timer = (-interval) + 1;
}
if (_root.actionmode == "enemyturn") {
if ((timer % interval) == 0) {
num = timer / interval;
enemy = eval ("_root.enemy" + num);
e_party = _root.e_party;
if ((e_party[num].hp > 0) && (e_party[num].ready > 0)) {
if (random(10) > 3) {
_root.e_movecheck(_root.e_party[num]);
timer = (-interval) + 1;
}
}
if ((e_party[num].hp > 0) && (e_party[num].ready > 0)) {
_root.e_damagetarget.call(enemy);
if (e_party[num].ready > 0) {
timer = timer - (interval - 1);
}
} else {
timer = timer + (interval - 1);
skipnum++;
}
if (e_party[num].hp == 0) {
skipgems++;
}
}
if (timer > ((interval * 6) - 5)) {
if (!_root.victorycheck()) {
_root.e_endturn.call(this);
} else {
_root.victorydance();
}
}
timer++;
if (skipnum > skipmax) {
skipmax = skipnum;
}
if (skipnum >= 6) {
if (_root.failcheck()) {
_root.faildance();
} else if (_root.victorycheck()) {
_root.victorydance();
}
}
} else {
skipnum = 0;
skipgems = 0;
}
}
Instance of Symbol 48 MovieClip "end_controller" in Frame 19
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "victory") {
timer++;
if (timer >= 60) {
_root.reward = _root.reward + _root.loot_calc(10);
if (_root.reward < 0) {
_root.reward = 0;
}
if (_root.reward > 9999) {
_root.reward = 9999;
}
_root.nextscene = "victory";
_root.actionmode = "next";
}
}
if (_root.actionmode == "fail") {
timer++;
if (timer >= 60) {
amount = _root.loot_calc(-10);
if (amount > 0) {
amount = 0;
}
_root.reward = _root.reward + amount;
if (_root.reward < 0) {
_root.reward = 0;
}
if (_root.reward > 9999) {
_root.reward = 9999;
}
_root.nextscene = "fail";
_root.actionmode = "next";
}
}
if (_root.actionmode == "draw") {
timer++;
if (timer >= 60) {
amount = _root.loot_calc(-10);
_root.reward = _root.reward + amount;
if (_root.reward < 0) {
_root.reward = 0;
}
if (_root.reward > 9999) {
_root.reward = 9999;
}
_root.nextscene = "draw";
_root.actionmode = "next";
}
}
if (_root.actionmode == "run") {
timer++;
if (timer >= 60) {
amount = _root.loot_calc((-(_root.turnlimit * 2)) - 3);
if (amount > 0) {
amount = 0;
}
_root.reward = _root.reward + amount;
if (_root.reward < 0) {
_root.reward = 0;
}
if (_root.reward > 9999) {
_root.reward = 9999;
}
_root.nextscene = "draw";
_root.actionmode = "next";
}
}
if (_root.actionmode == "flee") {
timer++;
if (timer >= 60) {
_root.nextscene = "draw";
_root.actionmode = "next";
}
amount = _root.loot_calc((-(_root.turnlimit * 2)) - 3);
if (amount > 0) {
amount = 0;
}
_root.reward = _root.reward + amount;
if (_root.reward < 0) {
_root.reward = 0;
}
if (_root.reward > 9999) {
_root.reward = 9999;
}
}
}
Instance of Symbol 361 MovieClip "char1" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.readycheck.call(this);
_root.startshake.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.stathide();
if (_root.party[num].ready <= 1) {
_root.clear_lights();
outline._visible = false;
}
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
_root.damagetarget.call(this);
}
}
}
if (_root.actionmode == "switch") {
_root.prepswitch.call(this);
}
_root.endturncheck();
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 479 MovieClip "enemy1" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
stop();
death._visible = false;
dark._visible = false;
}
onClipEvent (enterFrame) {
_root.e_damageupdate.call(this);
_root.e_readycheck.call(this);
_root.startshake.call(this);
_root.e_deathcheck.call(this);
}
on (rollOver) {
_root.e_statshow(_root.e_party[num]);
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
}
Instance of Symbol 361 MovieClip "char3" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.readycheck.call(this);
_root.startshake.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.stathide();
if (_root.party[num].ready <= 1) {
_root.clear_lights();
outline._visible = false;
}
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
_root.damagetarget.call(this);
}
}
}
if (_root.actionmode == "switch") {
_root.prepswitch.call(this);
}
_root.endturncheck();
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char5" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.readycheck.call(this);
_root.startshake.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.stathide();
if (_root.party[num].ready <= 1) {
_root.clear_lights();
outline._visible = false;
}
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
_root.damagetarget.call(this);
}
}
}
if (_root.actionmode == "switch") {
_root.prepswitch.call(this);
}
_root.endturncheck();
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char2" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.readycheck.call(this);
_root.startshake.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.stathide();
if (_root.party[num].ready <= 1) {
_root.clear_lights();
outline._visible = false;
}
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
_root.damagetarget.call(this);
}
}
}
if (_root.actionmode == "switch") {
_root.prepswitch.call(this);
}
_root.endturncheck();
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char4" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.readycheck.call(this);
_root.startshake.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.stathide();
if (_root.party[num].ready <= 1) {
_root.clear_lights();
outline._visible = false;
}
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
_root.damagetarget.call(this);
}
}
}
if (_root.actionmode == "switch") {
_root.prepswitch.call(this);
}
_root.endturncheck();
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char0" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.readycheck.call(this);
_root.startshake.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.stathide();
if (_root.party[num].ready <= 1) {
_root.clear_lights();
outline._visible = false;
}
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
_root.damagetarget.call(this);
}
}
}
if (_root.actionmode == "switch") {
_root.prepswitch.call(this);
}
_root.endturncheck();
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 479 MovieClip "enemy2" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
stop();
death._visible = false;
dark._visible = false;
}
onClipEvent (enterFrame) {
_root.e_damageupdate.call(this);
_root.e_readycheck.call(this);
_root.startshake.call(this);
_root.e_deathcheck.call(this);
}
on (rollOver) {
_root.e_statshow(_root.e_party[num]);
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
}
Instance of Symbol 479 MovieClip "enemy3" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
stop();
death._visible = false;
dark._visible = false;
}
onClipEvent (enterFrame) {
_root.e_damageupdate.call(this);
_root.e_readycheck.call(this);
_root.startshake.call(this);
_root.e_deathcheck.call(this);
}
on (rollOver) {
_root.e_statshow(_root.e_party[num]);
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
}
Instance of Symbol 479 MovieClip "enemy4" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
stop();
death._visible = false;
dark._visible = false;
}
onClipEvent (enterFrame) {
_root.e_damageupdate.call(this);
_root.e_readycheck.call(this);
_root.startshake.call(this);
_root.e_deathcheck.call(this);
}
on (rollOver) {
_root.e_statshow(_root.e_party[num]);
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
}
Instance of Symbol 479 MovieClip "enemy5" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
stop();
death._visible = false;
dark._visible = false;
}
onClipEvent (enterFrame) {
_root.e_damageupdate.call(this);
_root.e_readycheck.call(this);
_root.startshake.call(this);
_root.e_deathcheck.call(this);
}
on (rollOver) {
_root.e_statshow(_root.e_party[num]);
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
}
Instance of Symbol 479 MovieClip "enemy0" in Frame 19
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
stop();
death._visible = false;
dark._visible = false;
}
onClipEvent (enterFrame) {
_root.e_damageupdate.call(this);
_root.e_readycheck.call(this);
_root.startshake.call(this);
_root.e_deathcheck.call(this);
}
on (rollOver) {
_root.e_statshow(_root.e_party[num]);
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
}
Instance of Symbol 484 MovieClip "phase" in Frame 19
onClipEvent (load) {
speed = 10;
}
onClipEvent (enterFrame) {
if (_y < 30) {
_y = (_y + speed);
}
if ((oldmode != _root.actionmode) || (phase_txt.text == "")) {
_y = -40;
}
switch (_root.actionmode) {
case "play" :
phase_txt.text = "Attack!";
if (_root.lang == "esp") {
phase_txt.text = "Atacar!";
}
break;
case "enemyturn" :
phase_txt.text = "Enemy Turn";
if (_root.lang == "esp") {
phase_txt.text = "Turno del Enemigo";
}
break;
case "switch" :
phase_txt.text = "Switch Positions";
if (_root.lang == "esp") {
phase_txt.text = "Cambiar Posiciones";
}
break;
case "victory" :
phase_txt.text = "VICTORY!";
if (_root.lang == "esp") {
phase_txt.text = "VICTORIA!";
}
break;
case "fail" :
phase_txt.text = "You Lose!";
if (_root.lang == "esp") {
phase_txt.text = "Usted Pierde!";
}
break;
case "enemymagic" :
phase_txt.text = "Enemy Magic";
break;
case "run" :
phase_txt.text = "RUNNING AWAY...";
if (_root.lang == "esp") {
phase_txt.text = "Usted Se Escapa...";
}
break;
default :
phase_txt.text = "";
}
oldmode = _root.actionmode;
}
Instance of Symbol 498 MovieClip in Frame 19
onClipEvent (load) {
speed = 5;
scale = 0;
scaletarget = 0;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "play") {
if (_root.p_gems < 0) {
_root.p_gems = 0;
}
if (_root.p_big_gems < _root.max_spells) {
scaletarget = _root.p_gems;
}
}
if (scale != scaletarget) {
scale = scale + speed;
}
if (scale > scaletarget) {
scale = scaletarget;
}
_root.p_big_gems = Math.floor(scale / 100);
_xscale = (scale % 100);
}
Instance of Symbol 514 MovieClip in Frame 19
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.p_big_gems >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 514 MovieClip in Frame 19
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.p_big_gems >= 2) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 514 MovieClip in Frame 19
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.p_big_gems >= 3) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 516 MovieClip "swirl_fx" in Frame 19
onClipEvent (load) {
_xscale = 100;
_yscale = 100;
}
onClipEvent (enterFrame) {
if (_xscale > 0) {
_rotation = (_rotation + 15);
_xscale = (_xscale - 3);
_yscale = (_yscale - 3);
}
}
Instance of Symbol 376 MovieClip "stat_box" in Frame 19
onClipEvent (load) {
targetx = 680;
speed = 20;
}
onClipEvent (enterFrame) {
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if ((_root.actionmode != "play") && (_root.actionmode != "switch")) {
targetx = 680;
_x = 680;
}
}
Instance of Symbol 534 MovieClip in Frame 19
onClipEvent (load) {
collision._visible = false;
target_x = -100;
_x = target_x;
home_rot = _rotation;
target_rotation = _rotation;
}
onClipEvent (enterFrame) {
if ((_root.actionmode == "play") || (_root.actionmode == "switch")) {
target_x = -14;
} else {
button2.swap._visible = true;
target_x = -100;
}
if (_x > target_x) {
_x = (_x - ((_x - target_x) / 3));
}
if (_x < target_x) {
_x = (_x + ((target_x - _x) / 3));
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = -_rotation;
}
Instance of Symbol 211 MovieClip "help_box" in Frame 19
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 452 MovieClip "switch_fx" in Frame 19
onClipEvent (load) {
}
onClipEvent (enterFrame) {
}
Instance of Symbol 446 MovieClip "mag" in Frame 19
onClipEvent (load) {
targetx = 680;
speed = 20;
}
onClipEvent (enterFrame) {
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if (_root.actionmode != "play") {
targetx = 680;
_x = 680;
}
}
Instance of Symbol 442 MovieClip in Frame 19
onClipEvent (load) {
targetx = 728;
speed = 20;
}
onClipEvent (enterFrame) {
targetx = 728;
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.actionmode == "play") {
targetx = 500;
}
}
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if (_root.actionmode != "play") {
targetx = 728;
_x = 728;
}
}
Instance of Symbol 514 MovieClip in Frame 19
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.p_big_gems >= 4) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 514 MovieClip in Frame 19
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.p_big_gems >= 5) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 514 MovieClip in Frame 19
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.p_big_gems >= 6) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 103 MovieClip in Frame 19
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 213 MovieClip in Frame 19
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_root.fight._currentframe == _root.fight._totalframes) {
if (_x > xtarget) {
_x = (_x - speed);
}
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 19
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_root.fight._currentframe == _root.fight._totalframes) {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "play";
}
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
_root.terrain_st = -1;
_root.terrain_ap = -1;
_root.terrain_hp = -1;
_root.terrain_ct = -1;
_root.terrain_mag = -1;
if (_root.skirmish) {
_root.gotoAndStop("menu");
} else {
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "victory") {
_root.gotoAndStop("victory");
}
if (_root.nextscene == "fail") {
_root.gotoAndStop("fail");
}
if (_root.nextscene == "draw") {
_root.gotoAndStop("draw");
}
}
}
}
}
Frame 20
function autoheal() {
i = 0;
while (i <= 5) {
if (_root.party[i].hp > 0) {
_root.party[i].hp = _root.party[i].hp + (_root.autoheal_amount + _root.item_autoheal);
}
if (_root.party[i].hp > _root.party[i].hpmax) {
_root.party[i].hp = _root.party[i].hpmax;
}
i++;
}
}
BGM0.setVolume(_root.vol);
_root.BGM3.stop();
loot_txt.text = _root.loot;
reward_txt.text = _root.old_reward;
victory = true;
level_up();
level_down();
autoheal();
if (lang == "esp") {
vic_txt.text = "VICTORIA!";
}
Instance of Symbol 545 MovieClip in Frame 20
onClipEvent (load) {
timer = 30;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
} else {
if (_root.loot > 0) {
_root.loot--;
_root.old_reward++;
if (_root.old_reward > 9999) {
_root.old_reward = 9999;
}
}
if (_root.loot < 0) {
_root.loot++;
_root.old_reward--;
if (_root.old_reward < 0) {
_root.old_reward = 0;
}
}
_root.loot_txt.text = _root.loot;
_root.reward_txt.text = _root.old_reward;
}
}
Instance of Symbol 82 MovieClip "button3" in Frame 20
onClipEvent (load) {
targetx = 300;
refx = 300;
_x = -10;
speedmax = 30;
}
onClipEvent (enterFrame) {
if ((targetx - _x) > 1) {
speed = Math.abs((refx - _x) / 2);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x + speed);
}
if (_x > 600) {
_root.gotoAndPlay("upgrade");
}
}
on (press) {
refx = 298;
targetx = 620;
}
Frame 21
BGM0.setVolume(_root.vol);
_root.BGM3.stop();
level_down();
loot_txt.text = _root.loot;
reward_txt.text = _root.old_reward;
if (lang == "esp") {
draw_txt.text = "TABLAS";
}
Instance of Symbol 82 MovieClip "button3" in Frame 21
onClipEvent (load) {
targetx = 300;
refx = 300;
_x = -10;
speedmax = 30;
}
onClipEvent (enterFrame) {
if ((targetx - _x) > 1) {
speed = Math.abs((refx - _x) / 2);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x + speed);
}
if (_x > 600) {
_root.gotoAndPlay("upgrade");
}
}
on (press) {
refx = 298;
targetx = 620;
}
Instance of Symbol 545 MovieClip in Frame 21
onClipEvent (load) {
timer = 30;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
} else {
if (_root.loot > 0) {
_root.loot--;
_root.old_reward++;
if (_root.old_reward > 9999) {
_root.old_reward = 9999;
}
}
if (_root.loot < 0) {
_root.loot++;
_root.old_reward--;
if (_root.old_reward < 0) {
_root.old_reward = 0;
}
}
_root.loot_txt.text = _root.loot;
_root.reward_txt.text = _root.old_reward;
}
}
Frame 22
function salvage_team(num) {
i = 0;
while (i <= 5) {
_root.party[i].hp = Math.ceil((_root.party[i].hpmax * num) / 100);
i++;
}
}
BGM0.setVolume(_root.vol);
_root.BGM3.stop();
level_down();
salvage_team(100);
loot_txt.text = _root.loot;
reward_txt.text = _root.old_reward;
if (lang == "esp") {
fail_txt.text = "FRACASO!";
}
Instance of Symbol 82 MovieClip "button3" in Frame 22
onClipEvent (load) {
targetx = 300;
refx = 300;
_x = -10;
speedmax = 30;
}
onClipEvent (enterFrame) {
if ((targetx - _x) > 1) {
speed = Math.abs((refx - _x) / 2);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x + speed);
}
if (_x > 600) {
_root.gotoAndPlay("upgrade");
}
}
on (press) {
refx = 298;
targetx = 620;
}
Instance of Symbol 545 MovieClip in Frame 22
onClipEvent (load) {
timer = 30;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
} else {
if (_root.loot > 0) {
_root.loot--;
_root.old_reward++;
if (_root.old_reward > 9999) {
_root.old_reward = 9999;
}
}
if (_root.loot < 0) {
_root.loot++;
_root.old_reward--;
if (_root.old_reward < 0) {
_root.old_reward = 0;
}
}
_root.loot_txt.text = _root.loot;
_root.reward_txt.text = _root.old_reward;
}
}
Frame 23
function spell_shot(num, amount) {
_root.fx5.stop("effect5");
_root.fx5.start();
if (_root.party[num].hp == 0) {
_root.party[num].hp = Math.ceil(_root.party[num].hpmax / amount);
_root.deathcheck();
sparktarget = eval ("_root.char" + num);
duplicateMovieClip (_root.ring_fx, "ring_fx" + num, 3000 + num);
spark = eval ("_root.ring_fx" + num);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
}
function feed(num, amount) {
_root.fx6.stop("effect6");
_root.fx6.start();
amount = amount + (random(5) - 2);
if (_root.party[num].hp > 0) {
_root.party[num].hp = _root.party[num].hp + amount;
if (_root.party[num].hp > _root.party[num].hpmax) {
_root.party[num].hp = _root.party[num].hpmax;
}
sparktarget = eval ("_root.char" + num);
duplicateMovieClip (_root.sparkles, "sparkles" + num, 3000 + num);
spark = eval ("_root.sparkles" + num);
spark._x = sparktarget._x;
spark._y = sparktarget._y;
}
}
BGM0.setVolume(_root.vol);
stop();
music_offset = BGM1.position / 1000;
BGM1.stop();
BGM2.start();
BGM2.onSoundComplete = function () {
BGM2.start();
};
p_boost_st = 0;
p_counterboost = 0;
p_big_gems = 300;
actionmode = "transin";
switch1 = -1;
readyall();
Instance of Symbol 48 MovieClip "party_controller" in Frame 23
onClipEvent (load) {
if (_root.lang == "esp") {
_root.pt_txt.text = "Puntos";
}
_root.sold_out._visible = false;
if (!_root.shop) {
_root.scene_txt.text = "CAMP";
if (_root.lang == "esp") {
_root.scene_txt.text = "CAMPO";
}
} else {
_root.scene_txt.text = "SHELL SHOP";
if (_root.lang == "esp") {
_root.scene_txt.text = "TIENDA TORTUGA";
}
_root.upgrades._visible = false;
}
_root.initialize();
_root.magiclist();
}
onClipEvent (enterFrame) {
_root.random_txt.text = _root.randomlimit;
_root.food_txt.text = _root.food;
_root.shot_txt.text = _root.shot;
_root.debug_txt.text = _root.actionmode;
_root.points_txt.text = _root.reward;
if (_root.shop) {
if (!_root.sale_item1._visible) {
if (!_root.sale_item2._visible) {
if (!_root.sale_item3._visible) {
_root.sold_out._visible = true;
map = eval ("_root.map" + _root.currentmap);
map[_root.hero_pos] = 151;
}
}
}
}
}
Instance of Symbol 49 MovieClip "bg_camp" in Frame 23
onClipEvent (load) {
if (_root.shop) {
_visible = false;
}
}
Instance of Symbol 464 MovieClip in Frame 23
onClipEvent (load) {
targetx = 480;
_x = -100;
speedmax = 40;
this.gotoAndStop(1);
if (!_root.shop) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if ((targetx - _x) > 1) {
speed = Math.abs((targetx - _x) / 3);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x + speed);
}
}
Instance of Symbol 563 MovieClip "shopkeeper" in Frame 23
onClipEvent (load) {
targetx = 440;
refx = 440;
_x = 800;
speedmax = 30;
if (!_root.shop) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_x - targetx) > 1) {
speed = Math.abs((_x - refx) / 3);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x - speed);
}
}
Instance of Symbol 565 MovieClip in Frame 23
onClipEvent (load) {
targetx = 440;
refx = 440;
_x = 800;
speedmax = 30;
if (_root.shop) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_x - targetx) > 1) {
speed = Math.abs((_x - refx) / 3);
if (speed > speedmax) {
speed = speedmax;
}
_x = (_x - speed);
}
}
Instance of Symbol 330 MovieClip "block3" in Frame 23
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block4" in Frame 23
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block5" in Frame 23
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block2" in Frame 23
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block1" in Frame 23
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 330 MovieClip "block0" in Frame 23
onClipEvent (load) {
outline._visible = false;
outline_tough._visible = false;
outline_random._visible = false;
}
Instance of Symbol 361 MovieClip "char0" in Frame 23
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char2" in Frame 23
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char4" in Frame 23
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char1" in Frame 23
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char3" in Frame 23
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 361 MovieClip "char5" in Frame 23
onClipEvent (load) {
damage._yscale = 0;
shake = 0;
homex = _x;
stop();
death._visible = false;
outline._visible = false;
outline_white._visible = false;
outline_white2._visible = false;
_root.readycheck.call(this);
}
onClipEvent (enterFrame) {
_root.damageupdate.call(this);
_root.deathcheck.call(this);
}
on (press) {
_root.setup_clear_lights();
outline._visible = false;
if (_root.actionmode == "switch") {
_root.setup_prepswitch.call(this);
}
}
on (rollOver) {
_root.statshow(_root.party[num]);
if (_root.actionmode == "play") {
if (_root.party[num].ready > 0) {
if (_root.party[num].hp > 0) {
outline._visible = true;
_root.seetargets.call(this);
}
}
}
if (_root.actionmode == "switch") {
if ((_root.party[num].ready > 0) || (_root.party[num].hp == 0)) {
outline_white2._visible = true;
}
}
}
on (rollOut) {
_root.stathide();
_root.stat_txt.text = "";
outline._visible = false;
_root.clear_e_lights();
outline_white2._visible = false;
}
Instance of Symbol 442 MovieClip in Frame 23
onClipEvent (load) {
targetx = 728;
speed = 20;
}
onClipEvent (enterFrame) {
targetx = 728;
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.actionmode == "switch") {
targetx = 500;
}
}
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if (_root.actionmode != "switch") {
targetx = 728;
_x = 728;
}
}
Instance of Symbol 376 MovieClip "stat_box" in Frame 23
onClipEvent (load) {
targetx = 680;
speed = 20;
}
onClipEvent (enterFrame) {
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if ((_root.actionmode != "play") && (_root.actionmode != "switch")) {
targetx = 680;
_x = 680;
}
}
Instance of Symbol 577 MovieClip in Frame 23
onClipEvent (load) {
collision._visible = false;
collision2._visible = false;
target_x = -100;
_x = target_x;
home_rot = _rotation;
target_rotation = _rotation;
}
onClipEvent (enterFrame) {
if ((_root.actionmode == "switch") && (!_root.shop)) {
target_x = -14;
} else {
target_x = -100;
}
if (_x > target_x) {
_x = (_x - ((_x - target_x) / 2));
}
if (_x < target_x) {
_x = (_x + ((target_x - _x) / 2));
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 2) / 3;
} else {
ydist = (ydist - 2) / 3;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 2) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -2) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 2) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 516 MovieClip "swirl_fx" in Frame 23
onClipEvent (load) {
_xscale = 100;
_yscale = 100;
}
onClipEvent (enterFrame) {
if (_xscale > 0) {
_rotation = (_rotation + 15);
_xscale = (_xscale - 3);
_yscale = (_yscale - 3);
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 23
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 446 MovieClip "mag" in Frame 23
onClipEvent (load) {
targetx = 680;
speed = 20;
}
onClipEvent (enterFrame) {
if (targetx > _x) {
_x = (_x + ((targetx - _x) / 2));
}
if (targetx < _x) {
_x = (_x - ((_x - targetx) / 2));
}
if (_root.actionmode != "switch") {
targetx = 680;
_x = 680;
}
}
Instance of Symbol 634 MovieClip "sale_item1" in Frame 23
onClipEvent (load) {
item = _root.item1;
}
Instance of Symbol 634 MovieClip "sale_item2" in Frame 23
onClipEvent (load) {
item = _root.item2;
}
Instance of Symbol 634 MovieClip "sale_item3" in Frame 23
onClipEvent (load) {
item = _root.item3;
}
Instance of Symbol 635 MovieClip in Frame 23
onClipEvent (load) {
collision._visible = false;
collision2._visible = false;
target_x = -100;
_x = target_x;
maxrotation = 15;
home_rot = _rotation;
target_rotation = _rotation;
}
onClipEvent (enterFrame) {
if ((_root.actionmode == "switch") && (_root.shop)) {
target_x = -14;
} else {
target_x = -100;
}
if (_x > target_x) {
_x = (_x - ((_x - target_x) / 2));
}
if (_x < target_x) {
_x = (_x + ((target_x - _x) / 2));
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 2) / 6;
} else {
ydist = (ydist - 2) / 6;
}
if (Math.abs(ydist) > maxrotation) {
if (ydist > 0) {
ydist = maxrotation;
}
if (ydist < 0) {
ydist = -maxrotation;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 2) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -2) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 2) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button3._rotation = 180 - _rotation;
}
Instance of Symbol 452 MovieClip "switch_fx" in Frame 23
onClipEvent (load) {
}
onClipEvent (enterFrame) {
}
Instance of Symbol 103 MovieClip in Frame 23
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 213 MovieClip in Frame 23
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 23
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "switch";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
_root.shop = false;
_root.item1 = 0;
_root.item2 = 0;
_root.item3 = 0;
switch (_root.currentmap) {
case 1 :
_root.gotoAndStop("map1");
break;
case 2 :
_root.gotoAndStop("map2");
break;
case 3 :
_root.gotoAndStop("map3");
break;
case 4 :
_root.gotoAndStop("map4");
break;
case 5 :
_root.gotoAndStop("map5");
break;
case 6 :
_root.gotoAndStop("map6");
break;
case 7 :
_root.gotoAndStop("map7");
break;
case 8 :
_root.gotoAndStop("map8");
}
}
}
}
Frame 24
BGM0.setVolume(_root.vol);
actionmode = "transin";
enemylevel = 5;
if (!victory) {
hero_pos = hero_lastpos;
}
hero.pos = hero_pos;
enemylist[0] = 1;
enemylist[1] = 5;
enemylist[2] = 4;
enemylist[3] = 4;
enemylist[4] = 7;
enemylist[5] = 7;
enemylist[6] = 12;
enemylist[7] = 12;
enemylist[8] = 2;
enemylist[9] = 2;
enemylist[10] = 2;
enemylist[11] = 6;
enemylist[12] = 6;
enemylist[13] = 11;
enemylist[14] = 11;
enemylist[15] = 17;
enemylist[16] = 17;
enemylist[17] = 21;
enemylist[18] = 21;
enemylist[19] = 20;
enemylist[20] = 3;
Instance of Symbol 48 MovieClip "sound_controller" in Frame 24
onClipEvent (load) {
musicvol = 0;
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM3.stop();
_root.BGM1.setVolume(musicvol);
_root.BGM1.start(_root.music_offset);
_root.BGM1.onSoundComplete = function () {
_root.BGM1.start();
};
}
onClipEvent (enterFrame) {
if (musicvol < _root.vol) {
_root.BGM1.setVolume(musicvol);
musicvol = musicvol + 5;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 4;
map = _root.map1;
terrain = "grass";
connected = new Array();
connected[0] = 3;
connected[1] = 5;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 3;
map = _root.map1;
terrain = "forest";
item1 = 2;
item2 = 0;
item3 = 3;
connected = new Array();
connected[0] = 2;
connected[1] = 4;
connected[2] = 7;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 2;
map = _root.map1;
terrain = "grass";
item1 = 0;
item2 = 0;
item3 = 0;
connected = new Array();
connected[0] = 1;
connected[1] = 3;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 1;
map = _root.map1;
terrain = "grass";
connected = new Array();
connected[0] = 2;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 5;
map = _root.map1;
terrain = "forest";
connected = new Array();
connected[0] = 4;
connected[1] = 6;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 6;
map = _root.map1;
terrain = "forest";
destination = "map2";
dest_pos = 12;
connected = new Array();
connected[0] = 5;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 7;
map = _root.map1;
terrain = "forest";
connected = new Array();
connected[0] = 3;
connected[1] = 8;
connected[2] = 9;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 8;
map = _root.map1;
terrain = "grass";
item1 = 0;
item2 = 15;
item3 = 0;
connected = new Array();
connected[0] = 7;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 9;
map = _root.map1;
terrain = "grass";
connected = new Array();
connected[0] = 7;
connected[1] = 10;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 11;
map = _root.map1;
terrain = "castle";
level = 10;
enemyarray = new Array();
enemyarray[0] = 14;
enemyarray[1] = 3;
enemyarray[2] = 14;
enemyarray[3] = 7;
enemyarray[4] = 14;
enemyarray[5] = 7;
connected = new Array();
connected[0] = 10;
connected[1] = 12;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 24
onClipEvent (load) {
flag._visible = false;
if (_root.map1[11] == 0) {
flag._visible = true;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 10;
map = _root.map1;
terrain = "grass";
item1 = 1;
item2 = 2;
item3 = 3;
connected = new Array();
connected[0] = 9;
connected[1] = 11;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 24
onClipEvent (load) {
num = 12;
map = _root.map1;
terrain = "water";
destination = "map3";
dest_pos = 6;
connected = new Array();
connected[0] = 11;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 669 MovieClip "hero" in Frame 24
onClipEvent (load) {
map = _root.map1;
maxspeed = 5;
}
onClipEvent (enterFrame) {
_root.debug2_txt.text = "mode: " + _root.actionmode;
xspeed = (targetx - _x) / 3;
yspeed = (targety - _y) / 3;
if (Math.abs(targetx - _x) > 3) {
_x = (_x + xspeed);
} else {
_x = targetx;
}
if (Math.abs(targety - _y) > 3) {
_y = (_y + yspeed);
} else {
_y = targety;
}
if ((_x == targetx) && (_y == targety)) {
if (_root.actionmode == "moving") {
_root.hero_pos = _root.hero_pos;
_root.actionmode = "move";
if (map[_root.hero_pos] == 0) {
if (random(100) < 30) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
} else {
_root.hero_lastpos = _root.hero_pos;
}
}
}
}
}
Instance of Symbol 681 MovieClip in Frame 24
onClipEvent (load) {
collision._visible = false;
home_rot = _rotation;
target_rotation = _rotation;
map = _root.map1;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = false;
} else {
_visible = true;
}
if ((map[_root.hero_pos] == 100) || (map[_root.hero_pos] == 150)) {
button1._visible = true;
} else {
button1._visible = false;
}
if (map[_root.hero_pos] == 200) {
button3._visible = true;
button1._visible = false;
} else {
button3._visible = false;
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 24
on (press) {
if (_root.actionmode == "move") {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 24
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 24
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 686 MovieClip in Frame 24
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 24
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 24
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 24
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
}
}
}
Frame 25
BGM0.setVolume(_root.vol);
actionmode = "transin";
enemylevel = 10;
if (!victory) {
_root.hero_pos = _root.hero_lastpos;
}
_root.hero.pos = _root.hero_pos;
enemylist[0] = 2;
enemylist[1] = 2;
enemylist[2] = 3;
enemylist[3] = 3;
enemylist[4] = 4;
enemylist[5] = 4;
enemylist[6] = 6;
enemylist[7] = 6;
enemylist[8] = 6;
enemylist[9] = 11;
enemylist[10] = 13;
enemylist[11] = 13;
enemylist[12] = 14;
enemylist[13] = 14;
enemylist[14] = 11;
enemylist[15] = 16;
enemylist[16] = 17;
enemylist[17] = 18;
enemylist[18] = 20;
enemylist[19] = 20;
enemylist[20] = 21;
Instance of Symbol 48 MovieClip "sound_controller" in Frame 25
onClipEvent (load) {
musicvol = 0;
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM3.stop();
_root.BGM1.setVolume(musicvol);
_root.BGM1.start(_root.music_offset);
_root.BGM1.onSoundComplete = function () {
_root.BGM1.start();
};
}
onClipEvent (enterFrame) {
if (musicvol < _root.vol) {
_root.BGM1.setVolume(musicvol);
musicvol = musicvol + 5;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 4;
map = _root.map2;
terrain = "grass";
connected = new Array();
connected[0] = 6;
connected[1] = 5;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 3;
map = _root.map2;
terrain = "forest";
connected = new Array();
connected[0] = 2;
connected[1] = 11;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 2;
map = _root.map2;
terrain = "forest";
connected = new Array();
connected[0] = 1;
connected[1] = 3;
connected[2] = 6;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 1;
map = _root.map2;
terrain = "forest";
item1 = 0;
item2 = 9;
item3 = 0;
connected = new Array();
connected[0] = 2;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 5;
map = _root.map2;
terrain = "castle";
level = 20;
enemyarray = new Array();
enemyarray[0] = 14;
enemyarray[1] = 14;
enemyarray[2] = 14;
enemyarray[3] = 13;
enemyarray[4] = 13;
enemyarray[5] = 13;
connected = new Array();
connected[0] = 4;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 6;
map = _root.map2;
terrain = "forest";
connected = new Array();
connected[0] = 2;
connected[1] = 4;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 7;
map = _root.map2;
terrain = "forest";
connected = new Array();
connected[0] = 13;
connected[1] = 8;
connected[2] = 9;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 8;
map = _root.map2;
terrain = "forest";
destination = "map5";
dest_pos = 14;
item1 = 0;
item2 = 0;
item3 = 0;
connected = new Array();
connected[0] = 7;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 9;
map = _root.map2;
terrain = "forest";
connected = new Array();
connected[0] = 7;
connected[1] = 10;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 11;
map = _root.map2;
terrain = "forest";
item1 = 1;
item2 = 2;
item3 = 3;
connected = new Array();
connected[0] = 10;
connected[1] = 3;
connected[2] = 12;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 10;
map = _root.map2;
terrain = "forest";
connected = new Array();
connected[0] = 9;
connected[1] = 11;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 12;
map = _root.map2;
terrain = "forest";
destination = "map1";
dest_pos = 6;
connected = new Array();
connected[0] = 11;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 25
onClipEvent (load) {
flag._visible = false;
if (_root.map2[5] == 0) {
flag._visible = true;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 13;
map = _root.map2;
terrain = "forest";
connected = new Array();
connected[0] = 7;
connected[1] = 14;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 25
onClipEvent (load) {
num = 14;
map = _root.map2;
terrain = "mountain";
item1 = 0;
item2 = 4;
item3 = 0;
connected = new Array();
connected[0] = 13;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 669 MovieClip "hero" in Frame 25
onClipEvent (load) {
map = _root.map2;
maxspeed = 5;
}
onClipEvent (enterFrame) {
_root.debug2_txt.text = "mode: " + _root.actionmode;
xspeed = (targetx - _x) / 3;
yspeed = (targety - _y) / 3;
if (Math.abs(targetx - _x) > 3) {
_x = (_x + xspeed);
} else {
_x = targetx;
}
if (Math.abs(targety - _y) > 3) {
_y = (_y + yspeed);
} else {
_y = targety;
}
if ((_x == targetx) && (_y == targety)) {
if (_root.actionmode == "moving") {
_root.hero_pos = _root.hero_pos;
_root.actionmode = "move";
if (map[_root.hero_pos] == 0) {
if (random(100) < 30) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
} else {
_root.hero_lastpos = _root.hero_pos;
}
}
}
}
}
Instance of Symbol 681 MovieClip in Frame 25
onClipEvent (load) {
collision._visible = false;
home_rot = _rotation;
target_rotation = _rotation;
map = _root.map2;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = false;
} else {
_visible = true;
}
if ((map[_root.hero_pos] == 100) || (map[_root.hero_pos] == 150)) {
button1._visible = true;
} else {
button1._visible = false;
}
if (map[_root.hero_pos] == 200) {
button3._visible = true;
button1._visible = false;
} else {
button3._visible = false;
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 25
on (press) {
if (_root.actionmode == "move") {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 25
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 25
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 686 MovieClip in Frame 25
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 25
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 25
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 25
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map1") {
_root.currentmap = 1;
_root.gotoAndStop("map1");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
if (_root.nextscene == "map4") {
_root.currentmap = 4;
_root.gotoAndStop("map4");
}
if (_root.nextscene == "map5") {
_root.currentmap = 5;
_root.gotoAndStop("map5");
}
if (_root.nextscene == "map6") {
_root.currentmap = 6;
_root.gotoAndStop("map6");
}
if (_root.nextscene == "map7") {
_root.currentmap = 7;
_root.gotoAndStop("map7");
}
if (_root.nextscene == "map8") {
_root.currentmap = 8;
_root.gotoAndStop("map8");
}
}
}
}
Frame 26
BGM0.setVolume(_root.vol);
actionmode = "transin";
enemylevel = 10;
if (!victory) {
_root.hero_pos = _root.hero_lastpos;
}
_root.hero.pos = _root.hero_pos;
enemylist[0] = 2;
enemylist[1] = 5;
enemylist[2] = 5;
enemylist[3] = 8;
enemylist[4] = 8;
enemylist[5] = 27;
enemylist[6] = 27;
enemylist[7] = 28;
enemylist[8] = 28;
enemylist[9] = 19;
enemylist[10] = 19;
enemylist[11] = 10;
enemylist[12] = 10;
enemylist[13] = 7;
enemylist[14] = 7;
enemylist[15] = 19;
enemylist[16] = 19;
enemylist[17] = 13;
enemylist[18] = 14;
enemylist[19] = 2;
enemylist[20] = 26;
Instance of Symbol 48 MovieClip "sound_controller" in Frame 26
onClipEvent (load) {
musicvol = 0;
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM3.stop();
_root.BGM1.setVolume(musicvol);
_root.BGM1.start(_root.music_offset);
_root.BGM1.onSoundComplete = function () {
_root.BGM1.start();
};
}
onClipEvent (enterFrame) {
if (musicvol < _root.vol) {
_root.BGM1.setVolume(musicvol);
musicvol = musicvol + 5;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 4;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 3;
connected[1] = 5;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 3;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 1;
connected[1] = 2;
connected[2] = 4;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 2;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 3;
connected[1] = 13;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 1;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 3;
connected[1] = 7;
connected[2] = 17;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 5;
map = _root.map3;
terrain = "grass";
item1 = 2;
item2 = 0;
item3 = 3;
connected = new Array();
connected[0] = 4;
connected[1] = 6;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 6;
map = _root.map3;
terrain = "water";
destination = "map1";
dest_pos = 12;
connected = new Array();
connected[0] = 5;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
}
_root.hero_lastpos = num;
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 7;
map = _root.map3;
terrain = "forest";
connected = new Array();
connected[0] = 1;
connected[1] = 8;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 8;
map = _root.map3;
terrain = "grass";
connected = new Array();
connected[0] = 7;
connected[1] = 9;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 9;
map = _root.map3;
terrain = "grass";
destination = "map4";
dest_pos = 14;
item1 = 1;
item2 = 2;
item3 = 4;
connected = new Array();
connected[0] = 8;
connected[1] = 10;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 11;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 12;
connected[1] = 17;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 10;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 9;
connected[1] = 18;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 12;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 11;
connected[1] = 15;
connected[2] = 19;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 13;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 2;
connected[1] = 14;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 14;
map = _root.map3;
terrain = "water";
item1 = 0;
item2 = 10;
item3 = 0;
connected = new Array();
connected[0] = 13;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 15;
map = _root.map3;
terrain = "water";
connected = new Array();
connected[0] = 12;
connected[1] = 16;
connected[2] = 18;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 16;
map = _root.map3;
terrain = "castle";
level = 20;
enemyarray = new Array();
enemyarray[0] = 14;
enemyarray[1] = 8;
enemyarray[2] = 14;
enemyarray[3] = 5;
enemyarray[4] = 19;
enemyarray[5] = 5;
connected = new Array();
connected[0] = 15;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 26
onClipEvent (load) {
flag._visible = false;
if (_root.map3[16] == 0) {
flag._visible = true;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 17;
map = _root.map3;
terrain = "water";
item1 = 1;
item2 = 2;
item3 = 3;
connected = new Array();
connected[0] = 11;
connected[1] = 1;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 18;
map = _root.map3;
terrain = "grass";
connected = new Array();
connected[0] = 10;
connected[1] = 15;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 26
onClipEvent (load) {
num = 19;
map = _root.map3;
terrain = "forest";
item1 = 0;
item2 = 5;
item3 = 0;
connected = new Array();
connected[0] = 12;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 669 MovieClip "hero" in Frame 26
onClipEvent (load) {
map = _root.map3;
maxspeed = 5;
}
onClipEvent (enterFrame) {
_root.debug2_txt.text = "mode: " + _root.actionmode;
xspeed = (targetx - _x) / 3;
yspeed = (targety - _y) / 3;
if (Math.abs(targetx - _x) > 3) {
_x = (_x + xspeed);
} else {
_x = targetx;
}
if (Math.abs(targety - _y) > 3) {
_y = (_y + yspeed);
} else {
_y = targety;
}
if ((_x == targetx) && (_y == targety)) {
if (_root.actionmode == "moving") {
_root.hero_pos = _root.hero_pos;
_root.actionmode = "move";
if (map[_root.hero_pos] == 0) {
if (random(100) < 30) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
} else {
_root.hero_lastpos = _root.hero_pos;
}
}
}
}
}
Instance of Symbol 681 MovieClip in Frame 26
onClipEvent (load) {
collision._visible = false;
home_rot = _rotation;
target_rotation = _rotation;
map = _root.map3;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = false;
} else {
_visible = true;
}
if ((map[_root.hero_pos] == 100) || (map[_root.hero_pos] == 150)) {
button1._visible = true;
} else {
button1._visible = false;
}
if (map[_root.hero_pos] == 200) {
button3._visible = true;
button1._visible = false;
} else {
button3._visible = false;
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 26
on (press) {
if (_root.actionmode == "move") {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 26
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 26
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 686 MovieClip in Frame 26
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 26
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 26
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 26
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map1") {
_root.currentmap = 1;
_root.gotoAndStop("map1");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
if (_root.nextscene == "map4") {
_root.currentmap = 4;
_root.gotoAndStop("map4");
}
if (_root.nextscene == "map5") {
_root.currentmap = 5;
_root.gotoAndStop("map5");
}
if (_root.nextscene == "map6") {
_root.currentmap = 6;
_root.gotoAndStop("map6");
}
if (_root.nextscene == "map7") {
_root.currentmap = 7;
_root.gotoAndStop("map7");
}
if (_root.nextscene == "map8") {
_root.currentmap = 8;
_root.gotoAndStop("map8");
}
}
}
}
Frame 27
BGM0.setVolume(_root.vol);
actionmode = "transin";
enemylevel = 20;
if (!victory) {
_root.hero_pos = _root.hero_lastpos;
}
_root.hero.pos = _root.hero_pos;
enemylist[0] = 11;
enemylist[1] = 19;
enemylist[2] = 16;
enemylist[3] = 16;
enemylist[4] = 12;
enemylist[5] = 19;
enemylist[6] = 10;
enemylist[7] = 18;
enemylist[8] = 25;
enemylist[9] = 25;
enemylist[10] = 29;
enemylist[11] = 29;
enemylist[12] = 26;
enemylist[13] = 26;
enemylist[14] = 23;
enemylist[15] = 15;
enemylist[16] = 9;
enemylist[17] = 9;
enemylist[18] = 9;
enemylist[19] = 16;
enemylist[20] = 37;
Instance of Symbol 48 MovieClip "sound_controller" in Frame 27
onClipEvent (load) {
musicvol = 0;
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM3.stop();
_root.BGM1.setVolume(musicvol);
_root.BGM1.start(_root.music_offset);
_root.BGM1.onSoundComplete = function () {
_root.BGM1.start();
};
}
onClipEvent (enterFrame) {
if (musicvol < _root.vol) {
_root.BGM1.setVolume(musicvol);
musicvol = musicvol + 5;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 4;
map = _root.map4;
terrain = "tundra";
connected = new Array();
connected[0] = 3;
connected[1] = 5;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 3;
map = _root.map4;
terrain = "grass";
connected = new Array();
connected[0] = 1;
connected[1] = 4;
connected[2] = 6;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 2;
map = _root.map4;
terrain = "grass";
item1 = 2;
item2 = 0;
item3 = 3;
connected = new Array();
connected[0] = 1;
connected[1] = 13;
connected[2] = 17;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 1;
map = _root.map4;
terrain = "grass";
connected = new Array();
connected[0] = 2;
connected[1] = 3;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 5;
map = _root.map4;
terrain = "tundra";
destination = "map7";
dest_pos = 14;
item1 = 2;
item2 = 0;
item3 = 3;
connected = new Array();
connected[0] = 4;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 6;
map = _root.map4;
terrain = "grass";
connected = new Array();
connected[0] = 3;
connected[1] = 7;
connected[2] = 19;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
}
_root.hero_lastpos = num;
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 7;
map = _root.map4;
terrain = "grass";
item1 = 0;
item2 = 1;
item3 = 0;
connected = new Array();
connected[0] = 6;
connected[1] = 8;
connected[2] = 9;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 8;
map = _root.map4;
terrain = "grass";
connected = new Array();
connected[0] = 7;
connected[1] = 10;
connected[2] = 17;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 9;
map = _root.map4;
terrain = "tundra";
item1 = 1;
item2 = 2;
item3 = 4;
connected = new Array();
connected[0] = 7;
connected[1] = 15;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 11;
map = _root.map4;
terrain = "grass";
connected = new Array();
connected[0] = 12;
connected[1] = 17;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 10;
map = _root.map4;
terrain = "grass";
connected = new Array();
connected[0] = 8;
connected[1] = 18;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 12;
map = _root.map4;
terrain = "grass";
item1 = 0;
item2 = 14;
item3 = 0;
connected = new Array();
connected[0] = 11;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 13;
map = _root.map4;
terrain = "forest";
connected = new Array();
connected[0] = 2;
connected[1] = 14;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 14;
map = _root.map4;
terrain = "grass";
destination = "map3";
dest_pos = 9;
item1 = 0;
item2 = 10;
item3 = 0;
connected = new Array();
connected[0] = 13;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 15;
map = _root.map4;
terrain = "castle";
level = 30;
enemyarray = new Array();
enemyarray[0] = 18;
enemyarray[1] = 31;
enemyarray[2] = 18;
enemyarray[3] = 26;
enemyarray[4] = 37;
enemyarray[5] = 26;
connected = new Array();
connected[0] = 9;
connected[1] = 18;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 27
onClipEvent (load) {
flag._visible = false;
if (_root.map4[15] == 0) {
flag._visible = true;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 17;
map = _root.map4;
terrain = "grass";
connected = new Array();
connected[0] = 2;
connected[1] = 8;
connected[2] = 11;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 18;
map = _root.map4;
terrain = "tundra";
connected = new Array();
connected[0] = 10;
connected[1] = 15;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 27
onClipEvent (load) {
num = 19;
map = _root.map4;
terrain = "grass";
item1 = 0;
item2 = 7;
item3 = 0;
connected = new Array();
connected[0] = 6;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 669 MovieClip "hero" in Frame 27
onClipEvent (load) {
map = _root.map4;
maxspeed = 5;
}
onClipEvent (enterFrame) {
_root.debug2_txt.text = "mode: " + _root.actionmode;
xspeed = (targetx - _x) / 3;
yspeed = (targety - _y) / 3;
if (Math.abs(targetx - _x) > 3) {
_x = (_x + xspeed);
} else {
_x = targetx;
}
if (Math.abs(targety - _y) > 3) {
_y = (_y + yspeed);
} else {
_y = targety;
}
if ((_x == targetx) && (_y == targety)) {
if (_root.actionmode == "moving") {
_root.hero_pos = _root.hero_pos;
_root.actionmode = "move";
if (map[_root.hero_pos] == 0) {
if (random(100) < 30) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
} else {
_root.hero_lastpos = _root.hero_pos;
}
}
}
}
}
Instance of Symbol 681 MovieClip in Frame 27
onClipEvent (load) {
collision._visible = false;
home_rot = _rotation;
target_rotation = _rotation;
map = _root.map4;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = false;
} else {
_visible = true;
}
if ((map[_root.hero_pos] == 100) || (map[_root.hero_pos] == 150)) {
button1._visible = true;
} else {
button1._visible = false;
}
if (map[_root.hero_pos] == 200) {
button3._visible = true;
button1._visible = false;
} else {
button3._visible = false;
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 27
on (press) {
if (_root.actionmode == "move") {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 27
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 27
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 686 MovieClip in Frame 27
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 27
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 27
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 27
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map1") {
_root.currentmap = 1;
_root.gotoAndStop("map1");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
if (_root.nextscene == "map4") {
_root.currentmap = 4;
_root.gotoAndStop("map4");
}
if (_root.nextscene == "map5") {
_root.currentmap = 5;
_root.gotoAndStop("map5");
}
if (_root.nextscene == "map6") {
_root.currentmap = 6;
_root.gotoAndStop("map6");
}
if (_root.nextscene == "map7") {
_root.currentmap = 7;
_root.gotoAndStop("map7");
}
if (_root.nextscene == "map8") {
_root.currentmap = 8;
_root.gotoAndStop("map8");
}
}
}
}
Frame 28
BGM0.setVolume(_root.vol);
actionmode = "transin";
enemylevel = 20;
if (!victory) {
_root.hero_pos = _root.hero_lastpos;
}
_root.hero.pos = _root.hero_pos;
enemylist[0] = 2;
enemylist[1] = 2;
enemylist[2] = 3;
enemylist[3] = 3;
enemylist[4] = 25;
enemylist[5] = 9;
enemylist[6] = 9;
enemylist[7] = 35;
enemylist[8] = 12;
enemylist[9] = 13;
enemylist[10] = 13;
enemylist[11] = 15;
enemylist[12] = 15;
enemylist[13] = 16;
enemylist[14] = 17;
enemylist[15] = 15;
enemylist[16] = 18;
enemylist[17] = 19;
enemylist[18] = 22;
enemylist[19] = 23;
enemylist[20] = 24;
Instance of Symbol 48 MovieClip "sound_controller" in Frame 28
onClipEvent (load) {
musicvol = 0;
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM3.stop();
_root.BGM1.setVolume(musicvol);
_root.BGM1.start(_root.music_offset);
_root.BGM1.onSoundComplete = function () {
_root.BGM1.start();
};
}
onClipEvent (enterFrame) {
if (musicvol < _root.vol) {
_root.BGM1.setVolume(musicvol);
musicvol = musicvol + 5;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 4;
map = _root.map5;
terrain = "lava";
connected = new Array();
connected[0] = 3;
connected[1] = 5;
connected[2] = 6;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 3;
map = _root.map5;
terrain = "waste";
connected = new Array();
connected[0] = 1;
connected[1] = 4;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 2;
map = _root.map5;
terrain = "waste";
connected = new Array();
connected[0] = null;
connected[1] = 13;
connected[2] = 17;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 1;
map = _root.map5;
terrain = "waste";
item1 = 2;
item2 = 0;
item3 = 3;
connected = new Array();
connected[0] = 3;
connected[1] = 14;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 5;
map = _root.map5;
terrain = "waste";
item1 = 0;
item2 = 12;
item3 = 0;
connected = new Array();
connected[0] = 4;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 6;
map = _root.map5;
terrain = "waste";
connected = new Array();
connected[0] = 4;
connected[1] = 7;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
}
_root.hero_lastpos = num;
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 7;
map = _root.map5;
terrain = "waste";
connected = new Array();
connected[0] = 6;
connected[1] = 8;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 8;
map = _root.map5;
terrain = "lava";
connected = new Array();
connected[0] = 7;
connected[1] = 15;
connected[2] = 19;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 9;
map = _root.map5;
terrain = "castle";
level = 30;
enemyarray = new Array();
enemyarray[0] = 15;
enemyarray[1] = 9;
enemyarray[2] = 15;
enemyarray[3] = 12;
enemyarray[4] = 35;
enemyarray[5] = 12;
connected = new Array();
connected[0] = 18;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 11;
map = _root.map5;
terrain = "lava";
connected = new Array();
connected[0] = 12;
connected[1] = 17;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 10;
map = _root.map5;
terrain = "waste";
item1 = 1;
item2 = 2;
item3 = 3;
connected = new Array();
connected[0] = 17;
connected[1] = 18;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 12;
map = _root.map5;
terrain = "waste";
destination = "map6";
dest_pos = 14;
connected = new Array();
connected[0] = 11;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 13;
map = _root.map5;
terrain = "waste";
connected = new Array();
connected[0] = 2;
connected[1] = 14;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 14;
map = _root.map5;
terrain = "waste";
destination = "map2";
dest_pos = 8;
connected = new Array();
connected[0] = 1;
connected[1] = 13;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 15;
map = _root.map5;
terrain = "waste";
connected = new Array();
connected[0] = 8;
connected[1] = 18;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 28
onClipEvent (load) {
flag._visible = false;
if (_root.map5[9] == 0) {
flag._visible = true;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 17;
map = _root.map5;
terrain = "waste";
connected = new Array();
connected[0] = 2;
connected[1] = 10;
connected[2] = 11;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 18;
map = _root.map5;
terrain = "waste";
connected = new Array();
connected[0] = 10;
connected[1] = 15;
connected[2] = 9;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 28
onClipEvent (load) {
num = 19;
map = _root.map5;
terrain = "waste";
item1 = 0;
item2 = 8;
item3 = 0;
connected = new Array();
connected[0] = 8;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 669 MovieClip "hero" in Frame 28
onClipEvent (load) {
map = _root.map5;
maxspeed = 5;
}
onClipEvent (enterFrame) {
_root.debug2_txt.text = "mode: " + _root.actionmode;
xspeed = (targetx - _x) / 3;
yspeed = (targety - _y) / 3;
if (Math.abs(targetx - _x) > 3) {
_x = (_x + xspeed);
} else {
_x = targetx;
}
if (Math.abs(targety - _y) > 3) {
_y = (_y + yspeed);
} else {
_y = targety;
}
if ((_x == targetx) && (_y == targety)) {
if (_root.actionmode == "moving") {
_root.hero_pos = _root.hero_pos;
_root.actionmode = "move";
if (map[_root.hero_pos] == 0) {
if (random(100) < 30) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
} else {
_root.hero_lastpos = _root.hero_pos;
}
}
}
}
}
Instance of Symbol 681 MovieClip in Frame 28
onClipEvent (load) {
collision._visible = false;
home_rot = _rotation;
target_rotation = _rotation;
map = _root.map5;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = false;
} else {
_visible = true;
}
if ((map[_root.hero_pos] == 100) || (map[_root.hero_pos] == 150)) {
button1._visible = true;
} else {
button1._visible = false;
}
if (map[_root.hero_pos] == 200) {
button3._visible = true;
button1._visible = false;
} else {
button3._visible = false;
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 28
on (press) {
if (_root.actionmode == "move") {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 28
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 28
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 686 MovieClip in Frame 28
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 28
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 28
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 28
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map1") {
_root.currentmap = 1;
_root.gotoAndStop("map1");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
if (_root.nextscene == "map4") {
_root.currentmap = 4;
_root.gotoAndStop("map4");
}
if (_root.nextscene == "map5") {
_root.currentmap = 5;
_root.gotoAndStop("map5");
}
if (_root.nextscene == "map6") {
_root.currentmap = 6;
_root.gotoAndStop("map6");
}
if (_root.nextscene == "map7") {
_root.currentmap = 7;
_root.gotoAndStop("map7");
}
if (_root.nextscene == "map8") {
_root.currentmap = 8;
_root.gotoAndStop("map8");
}
}
}
}
Frame 29
BGM0.setVolume(_root.vol);
actionmode = "transin";
enemylevel = 35;
if (!victory) {
_root.hero_pos = _root.hero_lastpos;
}
_root.hero.pos = _root.hero_pos;
enemylist[0] = 30;
enemylist[1] = 30;
enemylist[2] = 31;
enemylist[3] = 31;
enemylist[4] = 32;
enemylist[5] = 13;
enemylist[6] = 33;
enemylist[7] = 10;
enemylist[8] = 34;
enemylist[9] = 7;
enemylist[10] = 35;
enemylist[11] = 6;
enemylist[12] = 36;
enemylist[13] = 3;
enemylist[14] = 37;
enemylist[15] = 26;
enemylist[16] = 23;
enemylist[17] = 9;
enemylist[18] = 8;
enemylist[19] = 4;
enemylist[20] = 4;
Instance of Symbol 48 MovieClip "sound_controller" in Frame 29
onClipEvent (load) {
musicvol = 0;
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM3.stop();
_root.BGM1.setVolume(musicvol);
_root.BGM1.start(_root.music_offset);
_root.BGM1.onSoundComplete = function () {
_root.BGM1.start();
};
}
onClipEvent (enterFrame) {
if (musicvol < _root.vol) {
_root.BGM1.setVolume(musicvol);
musicvol = musicvol + 5;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 4;
map = _root.map6;
terrain = "cave";
item1 = 0;
item2 = 6;
item3 = 0;
connected = new Array();
connected[0] = 8;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 3;
map = _root.map6;
terrain = "cave";
connected = new Array();
connected[0] = 1;
connected[1] = 14;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 2;
map = _root.map6;
terrain = "cave";
item1 = 2;
item2 = 0;
item3 = 3;
connected = new Array();
connected[0] = null;
connected[1] = 1;
connected[2] = 10;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 1;
map = _root.map6;
terrain = "cavelava";
connected = new Array();
connected[0] = 3;
connected[1] = 2;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 5;
map = _root.map6;
terrain = "cave";
item1 = 2;
item2 = 0;
item3 = 3;
connected = new Array();
connected[0] = 6;
connected[1] = 10;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 6;
map = _root.map6;
terrain = "cave";
connected = new Array();
connected[0] = 5;
connected[1] = 8;
connected[2] = 15;
connected[3] = 18;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
}
_root.hero_lastpos = num;
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 7;
map = _root.map6;
terrain = "cave";
item1 = 0;
item2 = 1;
item3 = 0;
connected = new Array();
connected[0] = 11;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 8;
map = _root.map6;
terrain = "cavelava";
connected = new Array();
connected[0] = 4;
connected[1] = 6;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 9;
map = _root.map6;
terrain = "castle";
level = 40;
enemyarray = new Array();
enemyarray[0] = 34;
enemyarray[1] = 23;
enemyarray[2] = 34;
enemyarray[3] = 26;
enemyarray[4] = 33;
enemyarray[5] = 19;
connected = new Array();
connected[0] = 15;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 11;
map = _root.map6;
terrain = "cave";
connected = new Array();
connected[0] = 7;
connected[1] = 10;
connected[2] = 17;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 10;
map = _root.map6;
terrain = "cavewater";
connected = new Array();
connected[0] = 2;
connected[1] = 5;
connected[2] = 11;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 12;
map = _root.map6;
terrain = "cave";
destination = "map8";
dest_pos = 14;
connected = new Array();
connected[0] = null;
connected[1] = null;
connected[2] = null;
connected[3] = null;
numcastles = _root.castles_beaten();
if (numcastles >= 7) {
connected[0] = 13;
}
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 13;
map = _root.map6;
terrain = "cave";
connected = new Array();
connected[0] = 12;
connected[1] = 17;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 14;
map = _root.map6;
terrain = "cave";
destination = "map5";
dest_pos = 12;
connected = new Array();
connected[0] = 3;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 15;
map = _root.map6;
terrain = "cave";
connected = new Array();
connected[0] = 6;
connected[1] = 9;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 29
onClipEvent (load) {
flag._visible = false;
if (_root.map6[9] == 0) {
flag._visible = true;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 17;
map = _root.map6;
terrain = "cave";
connected = new Array();
connected[0] = 11;
connected[1] = 13;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 18;
map = _root.map6;
terrain = "cavewater";
connected = new Array();
connected[0] = 6;
connected[1] = 19;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 29
onClipEvent (load) {
num = 19;
map = _root.map6;
terrain = "cave";
destination = "map7";
dest_pos = 19;
connected = new Array();
connected[0] = 18;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 718 MovieClip in Frame 29
onClipEvent (load) {
stop();
if (_root.castles_beaten() >= 7) {
play();
}
}
on (rollOver) {
numcastles = _root.castles_beaten();
if (numcastles < 7) {
_root.help_box.help_txt.text = ("You must conquer " + (7 - numcastles)) + " more castles!";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Usted debe triunfar m\u00E1s " + (7 - numcastles)) + " castillos para seguir!";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 669 MovieClip "hero" in Frame 29
onClipEvent (load) {
map = _root.map6;
maxspeed = 5;
}
onClipEvent (enterFrame) {
_root.debug2_txt.text = "mode: " + _root.actionmode;
xspeed = (targetx - _x) / 3;
yspeed = (targety - _y) / 3;
if (Math.abs(targetx - _x) > 3) {
_x = (_x + xspeed);
} else {
_x = targetx;
}
if (Math.abs(targety - _y) > 3) {
_y = (_y + yspeed);
} else {
_y = targety;
}
if ((_x == targetx) && (_y == targety)) {
if (_root.actionmode == "moving") {
_root.hero_pos = _root.hero_pos;
_root.actionmode = "move";
if (map[_root.hero_pos] == 0) {
if (random(100) < 30) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
} else {
_root.hero_lastpos = _root.hero_pos;
}
}
}
}
}
Instance of Symbol 681 MovieClip in Frame 29
onClipEvent (load) {
collision._visible = false;
home_rot = _rotation;
target_rotation = _rotation;
map = _root.map6;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = false;
} else {
_visible = true;
}
if ((map[_root.hero_pos] == 100) || (map[_root.hero_pos] == 150)) {
button1._visible = true;
} else {
button1._visible = false;
}
if (map[_root.hero_pos] == 200) {
button3._visible = true;
button1._visible = false;
} else {
button3._visible = false;
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 29
on (press) {
if (_root.actionmode == "move") {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 29
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 29
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 686 MovieClip in Frame 29
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 29
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 29
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 29
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map1") {
_root.currentmap = 1;
_root.gotoAndStop("map1");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
if (_root.nextscene == "map4") {
_root.currentmap = 4;
_root.gotoAndStop("map4");
}
if (_root.nextscene == "map5") {
_root.currentmap = 5;
_root.gotoAndStop("map5");
}
if (_root.nextscene == "map6") {
_root.currentmap = 6;
_root.gotoAndStop("map6");
}
if (_root.nextscene == "map7") {
_root.currentmap = 7;
_root.gotoAndStop("map7");
}
if (_root.nextscene == "map8") {
_root.currentmap = 8;
_root.gotoAndStop("map8");
}
}
}
}
Frame 30
BGM0.setVolume(_root.vol);
actionmode = "transin";
enemylevel = 30;
if (!victory) {
_root.hero_pos = _root.hero_lastpos;
}
_root.hero.pos = _root.hero_pos;
enemylist[0] = 27;
enemylist[1] = 27;
enemylist[2] = 28;
enemylist[3] = 28;
enemylist[4] = 19;
enemylist[5] = 18;
enemylist[6] = 14;
enemylist[7] = 10;
enemylist[8] = 10;
enemylist[9] = 5;
enemylist[10] = 5;
enemylist[11] = 4;
enemylist[12] = 4;
enemylist[13] = 2;
enemylist[14] = 1;
enemylist[15] = 9;
enemylist[16] = 33;
enemylist[17] = 36;
enemylist[18] = 29;
enemylist[19] = 20;
enemylist[20] = 12;
Instance of Symbol 48 MovieClip "sound_controller" in Frame 30
onClipEvent (load) {
musicvol = 0;
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM3.stop();
_root.BGM1.setVolume(musicvol);
_root.BGM1.start(_root.music_offset);
_root.BGM1.onSoundComplete = function () {
_root.BGM1.start();
};
}
onClipEvent (enterFrame) {
if (musicvol < _root.vol) {
_root.BGM1.setVolume(musicvol);
musicvol = musicvol + 5;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 4;
map = _root.map7;
terrain = "snowfield";
item1 = 0;
item2 = 11;
item3 = 0;
connected = new Array();
connected[0] = 3;
connected[1] = 6;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 3;
map = _root.map7;
terrain = "snowfield";
connected = new Array();
connected[0] = 4;
connected[1] = 19;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 2;
map = _root.map7;
terrain = "snowfield";
connected = new Array();
connected[0] = 5;
connected[1] = 15;
connected[2] = 18;
connected[3] = 19;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 1;
map = _root.map7;
terrain = "snowfield";
item1 = 0;
item2 = 13;
item3 = 0;
connected = new Array();
connected[0] = 8;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 5;
map = _root.map7;
terrain = "snowfield";
item1 = 1;
item2 = 2;
item3 = 3;
connected = new Array();
connected[0] = 2;
connected[1] = 12;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 6;
map = _root.map7;
terrain = "snowfield";
connected = new Array();
connected[0] = 4;
connected[1] = 15;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
}
_root.hero_lastpos = num;
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 7;
map = _root.map7;
terrain = "snowfield";
item1 = 0;
item2 = 1;
item3 = 0;
connected = new Array();
connected[0] = 9;
connected[1] = 17;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 8;
map = _root.map7;
terrain = "water";
connected = new Array();
connected[0] = 1;
connected[1] = 11;
connected[2] = 15;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 9;
map = _root.map7;
terrain = "castle";
level = 30;
enemyarray = new Array();
enemyarray[0] = 10;
enemyarray[1] = 10;
enemyarray[2] = 10;
enemyarray[3] = 8;
enemyarray[4] = 15;
enemyarray[5] = 8;
connected = new Array();
connected[0] = 7;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 11;
map = _root.map7;
terrain = "snowfield";
connected = new Array();
connected[0] = 8;
connected[1] = 10;
connected[2] = 18;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 10;
map = _root.map7;
terrain = "water";
connected = new Array();
connected[0] = 11;
connected[1] = 17;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 12;
map = _root.map7;
terrain = "snowfield";
connected = new Array();
connected[0] = 13;
connected[1] = 5;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 13;
map = _root.map7;
terrain = "snowfield";
item1 = 2;
item2 = 0;
item3 = 3;
connected = new Array();
connected[0] = 12;
connected[1] = 17;
connected[2] = 14;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 14;
map = _root.map7;
terrain = "snowfield";
destination = "map4";
dest_pos = 5;
connected = new Array();
connected[0] = 13;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 15;
map = _root.map7;
terrain = "snowfield";
connected = new Array();
connected[0] = 2;
connected[1] = 6;
connected[2] = 8;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 30
onClipEvent (load) {
flag._visible = false;
if (_root.map7[9] == 0) {
flag._visible = true;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 17;
map = _root.map7;
terrain = "snowfield";
connected = new Array();
connected[0] = 7;
connected[1] = 13;
connected[2] = 10;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 18;
map = _root.map7;
terrain = "snowfield";
item1 = 1;
item2 = 2;
item3 = 3;
connected = new Array();
connected[0] = 2;
connected[1] = 11;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 30
onClipEvent (load) {
num = 19;
map = _root.map7;
terrain = "snowfield";
destination = "map6";
dest_pos = 19;
connected = new Array();
connected[0] = 2;
connected[1] = 3;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 669 MovieClip "hero" in Frame 30
onClipEvent (load) {
map = _root.map7;
maxspeed = 5;
}
onClipEvent (enterFrame) {
_root.debug2_txt.text = "mode: " + _root.actionmode;
xspeed = (targetx - _x) / 3;
yspeed = (targety - _y) / 3;
if (Math.abs(targetx - _x) > 3) {
_x = (_x + xspeed);
} else {
_x = targetx;
}
if (Math.abs(targety - _y) > 3) {
_y = (_y + yspeed);
} else {
_y = targety;
}
if ((_x == targetx) && (_y == targety)) {
if (_root.actionmode == "moving") {
_root.hero_pos = _root.hero_pos;
_root.actionmode = "move";
if (map[_root.hero_pos] == 0) {
if (random(100) < 30) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
} else {
_root.hero_lastpos = _root.hero_pos;
}
}
}
}
}
Instance of Symbol 681 MovieClip in Frame 30
onClipEvent (load) {
collision._visible = false;
home_rot = _rotation;
target_rotation = _rotation;
map = _root.map7;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = false;
} else {
_visible = true;
}
if ((map[_root.hero_pos] == 100) || (map[_root.hero_pos] == 150)) {
button1._visible = true;
} else {
button1._visible = false;
}
if (map[_root.hero_pos] == 200) {
button3._visible = true;
button1._visible = false;
} else {
button3._visible = false;
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 30
on (press) {
if (_root.actionmode == "move") {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 30
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 686 MovieClip in Frame 30
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 30
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 30
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 30
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map1") {
_root.currentmap = 1;
_root.gotoAndStop("map1");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
if (_root.nextscene == "map4") {
_root.currentmap = 4;
_root.gotoAndStop("map4");
}
if (_root.nextscene == "map5") {
_root.currentmap = 5;
_root.gotoAndStop("map5");
}
if (_root.nextscene == "map6") {
_root.currentmap = 6;
_root.gotoAndStop("map6");
}
if (_root.nextscene == "map7") {
_root.currentmap = 7;
_root.gotoAndStop("map7");
}
if (_root.nextscene == "map8") {
_root.currentmap = 8;
_root.gotoAndStop("map8");
}
}
}
}
Frame 31
BGM0.setVolume(_root.vol);
actionmode = "transin";
enemylevel = 40;
if (!victory) {
_root.hero_pos = _root.hero_lastpos;
}
_root.hero.pos = _root.hero_pos;
enemylist[0] = 2;
enemylist[1] = 2;
enemylist[2] = 3;
enemylist[3] = 3;
enemylist[4] = 3;
enemylist[5] = 18;
enemylist[6] = 18;
enemylist[7] = 18;
enemylist[8] = 19;
enemylist[9] = 19;
enemylist[10] = 19;
enemylist[11] = 6;
enemylist[12] = 6;
enemylist[13] = 13;
enemylist[14] = 13;
enemylist[15] = 14;
enemylist[16] = 14;
enemylist[17] = 33;
enemylist[18] = 33;
enemylist[19] = 30;
enemylist[20] = 30;
Instance of Symbol 48 MovieClip "sound_controller" in Frame 31
onClipEvent (load) {
musicvol = 0;
_root.BGM1 = new Sound();
_root.BGM1.attachSound("animal_map");
_root.BGM3.stop();
_root.BGM1.setVolume(musicvol);
_root.BGM1.start(_root.music_offset);
_root.BGM1.onSoundComplete = function () {
_root.BGM1.start();
};
}
onClipEvent (enterFrame) {
if (musicvol < _root.vol) {
_root.BGM1.setVolume(musicvol);
musicvol = musicvol + 5;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 4;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 3;
connected[1] = 6;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 3;
map = _root.map8;
terrain = "castle";
level = 45;
enemyarray = new Array();
enemyarray[0] = 36;
enemyarray[1] = 36;
enemyarray[2] = 36;
enemyarray[3] = 36;
enemyarray[4] = 41;
enemyarray[5] = 36;
connected = new Array();
connected[0] = 4;
connected[1] = 2;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 2;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 3;
connected[1] = null;
connected[2] = null;
connected[3] = 19;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 1;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 9;
connected[1] = 13;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 5;
map = _root.map8;
terrain = "castle";
level = 45;
enemyarray = new Array();
enemyarray[0] = 32;
enemyarray[1] = 32;
enemyarray[2] = 32;
enemyarray[3] = 32;
enemyarray[4] = 39;
enemyarray[5] = 32;
connected = new Array();
connected[0] = 19;
connected[1] = 12;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 6;
map = _root.map8;
terrain = "cloud";
item1 = 1;
item2 = 2;
item3 = 3;
connected = new Array();
connected[0] = 4;
connected[1] = 15;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
}
_root.hero_lastpos = num;
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 7;
map = _root.map8;
terrain = "castle";
level = 45;
enemyarray = new Array();
enemyarray[0] = 35;
enemyarray[1] = 35;
enemyarray[2] = 35;
enemyarray[3] = 35;
enemyarray[4] = 38;
enemyarray[5] = 35;
connected = new Array();
connected[0] = 10;
connected[1] = 17;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 8;
map = _root.map8;
terrain = "castle";
level = 45;
enemyarray = new Array();
enemyarray[0] = 34;
enemyarray[1] = 40;
enemyarray[2] = 34;
enemyarray[3] = 34;
enemyarray[4] = 34;
enemyarray[5] = 34;
connected = new Array();
connected[0] = null;
connected[1] = 11;
connected[2] = 15;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 9;
map = _root.map8;
terrain = "castle";
level = 50;
enemyarray = new Array();
enemyarray[0] = 33;
enemyarray[1] = 33;
enemyarray[2] = 33;
enemyarray[3] = 33;
enemyarray[4] = 42;
enemyarray[5] = 33;
connected = new Array();
connected[0] = null;
connected[1] = 18;
connected[2] = null;
connected[3] = null;
numcastles = _root.castles_beaten();
if (numcastles >= 11) {
connected[0] = 1;
}
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 11;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 8;
connected[1] = 10;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 10;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 7;
connected[1] = 11;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 12;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 13;
connected[1] = 5;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 13;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 12;
connected[1] = 17;
connected[2] = 14;
connected[3] = 1;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 14;
map = _root.map8;
terrain = "waste";
destination = "map6";
dest_pos = 12;
connected = new Array();
connected[0] = 13;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 15;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = null;
connected[1] = 6;
connected[2] = 8;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 18;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 9;
connected[1] = null;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 31
onClipEvent (load) {
flag._visible = false;
if (_root.map8[9] == 0) {
flag._visible = true;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 17;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 7;
connected[1] = 13;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 656 MovieClip in Frame 31
onClipEvent (load) {
num = 19;
map = _root.map8;
terrain = "cloud";
connected = new Array();
connected[0] = 2;
connected[1] = 5;
connected[2] = null;
connected[3] = null;
if (_root.hero_pos == num) {
if (_root.victory) {
if (map[num] < 100) {
map[num] = 0;
}
_root.hero_lastpos = num;
}
_root.hero._x = _x;
_root.hero._y = _y;
}
}
Instance of Symbol 666 MovieClip in Frame 31
onClipEvent (load) {
flag._visible = false;
if (_root.map8[7] == 0) {
flag._visible = true;
}
}
Instance of Symbol 666 MovieClip in Frame 31
onClipEvent (load) {
flag._visible = false;
if (_root.map8[5] == 0) {
flag._visible = true;
}
}
Instance of Symbol 666 MovieClip in Frame 31
onClipEvent (load) {
flag._visible = false;
if (_root.map8[8] == 0) {
flag._visible = true;
}
}
Instance of Symbol 666 MovieClip in Frame 31
onClipEvent (load) {
flag._visible = false;
if (_root.map8[3] == 0) {
flag._visible = true;
}
}
Instance of Symbol 718 MovieClip in Frame 31
onClipEvent (load) {
stop();
if (_root.castles_beaten() >= 11) {
play();
}
}
on (rollOver) {
numcastles = _root.castles_beaten();
if (numcastles < 11) {
_root.help_box.help_txt.text = ("You must conquer " + (11 - numcastles)) + " more castles!";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Usted debe triunfar m\u00E1s " + (11 - numcastles)) + " castillos para seguir!";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 669 MovieClip "hero" in Frame 31
onClipEvent (load) {
map = _root.map8;
maxspeed = 5;
}
onClipEvent (enterFrame) {
_root.debug2_txt.text = "mode: " + _root.actionmode;
xspeed = (targetx - _x) / 3;
yspeed = (targety - _y) / 3;
if (Math.abs(targetx - _x) > 3) {
_x = (_x + xspeed);
} else {
_x = targetx;
}
if (Math.abs(targety - _y) > 3) {
_y = (_y + yspeed);
} else {
_y = targety;
}
if ((_x == targetx) && (_y == targety)) {
if (_root.actionmode == "moving") {
_root.hero_pos = _root.hero_pos;
_root.actionmode = "move";
if (_root.hero_pos == 18) {
_root.actionmode = "next";
_root.nextscene = "ending";
}
if (map[_root.hero_pos] == 0) {
if (random(100) < 30) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
} else {
_root.hero_lastpos = _root.hero_pos;
}
}
}
}
}
Instance of Symbol 681 MovieClip in Frame 31
onClipEvent (load) {
collision._visible = false;
home_rot = _rotation;
target_rotation = _rotation;
map = _root.map8;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = false;
} else {
_visible = true;
}
if ((map[_root.hero_pos] == 100) || (map[_root.hero_pos] == 150)) {
button1._visible = true;
} else {
button1._visible = false;
}
if (map[_root.hero_pos] == 200) {
button3._visible = true;
button1._visible = false;
} else {
button3._visible = false;
}
ydist = _y - _root._ymouse;
if (ydist > 0) {
ydist = (ydist - 5) / 2;
} else {
ydist = (ydist - 5) / 2;
}
if (Math.abs(ydist) > 20) {
if (ydist > 0) {
ydist = 15;
}
if (ydist < 0) {
ydist = -15;
}
}
xdist = (_x - _root._xmouse) / 6;
if (collision.hitTest(_root._xmouse, _root._ymouse, true)) {
if (ydist > 5) {
target_rotation = (home_rot + ydist) - xdist;
}
if (ydist < -5) {
target_rotation = (home_rot + ydist) + xdist;
}
if (Math.abs(ydist) <= 5) {
target_rotation = (home_rot + ydist) / 2;
}
} else {
target_rotation = home_rot;
}
if (_rotation > target_rotation) {
_rotation = (_rotation - ((_rotation - target_rotation) / 3));
} else {
_rotation = (_rotation + ((target_rotation - _rotation) / 3));
}
button1._rotation = -_rotation;
button2._rotation = -_rotation;
button3._rotation = 180 - _rotation;
button4._rotation = -_rotation;
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 31
on (press) {
if (_root.actionmode == "move") {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 103 MovieClip in Frame 31
onClipEvent (load) {
stop();
vol = _root.vol;
if (vol == 100) {
frame = 1;
}
if (vol == 50) {
frame = 2;
}
if (vol == 25) {
frame = 3;
}
if (vol == 0) {
frame = 4;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
}
on (press) {
_root.helpbox.help_txt.text = "";
if (frame >= 4) {
frame = 1;
} else {
frame++;
}
if (frame == 1) {
vol = 100;
}
if (frame == 2) {
vol = 50;
}
if (frame == 3) {
vol = 25;
}
if (frame == 4) {
vol = 0;
}
_root.BGM0.setVolume(vol);
this.gotoAndStop(frame);
_root.vol = vol;
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Volume = " + _root.vol;
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Volumen = " + _root.vol;
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 3 MovieClip "black" in Frame 31
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 686 MovieClip in Frame 31
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 211 MovieClip "help_box" in Frame 31
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 213 MovieClip in Frame 31
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 31
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "ending") {
_root.gotoAndPlay("ending");
}
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map1") {
_root.currentmap = 1;
_root.gotoAndStop("map1");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
if (_root.nextscene == "map4") {
_root.currentmap = 4;
_root.gotoAndStop("map4");
}
if (_root.nextscene == "map5") {
_root.currentmap = 5;
_root.gotoAndStop("map5");
}
if (_root.nextscene == "map6") {
_root.currentmap = 6;
_root.gotoAndStop("map6");
}
if (_root.nextscene == "map7") {
_root.currentmap = 7;
_root.gotoAndStop("map7");
}
if (_root.nextscene == "map8") {
_root.currentmap = 8;
_root.gotoAndStop("map8");
}
}
}
}
Frame 32
stop();
actionmode = "transin";
finished = true;
BGM1.stop();
BGM5.start();
BGM5.onSoundComplete = function () {
BGM5.start(0.1);
};
Instance of Symbol 680 MovieClip "button4" in Frame 32
on (press) {
play();
_root.help_box.help_txt.text = "";
_root.actionmode = "save";
}
on (rollOver) {
_root.help_box.help_txt.text = "Save game";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Guardar el juego";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 211 MovieClip "help_box" in Frame 32
onClipEvent (load) {
help_txt.text = "";
}
onClipEvent (enterFrame) {
if (help_txt.text == "") {
targety = 620;
} else {
targety = 583;
}
if (targety > _y) {
_y = (_y + ((targety - _y) / 2));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 2));
}
}
Instance of Symbol 686 MovieClip in Frame 32
onClipEvent (load) {
if (_root.lang == "esp") {
data_txt.text = "GUARDAR";
}
}
onClipEvent (enterFrame) {
if (_root.actionmode == "save") {
targety = 300;
} else {
targety = -100;
}
if (Math.abs(targety - _y) > 1) {
if (targety > _y) {
_y = (_y + ((targety - _y) / 3));
}
if (targety < _y) {
_y = (_y - ((_y - targety) / 3));
}
} else {
_y = targety;
}
}
Instance of Symbol 82 MovieClip "menu_btn" in Frame 32
on (press) {
play();
_root.nextscene = "menu";
_root.actionmode = "next";
}
on (rollOver) {
if (_root.actionmode == "move") {
_root.help_box.help_txt.text = "Back to Main Menu";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 213 MovieClip in Frame 32
onClipEvent (load) {
xtarget = -300;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x > xtarget) {
_x = (_x - speed);
}
}
if (_root.actionmode == "next") {
if (_x < 300) {
_x = (_x + speed);
}
}
}
Instance of Symbol 213 MovieClip in Frame 32
onClipEvent (load) {
xtarget = 900;
speed = 50;
}
onClipEvent (enterFrame) {
if (_root.actionmode == "transin") {
if (_x < xtarget) {
_x = (_x + speed);
} else {
_root.actionmode = "move";
}
}
if (_root.actionmode == "next") {
if (_x > 300) {
_x = (_x - speed);
} else {
if (_root.nextscene == "menu") {
_root.gotoAndPlay("genesis");
}
if (_root.nextscene == "setup") {
_root.gotoAndStop("setup");
}
if (_root.nextscene == "main") {
_root.gotoAndStop("main");
}
if (_root.nextscene == "upgrade") {
_root.gotoAndStop("upgrade");
}
if (_root.nextscene == "map1") {
_root.currentmap = 1;
_root.gotoAndStop("map1");
}
if (_root.nextscene == "map2") {
_root.currentmap = 2;
_root.gotoAndStop("map2");
}
if (_root.nextscene == "map3") {
_root.currentmap = 3;
_root.gotoAndStop("map3");
}
if (_root.nextscene == "map4") {
_root.currentmap = 4;
_root.gotoAndStop("map4");
}
if (_root.nextscene == "map5") {
_root.currentmap = 5;
_root.gotoAndStop("map5");
}
if (_root.nextscene == "map6") {
_root.currentmap = 6;
_root.gotoAndStop("map6");
}
if (_root.nextscene == "map7") {
_root.currentmap = 7;
_root.gotoAndStop("map7");
}
if (_root.nextscene == "map8") {
_root.currentmap = 8;
_root.gotoAndStop("map8");
}
}
}
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 30
_root.gotoAndPlay("distraction");
Symbol 20 MovieClip Frame 140
stop();
Symbol 24 MovieClip Frame 225
_root.gotoAndPlay("genesis");
Instance of Symbol 52 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (load) {
speed = (random(2) / 4) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 4) + 0.2;
}
}
Instance of Symbol 54 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (load) {
speed = (random(2) / 4) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 4) + 0.2;
}
}
Instance of Symbol 56 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (load) {
speed = (random(2) / 4) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 4) + 0.2;
}
}
Instance of Symbol 58 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (load) {
speed = (random(2) / 4) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 4) + 0.2;
}
}
Symbol 69 MovieClip Frame 306
stop();
Symbol 75 MovieClip Frame 35
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
frame = random(10) + 1;
gotoAndPlay(frame);
Symbol 201 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 1
stop();
Instance of Symbol 206 MovieClip in Symbol 207 MovieClip Frame 1
on (press) {
if (Key.isDown(16)) {
_root.deletedata(1);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
} else {
savedata = SharedObject.getLocal("animal1");
if (savedata.data.finished) {
_root.finished = true;
_root.actionmode = "next";
} else if (savedata.data.checkdata) {
play();
_root.fx9.stop("effect9");
_root.fx9.start();
_root.loadgame(1);
} else {
_root.fx8.stop("effect8");
_root.fx8.start();
}
}
}
onClipEvent (load) {
star._visible = false;
castles._visible = false;
savedata = SharedObject.getLocal("animal1");
if (savedata.data.checkdata) {
if (savedata.data.finished) {
star._visible = true;
} else {
star._visible = false;
}
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
castles.gotoAndStop(savedata.data.castles + 1);
i++;
}
} else {
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Shift + Click to delete data.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Shift + Click para borrar datos";
}
castles._visible = true;
}
on (rollOut) {
_root.help_box.help_txt.text = "";
castles._visible = false;
}
Instance of Symbol 206 MovieClip in Symbol 207 MovieClip Frame 1
on (press) {
if (Key.isDown(16)) {
_root.deletedata(2);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
} else {
savedata = SharedObject.getLocal("animal2");
if (savedata.data.finished) {
_root.finished = true;
_root.actionmode = "next";
} else if (savedata.data.checkdata) {
play();
_root.fx9.stop("effect9");
_root.fx9.start();
_root.loadgame(2);
} else {
_root.fx8.stop("effect8");
_root.fx8.start();
}
}
}
onClipEvent (load) {
star._visible = false;
castles._visible = false;
savedata = SharedObject.getLocal("animal2");
if (savedata.data.checkdata) {
if (savedata.data.finished) {
star._visible = true;
} else {
star._visible = false;
}
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
castles.gotoAndStop(savedata.data.castles + 1);
i++;
}
} else {
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Shift + Click to delete data.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Shift + Click para borrar datos";
}
castles._visible = true;
}
on (rollOut) {
_root.help_box.help_txt.text = "";
castles._visible = false;
}
Instance of Symbol 206 MovieClip in Symbol 207 MovieClip Frame 1
on (press) {
if (Key.isDown(16)) {
_root.deletedata(3);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
} else {
savedata = SharedObject.getLocal("animal3");
if (savedata.data.finished) {
_root.finished = true;
_root.actionmode = "next";
} else if (savedata.data.checkdata) {
play();
_root.fx9.stop("effect9");
_root.fx9.start();
_root.loadgame(3);
} else {
_root.fx8.stop("effect8");
_root.fx8.start();
}
}
}
onClipEvent (load) {
star._visible = false;
castles._visible = false;
savedata = SharedObject.getLocal("animal3");
if (savedata.data.checkdata) {
if (savedata.data.finished) {
star._visible = true;
} else {
star._visible = false;
}
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
castles.gotoAndStop(savedata.data.castles + 1);
i++;
}
} else {
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Shift + Click to delete data.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Shift + Click para borrar datos";
}
castles._visible = true;
}
on (rollOut) {
_root.help_box.help_txt.text = "";
castles._visible = false;
}
Instance of Symbol 82 MovieClip "button3" in Symbol 207 MovieClip Frame 1
on (press) {
if (_root.actionmode == "load") {
play();
_root.help_box.help_txt.text = "";
_root.actionmode = "menu";
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Back to menu.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Men\u00FA";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Symbol 222 MovieClip Frame 1
stop();
Instance of Symbol 222 MovieClip in Symbol 231 MovieClip Frame 1
on (press) {
play();
_root.pic = 1;
_root.message1 = "Well, basically, you've got to journey up to the top of Mt. Asio. I imagine there is a lot of danger on the way, so you'll be assembling a team of six animals to help you.";
_root.message2 = "With the help of your team, you must navigate the world map and find a way to reach the summit.";
_root.message3 = "Where's the summit, you ask?";
_root.message4 = "Sorry. I can't tell you everything. Next, you'll be wanting to add me to your team, right?";
_root.message5 = "I'd love to, but that just wouldn't be fair. I work out, you know.";
_root.message6 = "Anyway, keep your eye out for the CASTLES around the world. Battle their denizens to conquer them. I'm sure that's important for some reason, but I'll let you figure that out.";
_root.message7 = "What else can I help you with?";
_root.message8 = "";
if (_root.lang == "esp") {
_root.message1 = "Bien, b\u00E1sicamente, tu tienes que viajar hasta la cumbre de Mt. Asio. Me imagino que habra mucho peligro por el camino, por lo tanto tu reunir\u00E1s un equipo de seis animales para ayudarte.";
_root.message2 = "Con la ayuda de tu equipo, tu debes navegar el mapa mundial y encontrar un modo de alcanzar la cumbre.";
_root.message3 = "\u00BFD\u00F3nde est\u00E1 la cumbre, te preguntas?";
_root.message4 = "Lo siento. No puedo decirte todo. \u00BFDespu\u00E9s, querr\u00E1s a\u00F1adirme a tu equipo, verdad?";
_root.message5 = "Me encantar\u00EDa, pero no ser\u00EDa justo. Como tu sabes, hago muchos ejercicios.";
_root.message6 = "De todos modos, no dejes pasar los CASTILLOS en cada mundo. Porque ganando la batalla los conquistaras. Estoy seguro que esto es importante por alguna raz\u00F3n, pero te dejar\u00E9 que lo descuvres.";
_root.message7 = "\u00BFCon qu\u00E9 m\u00E1s puedo ayudarte?";
_root.message8 = "";
}
_root.currenttext = 1;
_root.text_box.help_txt.text = _root.message1;
}
Instance of Symbol 222 MovieClip in Symbol 231 MovieClip Frame 1
on (press) {
play();
_root.pic = 8;
_root.message1 = "Each animal has several stats that represent it's strengths and weaknesses. When you move the mouse (mmm... getting hungry for some reason) over the animal's picture, its stats will be displayed in a window on the right.";
_root.message2 = "HP is HEALTH POINTS. Every attack against this animal will reduce this number. When it reaches 0, the animal is incapacitated -- knocked out, so to speak. If all of your animals are knocked out, you lose the battle.";
_root.message3 = "PW is POWER. This is how strong the animal is when he attacks. Remember that not every attack will be exactly this strong, so don't rely on it completely.";
_root.message4 = "AC is ACTIONS. The animal can take this many actions each turn in combat. He can attack or move once for each point of AC he has. ...Or she has... or whatever.";
_root.message5 = "CT is COUNTER. When an enemy attacks this animal, he will deal back this much damage to the attacker automatically. My own counter is pretty terrifying because of my mighty mighty backhand.";
_root.message6 = "LV is LEVEL. Whenever the animal survives a battle, his level will go up. As his level increases, he will slowly gain more stat points. But watch out -- if he does not survive a combat, he will lose one level.";
_root.message7 = "I know it doesn't seem fair, but I don't care too much since my fighting days are behind me. Forced retirement. I needed to give someone else a chance apparently... True story... Really...";
_root.message8 = "Oh, and I don't want to forget about the CLANS. Many animals have a CLAN association. You can tell by the circular icon at the bottom left of the animal's portrait. The clan determines what magic you can use in combat.";
_root.message9 = "One more thing...";
_root.message10 = "Attack types! Each animal has a set of arrows at the top of its portrait. These indicate what targets the animal can attack in combat. Move the mouse over the animal to see what targets will be hit.";
_root.message11 = "Try moving your animals around to different positions to see where they function best. Sometimes moving them in the middle of combat is the best strategy.";
_root.message12 = "What else can I help you with?";
_root.message13 = "";
if (_root.lang == "esp") {
_root.message1 = "Cada animal tiene diferentes n\u00FAmeros que representa fuerza y debilidad. Cuando usted mueve al mouse (mmm ... no se porque me ha dado hambre) sobre el cuadro del animal, veras una ventana a la derecha con diferentes n\u00FAmeros.";
_root.message2 = "HP son PUNTOS PARA LA SALUD. Cada ataque contra este animal reducir\u00E1 este n\u00FAmero. Cuando este alcanza 0, quedara el animal incapacitado. Si todos sus animales se quedan incapacitados, perder\u00E1s la batalla.";
_root.message3 = "PW es PODER. Significa que tan fuerte es el animal cuando ataca. Recuerde que cada ataque no ser\u00E1 exactamente fuerte como el n\u00FAmero. No conf\u00EDes completamente.";
_root.message4 = "AC son las ACCIONES. El animal puede tener este n\u00FAmero de acciones en cada turno del combate. \u00C9l puede atacar o moverse en cada n\u00FAmero de AC... O ella...";
_root.message5 = "CT es ATAQUE CONTRARIO. Cuando el enemigo ataca a su animal, Este atacara autom\u00E1ticamente. Mi ataque contrario es aterrador debido a mi gran inteligencia.";
_root.message6 = "LV es el NIVEL. Cada vez \tque su animal sobreviva una batalla, su nivel subir\u00E1. A lo que su nivel crezca, este ganar\u00E1 m\u00E1s puntos. Pero ten en cuenta - Que si este no sobrevive a un combate, \u00E9l perder\u00E1 un nivel.";
_root.message7 = "S\u00E9 que no parece justo, pero no me preocupo demasiado ya que mis d\u00EDas de enfrentamientos pasaron. Me tuve que retirar forzadamente. Yo ten\u00EDa que dar a alguien una posibilidad aparentemente... Es real... ";
_root.message8 = "Ah, y no quiero olvidar sobre los CLANES. Muchos animales tienen una asociaci\u00F3n de CLAN. Puedes darte cuenta por el icono circular en la esquina de cada animal. El clan determina que magia puedes usar para el combate.";
_root.message9 = "Uno m\u00E1s cosa...";
_root.message10 = "\u00A1Tipos de ataque! Cada animal tiene un juego de flechas en lo alto de su retrato. \u00C9stos indican donde puede el animal atacar. En el combate, mueve el mouse sobre el animal para ver que blancos puede atacar.";
_root.message11 = "Trata de mover a tus animales en diferentes posiciones para ver donde ellos funcionan mejor. A veces el movimiento de ellos en medio del combate es la mejor estrategia.";
_root.message12 = "\u00BFCon qu\u00E9 m\u00E1s puedo ayudarte?";
_root.message13 = "";
}
_root.currenttext = 1;
_root.text_box.help_txt.text = _root.message1;
}
Instance of Symbol 222 MovieClip in Symbol 231 MovieClip Frame 1
on (press) {
play();
_root.pic = 20;
_root.message1 = "For each combat, you must defeat the enemy team in a limited number of turns. If you run out of turns, you will lose, so don't lose track. The remaining turns are displayed at the upper left of the screen.";
_root.message2 = "During your turn, you can click on any of your animals to make them attack their target, provided they have actions remaining. Sometimes, because of their position, they may not have a valid target. In this case, you must move them or just pass.";
_root.message3 = "Moving the mouse over an animal will highlight its target or targets. Yellow highlights mean good strikes and red highlights mean weak strikes. Red is better than nothing, but try to maximize your yellows. Stronger is better.";
_root.message4 = "When your team runs out of actions, or you click the END TURN button, the enemy team will return your hospitality. You can't do anything during that time so just watch and bite your nails. Don't worry, it'll all be over soon. Ha ha ha ha... sorry.";
_root.message5 = "At the beginning of your turn, your green magic meter will increase. When it fills, you will begin to get GEMS. These are required to cast magic spells. If you have any spells you can use immediately, the 'M' button on the lower right will be flashing. Mouse over that button to see or cast your spells.";
_root.message6 = "On the lower left of the screen is your wheel menu. This contains buttons to end your turn, run away from battle, or swap your team's positions. When you swap two animals, remember that it will use an action for each. Use them wisely.";
_root.message7 = "When you win a battle, you will earn points to spend on cool stuff. If you consider healing, reviving and upgrading your animals cool that is. If not... well, sorry, we're all out of T-Shirts.";
_root.message8 = "When you run away from battle, you lose a small number of points, but at least you can keep some of your animals from losing levels. At least that's what they tell me.";
_root.message9 = "I'm not really sure what that button does because... ";
_root.message10 = "Well...";
_root.message11 = "I don't like brag, so let's just move on, okay? Besides, I don't want to bore you with any epic heroic tales at the moment.";
_root.message12 = "What else can I help you with?";
_root.message13 = "";
if (_root.lang == "esp") {
_root.message1 = "Para cada combate, usted debe derrotar el equipo enemigo en un n\u00FAmero limitado de vueltas. Si usted se queda sin vueltas, usted perder\u00E1, tan no pierda la pista. Las vueltas restantes son mostradas en el superior dejado de la pantalla.";
_root.message2 = "Durante su vuelta, usted puede hacer clic en cualquiera de sus animales para hacerlos atacar su objetivo, a condici\u00F3n de que ellos tengan acciones restantes. A veces, debido a su posici\u00F3n, ellos pueden no tener un objetivo v\u00E1lido. En este caso, usted debe moverlos o s\u00F3lo pasar.";
_root.message3 = "El movimiento del rat\u00F3n sobre un animal destacar\u00E1 su objetivo u objetivos. Los toques de luz amarillos significan huelgas buenas y los toques de luz rojos significan huelgas d\u00E9biles. Rojo no es mejor que nada, pero intento de maximizar su yellows. M\u00E1s fuerte es mejor.";
_root.message4 = "Cuando su equipo se queda sin acciones, o usted hace clic el bot\u00F3n de VUELTA DE FINAL, el equipo enemigo devolver\u00E1 su hospitalidad. Usted no puede hacer nada durante aquel tiempo tan s\u00F3lo reloj y morder sus u\u00F1as. No preoc\u00FApese, ser\u00E1 todo terminado pronto. Ja ja ja ja ja ... siento.";
_root.message5 = "A principios de su vuelta, su metro m\u00E1gico verde aumentar\u00E1. Cuando esto se llena, usted comenzar\u00E1 a conseguir GEMAS. Se requiere que \u00E9stos echen hechizos. Si usted tiene alguna ortograf\u00EDa usted puede usar inmediatamente, 'el M' de bot\u00F3n en el derecho inferior destellar\u00E1. Rat\u00F3n sobre aquel bot\u00F3n para ver o hechizar.";
_root.message6 = "En el inferior dejado de la pantalla es su men\u00FA de rueda. Este contiene botones para terminar su vuelta, escaparse de la batalla, o cambiar las posiciones de su equipo. Cuando usted cambia a dos animales, recuerde que esto usar\u00E1 una acci\u00F3n para cada uno. \u00DAselos sabiamente.";
_root.message7 = "Cuando usted gana una batalla, usted ganar\u00E1 puntos para gastar para la materia chula. Si usted piensa curarse, reanim\u00E1ndose y mejorando a sus animales chulos que es. Si no ... bien, lamentable, somos todos de CAMISETAS.";
_root.message8 = "Cuando usted se escapa de la batalla, usted pierde un peque\u00F1o n\u00FAmero de puntos, pero al menos usted puede impedir a algunos de sus animales perder niveles. Al menos esto es lo que ellos me dicen.";
_root.message9 = "No estoy realmente seguro lo que aquel bot\u00F3n hace porque...";
_root.message10 = "Bueno...";
_root.message11 = "\u00BFNo me gusta la jactancia, tan voy s\u00F3lo a circular, bien? Adem\u00E1s, no quiero aguantarle con cualquier cuento heroico \u00E9pico en este momento.";
_root.message12 = "\u00BFCon qu\u00E9 m\u00E1s puedo ayudarle?";
_root.message13 = "";
}
_root.currenttext = 1;
_root.text_box.help_txt.text = _root.message1;
}
Instance of Symbol 222 MovieClip in Symbol 231 MovieClip Frame 1
on (press) {
play();
_root.pic = 33;
_root.message1 = "Many animals have a CLAN. You can tell by the circular icon to the lower left of their portraits. There are 5 clans, so pay attention to what they are and what they do.";
_root.message2 = "First is BRUTE. BRUTE animals specialize in stat bonuses and raw power. They fight better in open spaces because they love a fair fight.";
_root.message3 = "Next is FIRE. FIRE animals love hot places and their magic deals heat damage to enemies. They're extra effective against WATER enemies. They can get more CT when upgraded.";
_root.message4 = "Since we've already mentioned them, lets move on to WATER. These guys are the cold-and-wet-weather kings. They deal cold damage to enemies with their magic and can even heal a bit. They're great against FIRE enemies and they tend towards higher HP.";
_root.message5 = "Last up is MAGICAL. These legendary beasts have the power to heal and revive. They're not always as strong, but their defensive magic is unrivaled. They are most at home in forests where they can hide easily, and other magical places.";
_root.message6 = "What? That was only four?";
_root.message7 = "Of course you're right. I nearly forgot the last one. I am afraid to even bring it up because I'd hate to scare you away after all this clicking.";
_root.message8 = "The last one is SHADOW. You won't find any of these guys at the beginning of the game. They're lurking around Mt. Asio. They're really tough hombres packing state of the art firepower. And they're immune to counter-attacks!!! Try to recruit them if you can.";
_root.message9 = "What else can I help you with?";
_root.message10 = "";
if (_root.lang == "esp") {
_root.message1 = "Muchos animales tienen un CLAN. Usted puede contar por el icono circular al inferior dejado de sus retratos. Hay 5 clanes, tan preste la atenci\u00F3n a lo que ellos son y lo que ellos hacen.";
_root.message2 = "Primero es el BRUTO. Los animales BRUTOS se especializan en sobresueldos stat y poder crudo. Ellos luchan mejor en espacios abiertos porque ellos aman una lucha justa.";
_root.message3 = "Despu\u00E9s es el FUEGO. Los animales de FUEGO aman sitios calientes y su da\u00F1o de calor de tratos m\u00E1gico a enemigos. Ellos son extra eficaces contra enemigos de AGUA. Ellos pueden conseguir m\u00E1s CT cuando mejorado.";
_root.message4 = "Ya que los hemos mencionado ya, deja al movimiento al AGUA. Estos tipos son los reyes del tiempo fr\u00EDo y mojado. Ellos tratan el da\u00F1o fr\u00EDo a enemigos con su magia y pueden curarse hasta un poco. Ellos son grandes contra enemigos de FUEGO y ellos tienden hacia el HP m\u00E1s alto.";
_root.message5 = "\u00DAltimo es M\u00C1GICO. Estas bestias legendarias tienen el poder de curarse y reanimarse. Ellos son no siempre como fuerte, pero no rivalizan con su magia defensiva. Ellos est\u00E1n el m\u00E1s en casa en bosques donde ellos pueden esconderse f\u00E1cilmente, y otros sitios m\u00E1gicos.";
_root.message6 = "\u00BFQu\u00E9? \u00BFEra s\u00F3lo cuatro?";
_root.message7 = "Por supuesto usted tiene raz\u00F3n. Casi olvid\u00E9 el \u00FAltimo. Tengo miedo de criarlo hasta porque yo lamentar\u00EDa espantarle despu\u00E9s de todo este chasquido.";
_root.message8 = "El \u00FAltimo es la SOMBRA. Usted no encontrar\u00E1 ninguno de estos tipos a principios del juego. Ellos est\u00E1n al acecho alrededor de Mt. Asio. Ellos son hombres realmente resistentes que embalan la capacidad armament\u00EDstica de tecnolog\u00EDa avanzada. \u00A1\u00A1y ellos son inmunes a contraataques!!! Trate de reclutarlos si usted puede.";
_root.message9 = "\u00BFCon qu\u00E9 m\u00E1s puedo ayudarle?";
_root.message10 = "";
}
_root.currenttext = 1;
_root.text_box.help_txt.text = _root.message1;
}
Instance of Symbol 222 MovieClip in Symbol 231 MovieClip Frame 1
on (press) {
play();
_root.pic = 43;
_root.message1 = "When you store up some gems in combat, you'll be able to use magic to turn the tide. The amount, type, and power of magic depends on your team of animals.";
_root.message2 = "For example, having at least one BRUTE animal in your team will give you access to BRUTE spells. But remember...";
_root.message3 = "If you ONLY have one in your team, that magic type will be rather weak. If you want some BOOM in your boomstick, you should use several animals of the same CLAN.";
_root.message4 = "So, I guess it's sort of a balance.";
_root.message5 = "You can either diversify for more options, or specialize for greater effect. It's really up to you.";
_root.message6 = "Anyway, when you have enough gems to cast a spell, the 'M' tab at the lower right will flash. Move the mouse over it to open your spell list.";
_root.message7 = "All spells that you have enough gems to cast will be lit up. Just click one to use it.";
_root.message8 = "If you don't know what the spell does, just put the mouse over it and read the info box on the right.";
_root.message9 = "And how do you get gems in the first place? That's easy. Really. It's very simple. In fact, I bet even you could do it!";
_root.message10 = "At the beginning of your turn, the green bar at the bottom of the combat screen will fill a little. When it's full, you get your first gem! After that, you'll gain another one every turn.";
_root.message11 = "Pretty cool, huh? That means that if you spend all your gems, you'll have to wait a little longer before you can use more magic. Keep that in mind.";
_root.message12 = "I guess you know one of my combat strategies now... Well that's okay. I have more.";
_root.message13 = "What else can I help you with?";
_root.message14 = "";
if (_root.lang == "esp") {
_root.message1 = "Cuando usted almacena algunas gemas en el combate, usted ser\u00E1 capaz de usar la magia para girar la marea. La cantidad, escriba a m\u00E1quina, y el poder de la magia depende de su equipo de animales.";
_root.message2 = "Por ejemplo, tener al menos un animal BRUTO en su equipo le dar\u00E1 el acceso a la ortograf\u00EDa BRUTA. Pero recuerde...";
_root.message3 = "Si usted S\u00D3LO tiene un en su equipo, aquel tipo m\u00E1gico ser\u00E1 bastante d\u00E9bil. Si usted quiere un poco de RETUMBO en su boomstick, usted deber\u00EDa usar a varios animales del mismo CLAN.";
_root.message4 = "De este modo, adivino que esto es la clase de un equilibrio.";
_root.message5 = "Usted puede diversificarse o para m\u00E1s opciones, o especializarse para el mayor efecto. Esto realmente est\u00E1 a la altura de usted.";
_root.message6 = "De todos modos, cuando usted tiene bastantes gemas para hechizar, el 'M' de etiqueta en el derecho inferior destellar\u00E1. Mueva al rat\u00F3n sobre ello para abrir su lista de ortograf\u00EDa.";
_root.message7 = "Toda la ortograf\u00EDa que usted tiene bastantes gemas para echar ser\u00E1 iluminada. S\u00F3lo haga clic el que para usarlo.";
_root.message8 = "Si usted no sabe lo que la ortograf\u00EDa hace, s\u00F3lo poner al rat\u00F3n sobre ello y ley\u00F3 la caja de informaci\u00F3n a la derecha.";
_root.message9 = "\u00BFY c\u00F3mo consigue usted gemas en primer lugar? Esto es f\u00E1cil. Realmente. Es muy simple. \u00A1De hecho, apost\u00E9 hasta usted podr\u00EDa hacerlo!";
_root.message10 = "A principios de su vuelta, la barra verde en el fondo de la pantalla de combate se llenar\u00E1 un poco. \u00A1Cu\u00E1ndo es lleno, usted consigue su primera gema! Despu\u00E9s de esto, usted ganar\u00E1 el otro cada vuelta.";
_root.message11 = "\u00BFQue vacan, \u00A1eh!? Esto significa que si usted gasta todas sus gemas, usted tendr\u00E1 que esperar un poco m\u00E1s largo antes de que usted pueda usar m\u00E1s magia. Guarde esto en mente.";
_root.message12 = "Adivino que usted sabe una de mis estrategias de combate ahora... Bien esto es bien. Tengo m\u00E1s.";
_root.message13 = "\u00BFCon qu\u00E9 m\u00E1s puedo ayudarle?";
_root.message14 = "";
}
_root.currenttext = 1;
_root.text_box.help_txt.text = _root.message1;
}
Instance of Symbol 222 MovieClip in Symbol 231 MovieClip Frame 1
on (press) {
play();
_root.pic = 57;
_root.message1 = "You want to know how to get around in the world, huh? I don't blame you. Without that knowledge, you might as well give up now. Listen up!";
_root.message2 = "Each screen is made up of NODES that you move between. This symbol represents YOU on the map.";
_root.message3 = "Click on a connected NODE to move to it. What happens when you get to the NODE depends on what kind of NODE it is! This is important...";
_root.message4 = "RED NODES are battle nodes. When you move onto one of these, you will immediately enter combat. Most will contain random enemy teams, but not all of them.";
_root.message5 = "After you win a battle in a red node, it turns into a BLUE NODE. Sometimes you can walk right through these without incident, but occasionally, you'll still get attacked. At least they are safer than red ones.";
_root.message6 = "These are SHOP NODES. Click on them when you arrive to enter the shop and buy stuff!";
_root.message7 = "These are the real goodies! When you see a treasure chest like this one, go there to enter a special shop and buy a one-of-a-kind permanent upgrade for your team! SWEET!";
_root.message8 = "Finally, we have TRAVEL NODES. Use these to move from the current map screen to another one.";
_root.message9 = "In addition to these, you can also enter CAMP anytime on the world map. From here, you can re-arrange your team, randomize, revive or heal your animals, check magic and upgrades -- all kinds of stuff. Just use the CAMP button on the wheel menu or click on a blue node.";
_root.message10 = "And here's another tidbit... Pay attention to the terrain where you enter combat! The terrain type will give bonuses to certain animals in that combat. You may have the advantage or disadvantage depending on your choices.";
_root.message11 = "What else can I help you with?";
_root.message12 = "";
if (_root.lang == "esp") {
_root.message1 = "\u00BFUsted quiere saber ponerse alrededor en el mundo, \u00A1eh!? No le culpo. Sin aquel conocimiento, usted podr\u00EDa rendirse tambi\u00E9n ahora. \u00A1Escuche!";
_root.message2 = "Cada pantalla es arreglada de NODOS entre los cuales usted se mueve. Este s\u00EDmbolo le representa en el mapa.";
_root.message3 = "Chasquido en un NODO relacionado para moverse a ello. \u00A1Lo que pasa cuando usted se pone al NODO depende de que tipo de NODO es! Este es importante...";
_root.message4 = "LOS NODOS ROJOS son nodos de batalla. Cuando usted se mueve en uno de \u00E9stos, usted entrar\u00E1 inmediatamente en el combate. El m\u00E1s contendr\u00E1 equipos enemigos arbitrarios, pero no todos ellos.";
_root.message5 = "Despu\u00E9s de que usted gana una batalla en un nodo rojo, esto se convierte en un NODO AZUL. A veces usted puede andar directamente por \u00E9stos sin el incidente, pero de vez en cuando, usted todav\u00EDa ser\u00E1 atacado. Al menos ellos son safer que rojos.";
_root.message6 = "\u00C9stos son NODOS DE TIENDA. \u00A1El chasquido en ellos cu\u00E1ndo usted llega para entrar la materia de compra y en la tienda!";
_root.message7 = "\u00A1\u00C9stos son las verdaderas golosinas! \u00A1Cu\u00E1ndo usted ve un pecho de tesoro como \u00E9ste, vaya all\u00ED para entrar en una tienda especial y comprar una mejora permanente peculiar para su equipo! \u00A1CHEVERISIMO!";
_root.message8 = "Finalmente, tenemos NODOS DE VIAJES. Use \u00E9stos para moverse de la pantalla de mapa corriente al otro.";
_root.message9 = "Usted tambi\u00E9n puede entrar en el CAMPO en cualquier momento en el mapa mundial. De aqu\u00ED, usted puede reajustar su equipo, aleatorizar, reanimar o curar a sus animales - todas las clases de la materia. S\u00F3lo use el bot\u00F3n de CAMPO en el men\u00FA de rueda o chasquido en un nodo azul.";
_root.message10 = "Y aqu\u00ED est\u00E1 otra exquisitez... \u00A1Preste la atenci\u00F3n al terreno d\u00F3nde usted entra en el combate! El tipo de terreno dar\u00E1 sobresueldos a ciertos animales en aquel combate. Usted puede tener la ventaja o perjudicar seg\u00FAn sus opciones.";
_root.message11 = "\u00BFCon qu\u00E9 m\u00E1s puedo ayudarle?";
_root.message12 = "";
}
_root.currenttext = 1;
_root.text_box.help_txt.text = _root.message1;
}
Instance of Symbol 222 MovieClip in Symbol 231 MovieClip Frame 1
on (press) {
play();
_root.message1 = "What? You want a nugget of priceless wisdom for nothing? Do I look like a dodo?";
_root.message2 = "But since you asked nicely...";
if (_root.lang == "esp") {
_root.message1 = "\u00BFQu\u00E9? \u00BFUsted quiere una pepita de la sabidur\u00EDa inestimable para nada? \u00BFParezco a un vejestorio?";
_root.message2 = "Pero porque usted pregunt\u00F3 amablemente...";
}
num = random(17);
switch (num) {
case 0 :
_root.message3 = "Always keep your team arranged properly before you enter combat. Nothing is worse than spending a turn just to get in position.";
break;
case 1 :
_root.message3 = "Whenever possible, hold off on casting spells until you have MORE than enough gems. If you keep at least one gem after casting, you'll keep earning one per turn.";
break;
case 2 :
_root.message3 = "Don't be afraid to run if you need to -- especially at the beginning of combat. The loss of points is more than worth surviving to fight another day... or so they say... *ehem*";
break;
case 3 :
_root.message3 = "When creating your team, use a mix of short and long-range attackers. And don't rely on 3-way fighters too much because enemies with strong counters will take them out MUCH easier.";
break;
case 4 :
_root.message3 = "Sometimes, animals with high counter-attacks are better off just sitting there and letting enemies hit them. If they attack, they can be countered and may lose HP faster. Good thing the enemies aren't smart enough to figure that out!";
break;
case 5 :
_root.message3 = "Keep an eye on your stock of FOOD. Don't wander far from safety without stocking up first.";
break;
case 6 :
_root.message3 = "Don't forget that you can randomize your animals. They will maintain their current level and sometimes you can get better animals.";
break;
case 7 :
_root.message3 = "When you randomize animals, you will only be able to get animals that live on the current world map screen. If you can fight it, you can probably recruit it. The exception to that rule is castles.";
break;
case 8 :
_root.message3 = "If you want to save points, try to keep damage evenly distributed among your team. Food heals all animals simultaneously and a healing just one injured target wastes resources.";
break;
case 9 :
_root.message3 = "?-attackers are great back-rank support. Nothing is safe from them and you are free to keep your stronger fighters positioned in the front. Just beware of high counter-attacks.";
break;
case 10 :
_root.message3 = "Counter attacks never take all HP from an animal. If one of your animals is safe from normal attacks, you don't have to worry about him recieving counter-attack damage.";
break;
case 11 :
_root.message3 = "When frying tilapia, try using steak seasoning -- it really enhances the flavor. That's my best secret!";
break;
case 12 :
_root.message3 = "Don't pick a fight with an owl half your size unless you want a mighty shin-peck.";
break;
case 13 :
_root.message3 = "Do what you love and you'll never work a day in your life.";
break;
case 14 :
_root.message3 = "Never forget that when you randomize an animal, your magic list or power may be affected!";
break;
case 15 :
_root.message3 = "Randomizers that you buy can only be used in your current map screen. If you move to a new map, you will lose any you have not used.";
break;
case 16 :
_root.message3 = "When you camp in a conquered castle, your healing items will have much greater effect! Did you know that? Magical places, those castles.";
}
_root.message4 = "Ask me again sometime. I'll try to come up with more advice for you.";
_root.message5 = "What else can I help you with?";
if (_root.lang == "esp") {
switch (num) {
case 0 :
_root.message3 = "Siempre guarde su equipo arreglado correctamente antes de que usted entre en el combate. Nada es peor que gastos de una vuelta s\u00F3lo para entrar en la posici\u00F3n.";
break;
case 1 :
_root.message3 = "Siempre que posible, aplace en hechizar hasta que usted tenga M\u00C1S que bastantes gemas. Si usted guarda al menos una gema despu\u00E9s del bastidor, usted seguir\u00E1 ganando un por vuelta.";
break;
case 2 :
_root.message3 = "No tenga miedo de correr si usted necesita a - sobre todo a principios del combate. La p\u00E9rdida de puntos es m\u00E1s que el valor que sobrevive para luchar contra otro d\u00EDa ... o entonces ellos dicen ... *ehem*";
break;
case 3 :
_root.message3 = "Creando su equipo, use una mezcla de atacantes cortos y de largo alcance. Y no conf\u00EDe en luchadores de 3 caminos demasiado porque los enemigos con mostradores fuertes los tomar\u00E1n MUCHO m\u00E1s f\u00E1cil.";
break;
case 4 :
_root.message3 = "A veces, los animales con contraataques altos son mejores de dinero s\u00F3lo la sesi\u00F3n all\u00ED y el piso de laquiler de enemigos los golpe\u00F3. Si ellos atacan, ellos pueden ser respondidos y pueden perder el SALUD m\u00E1s r\u00E1pido. \u00A1La cosa buena los enemigos no es bastante elegante para entender esto!";
break;
case 5 :
_root.message3 = "Vigile su reserva del COMIDA. No vague lejos de la seguridad sin abastecer primero.";
break;
case 6 :
_root.message3 = "No olvide que usted puede aleatorizar a sus animales. Ellos mantendr\u00E1n su nivel corriente y a veces usted puede conseguir a mejores animales.";
break;
case 7 :
_root.message3 = "Cuando usted aleatoriza a animales, usted s\u00F3lo ser\u00E1 capaz de conseguir a animales que viven en la pantalla de mapa mundial corriente. Si usted puede luchar contra ello, usted puede reclutarlo probablemente. La excepci\u00F3n a aquella regla es castillos.";
break;
case 8 :
_root.message3 = "Si usted quiere salvar puntos, trate de guardar el da\u00F1o regularmente distribuido entre su equipo. El alimento cura a todos los animales simult\u00E1neamente y una curaci\u00F3n s\u00F3lo recursos de basura objetivo heridos.";
break;
case 9 :
_root.message3 = "? - atacantes son el gran apoyo de espalda-fila. Nada es seguro de ellos y usted es libre de guardar a sus luchadores m\u00E1s fuertes colocados en el frente. S\u00F3lo prec\u00E1vase de contraataques altos.";
break;
case 10 :
_root.message3 = "Los ataques contrarios nunca toman todo el SALUD de un animal. Si uno de sus animales es seguro de ataques normales, usted no tiene que preocuparse de \u00E9l recibiendo el da\u00F1o de contraataque.";
break;
case 11 :
_root.message3 = "Friendo tilapia, trate de usar el condimento de filete - esto realmente realza el sabor. \u00A1Esto es mi mejor secreto!";
break;
case 12 :
_root.message3 = "No escoja una lucha con un b\u00FAho mitad su tama\u00F1o a menos que usted quiera un picotazo de espinilla fuerte.";
break;
case 13 :
_root.message3 = "Haga lo que usted ama y usted nunca trabajar\u00E1 un d\u00EDa en su vida.";
break;
case 14 :
_root.message3 = "\u00A1Nunca olvide que cu\u00E1ndo usted aleatoriza a un animal, su lista m\u00E1gica o poder pueden ser afectados!";
break;
case 15 :
_root.message3 = "El Randomizers que usted compra s\u00F3lo puede ser usado en su pantalla de mapa corriente. Si usted se mueve a un nuevo mapa, usted perder\u00E1 alguno usted no ha usado.";
break;
case 16 :
_root.message3 = "\u00A1Cu\u00E1ndo usted acampa en un castillo triunfado, sus art\u00EDculos de curaci\u00F3n tendr\u00E1n el mucho mayor efecto! \u00BFSab\u00EDa usted esto? Sitios m\u00E1gicos, aquellos castillos.";
}
_root.message4 = "Preg\u00FAnteme otra vez en cualquier momento. Puedo subir con algunas puntas m\u00E1s para usted.";
_root.message5 = "\u00BFCon qu\u00E9 m\u00E1s puedo ayudarle?";
}
_root.message6 = "";
_root.currenttext = 1;
_root.text_box.help_txt.text = _root.message1;
}
Symbol 310 MovieClip Frame 1
stop();
if (_root.lang == "esp") {
gotoAndStop ("esp");
}
Symbol 316 MovieClip Frame 1
stop();
help_txt._visible = false;
click._visible = false;
Symbol 316 MovieClip Frame 6
stop();
help_txt._visible = true;
click._visible = true;
Symbol 316 MovieClip Frame 7
help_txt._visible = false;
help_txt.text = "";
click._visible = false;
Symbol 323 MovieClip Frame 1
stop();
Instance of Symbol 257 MovieClip "attack4" in Symbol 331 MovieClip Frame 4
onClipEvent (load) {
if (_parent._rotation == 180) {
_rotation = 180;
}
}
Symbol 360 MovieClip Frame 1
stop();
Symbol 363 Button
on (press) {
if (_root.actionmode == "play") {
_root.actionmode = "switch";
} else if (_root.actionmode == "switch") {
_root.actionmode = "play";
_root.setup_clear_lights();
_root.switch1 = -1;
}
}
Symbol 383 MovieClip Frame 1
stop();
Instance of Symbol 378 MovieClip "collision2" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
on_now = false;
on_last = false;
}
onClipEvent (enterFrame) {
on_now = this.hitTest(_root._xmouse, _root._ymouse, true);
if ((!on_now) && (on_last)) {
_root.setup_clear_lights();
_root.switch1 = -1;
}
on_last = on_now;
}
Instance of Symbol 82 MovieClip "button3" in Symbol 384 MovieClip Frame 1
on (press) {
play();
_root.actionmode = "next";
}
on (rollOver) {
_root.help_box.help_txt.text = "Begin the journey.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Comience el viaje";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 98 MovieClip "button1" in Symbol 384 MovieClip Frame 1
on (press) {
if (_root.randomlimit > 0) {
if (_root.switch1 >= 0) {
_root.circle.play();
play();
_root.randomize(_root.switch1);
_root.randomlimit--;
}
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Randomize selected animal";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aleatorice al animal seleccionado";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 383 MovieClip "button2" in Symbol 384 MovieClip Frame 1
on (press) {
if (_root.randomlimit > 0) {
_root.circle.play();
play();
_root.setup_party();
_root.initialize();
_root.magiclist();
_root.setup_clear_lights();
_root.switch1 = -1;
_root.randomlimit--;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Randomize all animals";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aleatorice a todos los animales";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Symbol 388 MovieClip Frame 1
stop();
Instance of Symbol 391 MovieClip in Symbol 441 MovieClip Frame 1
onClipEvent (load) {
lev = 1;
spellname = "RECOVER 1";
spectype = 4;
amount = Math.ceil((_root.getSpec(spectype) + 4) / 2);
amountlimit = 5;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_heal(_root.party, "_root.char", amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = Math.ceil((_root.getSpec(spectype) + 4) / 2);
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Heals all of your animals by " + amount) + " points.") + newline) + newline;
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Cura a todos sus animales por " + amount) + " puntos.") + newline) + newline;
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 394 MovieClip "ring" in Symbol 441 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Instance of Symbol 397 MovieClip in Symbol 441 MovieClip Frame 2
onClipEvent (load) {
lev = 2;
spellname = "TIMESTOP";
spectype = 4;
amount = Math.ceil(_root.getSpec(spectype) / 2);
amountlimit = 4;
if (chance > chancelimit) {
chance = chancelimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_timestop(amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = Math.ceil(_root.getSpec(spectype) / 2);
if (chance > chancelimit) {
chance = chancelimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ("Freeze the clock for the next " + amount) + " turns.";
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ("Freeze the clock for the next " + amount) + " turns.";
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 400 MovieClip in Symbol 441 MovieClip Frame 3
onClipEvent (load) {
lev = 2;
spellname = "RECOVER 2";
spectype = 4;
amount = Math.ceil((_root.getSpec(spectype) + 7) / 2);
amountlimit = 7;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_heal2(_root.party, "_root.char", amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = Math.ceil((_root.getSpec(spectype) + 7) / 2);
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Heals all of your animals by " + amount) + " points.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("Magical animals are healed by " + (Math.ceil(amount * 1.5) + 1)) + " points.") + newline) + newline);
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Cura a todos sus animales por " + amount) + " puntos.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("Cura a sus animales M\u00C1GICO por " + (Math.ceil(amount * 1.5) + 1)) + " puntos.") + newline) + newline);
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 403 MovieClip in Symbol 441 MovieClip Frame 4
onClipEvent (load) {
lev = 3;
spellname = "REVIVE";
spectype = 4;
chance = (_root.getSpec(spectype) * 5) + 40;
chancelimit = 80;
if (chance > chancelimit) {
chance = chancelimit;
}
amount = 50;
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_raise(_root.party, "_root.char", amount, chance);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
chance = (_root.getSpec(spectype) * 5) + 40;
if (chance > chancelimit) {
chance = chancelimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((chance + "% chance to revive snoozing allies with ") + amount) + "% health.";
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Ana posibilidad del " + chance) + " % para reanimar a aliados inconscientes con ") + amount) + "% salud.";
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 406 MovieClip in Symbol 441 MovieClip Frame 5
onClipEvent (load) {
lev = 1;
spellname = "COUNTER++";
spectype = 1;
amount = _root.getSpec(spectype) - 1;
amountlimit = 2;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_counter(_root.party, "_root.char", amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = _root.getSpec(spectype) - 1;
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
if (amount > 0) {
_root.mag.body_txt.text = ((("Increases ally counter damage by " + amount) + " until next turn.") + newline) + newline;
} else {
_root.mag.body_txt.text = "";
}
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("Increases BRUTE animals counter by " + (amount + 1)) + " until next turn.") + newline) + newline);
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
if (amount > 0) {
_root.mag.body_txt.text = ((("Aumenta el contador de animales en " + amount) + " en esta turno.") + newline) + newline;
} else {
_root.mag.body_txt.text = "";
}
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("Aumenta el contador de BRUTO en " + (amount + 1)) + " en esta turno.") + newline) + newline);
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 409 MovieClip in Symbol 441 MovieClip Frame 6
onClipEvent (load) {
lev = 2;
spellname = "DRAIN";
spectype = 1;
amount = ((_root.getSpec(spectype) * 15) + 60) / 100;
amountlimit = 1.5;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_drain(_root.party, "_root.char", amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = ((_root.getSpec(spectype) * 15) + 60) / 100;
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Allies recover " + (amount * 100)) + "% of the damage they deal until next turn.") + newline) + newline;
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Los aliados recuperan el " + (amount * 100)) + "% del da\u00F1o ellos tratan en esta turno.") + newline) + newline;
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 412 MovieClip in Symbol 441 MovieClip Frame 7
onClipEvent (load) {
lev = 2;
spellname = "POWER++";
spectype = 1;
amount = _root.getSpec(spectype) - 1;
amountlimit = 3;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_st(_root.party, "_root.char", amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = _root.getSpec(spectype) - 1;
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
if (amount > 0) {
_root.mag.body_txt.text = ((("Increases ally power by " + amount) + " until next turn.") + newline) + newline;
} else {
_root.mag.body_txt.text = "";
}
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("Increases BRUTE animals power by " + (amount + 1)) + " until next turn.") + newline) + newline);
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
if (amount > 0) {
_root.mag.body_txt.text = ((("Aumenta el poder de animales aliado en " + amount) + " en esta turno.") + newline) + newline;
} else {
_root.mag.body_txt.text = "";
}
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("Aumenta el poder de animales BRUTO en " + (amount + 1)) + " hasta la siguiente turno.") + newline) + newline);
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 415 MovieClip in Symbol 441 MovieClip Frame 8
onClipEvent (load) {
lev = 3;
spellname = "ACTION++";
spectype = 1;
amount = _root.getSpec(spectype);
amountlimit = 4;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_ap(_root.party, "_root.char", amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = _root.getSpec(spectype);
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
if (amount > 0) {
_root.mag.body_txt.text = ((("Non-BRUTE allies gain " + Math.ceil(amount / 2)) + " extra action(s) this turn.") + newline) + newline;
} else {
_root.mag.body_txt.text = "";
}
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("BRUTES gain " + (Math.floor(amount / 2) + 1)) + ".") + newline) + newline);
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
if (amount > 0) {
_root.mag.body_txt.text = ((("No los aliados BRUTOS ganan " + Math.ceil(amount / 2)) + " accion(es) en esta turno.") + newline) + newline;
} else {
_root.mag.body_txt.text = "";
}
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("BRUTOS ganan " + (Math.floor(amount / 2) + 1)) + ".") + newline) + newline);
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 418 MovieClip in Symbol 441 MovieClip Frame 9
onClipEvent (load) {
lev = 1;
spellname = "FLAME";
spectype = 3;
type = "fire";
amount = Math.floor(_root.getSpec(spectype) / 2) + 2;
amountlimit = 6;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_damage(_root.e_party, "_root.enemy", amount, type);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = Math.floor(_root.getSpec(spectype) / 2) + 2;
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Deals " + amount) + " damage to non-FIRE enemies.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + "WATER enemies take more.\r\r";
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Tratos " + amount) + " da\u00F1o no para FUEGO a enemigos.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + "Los enemigos de AGUA toman m\u00E1s.\r\r";
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 421 MovieClip in Symbol 441 MovieClip Frame 10
onClipEvent (load) {
lev = 3;
spellname = "OVERLOAD";
spectype = 3;
amount = 20 - (_root.getSpec(spectype) * 3);
amountlimit = 5;
if (amount < amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_overload(_root.e_party, "_root.enemy", amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = 20 - (_root.getSpec(spectype) * 3);
if (amount < amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Warps the health of FIRE enemies to " + amount) + " or less.") + newline) + newline;
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Deforma la salud de enemigos de FUEGO con " + amount) + " o menos.") + newline) + newline;
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 424 MovieClip in Symbol 441 MovieClip Frame 11
onClipEvent (load) {
lev = 2;
spellname = "MEGAFLAME";
spectype = 3;
type = "fire";
amount = _root.getSpec(spectype) + 5;
amountlimit = 18;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_damage(_root.e_party, "_root.enemy", amount, type);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = _root.getSpec(spectype) + 5;
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Deals " + amount) + " damage to non-FIRE enemies.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + "WATER enemies take more.\r\r";
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Tratos " + amount) + " da\u00F1o no para FUEGO a enemigos.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + "Los enemigos de AGUA toman m\u00E1s.\r\r";
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 427 MovieClip in Symbol 441 MovieClip Frame 12
onClipEvent (load) {
lev = 1;
spellname = "STORM";
spectype = 2;
type = "water";
amount = Math.floor(_root.getSpec(spectype) / 2) + 2;
amountlimit = 5;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_damage(_root.e_party, "_root.enemy", amount, type);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = Math.floor(_root.getSpec(spectype) / 2) + 2;
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Deals " + amount) + " damage to non-WATER enemies.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + "FIRE enemies take more.\r\r";
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Tratos " + amount) + " da\u00F1o no para AGUA a enemigos.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + "Los enemigos de FUEGO toman m\u00E1s.\r\r";
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 430 MovieClip in Symbol 441 MovieClip Frame 13
onClipEvent (load) {
lev = 3;
spellname = "LIFESTREAM";
spectype = 2;
amount = Math.floor(_root.getSpec(spectype) / 2) + 2;
amountlimit = 4;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_lifewell(_root.party, _root.e_party, "_root.char", "_root.enemy", amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = Math.floor(_root.getSpec(spectype) / 2) + 2;
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = "Steal power from WATER enemies to heal your animals.\r\r";
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("Heals " + amount) + " health per WATER enemy.") + newline) + newline);
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = "Robar el poder de enemigos de AGUA para curar a sus animales.\r\r";
_root.mag.body_txt.text = _root.mag.body_txt.text + (((("Cura " + amount) + " salud por enemigo de AGUA.") + newline) + newline);
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 433 MovieClip in Symbol 441 MovieClip Frame 14
onClipEvent (load) {
lev = 2;
spellname = "MEGASTORM";
spectype = 2;
type = "water";
amount = _root.getSpec(spectype) + 5;
amountlimit = 18;
if (amount > amountlimit) {
amount = amountlimit;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_damage(_root.e_party, "_root.enemy", amount, type);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = _root.getSpec(spectype) + 5;
if (amount > amountlimit) {
amount = amountlimit;
}
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Deals " + amount) + " damage to non-WATER enemies.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + "FIRE enemies take more.\r\r";
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Tratos " + amount) + " da\u00F1o no para AGUA a enemigos.") + newline) + newline;
_root.mag.body_txt.text = _root.mag.body_txt.text + "Los enemigos de FUEGO toman m\u00E1s.\r\r";
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 434 MovieClip in Symbol 441 MovieClip Frame 15
onClipEvent (load) {
lev = 1;
spellname = "TIMESTEAL";
spectype = 5;
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_timesteal(_root.party);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = "Your SHADOW animals gain 1 action in exchange for losing 2 remaining turns.\r\r";
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = "Sus animales de SOMBRA ganan 1 acci\u00F3n a cambio de la p\u00E9rdida de 2 vueltas restantes.\r\r";
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 437 MovieClip in Symbol 441 MovieClip Frame 16
onClipEvent (load) {
lev = 2;
spellname = "FLEE";
spectype = 5;
amount = _root.getSpec(spectype) * 4;
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_flee(amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = _root.getSpec(spectype) * 4;
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ((("Heals all of your animals by " + amount) + " points and flees combat.") + newline) + newline;
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ((("Cura a todos sus animales con " + amount) + " puntos y huye el combate.") + newline) + newline;
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 440 MovieClip in Symbol 441 MovieClip Frame 17
onClipEvent (load) {
lev = 3;
spellname = "REVIVE ALL";
spectype = 5;
amount = (_root.getSpec(spectype) * 15) + 10;
if (_root.getSpec(spectype) == 0) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_alpha = 100;
} else {
_alpha = 40;
}
if (_root.getSpec(spectype) == 0) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
if (_root.actionmode == "play") {
_root.spell_raiseall(amount);
_root.p_big_gems = _root.p_big_gems - lev;
_root.p_gems = _root.p_gems - (lev * 100);
if (_root.p_big_gems < lev) {
_parent.ring._visible = false;
}
}
}
}
on (rollOver) {
amount = (_root.getSpec(spectype) * 15) + 10;
if ((_root.p_big_gems >= lev) && (_root.getSpec(spectype) > 0)) {
_parent.ring._visible = true;
}
if (_root.getSpec(spectype) > 0) {
_root.mag.targetx = 536;
_root.mag.name_txt.text = spellname;
_root.mag.body_txt.text = ("Revive ALL snoozing animals with " + amount) + "% health.";
_root.mag.cost_txt.text = "Cost: " + lev;
if (_root.lang == "esp") {
_root.mag.body_txt.text = ("Reanime a TODOS los animales inconscientes con " + amount) + "% salud.";
_root.mag.cost_txt.text = "Coste: " + lev;
}
}
}
on (rollOut) {
_root.mag.targetx = 680;
_parent.ring._visible = false;
_root.stat_txt.text = "";
}
Instance of Symbol 388 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if (_root.actionmode == "play") {
if (_root.p_big_gems > 0) {
if (_root.getSpec(1) > 0) {
this.play();
}
if (_root.getSpec(2) > 0) {
this.play();
}
if (_root.getSpec(3) > 0) {
this.play();
}
if (_root.getSpec(4) > 0) {
this.play();
}
}
}
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (8);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (9);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (11);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (10);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (12);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (14);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (13);
ring._visible = false;
}
Instance of Symbol 441 MovieClip "spell" in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (15);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (16);
ring._visible = false;
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (17);
ring._visible = false;
}
Symbol 451 MovieClip Frame 10
frame = random(5) + 11;
gotoAndPlay(frame);
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 5
onClipEvent (load) {
_x = 0;
_y = 0;
xspeed = random(10) - 5;
yspeed = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe == _totalframes) {
_x = 0;
_y = 0;
xspeed = random(7) - 3;
yspeed = random(7) - 3;
}
}
Symbol 452 MovieClip Frame 15
removeMovieClip(this);
Symbol 452 MovieClip Frame 16
stop();
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 2
stop();
Symbol 464 MovieClip Frame 3
stop();
Symbol 464 MovieClip Frame 4
stop();
Symbol 464 MovieClip Frame 5
stop();
Symbol 464 MovieClip Frame 6
stop();
Symbol 464 MovieClip Frame 7
stop();
Symbol 464 MovieClip Frame 8
stop();
Symbol 464 MovieClip Frame 9
stop();
Instance of Symbol 468 MovieClip in Symbol 478 MovieClip Frame 1
on (rollOver) {
_root.help_box.help_txt.text = _root.terrain + ": ";
switch (_root.terrain_st) {
case 1 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "BRUTE power+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "BRUTO poder+. ";
}
break;
case 2 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "WATER power+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "AGUA poder+. ";
}
break;
case 3 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "FIRE power+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "FUEGO poder+. ";
}
break;
case 4 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "MAGICAL power+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "M\u00C1GICO poder+. ";
}
break;
case 5 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "SHADOW power+. ";
if (_root.lang != "esp") {
break;
}
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "SOMBRA poder+. ";
}
switch (_root.terrain_ap) {
case 1 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "BRUTE actions+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "BRUTO acciones+. ";
}
break;
case 2 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "WATER actions+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "AGUA acciones+. ";
}
break;
case 3 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "FIRE actions+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "FUEGO acciones+. ";
}
break;
case 4 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "MAGICAL actions+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "M\u00C1GICO acciones+. ";
}
break;
case 5 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "SHADOW actions+. ";
if (_root.lang != "esp") {
break;
}
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "SOMBRA acciones+. ";
}
switch (_root.terrain_ct) {
case 1 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "BRUTE counter+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "BRUTO contador+. ";
}
break;
case 2 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "WATER counter+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "AGUA contador+. ";
}
break;
case 3 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "FIRE counter+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "FUEGO contador+. ";
}
break;
case 4 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "MAGICAL counter+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "M\u00C1GICO contador+. ";
}
break;
case 5 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "SHADOW counter+. ";
if (_root.lang != "esp") {
break;
}
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "SOMBRA contador+. ";
}
switch (_root.terrain_mag) {
case 1 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "BRUTE spells+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "BRUTO hechizos+. ";
}
break;
case 2 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "WATER spells+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "AGUA hechizos+. ";
}
break;
case 3 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "FIRE spells+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "FUEGO hechizos+. ";
}
break;
case 4 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "MAGICAL spells+. ";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "M\u00C1GICO hechizos+. ";
}
break;
case 5 :
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "SHADOW spells+. ";
if (_root.lang != "esp") {
break;
}
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "SOMBRA hechizos+. ";
}
if (_root.terrain == "castle") {
_root.help_box.help_txt.text = _root.help_box.help_txt.text + "Los animales enemigos ganan 5 salud. ";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Symbol 478 MovieClip Frame 20
stop();
Symbol 486 MovieClip Frame 10
frame = random(10) + 10;
gotoAndPlay(frame);
Instance of Symbol 486 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
frame = random(_totalframes);
_gotoAndPlay(frame);
}
Instance of Symbol 486 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
frame = random(_totalframes);
_gotoAndPlay(frame);
}
Instance of Symbol 486 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
frame = random(_totalframes);
_gotoAndPlay(frame);
}
Instance of Symbol 486 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
frame = random(_totalframes);
_gotoAndPlay(frame);
}
Instance of Symbol 486 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
frame = random(_totalframes);
_gotoAndPlay(frame);
}
Instance of Symbol 486 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
frame = random(_totalframes);
_gotoAndPlay(frame);
}
Instance of Symbol 486 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
frame = random(_totalframes);
_gotoAndPlay(frame);
}
Symbol 487 MovieClip Frame 30
removeMovieClip(this);
Symbol 487 MovieClip Frame 31
stop();
Symbol 490 MovieClip Frame 2
frame = random(10) + 1;
gotoAndPlay(frame);
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (10);
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (10);
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (10);
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (10);
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Instance of Symbol 489 MovieClip in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 491 MovieClip Frame 15
removeMovieClip(this);
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 15
onClipEvent (load) {
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 15
onClipEvent (load) {
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 15
onClipEvent (load) {
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip Frame 15
onClipEvent (load) {
xhome = 0;
yhome = 0;
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_currentframe < 10) {
_x = xhome;
_y = yhome;
xspeed = random(21) - 10;
yspeed = random(21) - 10;
}
}
Symbol 491 MovieClip Frame 16
stop();
Symbol 492 Button
on (press) {
_root.nextscene = "setup";
_root.actionmode = "next";
}
Symbol 516 MovieClip Frame 30
removeMovieClip(this);
Symbol 516 MovieClip Frame 31
stop();
Instance of Symbol 518 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y - 4);
if (_y < -40) {
_y = (_y + 60);
}
}
Instance of Symbol 518 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y - 4);
if (_y < -40) {
_y = (_y + 60);
}
}
Instance of Symbol 518 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y - 4);
if (_y < -40) {
_y = (_y + 60);
}
}
Symbol 520 MovieClip Frame 15
removeMovieClip(this);
Symbol 520 MovieClip Frame 16
stop();
Symbol 526 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 1
stop();
Instance of Symbol 526 MovieClip "button1" in Symbol 534 MovieClip Frame 1
on (press) {
play();
_root.clear_lights();
_root.switch1 = -1;
_root.endturn();
}
on (rollOver) {
_root.help_box.help_txt.text = "End your turn";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Termine su turno";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 533 MovieClip "button2" in Symbol 534 MovieClip Frame 1
on (press) {
play();
if (_root.actionmode == "play") {
_root.actionmode = "switch";
swap._visible = false;
} else if (_root.actionmode == "switch") {
_root.actionmode = "play";
swap._visible = true;
_root.clear_lights();
_root.switch1 = -1;
}
}
on (rollOver) {
if (_root.actionmode == "switch") {
_root.help_box.help_txt.text = "Continue attacking";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Siga atacando";
}
}
if (_root.actionmode == "play") {
_root.help_box.help_txt.text = "Change animal positions";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Cambie posiciones de animales";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 82 MovieClip "button3" in Symbol 534 MovieClip Frame 1
on (press) {
play();
_root.actionmode = "run";
}
on (rollOver) {
_root.help_box.help_txt.text = "Run away";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Escaparse";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Symbol 535 Button
on (press) {
_root.enemyswitch(1, 4);
}
Symbol 536 Button
on (press) {
_root.p_gems = _root.item_max_spells * 100;
}
Symbol 537 Button
on (press) {
_root.turnlimit = _root.turnlimit + 10;
}
Symbol 538 Button
on (press) {
_root.e_party[0].hp = 0;
_root.e_party[1].hp = 0;
_root.e_party[2].hp = 0;
_root.e_party[3].hp = 0;
_root.e_party[4].hp = 0;
_root.e_party[5].hp = 0;
}
Symbol 542 MovieClip Frame 48
stop();
Symbol 557 Button
on (press) {
_root.level_up();
}
Symbol 563 MovieClip Frame 1
if (_root.lang == "eng") {
stop();
}
Symbol 563 MovieClip Frame 2
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 1
stop();
Instance of Symbol 378 MovieClip "collision2" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
on_now = false;
on_last = false;
}
onClipEvent (enterFrame) {
on_now = this.hitTest(_root._xmouse, _root._ymouse, true);
if ((!on_now) && (on_last)) {
_root.setup_clear_lights();
_root.switch1 = -1;
}
on_last = on_now;
}
Instance of Symbol 82 MovieClip "button3" in Symbol 577 MovieClip Frame 1
on (press) {
play();
_root.actionmode = "next";
_root.setup_clear_lights();
_root.switch1 = -1;
}
on (rollOver) {
_root.help_box.help_txt.text = "Back to the world map.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al mapa mundial.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 572 MovieClip "button4" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
cost = 15;
}
on (press) {
if (_root.switch1 >= 0) {
if (_root.shot > 0) {
if (_root.terrain == "castle") {
dead = 0;
i = 0;
while (i <= 5) {
if (_root.party[i].hp == 0) {
dead++;
_root.spell_shot(i, 2);
}
i++;
}
if (dead == 0) {
_root.fx8.stop("effect8");
_root.fx8.start();
_root.help_box.help_txt.text = "No one needs it.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Nadie lo necesita.";
}
} else {
_root.shot--;
}
} else if (_root.party[_root.switch1].hp == 0) {
play();
_root.spell_shot(_root.switch1, 2);
_root.shot--;
_root.circle4.play();
} else {
_root.fx8.stop("effect8");
_root.fx8.start();
_root.help_box.help_txt.text = "He doesn't need it.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "\u00C9l no lo necesita.";
}
}
} else {
_root.fx8.stop("effect8");
_root.fx8.start();
_root.help_box.help_txt.text = "You don't have enough points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Usted no tiene bastantes puntos.";
}
}
} else if (_root.terrain == "castle") {
i = 0;
while (i <= 5) {
_root.spell_shot(i, 2);
i++;
}
} else {
_root.fx8.stop("effect8");
_root.fx8.start();
_root.help_box.help_txt.text = "First, select an animal.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Primero, seleccione a un animal.";
}
}
}
on (rollOver) {
if (_root.terrain == "castle") {
_root.help_box.help_txt.text = "Revive ALL animals.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Reanime a TODOS los animales.";
}
} else {
_root.help_box.help_txt.text = "Revive selected animal.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Reanime al animal seleccionado.";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 576 MovieClip "button2" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
cost = 5;
}
on (press) {
if (_root.food > 0) {
play();
if (_root.terrain == "castle") {
i = 0;
while (i <= 5) {
_root.feed(i, 30);
i++;
}
} else {
i = 0;
while (i <= 5) {
_root.feed(i, 15);
i++;
}
}
_root.food--;
_root.circle3.play();
} else {
_root.fx8.stop("effect8");
_root.fx8.start();
_root.help_box.help_txt.text = "You don't have enough food.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Usted no tiene bastante comida.";
}
}
}
on (rollOver) {
if (_root.terrain == "castle") {
_root.help_box.help_txt.text = "Feed ALL animals to recover some HP.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Alimente a TODOS los animales para recuperar alg\u00FAn HP.";
}
} else {
_root.help_box.help_txt.text = "Feed ALL animal to recover more HP.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Alimente a TODOS los animales para recuperar m\u00E1s HP.";
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 98 MovieClip "button1" in Symbol 577 MovieClip Frame 1
on (press) {
if (_root.randomlimit > 0) {
if (_root.switch1 >= 0) {
_root.circle.play();
play();
_root.randomize_limited(_root.switch1);
_root.randomlimit--;
} else {
_root.help_box.help_txt.text = "First, select an animal.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Primero, seleccione a un animal.";
}
}
} else {
_root.help_box.help_txt.text = "You don't have enough randomizers.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Usted no tiene bastante randomizers.";
}
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Randomize selected animal";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aleatorice al animal seleccionado.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 584 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_autoheal == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Animals recover more health after combat.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Los animales recuperan m\u00E1s salud despu\u00E9s del combate.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 587 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_max_spells == 3) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Maximum spell level increases.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumentos de nivel de hechizo m\u00E1ximos.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 590 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_magicstart == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Start combat with more magic power.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Comience el combate con m\u00E1s poder m\u00E1gico.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 593 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_brute_plus == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "BRUTE spells gain power.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente poder de hechizo BRUTO.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 596 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_fire_plus == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "FIRE spells gain power.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente poder de hechizo FUEGO.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 599 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_mag_plus == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "MAGICAL spells gain power.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente poder de hechizo M\u00C1GICO.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 602 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_water_plus == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "WATER spells gain power.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente poder de hechizo AGUA.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 605 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_brute_pw == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "BRUTE animals gain power.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente poder de animales de BRUTO.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 608 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_fire_ct == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "FIRE animals gain counter.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente contador de animales de FUEGO.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 611 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_mag_ac == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "MAGICAL animals gain an extra action.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente acciones de animales de M\u00C1GICO.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 614 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_water_hp == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "WATER animals gain health.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente salud de animales de AGUA.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 617 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
if (_root.item_heart == 0) {
_visible = false;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Animals' HP is boosted by 5.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Aumente salud de animales.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 2
stop();
Symbol 633 MovieClip Frame 3
stop();
Symbol 634 MovieClip Frame 1
stop();
Instance of Symbol 621 MovieClip in Symbol 634 MovieClip Frame 1
onClipEvent (load) {
_parent.itemobj.gotoAndStop(_parent.item);
_parent.highlight._visible = false;
_parent.cost_txt._visible = false;
if (_parent.item > 0) {
_parent._visible = true;
} else {
_parent._visible = false;
}
switch (_parent.item) {
case 1 :
cost = 5;
break;
case 2 :
cost = 5;
break;
case 3 :
cost = 10;
break;
case 4 :
cost = 200;
if (_root.item_autoheal > 0) {
_parent._visible = false;
}
break;
case 5 :
cost = 200;
if (_root.item_magicstart > 0) {
_parent._visible = false;
}
break;
case 6 :
cost = 100;
if (_root.item_max_spells > 3) {
_parent._visible = false;
}
break;
case 7 :
cost = 100;
if (_root.item_brute_plus > 0) {
_parent._visible = false;
}
break;
case 8 :
cost = 100;
if (_root.item_fire_plus > 0) {
_parent._visible = false;
}
break;
case 9 :
cost = 100;
if (_root.item_mag_plus > 0) {
_parent._visible = false;
}
break;
case 10 :
cost = 100;
if (_root.item_water_plus > 0) {
_parent._visible = false;
}
break;
case 11 :
cost = 150;
if (_root.item_brute_pw > 0) {
_parent._visible = false;
}
break;
case 12 :
cost = 150;
if (_root.item_fire_ct > 0) {
_parent._visible = false;
}
break;
case 13 :
cost = 150;
if (_root.item_mag_ac > 0) {
_parent._visible = false;
}
break;
case 14 :
cost = 150;
if (_root.item_water_hp > 0) {
_parent._visible = false;
}
break;
case 15 :
cost = 100;
if (_root.item_heart <= 0) {
break;
}
_parent._visible = false;
}
_parent.cost_txt.text = cost;
}
on (rollOver) {
_parent.highlight._visible = true;
_parent.cost_txt._visible = true;
switch (_parent.item) {
case 1 :
_root.help_box.help_txt.text = ("Buy 10 randomizers. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Compra 10 randomizers. Coste: " + cost) + " puntos.";
}
break;
case 2 :
_root.help_box.help_txt.text = ("Buy 1 food. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Compra 1 comida. Coste: " + cost) + " puntos.";
}
break;
case 3 :
_root.help_box.help_txt.text = ("Buy 1 reviver. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Compra 1 reviver. Coste: " + cost) + " puntos.";
}
break;
case 4 :
_root.help_box.help_txt.text = ("Increase auto-heal after combat. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumento se autocura despu\u00E9s del combate. Coste: " + cost) + " puntos.";
}
break;
case 5 :
_root.help_box.help_txt.text = ("Start combat with more magic power. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Comience el combate con m\u00E1s poder m\u00E1gico. Coste: " + cost) + " puntos.";
}
break;
case 6 :
_root.help_box.help_txt.text = ("Increase maximum magic level. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente el nivel m\u00E1gico m\u00E1ximo. Coste: " + cost) + " puntos.";
}
break;
case 7 :
_root.help_box.help_txt.text = ("Increase BRUTE spell power. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente poder de hechizo BRUTO. Coste: " + cost) + " puntos.";
}
break;
case 8 :
_root.help_box.help_txt.text = ("Increase FIRE spell power. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente poder de hechizo FUEGO. Coste: " + cost) + " puntos.";
}
break;
case 9 :
_root.help_box.help_txt.text = ("Increase MAGICAL spell power. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente poder de hechizo M\u00C1GICO. Coste: " + cost) + " puntos.";
}
break;
case 10 :
_root.help_box.help_txt.text = ("Increase WATER spell power. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente poder de hechizo AGUA. Coste: " + cost) + " puntos.";
}
break;
case 11 :
_root.help_box.help_txt.text = ("Increase power for BRUTE animals. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente poder de animales de BRUTO. Coste: " + cost) + " puntos.";
}
break;
case 12 :
_root.help_box.help_txt.text = ("Increase counter for FIRE animals. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente contador de animales de FUEGO. Coste: " + cost) + " puntos.";
}
break;
case 13 :
_root.help_box.help_txt.text = ("Increase actions for MAGIC animals. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente acciones de animales de M\u00C1GICO. Coste: " + cost) + " puntos.";
}
break;
case 14 :
_root.help_box.help_txt.text = ("Increase health for WATER animals. Cost: " + cost) + " points.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = ("Aumente salud de animales de AGUA. Coste: " + cost) + " puntos.";
}
break;
case 15 :
_root.help_box.help_txt.text = ("Boost HP for all your animals. Cost: " + cost) + " points.";
if (_root.lang != "esp") {
break;
}
_root.help_box.help_txt.text = ("Aumente salud de todo su animales. Coste: " + cost) + " puntos.";
}
}
on (rollOut) {
_parent.highlight._visible = false;
_parent.cost_txt._visible = false;
_root.help_box.help_txt.text = "";
}
on (press) {
if (_root.reward >= cost) {
_root.reward = _root.reward - cost;
_root.circle2.play();
_root.fx9.stop("effect9");
_root.fx9.start();
play();
switch (_parent.item) {
case 1 :
_root.randomlimit = _root.randomlimit + 10;
_root.circle.play();
if (_root.randomlimit > 30) {
_root.randomlimit = 30;
_root.reward = _root.reward + cost;
_root.help_box.help_txt.text = "You can't carry any more.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Usted no puede llevar m\u00E1s.";
}
}
break;
case 2 :
_root.food++;
_root.circle3.play();
if (_root.food > 30) {
_root.food = 30;
_root.reward = _root.reward + cost;
_root.help_box.help_txt.text = "You can't carry any more.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Usted no puede llevar m\u00E1s.";
}
}
break;
case 3 :
_root.shot++;
_root.circle4.play();
if (_root.shot > 30) {
_root.shot = 30;
_root.reward = _root.reward + cost;
_root.help_box.help_txt.text = "You can't carry any more.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Usted no puede llevar m\u00E1s.";
}
}
break;
case 4 :
_root.item_autoheal = 10;
_parent._visible = false;
break;
case 5 :
_root.item_magicstart = 50;
_parent._visible = false;
break;
case 6 :
_root.item_max_spells = 6;
_parent._visible = false;
break;
case 7 :
_root.item_brute_plus = 2;
_parent._visible = false;
break;
case 8 :
_root.item_fire_plus = 2;
_parent._visible = false;
break;
case 9 :
_root.item_mag_plus = 2;
_parent._visible = false;
break;
case 10 :
_root.item_water_plus = 2;
_parent._visible = false;
break;
case 11 :
_root.item_brute_pw = 2;
_parent._visible = false;
_root.item_st_adjust();
break;
case 12 :
_root.item_fire_ct = 2;
_parent._visible = false;
_root.item_ct_adjust();
break;
case 13 :
_root.item_mag_ac = 1;
_parent._visible = false;
_root.item_ac_adjust();
break;
case 14 :
_root.item_water_hp = 5;
_parent._visible = false;
_root.item_hp_adjust();
break;
case 15 :
_root.item_heart = 5;
_parent._visible = false;
_root.item_heart_adjust();
}
} else {
_root.help_box.help_txt.text = "You can't afford that.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Usted no puede permitirse esto.";
}
}
}
Instance of Symbol 378 MovieClip "collision2" in Symbol 635 MovieClip Frame 1
onClipEvent (load) {
on_now = false;
on_last = false;
}
onClipEvent (enterFrame) {
on_now = this.hitTest(_root._xmouse, _root._ymouse, true);
if ((!on_now) && (on_last)) {
_root.setup_clear_lights();
_root.switch1 = -1;
}
on_last = on_now;
}
Instance of Symbol 82 MovieClip "button3" in Symbol 635 MovieClip Frame 1
on (press) {
play();
_root.actionmode = "next";
_root.setup_clear_lights();
_root.switch1 = -1;
}
on (rollOver) {
_root.help_box.help_txt.text = "Back to the world map.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al mapa mundial.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Symbol 639 Button
on (press) {
_root.tracesavedata();
}
Instance of Symbol 655 MovieClip "grid" in Symbol 656 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.map[_parent.num] == 0) {
gotoAndStop (1);
}
if (_parent.map[_parent.num] > 0) {
gotoAndStop (2);
}
if (_parent.map[_parent.num] >= 100) {
gotoAndStop (3);
}
if (_parent.map[_parent.num] >= 150) {
gotoAndStop (5);
}
if (_parent.map[_parent.num] >= 151) {
gotoAndStop (6);
}
if (_parent.map[_parent.num] == 200) {
gotoAndStop (4);
}
if (_root.hero_pos == _parent.num) {
_root.terrain = _parent.terrain;
if (_root.actionmode == "move") {
if (_parent.map[_parent.num] == 1) {
if (!Key.isDown(38)) {
_root.create_e_party_random();
_root.actionmode = "next";
_root.nextscene = "main";
}
}
if (_parent.map[_parent.num] == 10) {
if (!Key.isDown(38)) {
_root.create_e_party_control(_parent.enemyarray, _parent.level);
_root.actionmode = "next";
_root.nextscene = "main";
}
}
if (_parent.map[_parent.num] == 100) {
_root.victory = true;
_root.item1 = _parent.item1;
_root.item2 = _parent.item2;
_root.item3 = _parent.item3;
_root.hero_lastpos = _parent.num;
}
if (_parent.map[_parent.num] == 150) {
_root.victory = true;
_root.item1 = _parent.item1;
_root.item2 = _parent.item2;
_root.item3 = _parent.item3;
_root.hero_lastpos = _parent.num;
}
if (_parent.map[_parent.num] == 151) {
_root.victory = true;
_root.item1 = 0;
_root.item2 = 0;
_root.item3 = 0;
_root.hero_lastpos = _parent.num;
}
if (_parent.map[_parent.num] == 200) {
_root.victory = true;
_root.destination = _parent.destination;
_root.dest_pos = _parent.dest_pos;
_root.hero_lastpos = _parent.num;
}
}
}
}
on (press) {
if (_root.actionmode == "move") {
if (_parent.num == _root.hero_pos) {
if (_parent.map[_parent.num] == 200) {
_root.actionmode = "next";
_root.nextscene = _root.destination;
_root.hero_pos = _root.dest_pos;
_root.randomlimit = 0;
_root.music_offset = 0;
}
if (_parent.map[_parent.num] == 100) {
_root.shop = true;
_root.actionmode = "next";
_root.nextscene = "upgrade";
}
if (_parent.map[_parent.num] == 150) {
_root.shop = true;
_root.actionmode = "next";
_root.nextscene = "upgrade";
}
if (_parent.map[_parent.num] == 151) {
_root.actionmode = "next";
_root.item1 = 0;
_root.item2 = 0;
_root.item3 = 0;
_root.nextscene = "upgrade";
}
if (_parent.map[_parent.num] == 0) {
_root.actionmode = "next";
_root.item1 = 0;
_root.item2 = 0;
_root.item3 = 0;
_root.nextscene = "upgrade";
}
} else {
legal = false;
i = 0;
while (i <= 3) {
if (_parent.connected[i] == _root.hero_pos) {
legal = true;
}
i++;
}
if (legal) {
_root.actionmode = "moving";
_root.hero_pos = _parent.num;
_root.hero.targetx = _parent._x;
_root.hero.targety = _parent._y;
}
}
}
}
on (rollOver) {
if (_root.actionmode == "move") {
if (_parent.num == _root.hero_pos) {
if (_parent.map[_parent.num] == 200) {
_root.help_box.help_txt.text = "Go to the next area.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vaya a la otra \u00E1rea";
}
}
if (_parent.map[_parent.num] == 100) {
_root.help_box.help_txt.text = "Shop.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Tienda";
}
}
if (_parent.map[_parent.num] == 150) {
_root.help_box.help_txt.text = "Shop.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Tienda";
}
}
if (_parent.map[_parent.num] == 0) {
_root.help_box.help_txt.text = "Camp.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Campo";
}
}
}
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 393 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Symbol 672 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 1
stop();
Instance of Symbol 82 MovieClip "button3" in Symbol 681 MovieClip Frame 1
on (press) {
if (_root.actionmode == "move") {
play();
_root.actionmode = "next";
_root.nextscene = _root.destination;
_root.hero_pos = _root.dest_pos;
_root.randomlimit = 0;
_root.music_offset = 0;
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Go to the next area.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vaya a la otra \u00E1rea";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 672 MovieClip "button1" in Symbol 681 MovieClip Frame 1
on (press) {
if (_root.actionmode == "move") {
play();
_root.shop = true;
_root.actionmode = "next";
_root.nextscene = "upgrade";
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Shop";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Tienda";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 676 MovieClip "button2" in Symbol 681 MovieClip Frame 1
on (press) {
if (_root.actionmode == "move") {
play();
_root.actionmode = "next";
_root.item1 = 0;
_root.item2 = 0;
_root.item3 = 0;
_root.nextscene = "upgrade";
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Camp";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Campo";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 680 MovieClip "button4" in Symbol 681 MovieClip Frame 1
on (press) {
if (_root.actionmode == "move") {
play();
_root.help_box.help_txt.text = "";
_root.actionmode = "save";
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Save game";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Guardar el juego";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Instance of Symbol 206 MovieClip in Symbol 686 MovieClip Frame 1
on (press) {
if (Key.isDown(16)) {
_root.deletedata(1);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
} else {
if (_root.finished) {
star._visible = true;
} else {
star._visible = false;
}
castles.gotoAndStop(_root.castles_beaten() + 1);
play();
_root.savegame(1);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
i++;
}
}
}
onClipEvent (load) {
star._visible = false;
castles._visible = false;
savedata = SharedObject.getLocal("animal1");
if (savedata.data.checkdata) {
if (savedata.data.finished) {
star._visible = true;
} else {
star._visible = false;
}
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
castles.gotoAndStop(savedata.data.castles + 1);
i++;
}
} else {
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Shift + Click to delete data.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Shift + Click para borrar datos";
}
castles._visible = true;
}
on (rollOut) {
_root.help_box.help_txt.text = "";
castles._visible = false;
}
Instance of Symbol 206 MovieClip in Symbol 686 MovieClip Frame 1
on (press) {
if (Key.isDown(16)) {
_root.deletedata(2);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
} else {
if (_root.finished) {
star._visible = true;
} else {
star._visible = false;
}
castles.gotoAndStop(_root.castles_beaten() + 1);
play();
_root.savegame(2);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
i++;
}
}
}
onClipEvent (load) {
star._visible = false;
castles._visible = false;
savedata = SharedObject.getLocal("animal2");
if (savedata.data.checkdata) {
if (savedata.data.finished) {
star._visible = true;
} else {
star._visible = false;
}
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
castles.gotoAndStop(savedata.data.castles + 1);
i++;
}
} else {
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Shift + Click to delete data.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Shift + Click para borrar datos";
}
castles._visible = true;
}
on (rollOut) {
_root.help_box.help_txt.text = "";
castles._visible = false;
}
Instance of Symbol 206 MovieClip in Symbol 686 MovieClip Frame 1
on (press) {
if (Key.isDown(16)) {
_root.deletedata(3);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
} else {
if (_root.finished) {
star._visible = true;
} else {
star._visible = false;
}
castles.gotoAndStop(_root.castles_beaten() + 1);
play();
_root.savegame(3);
_root.fx9.stop("effect9");
_root.fx9.start();
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
i++;
}
}
}
onClipEvent (load) {
star._visible = false;
castles._visible = false;
savedata = SharedObject.getLocal("animal3");
if (savedata.data.checkdata) {
if (savedata.data.finished) {
star._visible = true;
} else {
star._visible = false;
}
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = true;
frame = savedata.data.party[i].card;
image.gotoAndStop(frame);
castles.gotoAndStop(savedata.data.castles + 1);
i++;
}
} else {
i = 0;
while (i <= 5) {
image = eval ("button_int.face" + i);
image._visible = false;
i++;
}
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Shift + Click to delete data.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Shift + Click para borrar datos";
}
castles._visible = true;
}
on (rollOut) {
_root.help_box.help_txt.text = "";
castles._visible = false;
}
Instance of Symbol 82 MovieClip "button3" in Symbol 686 MovieClip Frame 1
on (press) {
if (_root.actionmode == "save") {
play();
_root.help_box.help_txt.text = "";
_root.actionmode = "move";
}
}
on (rollOver) {
_root.help_box.help_txt.text = "Back to the game.";
if (_root.lang == "esp") {
_root.help_box.help_txt.text = "Vuelva al Juego.";
}
}
on (rollOut) {
_root.help_box.help_txt.text = "";
}
Symbol 711 Button
on (press) {
trace(_root.hero_pos);
}
Symbol 718 MovieClip Frame 47
stop();
Instance of Symbol 52 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
speed = (random(2) / 4) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 4) + 0.2;
}
}
Instance of Symbol 54 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
speed = (random(2) / 4) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 4) + 0.2;
}
}
Instance of Symbol 56 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
speed = (random(2) / 4) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 4) + 0.2;
}
}
Instance of Symbol 58 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
speed = (random(2) / 4) + 0.2;
}
onClipEvent (enterFrame) {
_x = (_x - speed);
if (_x < -100) {
_x = 700;
speed = (random(2) / 4) + 0.2;
}
}
Symbol 736 MovieClip Frame 650
stop();