Frame 1
stop();
Frame 2
function isLock() {
var _local2 = _root._url.split("/")[2].split(".");
if ((_local2[_local2.length - 1] == "com") && (_local2[_local2.length - 2] == "box10")) {
return(false);
}
return(true);
}
stop();
fscommand ("showmenu", false);
Instance of Symbol 272 MovieClip in Frame 2
onClipEvent (load) {
this._visible = false;
}
Frame 10
stop();
main = new Sound();
main.attachSound("main");
main.start(0, 999);
main.setVolume(30);
gold = 120;
gold_en = 120;
normal_diff = false;
easy_diff = false;
hard_diff = false;
base_health = 1000;
en_base_health = 1000;
victory = false;
lose = false;
_root.onEnterFrame = function () {
routine = 0;
};
Frame 11
function create_unit_lr_en3() {
_root.unit_row_lr_en = _root.unit_row_lr_en + 1;
_root.unit_number_lr_en = _root.unit_number_lr_en + 1;
_root.unit_place_en = _root.unit_place_en + 1;
unit_created = attachMovie("unit6", "unit_lr_en_" + unit_row_lr_en, getNextHighestDepth(), {_x:577, _y:315 + (5 * _root.unit_place_en), _xscale:50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.charge = false;
unit_created.unit_health = 10;
unit_created.base_unit_health = 10;
unit_created.y_musuh = 0;
unit_created.the_row = _root.unit_row_en;
unit_created.current_unit = unit_row_en - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
this.dist = 577 - _root["unit_" + _root.front_unit_row]._x;
this.dist2 = this._x - _root["unit_" + _root.front_unit_row]._x;
this.dist3 = (this._x - _root.base._x) - 140;
this.dist4 = this._x - _root["unit_lr_" + _root.front_unit_row_lr]._x;
this.dist5 = 577 - _root["unit_lr_" + _root.front_unit_row_lr]._x;
this.y_musuh_lr = _root["unit_lr_" + _root.front_unit_row_lr]._y;
this.y_musuh = _root["unit_" + _root.front_unit_row]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat_en = false;
}
if (_root.charge_en == true) {
this.charge = true;
}
if (this.charge == true) {
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 2;
gunman_en = false;
} else {
gunman_en = true;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base) && (jumlah_unit == 0)) && (!game_paused)) {
base_health = base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_" + _root.front_unit_row])) {
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - 7;
}
if (this.punch_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr])) {
_root["unit_lr_" + _root.front_unit_row_lr].unit_health = _root["unit_lr_" + _root.front_unit_row_lr].unit_health - 7;
}
if ((((this.dist2 < 140) or (this.dist3 < 70)) or (this.dist4 < 140)) or (this.dist5 < 140)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if ((_root.retreat_en == true) && (this._x < 545)) {
this.charge = false;
this._xscale = -50;
this._x = this._x + _root.speed;
if (this._y < _root.base_en._y) {
this._y = this._y + _root.speed;
}
}
if ((this._y > _root["unit_" + _root.front_unit_row]._y) or (unit_number == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y > _root["unit_lr_" + _root.front_unit_row_lr]._y) or (unit_number_lr == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 10) * 100));
if (this.health_bar.hitTest(_root["unit_en_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x - _root.speed;
if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter == false)) && (this._y > this.y_musuh_lr)) && (unit_number > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter_lr == false)) && (unit_number == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter_lr == false)) && (this._y > this.y_musuh)) && (unit_number_lr > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (unit_number == 0)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
}
}
if (((this._x >= 545) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = 50;
} else {
this.moving = true;
}
if ((_root["unit_lr_en_" + _root.front_unit_row_lr_en].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_lr_en2() {
_root.unit_row_lr_en = _root.unit_row_lr_en + 1;
_root.unit_number_lr_en = _root.unit_number_lr_en + 1;
_root.unit_place_en = _root.unit_place_en + 1;
unit_created = attachMovie("unit_lr2", "unit_lr_en_" + unit_row_lr_en, getNextHighestDepth(), {_x:577, _y:315 + (5 * _root.unit_place_en), _xscale:50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.charge = false;
unit_created.unit_health = 10;
unit_created.base_unit_health = 10;
unit_created.y_musuh = 0;
unit_created.the_row = _root.unit_row_en;
unit_created.current_unit = unit_row_en - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = 577 - _root["unit_" + _root.front_unit_row]._x;
this.dist2 = this._x - _root["unit_" + _root.front_unit_row]._x;
this.dist3 = (this._x - _root.base._x) - 140;
this.dist4 = this._x - _root["unit_lr_" + _root.front_unit_row_lr]._x;
this.dist5 = 577 - _root["unit_lr_" + _root.front_unit_row_lr]._x;
this.y_musuh_lr = _root["unit_lr_" + _root.front_unit_row_lr]._y;
this.y_musuh = _root["unit_" + _root.front_unit_row]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat_en = false;
}
if (_root.charge_en == true) {
this.charge = true;
}
if (this.charge == true) {
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 2;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if (this.punch_sensor.hitTest(_root.base) && (!game_paused)) {
base_health = base_health - 5;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_" + _root.front_unit_row])) {
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - (random(4) + 1);
}
if (this.punch_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr])) {
_root["unit_lr_" + _root.front_unit_row_lr].unit_health = _root["unit_lr_" + _root.front_unit_row_lr].unit_health - (random(4) + 1);
}
if ((((this.dist2 < 140) or (this.dist3 < 70)) or (this.dist4 < 140)) or (this.dist5 < 140)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if ((_root.retreat_en == true) && (this._x < 545)) {
this.charge = false;
this._xscale = -50;
this._x = this._x + _root.speed;
if (this._y < _root.base_en._y) {
this._y = this._y + _root.speed;
}
}
if ((this._y > _root["unit_" + _root.front_unit_row]._y) or (unit_number == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y > _root["unit_lr_" + _root.front_unit_row_lr]._y) or (unit_number_lr == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 10) * 100));
if (this.health_bar.hitTest(_root["unit_en_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x - _root.speed;
if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter == false)) && (this._y > this.y_musuh_lr)) && (unit_number > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter_lr == false)) && (unit_number == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter_lr == false)) && (this._y > this.y_musuh)) && (unit_number_lr > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (unit_number == 0)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
}
}
if (((this._x >= 545) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = 50;
} else {
this.moving = true;
}
if ((_root["unit_lr_en_" + _root.front_unit_row_lr_en].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_en4() {
_root.unit_row_en = _root.unit_row_en + 1;
_root.unit_number_en = _root.unit_number_en + 1;
_root.unit_place_en = _root.unit_place_en + 1;
unit_created = attachMovie("unit8", "unit_en_" + unit_row_en, getNextHighestDepth(), {_x:577, _y:315 + (5 * _root.unit_place_en), _xscale:50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.charge = false;
unit_created.unit_health = 40;
unit_created.base_unit_health = 40;
unit_created.y_musuh = 0;
unit_created.dead_side = 2;
unit_created.the_row = _root.unit_row_en;
unit_created.current_unit = unit_row_en - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
this.dist = 545 - _root["unit_" + _root.front_unit_row]._x;
this.y_musuh_lr = _root["unit_lr_" + _root.front_unit_row_lr]._y;
this.y_musuh = _root["unit_" + _root.front_unit_row]._y;
if (this.dist < 50) {
this.charge = true;
_root.retreat_en = false;
}
if (_root.charge_en == true) {
this.charge = true;
}
if (this.charge == true) {
this.moving = true;
} else {
this.moving = false;
}
if (this._x < 0) {
_root.health = _root.health - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
removeMovieClip(this);
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 2;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base) && (jumlah_unit == 0)) && (!game_paused)) {
base_health = base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_" + _root.front_unit_row])) {
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - 10;
}
if (this.punch_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr].front_sensor)) {
_root["unit_lr_" + _root.front_unit_row_lr].unit_health = _root["unit_lr_" + _root.front_unit_row_lr].unit_health - 10;
}
if (this.front_sensor.hitTest(_root["unit_" + _root.front_unit_row]) or this.hitTest(_root.base)) {
this.moving = false;
this.attack = true;
} else if (this.front_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr].front_sensor)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if ((_root.retreat_en == true) && (this._x < 545)) {
this.charge = false;
this._xscale = -50;
this._x = this._x + _root.speed;
if (this._y < _root.base_en._y) {
this._y = this._y + _root.speed;
}
}
if ((this._y > _root["unit_" + _root.front_unit_row]._y) or (unit_number == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y > _root["unit_lr_" + _root.front_unit_row_lr]._y) or (unit_number_lr == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 30) * 100));
if (this.health_bar.hitTest(_root["unit_en_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x - _root.speed;
if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter == false)) && (this._y > this.y_musuh_lr)) && (unit_number > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter_lr == false)) && (unit_number == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter_lr == false)) && (this._y > this.y_musuh)) && (unit_number_lr > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (unit_number == 0)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
}
}
if (((this._x >= 545) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = 50;
} else {
this.moving = true;
}
if ((_root["unit_en_" + _root.front_unit_row_en].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_en3() {
_root.unit_row_en = _root.unit_row_en + 1;
_root.unit_number_en = _root.unit_number_en + 1;
_root.unit_place_en = _root.unit_place_en + 1;
unit_created = attachMovie("unit7", "unit_en_" + unit_row_en, getNextHighestDepth(), {_x:577, _y:315 + (5 * _root.unit_place_en), _xscale:50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.charge = false;
unit_created.unit_health = 40;
unit_created.base_unit_health = 40;
unit_created.y_musuh = 0;
unit_created.dead_side = 2;
unit_created.the_row = _root.unit_row_en;
unit_created.current_unit = unit_row_en - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = 545 - _root["unit_" + _root.front_unit_row]._x;
this.y_musuh_lr = _root["unit_lr_" + _root.front_unit_row_lr]._y;
this.y_musuh = _root["unit_" + _root.front_unit_row]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat_en = false;
}
if (_root.charge_en == true) {
this.charge = true;
}
if (this.charge == true) {
this.moving = true;
} else {
this.moving = false;
}
if (this._x < 0) {
_root.health = _root.health - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
removeMovieClip(this);
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 2;
captain_en = false;
} else {
captain_en = true;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base) && (jumlah_unit == 0)) && (!game_paused)) {
base_health = base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_" + _root.front_unit_row])) {
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - 7;
}
if (this.punch_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr].front_sensor)) {
_root["unit_lr_" + _root.front_unit_row_lr].unit_health = _root["unit_lr_" + _root.front_unit_row_lr].unit_health - 7;
}
if (this.front_sensor.hitTest(_root["unit_" + _root.front_unit_row]) or this.hitTest(_root.base)) {
this.moving = false;
this.attack = true;
} else if (this.front_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr].front_sensor)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if ((_root.retreat_en == true) && (this._x < 545)) {
this.charge = false;
this._xscale = -50;
this._x = this._x + _root.speed;
if (this._y < _root.base_en._y) {
this._y = this._y + _root.speed;
}
}
if ((this._y > _root["unit_" + _root.front_unit_row]._y) or (unit_number == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y > _root["unit_lr_" + _root.front_unit_row_lr]._y) or (unit_number_lr == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 30) * 100));
if (this.health_bar.hitTest(_root["unit_en_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x - _root.speed;
if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter == false)) && (this._y > this.y_musuh_lr)) && (unit_number > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter_lr == false)) && (unit_number == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter_lr == false)) && (this._y > this.y_musuh)) && (unit_number_lr > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (unit_number == 0)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
}
}
if (((this._x >= 545) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = 50;
} else {
this.moving = true;
}
if ((_root["unit_en_" + _root.front_unit_row_en].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_en2() {
_root.unit_row_en = _root.unit_row_en + 1;
_root.unit_number_en = _root.unit_number_en + 1;
_root.unit_place_en = _root.unit_place_en + 1;
unit_created = attachMovie("unit5", "unit_en_" + unit_row_en, getNextHighestDepth(), {_x:577, _y:315 + (5 * _root.unit_place_en), _xscale:50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.charge = false;
unit_created.unit_health = 30;
unit_created.base_unit_health = 30;
unit_created.y_musuh = 0;
unit_created.dead_side = 2;
unit_created.the_row = _root.unit_row_en;
unit_created.current_unit = unit_row_en - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = 545 - _root["unit_" + _root.front_unit_row]._x;
this.y_musuh_lr = _root["unit_lr_" + _root.front_unit_row_lr]._y;
this.y_musuh = _root["unit_" + _root.front_unit_row]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat_en = false;
}
if (_root.charge_en == true) {
this.charge = true;
}
if (this.charge == true) {
this.moving = true;
} else {
this.moving = false;
}
if (this._x < 0) {
_root.health = _root.health - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
removeMovieClip(this);
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 2;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base) && (jumlah_unit == 0)) && (!game_paused)) {
base_health = base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_" + _root.front_unit_row])) {
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - (random(4) + unit2_en_damage);
}
if (this.punch_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr].front_sensor)) {
_root["unit_lr_" + _root.front_unit_row_lr].unit_health = _root["unit_lr_" + _root.front_unit_row_lr].unit_health - (random(4) + unit2_en_damage);
}
if (this.front_sensor.hitTest(_root["unit_" + _root.front_unit_row]) or this.hitTest(_root.base)) {
this.moving = false;
this.attack = true;
} else if (this.front_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr].front_sensor)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if ((_root.retreat_en == true) && (this._x < 545)) {
this.charge = false;
this._xscale = -50;
this._x = this._x + _root.speed;
if (this._y < _root.base_en._y) {
this._y = this._y + _root.speed;
}
}
if ((this._y > _root["unit_" + _root.front_unit_row]._y) or (unit_number == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y > _root["unit_lr_" + _root.front_unit_row_lr]._y) or (unit_number_lr == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 30) * 100));
if (this.health_bar.hitTest(_root["unit_en_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x - _root.speed;
if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter == false)) && (this._y > this.y_musuh_lr)) && (unit_number > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter_lr == false)) && (unit_number == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter_lr == false)) && (this._y > this.y_musuh)) && (unit_number_lr > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (unit_number == 0)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
}
}
if (((this._x >= 545) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = 50;
} else {
this.moving = true;
}
if ((_root["unit_en_" + _root.front_unit_row_en].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_en() {
_root.unit_row_en = _root.unit_row_en + 1;
_root.unit_number_en = _root.unit_number_en + 1;
_root.unit_place_en = _root.unit_place_en + 1;
unit_created = attachMovie("unit", "unit_en_" + unit_row_en, getNextHighestDepth(), {_x:577, _y:315 + (5 * _root.unit_place_en), _xscale:50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.charge = false;
unit_created.unit_health = 30;
unit_created.base_unit_health = 30;
unit_created.y_musuh = 0;
unit_created.dead_side = 2;
unit_created.the_row = _root.unit_row_en;
unit_created.current_unit = unit_row_en - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = 545 - _root["unit_" + _root.front_unit_row]._x;
this.y_musuh_lr = _root["unit_lr_" + _root.front_unit_row_lr]._y;
this.y_musuh = _root["unit_" + _root.front_unit_row]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat_en = false;
}
if (_root.charge_en == true) {
this.charge = true;
}
if (this.charge == true) {
this.moving = true;
} else {
this.moving = false;
}
if (this._x < 0) {
_root.health = _root.health - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
removeMovieClip(this);
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 2;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base) && (jumlah_unit == 0)) && (!game_paused)) {
base_health = base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_" + _root.front_unit_row])) {
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - (random(2) + unit_en_damage);
}
if (this.punch_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr].front_sensor)) {
_root["unit_lr_" + _root.front_unit_row_lr].unit_health = _root["unit_lr_" + _root.front_unit_row_lr].unit_health - (random(2) + unit_en_damage);
}
if (this.front_sensor.hitTest(_root["unit_" + _root.front_unit_row]) or this.hitTest(_root.base)) {
this.moving = false;
this.attack = true;
} else if (this.front_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr].front_sensor)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if ((_root.retreat_en == true) && (this._x < 545)) {
this.charge = false;
this._xscale = -50;
this._x = this._x + _root.speed;
if (this._y < _root.base_en._y) {
this._y = this._y + _root.speed;
}
}
if ((this._y > _root["unit_" + _root.front_unit_row]._y) or (unit_number == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y > _root["unit_lr_" + _root.front_unit_row_lr]._y) or (unit_number_lr == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 30) * 100));
if (this.health_bar.hitTest(_root["unit_en_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x - _root.speed;
if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter == false)) && (this._y > this.y_musuh_lr)) && (unit_number > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter_lr == false)) && (unit_number == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter_lr == false)) && (this._y > this.y_musuh)) && (unit_number_lr > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (unit_number == 0)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
}
}
if (((this._x >= 545) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = 50;
} else {
this.moving = true;
}
if ((_root["unit_en_" + _root.front_unit_row_en].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit4() {
_root.unit_place = _root.unit_place + 1;
_root.unit_row = _root.unit_row + 1;
_root.unit_number = _root.unit_number + 1;
unit_created = attachMovie("unit8", "unit_" + unit_row, getNextHighestDepth(), {_x:230, _y:105 + (5 * _root.unit_place), _xscale:-50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.charge = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.unit_side = 1;
unit_created.unit_health = 40;
unit_created.base_unit_health = 40;
unit_created.the_row = _root.unit_row;
unit_created.current_unit = unit_row - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = _root["unit_en_" + _root.front_unit_row_en]._x - 265;
this.y_musuh_lr = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y;
this.y_musuh = _root["unit_en_" + _root.front_unit_row_en]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat = false;
}
if (_root.charge == true) {
this.charge = true;
}
if (this.charge == true) {
this._xscale = -50;
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 1;
general = false;
} else {
general = true;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if (this.punch_sensor.hitTest(_root.base_en) && (!game_paused)) {
en_base_health = en_base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en])) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - 10;
}
if (this.punch_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en].front_sensor)) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - 10;
}
if (this.front_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en]) or this.hitTest(_root.base_en)) {
this.moving = false;
this.attack = true;
} else if (this.front_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en].front_sensor)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if (((!game_paused) && (_root.retreat == true)) && (this._x > 265)) {
this.charge = false;
this._xscale = 50;
this._x = this._x - _root.speed;
if (this._y > _root.base._y) {
this._y = this._y - _root.speed;
}
}
if ((this._y < _root["unit_en_" + _root.front_unit_row_en]._y) or (unit_number_en == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y < _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y) or (unit_number_lr_en == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 30) * 100));
if (this.health_bar.hitTest(_root["unit_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x + _root.speed;
if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter == false)) && (this._y < this.y_musuh_lr)) && (unit_number_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (unit_number_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (this._y < this.y_musuh)) && (unit_number_lr_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (unit_number_en == 0)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
}
}
if (((this._x <= 265) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = -50;
} else {
this.moving = true;
}
if ((_root["unit_" + _root.front_unit_row].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit3() {
_root.unit_place = _root.unit_place + 1;
_root.unit_row = _root.unit_row + 1;
_root.unit_number = _root.unit_number + 1;
unit_created = attachMovie("unit7", "unit_" + unit_row, getNextHighestDepth(), {_x:230, _y:105 + (5 * _root.unit_place), _xscale:-50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.charge = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.unit_side = 1;
unit_created.unit_health = 40;
unit_created.base_unit_health = 40;
unit_created.the_row = _root.unit_row;
unit_created.current_unit = unit_row - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = _root["unit_en_" + _root.front_unit_row_en]._x - 265;
this.y_musuh_lr = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y;
this.y_musuh = _root["unit_en_" + _root.front_unit_row_en]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat = false;
}
if (_root.charge == true) {
this.charge = true;
}
if (this.charge == true) {
this._xscale = -50;
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 1;
captain = false;
} else {
captain = true;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base_en) && (jumlah_unit_en == 0)) && (!game_paused)) {
en_base_health = en_base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en])) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - 7;
}
if (this.punch_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en].front_sensor)) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - 7;
}
if (this.front_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en]) or this.hitTest(_root.base_en)) {
this.moving = false;
this.attack = true;
} else if (this.front_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en].front_sensor)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if (((!game_paused) && (_root.retreat == true)) && (this._x > 265)) {
this.charge = false;
this._xscale = 50;
this._x = this._x - _root.speed;
if (this._y > _root.base._y) {
this._y = this._y - _root.speed;
}
}
if ((this._y < _root["unit_en_" + _root.front_unit_row_en]._y) or (unit_number_en == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y < _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y) or (unit_number_lr_en == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 30) * 100));
if (this.health_bar.hitTest(_root["unit_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x + _root.speed;
if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter == false)) && (this._y < this.y_musuh_lr)) && (unit_number_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (unit_number_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (this._y < this.y_musuh)) && (unit_number_lr_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (unit_number_en == 0)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
}
}
if (((this._x <= 265) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = -50;
} else {
this.moving = true;
}
if ((_root["unit_" + _root.front_unit_row].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit2() {
_root.unit_place = _root.unit_place + 1;
_root.unit_row = _root.unit_row + 1;
_root.unit_number = _root.unit_number + 1;
unit_created = attachMovie("unit5", "unit_" + unit_row, getNextHighestDepth(), {_x:230, _y:105 + (5 * _root.unit_place), _xscale:-50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.charge = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.unit_side = 1;
unit_created.unit_health = 30;
unit_created.base_unit_health = 30;
unit_created.the_row = _root.unit_row;
unit_created.current_unit = unit_row - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = _root["unit_en_" + _root.front_unit_row_en]._x - 265;
this.y_musuh_lr = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y;
this.y_musuh = _root["unit_en_" + _root.front_unit_row_en]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat = false;
}
if (_root.charge == true) {
this.charge = true;
}
if (this.charge == true) {
this._xscale = -50;
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 1;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base_en) && (jumlah_unit_en == 0)) && (!game_paused)) {
en_base_health = en_base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en])) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - (random(4) + unit2_damage);
}
if (this.punch_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en].front_sensor)) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - (random(4) + unit2_damage);
}
if (this.front_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en]) or this.hitTest(_root.base_en)) {
this.moving = false;
this.attack = true;
} else if (this.front_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en].front_sensor)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if (((!game_paused) && (_root.retreat == true)) && (this._x > 265)) {
this.charge = false;
this._xscale = 50;
this._x = this._x - _root.speed;
if (this._y > _root.base._y) {
this._y = this._y - _root.speed;
}
}
if ((this._y < _root["unit_en_" + _root.front_unit_row_en]._y) or (unit_number_en == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y < _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y) or (unit_number_lr_en == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 30) * 100));
if (this.health_bar.hitTest(_root["unit_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x + _root.speed;
if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter == false)) && (this._y < this.y_musuh_lr)) && (unit_number_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (unit_number_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (this._y < this.y_musuh)) && (unit_number_lr_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (unit_number_en == 0)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
}
}
if (((this._x <= 265) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = -50;
} else {
this.moving = true;
}
if ((_root["unit_" + _root.front_unit_row].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_heal() {
_root.unit_place = _root.unit_place + 1;
_root.unit_row_lr = _root.unit_row_lr + 1;
unit_number_lr = unit_number_lr + 1;
unit_created = attachMovie("unit_heal", "unit_lr_" + unit_row_lr, getNextHighestDepth(), {_x:230, _y:105 + (5 * _root.unit_place), _xscale:-50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.charge = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.unit_side = 1;
unit_created.healing = false;
unit_created.unit_health = 10;
unit_created.base_unit_health = 10;
unit_created.the_row = _root.unit_row;
unit_created.current_unit = unit_row_lr - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = _root["unit_en_" + _root.front_unit_row_en]._x - 230;
this.dist2 = _root["unit_en_" + _root.front_unit_row_en]._x - this._x;
this.dist3 = (_root.base_en._x - this._x) - 140;
this.dist4 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - this._x;
this.dist5 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - 230;
this.dist_heal = _root["unit_" + _root.front_unit_row]._x - this._x;
this.dist_heal2 = _root["unit_lr_" + _root.front_unit_row_lr]._x - this._x;
this.y_musuh_lr = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y;
this.y_musuh = _root["unit_en_" + _root.front_unit_row_en]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (((this.dist_heal < 140) && (_root["unit_" + _root.front_unit_row].unit_health < _root["unit_" + _root.front_unit_row].base_unit_health)) && (_root["unit_" + _root.front_unit_row].unit_health > 0)) {
this.healing = true;
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health + healing_power;
} else {
this.healing = false;
}
if (this.dist < 50) {
this.charge = true;
_root.retreat = false;
}
if (_root.charge == true) {
this.charge = true;
}
if (this.charge == true) {
this._xscale = -50;
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 1;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base_en) && (jumlah_unit_en == 0)) && (!game_paused)) {
en_base_health = en_base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en])) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - 0;
charge_en = true;
}
if (this.punch_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en])) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - 0;
}
if (((((this.dist2 < 140) || (this.dist3 < 70)) || (this.dist4 < 140)) || (this.dist5 < 140)) || (this.healing == true)) {
if (!retreat) {
this.moving = false;
this.attack = true;
}
} else {
this.attack = false;
}
if (((!game_paused) && (_root.retreat == true)) && (this._x > 230)) {
this.attack = false;
this._xscale = 50;
this.charge = false;
this._x = this._x - _root.speed;
this._y = this._y - _root.speed;
}
if ((this._y < _root["unit_en_" + _root.front_unit_row_en]._y) or (unit_number_en == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y < _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y) or (unit_number_lr_en == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 10) * 100));
if (this.health_bar.hitTest(_root["unit_lr_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if (((this.moving == true) && (game_paused == false)) && (this.healing == false)) {
this._x = this._x + _root.speed;
if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter == false)) && (this._y < this.y_musuh_lr)) && (unit_number_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (unit_number_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (this._y < this.y_musuh)) && (unit_number_lr_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (unit_number_en == 0)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
}
}
if ((this._x <= 230) && (this.dist >= 40)) {
this.moving = false;
this._xscale = -50;
} else {
this.moving = true;
}
if ((_root["unit_lr_" + _root.front_unit_row_lr].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_lr3() {
_root.unit_place = _root.unit_place + 1;
_root.unit_row_lr = _root.unit_row_lr + 1;
unit_number_lr = unit_number_lr + 1;
unit_created = attachMovie("unit6", "unit_lr_" + unit_row_lr, getNextHighestDepth(), {_x:230, _y:105 + (5 * _root.unit_place), _xscale:-50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.charge = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.unit_health = 10;
unit_created.unit_side = 1;
unit_created.base_unit_health = 10;
unit_created.base_unit_health = 10;
unit_created.the_row = _root.unit_row;
unit_created.current_unit = unit_row_lr - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = _root["unit_en_" + _root.front_unit_row_en]._x - 230;
this.dist2 = _root["unit_en_" + _root.front_unit_row_en]._x - this._x;
this.dist4 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - this._x;
this.dist5 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - 230;
this.dist3 = (_root.base_en._x - this._x) - 140;
this.y_musuh_lr = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y;
this.y_musuh = _root["unit_en_" + _root.front_unit_row_en]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if ((this.dist < 50) && (this._x <= 230)) {
this.charge = true;
_root.retreat = false;
}
if (_root.charge == true) {
this.charge = true;
}
if (this.charge == true) {
this._xscale = -50;
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 1;
gunman = false;
} else {
gunman = true;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base_en) && (jumlah_unit_en == 0)) && (!game_paused)) {
en_base_health = en_base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en])) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - 7;
charge_en = true;
}
if (this.punch_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en])) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - 7;
}
if ((((this.dist2 < 140) || (this.dist3 < 70)) || (this.dist4 < 140)) || (this.dist5 < 140)) {
if (!retreat) {
this.moving = false;
this.attack = true;
}
} else {
this.attack = false;
}
if (((!game_paused) && (_root.retreat == true)) && (this._x > 230)) {
this.attack = false;
this._xscale = 50;
this.charge = false;
this._x = this._x - _root.speed;
this._y = this._y - _root.speed;
}
if ((this._y < _root["unit_en_" + _root.front_unit_row_en]._y) or (unit_number_en == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y < _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y) or (unit_number_lr_en == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 10) * 100));
if (this.health_bar.hitTest(_root["unit_lr_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x + _root.speed;
if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter == false)) && (this._y < this.y_musuh_lr)) && (unit_number_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (unit_number_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (this._y < this.y_musuh)) && (unit_number_lr_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (unit_number_en == 0)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
}
}
if ((this._x <= 230) && (this.dist >= 40)) {
this.moving = false;
this._xscale = -50;
} else {
this.moving = true;
}
if ((_root["unit_lr_" + _root.front_unit_row_lr].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_lr2() {
_root.unit_place = _root.unit_place + 1;
_root.unit_row_lr = _root.unit_row_lr + 1;
unit_number_lr = unit_number_lr + 1;
unit_created = attachMovie("unit_lr2", "unit_lr_" + unit_row_lr, getNextHighestDepth(), {_x:230, _y:105 + (5 * _root.unit_place), _xscale:-50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.charge = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.unit_health = 10;
unit_created.unit_side = 1;
unit_created.base_unit_health = 10;
unit_created.base_unit_health = 10;
unit_created.the_row = _root.unit_row;
unit_created.current_unit = unit_row_lr - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = _root["unit_en_" + _root.front_unit_row_en]._x - 230;
this.dist2 = _root["unit_en_" + _root.front_unit_row_en]._x - this._x;
this.dist4 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - this._x;
this.dist5 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - 230;
this.dist3 = (_root.base_en._x - this._x) - 140;
this.y_musuh_lr = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y;
this.y_musuh = _root["unit_en_" + _root.front_unit_row_en]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if ((this.dist < 50) && (this._x <= 230)) {
this.charge = true;
_root.retreat = false;
}
if (_root.charge == true) {
this.charge = true;
}
if (this.charge == true) {
this._xscale = -50;
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 1;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if (this.punch_sensor.hitTest(_root.base_en) && (!game_paused)) {
en_base_health = en_base_health - 5;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en])) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - (random(4) + 1);
charge_en = true;
}
if (this.punch_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en])) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - (random(4) + 1);
}
if ((((this.dist2 < 140) || (this.dist3 < 70)) || (this.dist4 < 140)) || (this.dist5 < 140)) {
if (!retreat) {
this.moving = false;
this.attack = true;
}
} else {
this.attack = false;
}
if (((!game_paused) && (_root.retreat == true)) && (this._x > 230)) {
this.attack = false;
this._xscale = 50;
this.charge = false;
this._x = this._x - _root.speed;
this._y = this._y - _root.speed;
}
if ((this._y < _root["unit_en_" + _root.front_unit_row_en]._y) or (unit_number_en == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y < _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y) or (unit_number_lr_en == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 10) * 100));
if (this.health_bar.hitTest(_root["unit_lr_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x + _root.speed;
if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter == false)) && (this._y < this.y_musuh_lr)) && (unit_number_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (unit_number_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (this._y < this.y_musuh)) && (unit_number_lr_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (unit_number_en == 0)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
}
}
if ((this._x <= 230) && (this.dist >= 40)) {
this.moving = false;
this._xscale = -50;
} else {
this.moving = true;
}
if ((_root["unit_lr_" + _root.front_unit_row_lr].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_lr() {
_root.unit_place = _root.unit_place + 1;
_root.unit_row_lr = _root.unit_row_lr + 1;
unit_number_lr = unit_number_lr + 1;
unit_created = attachMovie("unit_lr", "unit_lr_" + unit_row_lr, getNextHighestDepth(), {_x:230, _y:105 + (5 * _root.unit_place), _xscale:-50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.charge = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.unit_health = 10;
unit_created.unit_side = 1;
unit_created.base_unit_health = 10;
unit_created.base_unit_health = 10;
unit_created.the_row = _root.unit_row;
unit_created.current_unit = unit_row_lr - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = _root["unit_en_" + _root.front_unit_row_en]._x - 230;
this.dist2 = _root["unit_en_" + _root.front_unit_row_en]._x - this._x;
this.dist4 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - this._x;
this.dist5 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - 230;
this.dist3 = (_root.base_en._x - this._x) - 140;
this.y_musuh_lr = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y;
this.y_musuh = _root["unit_en_" + _root.front_unit_row_en]._y;
if ((victory == true) or (lose == true)) {
this.removeMovieClip();
}
if ((this.dist < 50) && (this._x <= 230)) {
this.charge = true;
_root.retreat = false;
}
if (_root.charge == true) {
this.charge = true;
}
if (this.charge == true) {
this._xscale = -50;
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 1;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base_en) && (jumlah_unit_en == 0)) && (!game_paused)) {
en_base_health = en_base_health - 1;
}
if (this.punch_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en])) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - (random(2) + unit_lr_damage);
charge_en = true;
}
if (this.punch_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en])) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - (random(2) + unit_lr_damage);
}
if ((((this.dist2 < 140) || (this.dist3 < 70)) || (this.dist4 < 140)) || (this.dist5 < 140)) {
if (!retreat) {
this.moving = false;
this.attack = true;
trace("retreat");
}
} else {
this.attack = false;
}
if (((!game_paused) && (_root.retreat == true)) && (this._x > 230)) {
this.attack = false;
this._xscale = 50;
this.charge = false;
this._x = this._x - _root.speed;
this._y = this._y - _root.speed;
}
if ((this._y < _root["unit_en_" + _root.front_unit_row_en]._y) or (unit_number_en == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y < _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y) or (unit_number_lr_en == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 10) * 100));
if (this.health_bar.hitTest(_root["unit_lr_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x + _root.speed;
if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter == false)) && (this._y < this.y_musuh_lr)) && (unit_number_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (unit_number_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (this._y < this.y_musuh)) && (unit_number_lr_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (unit_number_en == 0)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
}
}
if ((this._x <= 230) && (this.dist >= 40)) {
this.moving = false;
this._xscale = -50;
} else {
this.moving = true;
}
if ((_root["unit_lr_" + _root.front_unit_row_lr].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit() {
_root.unit_place = _root.unit_place + 1;
_root.unit_row = _root.unit_row + 1;
unit_number = unit_number + 1;
unit_created = attachMovie("unit", "unit_" + unit_row, getNextHighestDepth(), {_x:230, _y:105 + (5 * _root.unit_place), _xscale:-50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.charge = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.unit_side = 1;
unit_created.unit_health = 30;
unit_created.base_unit_health = 30;
unit_created.the_row = _root.unit_row;
unit_created.current_unit = unit_row - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = _root["unit_en_" + _root.front_unit_row_en]._x - 265;
this.y_musuh_lr = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y;
this.y_musuh = _root["unit_en_" + _root.front_unit_row_en]._y;
if (victory || (lose)) {
trace("remove");
this.removeMovieClip();
}
if ((this.dist < 50) && (this._x <= 230)) {
this.charge = true;
_root.retreat = false;
}
if (_root.charge == true) {
this.charge = true;
}
if (this.charge == true) {
this._xscale = -50;
this.moving = true;
} else {
this.moving = false;
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 1;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base_en) && (jumlah_unit_en == 0)) && (!game_paused)) {
en_base_health = en_base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en])) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - (random(2) + unit_damage);
}
if (this.punch_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en].front_sensor)) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - (random(2) + unit_damage);
}
if (this.front_sensor.hitTest(_root["unit_en_" + _root.front_unit_row_en]) or this.hitTest(_root.base_en)) {
this.moving = false;
this.attack = true;
} else if (this.front_sensor.hitTest(_root["unit_lr_en_" + _root.front_unit_row_lr_en].front_sensor)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if (((!game_paused) && (_root.retreat == true)) && (this._x > 265)) {
this.charge = false;
this._xscale = 50;
this._x = this._x - _root.speed;
if (this._y > _root.base._y) {
this._y = this._y - _root.speed;
}
}
if ((this._y < _root["unit_en_" + _root.front_unit_row_en]._y) or (unit_number_en == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y < _root["unit_lr_en_" + _root.front_unit_row_lr_en]._y) or (unit_number_lr_en == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 30) * 100));
if (this.health_bar.hitTest(_root["unit_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x + _root.speed;
if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter == false)) && (this._y < this.y_musuh_lr)) && (unit_number_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (unit_number_en == 0)) {
this._y = this._y + _root.speed;
} else if ((((this._y < _root.base_en._y) && (this.encounter_lr == false)) && (this._y < this.y_musuh)) && (unit_number_lr_en > 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (this.encounter == false)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
} else if (((this._y < _root.base_en._y) && (unit_number_en == 0)) && (unit_number_lr_en == 0)) {
this._y = this._y + _root.speed;
}
}
if (((this._x <= 265) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = -50;
} else {
this.moving = true;
}
if ((_root["unit_" + _root.front_unit_row].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_heal_en() {
_root.unit_row_lr_en = _root.unit_row_lr_en + 1;
_root.unit_number_lr_en = _root.unit_number_lr_en + 1;
_root.unit_place_en = _root.unit_place_en + 1;
unit_created = attachMovie("unit_heal", "unit_lr_en_" + unit_row_lr_en, getNextHighestDepth(), {_x:577, _y:315 + (5 * _root.unit_place_en), _xscale:50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.charge = false;
unit_created.unit_health = 10;
unit_created.base_unit_health = 10;
unit_created.healing = false;
unit_created.y_musuh = 0;
unit_created.the_row = _root.unit_row_en;
unit_created.current_unit = unit_row_en - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = 577 - _root["unit_" + _root.front_unit_row]._x;
this.dist2 = this._x - _root["unit_" + _root.front_unit_row]._x;
this.dist3 = (this._x - _root.base._x) - 140;
this.dist4 = this._x - _root["unit_lr_" + _root.front_unit_row_lr]._x;
this.dist5 = 577 - _root["unit_lr_" + _root.front_unit_row_lr]._x;
this.y_musuh_lr = _root["unit_lr_" + _root.front_unit_row_lr]._y;
this.y_musuh = _root["unit_" + _root.front_unit_row]._y;
this.dist_heal = this._x - _root["unit_en_" + _root.front_unit_row_en]._x;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (((this.dist_heal < 140) && (_root["unit_en_" + _root.front_unit_row_en].unit_health < _root["unit_en_" + _root.front_unit_row_en].base_unit_health)) && (_root["unit_en_" + _root.front_unit_row_en].unit_health > 0)) {
this.healing = true;
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health + 0.05;
} else {
this.healing = false;
}
if ((this.dist < 50) && (this._x <= 230)) {
this.charge = true;
_root.retreat_en = false;
}
if (_root.charge_en == true) {
this.charge = true;
}
if (this.charge == true) {
this.moving = true;
} else {
this.moving = false;
}
if (this._x < 0) {
_root.health = _root.health - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
this.moving = false;
removeMovieClip(this);
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 2;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base) && (jumlah_unit == 0)) && (!game_paused)) {
base_health = base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_" + _root.front_unit_row])) {
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - 0;
}
if (this.punch_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr])) {
_root["unit_lr_" + _root.front_unit_row_lr].unit_health = _root["unit_lr_" + _root.front_unit_row_lr].unit_health - 0;
}
if ((((this.dist2 < 140) or (this.dist3 < 70)) or (this.dist4 < 140)) or (this.dist5 < 140)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if ((_root.retreat_en == true) && (this._x < 545)) {
this.charge = false;
this._xscale = -50;
this._x = this._x + _root.speed;
if (this._y < _root.base_en._y) {
this._y = this._y + _root.speed;
}
}
if ((this._y > _root["unit_" + _root.front_unit_row]._y) or (unit_number == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y > _root["unit_lr_" + _root.front_unit_row_lr]._y) or (unit_number_lr == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 10) * 100));
if (this.health_bar.hitTest(_root["unit_en_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x - _root.speed;
if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter == false)) && (this._y > this.y_musuh_lr)) && (unit_number > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter_lr == false)) && (unit_number == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter_lr == false)) && (this._y > this.y_musuh)) && (unit_number_lr > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (unit_number == 0)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
}
}
if (((this._x >= 545) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = 50;
} else {
this.moving = true;
}
if ((_root["unit_lr_en_" + _root.front_unit_row_lr_en].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function create_unit_lr_en() {
_root.unit_row_lr_en = _root.unit_row_lr_en + 1;
_root.unit_number_lr_en = _root.unit_number_lr_en + 1;
_root.unit_place_en = _root.unit_place_en + 1;
unit_created = attachMovie("unit_lr", "unit_lr_en_" + unit_row_lr_en, getNextHighestDepth(), {_x:577, _y:315 + (5 * _root.unit_place_en), _xscale:50, _yscale:50});
unit_created.attack = false;
unit_created.dead = false;
unit_created.encounter_lr = false;
unit_created.encounter = false;
unit_created.encounter_lr_off = false;
unit_created.encounter_off = false;
unit_created.charge = false;
unit_created.unit_health = 10;
unit_created.base_unit_health = 10;
unit_created.y_musuh = 0;
unit_created.the_row = _root.unit_row_en;
unit_created.current_unit = unit_row_en - 1;
unit_created.current_front = current_unit;
unit_created.onEnterFrame = function () {
this.dist = 577 - _root["unit_" + _root.front_unit_row]._x;
this.dist2 = this._x - _root["unit_" + _root.front_unit_row]._x;
this.dist3 = (this._x - _root.base._x) - 140;
this.dist4 = this._x - _root["unit_lr_" + _root.front_unit_row_lr]._x;
this.dist5 = 577 - _root["unit_lr_" + _root.front_unit_row_lr]._x;
this.y_musuh_lr = _root["unit_lr_" + _root.front_unit_row_lr]._y;
this.y_musuh = _root["unit_" + _root.front_unit_row]._y;
if ((victory == true) or (lose == true)) {
removeMovieClip(this);
}
if (this.dist < 50) {
this.charge = true;
_root.retreat_en = false;
}
if (_root.charge_en == true) {
this.charge = true;
}
if (this.charge == true) {
this.moving = true;
} else {
this.moving = false;
}
if (this._x < 0) {
_root.health = _root.health - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
removeMovieClip(this);
}
if (this.unit_health < 1) {
this.moving = false;
this.dead = true;
this.dead_side = 2;
}
if (_root.en_base_health2 < 1) {
this.attack = false;
}
if (_root.en_base_health < 1) {
this.attack = false;
}
if ((this.punch_sensor.hitTest(_root.base) && (jumlah_unit == 0)) && (!game_paused)) {
base_health = base_health - 1;
}
if (this.punch_sensor.hitTest(_root.enemy_base2)) {
en_base_health2 = en_base_health2 - 30;
}
if (this.punch_sensor.hitTest(_root["unit_" + _root.front_unit_row])) {
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - (random(2) + unit_lr_en_damage);
}
if (this.punch_sensor.hitTest(_root["unit_lr_" + _root.front_unit_row_lr])) {
_root["unit_lr_" + _root.front_unit_row_lr].unit_health = _root["unit_lr_" + _root.front_unit_row_lr].unit_health - (random(2) + unit_lr_en_damage);
}
if ((((this.dist2 < 140) or (this.dist3 < 70)) or (this.dist4 < 140)) or (this.dist5 < 140)) {
this.moving = false;
this.attack = true;
} else {
this.attack = false;
}
if ((_root.retreat_en == true) && (this._x < 545)) {
this.charge = false;
this._xscale = -50;
this._x = this._x + _root.speed;
if (this._y < _root.base_en._y) {
this._y = this._y + _root.speed;
}
}
if ((this._y > _root["unit_" + _root.front_unit_row]._y) or (unit_number == 0)) {
this.encounter = false;
} else {
this.encounter = true;
}
if ((this._y > _root["unit_lr_" + _root.front_unit_row_lr]._y) or (unit_number_lr == 0)) {
this.encounter_lr = false;
} else {
this.encounter_lr = true;
}
this.health_bar.gotoAndStop(Math.round((this.unit_health / 10) * 100));
if (this.health_bar.hitTest(_root["unit_en_" + this.current_unit].health_bar)) {
this._y = this._y + 1;
}
if ((this.moving == true) && (game_paused == false)) {
this._x = this._x - _root.speed;
if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter == false)) && (this._y > this.y_musuh_lr)) && (unit_number > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter_lr == false)) && (unit_number == 0)) {
this._y = this._y - _root.speed;
} else if ((((this._y > _root.base._y) && (this.encounter_lr == false)) && (this._y > this.y_musuh)) && (unit_number_lr > 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (this.encounter == false)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
} else if (((this._y > _root.base._y) && (unit_number == 0)) && (unit_number_lr == 0)) {
this._y = this._y - _root.speed;
}
}
if (((this._x >= 545) && (this.dist >= 40)) && (this.charge == false)) {
this.moving = false;
this._xscale = 50;
} else {
this.moving = true;
}
if ((_root["unit_lr_en_" + _root.front_unit_row_lr_en].dead == true) && (!game_paused)) {
this._y = this._y - 0.5;
}
};
}
function tower_target() {
if (_root.melee_target) {
_root["unit_en_" + _root.front_unit_row_en].unit_health = _root["unit_en_" + _root.front_unit_row_en].unit_health - 3;
}
if (_root.lr_target) {
_root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health = _root["unit_lr_en_" + _root.front_unit_row_lr_en].unit_health - 3;
}
}
unit_enebled = false;
healing_power = 0.05;
game_paused = false;
unit_enebled_en = false;
unit_damage = 1;
unit_made = 0;
hero_built = false;
hero_built_en = false;
gunman = false;
captain = false;
general = false;
gunman_en = false;
captain_en = false;
unit2_damage = 1;
melee_target = false;
lr_target = false;
unit_lr_damage = 1;
unit_en_damage = 1;
unit2_en_damage = 1;
unit_lr_en_damage = 1;
unit_limit = 4;
unit_limit_en = 4;
tower_range = 160;
tower_range_en = 160;
tower_built = false;
tower_attack = false;
tower_attack_en = false;
main.stop();
tower_built_en = false;
stop();
front_row = 0;
front_row_en = 0;
front_unit_row = 1;
front_unit_row_lr = 1;
front_unit_row_lr_en = 1;
front_unit_row_en = 1;
base_health = 1000;
en_base_health = 1000;
build_time_b1 = 0;
build_time_b2 = 0;
build_time_b3 = 0;
build_time_b4 = 0;
build_time_b5 = 0;
build_time_b6 = 0;
build_time_b7 = 0;
build_time_b8 = 0;
build_time_b9 = 0;
build_time_b10 = 0;
build_time_b11 = 0;
build_time_b12 = 0;
build_time_b13 = 0;
build_time_b14 = 0;
build_time_b15 = 0;
build_time_b16 = 0;
build_time_b17 = 0;
build_time_b18 = 0;
build_time_en_b1 = 0;
build_time_en_b2 = 0;
build_time_en_b3 = 0;
build_time_en_b4 = 0;
build_time_en_b5 = 0;
build_time_en_b6 = 0;
build_time_en_b7 = 0;
build_time_en_b8 = 0;
build_time_en_b9 = 0;
build_time_en_b10 = 0;
build_time_en_b11 = 0;
build_time_en_b12 = 0;
build_time_en_b13 = 0;
build_time_en_b14 = 0;
build_time_en_b15 = 0;
build_time_en_b16 = 0;
build_time_en_b17 = 0;
build_time_en_b18 = 0;
build_time = 0;
build_time2 = 0;
build_time3 = 0;
build_time4 = 0;
build_time_lr = 0;
build_time_lr2 = 0;
build_time_lr3 = 0;
build_time_heal = 0;
build_time_en = 0;
build_time_en2 = 0;
build_time_en3 = 0;
build_time_en4 = 0;
build_time_lr_en = 0;
build_time_lr_en2 = 0;
build_time_lr_en3 = 0;
build_time_heal_en = 0;
health = 16;
speed = 0.5;
delay = 30;
unit_number = 0;
unit_number_lr = 0;
unit_number_lr_en = 0;
unit_number_en = 0;
front_unit_en = 1;
unit_row = 0;
unit_row_lr = 0;
unit_row_en = 0;
unit_row_lr_en = 0;
unit_place = 0;
unit_place_en = 0;
jumlah_unit = 0;
jumlah_unit_en = 0;
routine = 50;
action_taken = 0;
penambah_gold = 1;
penambah_gold_en = 1;
gold = 120;
namaBangunan = 0;
hargaBangunan = 0;
deskBangunan = 0;
datBangunan = [["nama", "harga", "description"], ["barrack", "120 Gold", "Enables you to train basic troops"], ["monastery", "210 Gold", "Enables you to train Monks"], ["workshop", "250 Gold", "Enables you to build an Iron Gate and Cannon units"], ["watchtower", "160 Gold", "Attacks enemy soldiers close to your city"], ["keep", "500 Gold", "Enables you to build a variety of buildings, and increases your max army size"], ["chancel", "300 Gold", "Enables you to train Captains"], ["castle", "900 Gold", "Enables you to train Knights and Gunmen"], ["steel blade", "100 Gold", "Upgrades Footman attack"], ["long gun", "180 Gold", "Upgrades Rifleman attack"], ["natural power", "120 Gold", "Upgrades Monk healing power"], ["iron horse", "210 Gold", "Upgrades Knight attack"], ["blacksmith", "220 Gold", "Enables you to build Watch Tower,train Rifleman, and upgrade equipment"], ["iron gate", "200 Gold", "Increases city defence"], ["noble metal", "420 Gold", "Enables you to train Generals"], ["telescope", "150 Gold", "Increases range of Watch Tower"], ["windmill", "150 Gold", "City produces gold faster"], ["alchemy", "500 Gold", "City produces gold faster"], ["transport", "260 Gold", "City produces gold faster"]];
datUnit = [["nama", "harga", "stat"], ["footman", "70 Gold", "Damage : 1 - 2 ~ HP : 30"], ["rifleman", "90 Gold", "Damage : 1 - 2 ~ HP : 10"], ["monk", "80 Gold", "Healer"], ["cannon", "120 Gold", "Damage : 1 - 4 ~ HP : 10"], ["knight", "140 Gold", "Damage : 1 - 4 ~ HP : 30"], ["--GunMan--", "210 Gold", "Damage : 6 - 7 ~ HP : 10"], ["--Captain--", "225 Gold", "Damage : 6 - 7 ~ HP : 40"], ["--General--", "320 Gold", "Damage : 9 - 10 ~ HP : 40"]];
trace(datBangunan[1][1]);
charge = false;
retreat = false;
charge_en = false;
retreat_en = false;
build_time_display._visible = false;
pointer_en.onEnterFrame = function () {
if ((this._y < 330) && (Key.isDown(40))) {
this._y = this._y + 30;
} else if ((this._y > 120) && (Key.isDown(38))) {
this._y = this._y - 30;
}
};
pointer.onEnterFrame = function () {
if ((this._y < 330) && (Key.isDown(83))) {
this._y = this._y + 30;
} else if ((this._y > 120) && (Key.isDown(87))) {
this._y = this._y - 30;
}
};
_root.onEnterFrame = function () {
jumlah_unit = unit_number + unit_number_lr;
jumlah_unit_en = unit_number_en + unit_number_lr_en;
tower_dist = _root["unit_en_" + _root.front_unit_row_en]._x - _root.base._x;
tower_dist2 = _root["unit_lr_en_" + _root.front_unit_row_lr_en]._x - _root.base._x;
tower_dist_en = _root.base_en._x - _root["unit_" + _root.front_unit_row]._x;
if (en_base_health < 1) {
victory = true;
} else {
victory = false;
}
if (base_health < 1) {
lose = true;
} else {
lose = false;
}
if (victory == true) {
gotoAndStop (12);
} else if (lose == true) {
gotoAndStop (13);
}
if (routine > 0) {
routine = routine - 1;
} else {
routine = 50;
}
if (routine == 1) {
action_taken = random(16);
} else if ((!action_taken) == 0) {
action_taken = 0;
}
if (((action_taken == 1) && (victory == false)) && (lose == false)) {
if ((unit_number_en > 0) || (unit_number_lr_en > 1)) {
charge_en = true;
retreat_en = false;
}
}
if (((((((action_taken == 2) && (build_time_en == 0)) && (victory == false)) && (lose == false)) && (jumlah_unit_en < unit_limit_en)) && (gold_en >= 75)) && (unit_enebled_en == true)) {
build_time_en = 230;
gold_en = gold_en - 75;
}
if ((((((((action_taken == 3) && (build_time_lr_en == 0)) && (victory == false)) && (lose == false)) && (jumlah_unit_en < unit_limit_en)) && (gold_en >= 90)) && (unit_enebled_en == true)) && (build_time_en_b8 == 1)) {
build_time_lr_en = 230;
gold_en = gold_en - 90;
}
if (((((((((action_taken == 4) && (build_time_heal_en == 0)) && (victory == false)) && (lose == false)) && (jumlah_unit_en < unit_limit_en)) && (gold_en >= 80)) && (unit_enebled_en == true)) && (build_time_en_b2 == 1)) && (jumlah_unit_en > 0)) {
build_time_heal_en = 230;
gold_en = gold_en - 80;
}
if (((action_taken == 5) && (victory == false)) && (lose == false)) {
charge_en = true;
retreat_en = false;
}
if ((((((((action_taken == 6) && (build_time_en2 == 0)) && (victory == false)) && (lose == false)) && (jumlah_unit_en < unit_limit_en)) && (gold_en >= 140)) && (unit_enebled_en == true)) && (build_time_en_b7 == 1)) {
build_time_en2 = 270;
gold_en = gold_en - 140;
}
if (((((((((captain_en == false) && (hero_built_en == true)) && (build_time_en3 == 0)) && (victory == false)) && (lose == false)) && (jumlah_unit_en < unit_limit_en)) && (gold_en >= 225)) && (unit_enebled_en == true)) && (build_time_en_b6 == 1)) {
build_time_en3 = 270;
gold_en = gold_en - 225;
}
if ((((((((action_taken == 9) && (build_time_lr_en2 == 0)) && (victory == false)) && (lose == false)) && (jumlah_unit_en < unit_limit_en)) && (gold_en >= 120)) && (unit_enebled_en == true)) && (build_time_en_b3 == 1)) {
build_time_lr_en2 = 270;
gold_en = gold_en - 120;
}
if (((((((((gunman_en == false) && (hero_built_en == true)) && (build_time_lr_en3 == 0)) && (victory == false)) && (lose == false)) && (jumlah_unit_en < unit_limit_en)) && (gold_en >= 210)) && (unit_enebled_en == true)) && (build_time_en_b7 == 1)) {
build_time_lr_en3 = 290;
gold_en = gold_en - 210;
}
if ((((build_time_en_b1 == 0) && (victory == false)) && (lose == false)) && (gold_en >= 120)) {
build_time_en_b1 = 400;
gold_en = gold_en - 120;
}
if (((((build_time_en_b5 == 1) && (build_time_en_b2 == 0)) && (victory == false)) && (lose == false)) && (gold_en >= 210)) {
build_time_en_b2 = 400;
gold_en = gold_en - 210;
}
if (((((build_time_en_b5 == 1) && (build_time_en_b3 == 0)) && (victory == false)) && (lose == false)) && (gold_en >= 250)) {
build_time_en_b3 = 400;
gold_en = gold_en - 250;
}
if (((((build_time_en_b8 == 1) && (build_time_en_b4 == 0)) && (victory == false)) && (lose == false)) && (gold_en >= 160)) {
build_time_en_b4 = 400;
gold_en = gold_en - 160;
}
if ((((build_time_en_b5 == 0) && (victory == false)) && (lose == false)) && (gold_en >= 500)) {
build_time_en_b5 = 400;
gold_en = gold_en - 500;
}
if (((((build_time_en_b5 == 1) && (build_time_en_b6 == 0)) && (victory == false)) && (lose == false)) && (gold_en >= 300)) {
build_time_en_b6 = 400;
gold_en = gold_en - 300;
}
if (((((build_time_en_b5 == 1) && (build_time_en_b7 == 0)) && (victory == false)) && (lose == false)) && (gold_en >= 900)) {
build_time_en_b7 = 400;
gold_en = gold_en - 900;
}
if ((((build_time_en_b8 == 0) && (victory == false)) && (lose == false)) && (gold_en >= 220)) {
build_time_en_b8 = 400;
gold_en = gold_en - 220;
}
if (((((action_taken == 19) && (build_time_en_b9 == 0)) && (victory == false)) && (lose == false)) && (gold_en >= 150)) {
build_time_en_b9 = 400;
gold_en = gold_en - 150;
}
if (((((action_taken == 20) && (build_time_en_b10 == 0)) && (victory == false)) && (lose == false)) && (gold_en >= 420)) {
build_time_en_b10 = 400;
gold_en = gold_en - 420;
}
if (((((action_taken == 21) && (build_time_en_b11 == 0)) && (victory == false)) && (lose == false)) && (gold_en >= 420)) {
build_time_en_b10 = 400;
gold_en = gold_en - 420;
}
if (routine == 25) {
charge_en = false;
}
if (charge == true) {
charge = false;
}
if (hit == true) {
hit = false;
}
health_bar.gotoAndStop(Math.round((health / 32) * 100));
if (build_time_heal == 0) {
button_heal._visible = true;
} else if (build_time_heal == 1) {
button_heal._visible = false;
create_unit_heal();
} else {
button_heal._visible = false;
button_anim_heal.gotoAndStop(Math.round((build_time_heal / 230) * 100));
}
if (build_time_lr == 0) {
button_lr._visible = true;
} else if (build_time_lr == 1) {
button_lr._visible = false;
create_unit_lr();
} else {
button_lr._visible = false;
button_anim_lr.gotoAndStop(Math.round((build_time_lr / 230) * 100));
}
if (build_time_lr2 == 0) {
button_lr._visible = true;
} else if (build_time_lr2 == 1) {
button_lr._visible = false;
create_unit_lr2();
} else {
button_lr._visible = false;
button_anim_lr.gotoAndStop(Math.round((build_time_lr / 230) * 100));
}
if (build_time_lr3 == 0) {
button_lr._visible = true;
} else if (build_time_lr3 == 1) {
button_lr._visible = false;
create_unit_lr3();
} else {
button_lr._visible = false;
button_anim_lr.gotoAndStop(Math.round((build_time_lr / 230) * 100));
}
if (build_time == 0) {
button._visible = true;
} else if (build_time == 1) {
button._visible = false;
create_unit();
} else {
button._visible = false;
button_anim.gotoAndStop(Math.round((build_time / 230) * 100));
}
if (build_time2 == 0) {
button._visible = true;
} else if (build_time2 == 1) {
button._visible = false;
create_unit2();
} else {
button._visible = false;
button_anim.gotoAndStop(Math.round((build_time / 230) * 100));
}
if (build_time3 == 0) {
button._visible = true;
} else if (build_time3 == 1) {
button._visible = false;
create_unit3();
} else {
button._visible = false;
button_anim.gotoAndStop(Math.round((build_time / 230) * 100));
}
if (build_time4 == 0) {
button._visible = true;
} else if (build_time4 == 1) {
button._visible = false;
create_unit4();
} else {
button._visible = false;
button_anim.gotoAndStop(Math.round((build_time / 230) * 100));
}
if (build_time_en4 == 0) {
button_en._visible = true;
} else if (build_time_en4 == 1) {
button_en._visible = false;
create_unit_en4();
} else {
button_en._visible = false;
button_anim_en.gotoAndStop(Math.round((build_time_en / 230) * 100));
}
if (build_time_en3 == 0) {
button_en._visible = true;
} else if (build_time_en3 == 1) {
button_en._visible = false;
create_unit_en3();
} else {
button_en._visible = false;
button_anim_en.gotoAndStop(Math.round((build_time_en / 230) * 100));
}
if (build_time_en2 == 0) {
button_en._visible = true;
} else if (build_time_en2 == 1) {
button_en._visible = false;
create_unit_en2();
} else {
button_en._visible = false;
button_anim_en.gotoAndStop(Math.round((build_time_en / 230) * 100));
}
if (build_time_en == 0) {
button_en._visible = true;
} else if (build_time_en == 1) {
button_en._visible = false;
create_unit_en();
} else {
button_en._visible = false;
button_anim_en.gotoAndStop(Math.round((build_time_en / 230) * 100));
}
if (build_time_lr_en3 == 0) {
button_lr_en._visible = true;
} else if (build_time_lr_en3 == 1) {
button_lr_en._visible = false;
create_unit_lr_en3();
} else {
button_lr_en._visible = false;
button_anim_lr_en.gotoAndStop(Math.round((build_time_lr_en / 230) * 100));
}
if (build_time_lr_en2 == 0) {
button_lr_en._visible = true;
} else if (build_time_lr_en2 == 1) {
button_lr_en._visible = false;
create_unit_lr_en2();
} else {
button_lr_en._visible = false;
button_anim_lr_en.gotoAndStop(Math.round((build_time_lr_en / 230) * 100));
}
if (build_time_lr_en == 0) {
button_lr_en._visible = true;
} else if (build_time_lr_en == 1) {
button_lr_en._visible = false;
create_unit_lr_en();
} else {
button_lr_en._visible = false;
button_anim_lr_en.gotoAndStop(Math.round((build_time_lr_en / 230) * 100));
}
if (build_time_heal_en == 0) {
button_heal_en._visible = true;
} else if (build_time_heal_en == 1) {
button_heal_en._visible = false;
create_unit_heal_en();
} else {
button_heal_en._visible = false;
button_anim_heal_en.gotoAndStop(Math.round((build_time_heal_en / 230) * 100));
}
if (build_time > 0) {
B1.gotoAndStop(1);
} else {
B1.gotoAndStop(2);
}
if (build_time_lr > 0) {
B2.gotoAndStop(1);
} else {
B2.gotoAndStop(2);
}
if (build_time_heal > 0) {
B3.gotoAndStop(1);
} else {
B3.gotoAndStop(2);
}
if (build_time_lr2 > 0) {
B4.gotoAndStop(1);
} else {
B4.gotoAndStop(2);
}
if (build_time2 > 0) {
B5.gotoAndStop(1);
} else {
B5.gotoAndStop(2);
}
if (build_time_lr3 > 0) {
B6.gotoAndStop(1);
} else {
B6.gotoAndStop(2);
}
if (build_time3 > 0) {
B7.gotoAndStop(1);
} else {
B7.gotoAndStop(2);
}
if (build_time4 > 0) {
B8.gotoAndStop(1);
} else {
B8.gotoAndStop(2);
}
if (game_paused == false) {
if (hard_diff == true) {
if (((((((((routine == 48) or (routine == 42)) or (routine == 43)) or (routine == 32)) or (routine == 22)) or (routine == 12)) or (routine == 13)) or (routine == 8)) or (routine == 9)) {
gold_en = gold_en + penambah_gold_en;
}
}
if (normal_diff == true) {
if ((((((routine == 42) or (routine == 22)) or (routine == 23)) or (routine == 24)) or (routine == 12)) or (routine == 13)) {
gold_en = gold_en + penambah_gold_en;
}
}
if (easy_diff == true) {
if ((((routine == 42) or (routine == 22)) or (routine == 23)) or (routine == 24)) {
gold_en = gold_en + penambah_gold_en;
}
}
if (((((((routine == 50) or (routine == 40)) or (routine == 45)) or (routine == 30)) or (routine == 20)) or (routine == 15)) or (routine == 10)) {
gold = gold + penambah_gold;
gold_en = gold_en + penambah_gold_en;
}
if (build_time > 0) {
build_time = build_time - 1;
}
if (build_time2 > 0) {
build_time2 = build_time2 - 1;
}
if (build_time3 > 0) {
build_time3 = build_time3 - 1;
}
if (build_time4 > 0) {
build_time4 = build_time4 - 1;
}
if (build_time_lr > 0) {
build_time_lr = build_time_lr - 1;
}
if (build_time_lr2 > 0) {
build_time_lr2 = build_time_lr2 - 1;
}
if (build_time_lr3 > 0) {
build_time_lr3 = build_time_lr3 - 1;
}
if (build_time_heal > 0) {
build_time_heal = build_time_heal - 1;
}
if (build_time_en4 > 0) {
build_time_en4 = build_time_en4 - 1;
}
if (build_time_en3 > 0) {
build_time_en3 = build_time_en3 - 1;
}
if (build_time_en2 > 0) {
build_time_en2 = build_time_en2 - 1;
}
if (build_time_en > 0) {
build_time_en = build_time_en - 1;
}
if (build_time_lr_en3 > 0) {
build_time_lr_en3 = build_time_lr_en3 - 1;
}
if (build_time_lr_en2 > 0) {
build_time_lr_en2 = build_time_lr_en2 - 1;
}
if (build_time_lr_en > 0) {
build_time_lr_en = build_time_lr_en - 1;
}
if (build_time_heal_en > 0) {
build_time_heal_en = build_time_heal_en - 1;
}
if (build_time_b1 > 1) {
build_time_b1 = build_time_b1 - 1;
}
if (build_time_b2 > 1) {
build_time_b2 = build_time_b2 - 1;
}
if (build_time_b3 > 1) {
build_time_b3 = build_time_b3 - 1;
}
if (build_time_b4 > 1) {
build_time_b4 = build_time_b4 - 1;
}
if (build_time_b5 > 1) {
build_time_b5 = build_time_b5 - 1;
}
if (build_time_b6 > 1) {
build_time_b6 = build_time_b6 - 1;
}
if (build_time_b7 > 1) {
build_time_b7 = build_time_b7 - 1;
}
if (build_time_b8 > 1) {
build_time_b8 = build_time_b8 - 1;
}
if (build_time_b9 > 1) {
build_time_b9 = build_time_b9 - 1;
}
if (build_time_b10 > 1) {
build_time_b10 = build_time_b10 - 1;
}
if (build_time_b11 > 1) {
build_time_b11 = build_time_b11 - 1;
}
if (build_time_b12 > 1) {
build_time_b12 = build_time_b12 - 1;
}
if (build_time_b13 > 1) {
build_time_b13 = build_time_b13 - 1;
}
if (build_time_b14 > 1) {
build_time_b14 = build_time_b14 - 1;
}
if (build_time_b15 > 1) {
build_time_b15 = build_time_b15 - 1;
}
if (build_time_b16 > 1) {
build_time_b16 = build_time_b16 - 1;
}
if (build_time_b17 > 1) {
build_time_b17 = build_time_b17 - 1;
}
if (build_time_b18 > 1) {
build_time_b18 = build_time_b18 - 1;
}
if (build_time_en_b1 > 1) {
build_time_en_b1 = build_time_en_b1 - 1;
}
if (build_time_en_b2 > 1) {
build_time_en_b2 = build_time_en_b2 - 1;
}
if (build_time_en_b3 > 1) {
build_time_en_b3 = build_time_en_b3 - 1;
}
if (build_time_en_b4 > 1) {
build_time_en_b4 = build_time_en_b4 - 1;
}
if (build_time_en_b5 > 1) {
build_time_en_b5 = build_time_en_b5 - 1;
}
if (build_time_en_b6 > 1) {
build_time_en_b6 = build_time_en_b6 - 1;
}
if (build_time_en_b7 > 1) {
build_time_en_b7 = build_time_en_b7 - 1;
}
if (build_time_en_b8 > 1) {
build_time_en_b8 = build_time_en_b8 - 1;
}
if (build_time_en_b9 > 1) {
build_time_en_b9 = build_time_en_b9 - 1;
}
if (build_time_en_b10 > 1) {
build_time_en_b10 = build_time_en_b10 - 1;
}
if (build_time_en_b11 > 1) {
build_time_en_b11 = build_time_en_b11 - 1;
}
if (build_time_en_b12 > 1) {
build_time_en_b12 = build_time_en_b12 - 1;
}
if (build_time_en_b13 > 1) {
build_time_en_b13 = build_time_en_b13 - 1;
}
if (build_time_en_b14 > 1) {
build_time_en_b14 = build_time_en_b14 - 1;
}
if (build_time_en_b15 > 1) {
build_time_en_b15 = build_time_en_b15 - 1;
}
if (build_time_en_b16 > 1) {
build_time_en_b16 = build_time_en_b16 - 1;
}
if (build_time_en_b17 > 1) {
build_time_en_b17 = build_time_en_b17 - 1;
}
if (build_time_en_b18 > 1) {
build_time_en_b18 = build_time_en_b18 - 1;
}
if (build_time_en_b19 > 1) {
build_time_en_b19 = build_time_en_b19 - 1;
}
if (build_time_en_b20 > 1) {
build_time_en_b20 = build_time_en_b20 - 1;
}
if (build_time_en_b21 > 1) {
build_time_en_b21 = build_time_en_b21 - 1;
}
}
if (build_time_b1 == 0) {
A1.gotoAndStop(1);
} else if (build_time_b1 == 1) {
unit_enebled = true;
A1.gotoAndStop(4);
base_display.b1.gotoAndStop(2);
if (unit_enebled == true) {
B1._visible = true;
} else {
B1._visible = false;
}
} else {
A1.gotoAndStop(3);
}
if (build_time_b2 == 0) {
A2.gotoAndStop(1);
} else if ((build_time_b2 == 2) && (!game_paused)) {
unit_limit = unit_limit + 1;
} else if (build_time_b2 == 1) {
A2.gotoAndStop(4);
base_display.b2.gotoAndStop(2);
if (unit_enebled == true) {
B3._visible = true;
} else {
B3._visible = false;
}
} else {
A2.gotoAndStop(3);
}
if (build_time_b3 == 0) {
A3.gotoAndStop(1);
} else if (build_time_b3 == 1) {
A3.gotoAndStop(4);
base_display.b3.gotoAndStop(2);
A13._visible = true;
if (unit_enebled == true) {
B4._visible = true;
} else {
B4._visible = false;
}
} else {
A3.gotoAndStop(3);
}
if (build_time_b4 == 0) {
A4.gotoAndStop(1);
} else if (build_time_b4 == 1) {
A4.gotoAndStop(4);
base_display.b4.gotoAndStop(2);
tower_built = true;
} else {
A4.gotoAndStop(3);
}
if (build_time_b5 == 0) {
A5.gotoAndStop(1);
} else if ((build_time_b5 == 2) && (!game_paused)) {
unit_limit = unit_limit + 2;
} else if (build_time_b5 == 1) {
A5.gotoAndStop(4);
base_display.b5.gotoAndStop(2);
A2._visible = true;
A3._visible = true;
A5._visible = true;
A6._visible = true;
A7._visible = true;
A15._visible = true;
A18._visible = true;
} else {
A5.gotoAndStop(3);
}
if (build_time_b6 == 0) {
A6.gotoAndStop(1);
} else if ((build_time_b6 == 2) && (!game_paused)) {
unit_limit = unit_limit + 1;
} else if (build_time_b6 == 1) {
A6.gotoAndStop(4);
base_display.b6.gotoAndStop(2);
hero_built = true;
if ((unit_enebled == true) && (captain == false)) {
B7._visible = true;
} else {
B7._visible = false;
}
A10._visible = true;
} else {
A6.gotoAndStop(3);
}
if (build_time_b7 == 0) {
A7.gotoAndStop(1);
} else if ((build_time_b7 == 2) && (!game_paused)) {
unit_limit = unit_limit + 2;
} else if (build_time_b7 == 1) {
A7.gotoAndStop(4);
base_display.b7.gotoAndStop(2);
if (unit_enebled == true) {
B5._visible = true;
if ((hero_built == true) && (gunman == false)) {
B6._visible = true;
} else {
B6._visible = false;
}
} else {
B5._visible = false;
}
A11._visible = true;
A14._visible = true;
} else {
A7.gotoAndStop(3);
}
if (build_time_b8 == 0) {
A8.gotoAndStop(1);
} else if (build_time_b8 == 1) {
unit_damage = 2;
A8.gotoAndStop(4);
} else {
A8.gotoAndStop(3);
}
if (build_time_b9 == 0) {
A9.gotoAndStop(1);
} else if (build_time_b9 == 1) {
unit_lr_damage = 2;
A9.gotoAndStop(4);
} else {
A9.gotoAndStop(3);
}
if (build_time_b10 == 0) {
A10.gotoAndStop(1);
} else if (build_time_b10 == 1) {
healing_power = 0.075;
A10.gotoAndStop(4);
} else {
A10.gotoAndStop(3);
}
if (build_time_b11 == 0) {
A11.gotoAndStop(1);
} else if (build_time_b11 == 1) {
unit2_damage = 2;
A11.gotoAndStop(4);
} else {
A11.gotoAndStop(3);
}
if (build_time_b12 == 0) {
A12.gotoAndStop(1);
} else if (build_time_b12 == 1) {
A12.gotoAndStop(4);
base_display.b8.gotoAndStop(2);
A9._visible = true;
A4._visible = true;
A8._visible = true;
if (unit_enebled == true) {
B2._visible = true;
} else {
B2._visible = false;
}
} else {
A12.gotoAndStop(3);
}
if (build_time_b13 == 0) {
A13.gotoAndStop(1);
} else if (build_time_b13 == 1) {
A13.gotoAndStop(4);
} else {
A13.gotoAndStop(3);
}
if (build_time_b14 == 0) {
A15.gotoAndStop(1);
} else if (build_time_b14 == 1) {
A15.gotoAndStop(4);
tower_range = 260;
} else {
A15.gotoAndStop(3);
}
if (build_time_b15 == 0) {
A14.gotoAndStop(1);
} else if (build_time_b15 == 1) {
A14.gotoAndStop(4);
if ((unit_enebled == true) && (general == false)) {
B8._visible = true;
} else {
B8._visible = false;
}
} else {
A14.gotoAndStop(3);
}
if (build_time_b16 == 0) {
A16.gotoAndStop(1);
} else if (build_time_b16 == 1) {
A16.gotoAndStop(4);
_root.penambah_gold = 2;
base_display.b9.gotoAndStop(2);
} else {
A16.gotoAndStop(3);
}
if (build_time_b17 == 0) {
A17.gotoAndStop(1);
} else if (build_time_b17 == 1) {
A17.gotoAndStop(4);
_root.penambah_gold = 5;
} else {
A17.gotoAndStop(3);
}
if (build_time_b18 == 0) {
A18.gotoAndStop(1);
} else if (build_time_b18 == 1) {
A18.gotoAndStop(4);
if (build_time_b6 == 1) {
A17._visible = true;
}
if (build_time_b17 == 0) {
_root.penambah_gold = 3;
}
} else {
A18.gotoAndStop(3);
}
if (build_time_en_b1 == 0) {
unit_enebled_en = false;
} else if (build_time_en_b1 == 1) {
base_display_en.b1.gotoAndStop(2);
unit_enebled_en = true;
}
if (build_time_en_b2 == 0) {
} else if (build_time_en_b2 == 2) {
unit_limit_en = unit_limit_en + 1;
} else if (build_time_en_b2 == 1) {
base_display_en.b2.gotoAndStop(2);
}
if (build_time_en_b3 == 0) {
} else if (build_time_en_b3 == 1) {
base_display_en.b3.gotoAndStop(2);
}
if (build_time_en_b4 == 0) {
} else if (build_time_en_b4 == 1) {
base_display_en.b4.gotoAndStop(2);
tower_built_en = true;
}
if (build_time_en_b5 == 0) {
} else if (build_time_en_b5 == 2) {
unit_limit_en = unit_limit_en + 2;
} else if (build_time_en_b5 == 1) {
base_display_en.b5.gotoAndStop(2);
}
if (build_time_en_b6 == 0) {
} else if (build_time_en_b6 == 2) {
unit_limit_en = unit_limit_en + 1;
} else if (build_time_en_b6 == 1) {
base_display_en.b6.gotoAndStop(2);
penambah_gold_en = 2;
}
if (build_time_en_b7 == 0) {
} else if (build_time_en_b7 == 2) {
unit_limit_en = unit_limit_en + 2;
} else if (build_time_en_b7 == 1) {
base_display_en.b7.gotoAndStop(2);
}
if (build_time_en_b8 == 0) {
} else if (build_time_en_b8 == 1) {
base_display_en.b8.gotoAndStop(2);
}
if (build_time_en_b9 == 0) {
} else if (build_time_en_b9 == 1) {
base_display_en.b9.gotoAndStop(2);
}
if (build_time_en_b10 == 0) {
} else if (build_time_en_b10 == 1) {
}
if (build_time_en_b11 == 0) {
} else if (build_time_en_b11 == 1) {
}
if (build_time_en_b12 == 0) {
} else if (build_time_en_b12 == 1) {
}
if (build_time_en_b13 == 0) {
} else if (build_time_en_b13 == 1) {
}
if (build_time_en_b14 == 0) {
} else if (build_time_en_b14 == 1) {
}
if (build_time_en_b15 == 0) {
} else if (build_time_en_b15 == 1) {
}
if (build_time_en_b16 == 0) {
} else if (build_time_en_b16 == 1) {
}
if (build_time_en_b17 == 0) {
} else if (build_time_en_b17 == 1) {
}
if ((jumlah_unit_en > 0) && (!game_paused)) {
if (tower_built == true) {
if (((tower_dist != undefined) && (tower_dist <= tower_range)) && (unit_number_en > 0)) {
_root.tower_attack = true;
base_display.smoke.gotoAndStop(2);
melee_target = true;
trace("menembak");
} else if (((tower_dist2 != undefined) && (tower_dist2 <= tower_range)) && (unit_number_lr_en > 0)) {
_root.tower_attack = true;
base_display.smoke.gotoAndStop(2);
lr_target = true;
trace("menembak2");
} else if ((((tower_dist2 != undefined) && (tower_dist2 <= tower_range)) && (tower_dist != undefined)) && (tower_dist <= tower_range)) {
_root.tower_attack = true;
base_display.smoke.gotoAndStop(2);
melee_target = true;
trace("menembak3");
} else {
melee_target = false;
lr_target = false;
_root.tower_attack = false;
base_display.smoke.gotoAndStop(1);
}
}
} else {
_root.tower_attack = false;
base_display.smoke.gotoAndStop(1);
}
if ((unit_number > 0) && (!game_paused)) {
if ((tower_dist_en <= tower_range_en) && (tower_built_en == true)) {
_root.tower_attack_en = true;
base_display_en.smoke.gotoAndStop(2);
} else {
_root.tower_attack_en = false;
base_display_en.smoke.gotoAndStop(1);
}
} else {
_root.tower_attack_en = false;
base_display_en.smoke.gotoAndStop(1);
}
};
_root.enemy_base.onEnterFrame = function () {
if (_root.en_base_health < 1) {
removeMovieClip(this);
}
};
_root.enemy_base2.onEnterFrame = function () {
if (_root.en_base_health2 < 1) {
removeMovieClip(this);
}
};
health_bar_base.onEnterFrame = function () {
this.gotoAndStop(Math.round((base_health / 1000) * 100));
};
health_bar_base_en.onEnterFrame = function () {
this.gotoAndStop(Math.round((en_base_health / 1000) * 100));
};
Instance of Symbol 363 MovieClip "A2" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 2;
}
Instance of Symbol 365 MovieClip "A3" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 3;
}
Instance of Symbol 367 MovieClip "A4" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 4;
}
Instance of Symbol 369 MovieClip "A8" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 8;
}
Instance of Symbol 371 MovieClip "A9" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 9;
}
Instance of Symbol 373 MovieClip "A10" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 10;
}
Instance of Symbol 375 MovieClip "A11" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 11;
}
Instance of Symbol 378 MovieClip "A5" in Frame 11
onClipEvent (load) {
disp_visible = false;
my_ID = 5;
}
Instance of Symbol 380 MovieClip "A6" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 6;
}
Instance of Symbol 382 MovieClip "A7" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 7;
}
Instance of Symbol 384 MovieClip "A12" in Frame 11
onClipEvent (load) {
my_ID = 12;
}
Instance of Symbol 267 MovieClip "A13" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 13;
}
Instance of Symbol 264 MovieClip "A14" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 14;
}
Instance of Symbol 261 MovieClip "A15" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 15;
}
Instance of Symbol 258 MovieClip "A16" in Frame 11
onClipEvent (load) {
my_ID = 16;
}
Instance of Symbol 255 MovieClip "A17" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 17;
}
Instance of Symbol 252 MovieClip "A18" in Frame 11
onClipEvent (load) {
this._visible = false;
my_ID = 18;
}
Instance of Symbol 203 MovieClip "B1" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 1;
}
Instance of Symbol 205 MovieClip "B2" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 2;
}
Instance of Symbol 207 MovieClip "B3" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 3;
}
Instance of Symbol 209 MovieClip "B4" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 4;
}
Instance of Symbol 211 MovieClip "B5" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 5;
}
Instance of Symbol 213 MovieClip "B6" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 6;
}
Instance of Symbol 215 MovieClip "B7" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 7;
}
Instance of Symbol 217 MovieClip "B8" in Frame 11
onClipEvent (load) {
this._visible = false;
this.my_ID = 8;
}
Instance of Symbol 227 MovieClip [pause_screen] "pause_screen" in Frame 11
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((Key.isDown(67) && (Key.isDown(84))) && (Key.isDown(32))) {
_root.attachMovie("A19", "A19", _root.getNextHighestDepth(), {_x:403.9, _y:233.9});
} else {
_root.A19.removeMovieClip();
}
}
Frame 12
_root.onEnterFrame = function () {
routine = 0;
};
Frame 13
_root.onEnterFrame = function () {
routine = 0;
};
Symbol 7 Button
on (release) {
getURL ("http://www.box10.com/?utm_source=brandedgames&utm_medium=1willsurvive", "_blank");
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 23
_parent._parent.startGame();
Symbol 47 MovieClip Frame 100
stop();
_parent.logored.play();
Instance of Symbol 47 MovieClip in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
frame = int((_root.getBytesLoaded() * 100) / _root.getBytesTotal());
if (frame > _currentframe) {
play();
} else {
stop();
}
}
Symbol 52 Button
on (release) {
_root.play();
}
Symbol 53 MovieClip Frame 9
function startGame() {
but._visible = true;
}
stop();
but._visible = false;
Symbol 69 Button
on (release) {
getURL ("http://www.box10.com/?utm_source=brandedgames&utm_medium=1willsurvive", "_blank");
}
Symbol 71 MovieClip Frame 155
_parent.play();
stop();
Symbol 72 MovieClip Frame 36
stop();
Symbol 72 MovieClip Frame 48
_root.play();
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 92 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Instance of Symbol 76 MovieClip "health_bar" in Symbol 101 MovieClip [unit5] Frame 1
onClipEvent (enterFrame) {
if (_root.game_paused == true) {
_parent.punch_sensor_visible == false;
_parent.stop();
} else {
_parent.punch_sensor_visible == true;
_parent.play();
}
}
Symbol 101 MovieClip [unit5] Frame 2
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
} else if ((this.moving == false) && (this.attack == false)) {
gotoAndPlay (1);
}
Symbol 101 MovieClip [unit5] Frame 3
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 4
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 5
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 6
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 7
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 8
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 9
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 10
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 11
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 12
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 13
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 14
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 15
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 16
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 17
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 18
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 19
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 20
if (attack == false) {
gotoAndPlay (2);
}
Symbol 101 MovieClip [unit5] Frame 21
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 22
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 23
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 24
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 25
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 26
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 27
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 28
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 29
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 30
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 31
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 32
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 33
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 34
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 35
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 36
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 37
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 38
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 39
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 40
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 41
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 42
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 43
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 44
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 45
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 46
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 47
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 48
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 101 MovieClip [unit5] Frame 49
if ((attack == true) && (dead == false)) {
gotoAndPlay (20);
} else if ((attack == false) && (dead == false)) {
gotoAndPlay (2);
attack = false;
}
Symbol 101 MovieClip [unit5] Frame 50
if (this.dead_side == 1) {
_root.unit_place = _root.unit_place - 1;
_root.front_unit_row = _root.front_unit_row + 1;
_root.unit_number = _root.unit_number - 1;
_root.unit_made = _root.unit_made - 1;
trace("player_side");
} else {
_root.unit_place_en = _root.unit_place_en - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
_root.unit_number_en = _root.unit_number_en - 1;
trace("en_side");
}
Symbol 101 MovieClip [unit5] Frame 62
stop();
removeMovieClip("");
Symbol 104 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 107 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 109 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 112 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 115 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 118 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Instance of Symbol 76 MovieClip "health_bar" in Symbol 120 MovieClip [unit6] Frame 1
onClipEvent (enterFrame) {
if (_root.game_paused == true) {
_parent.punch_sensor_visible == false;
_parent.stop();
} else {
_parent.punch_sensor_visible == true;
_parent.play();
}
}
Symbol 120 MovieClip [unit6] Frame 2
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
} else if ((this.moving == false) && (this.attack == false)) {
gotoAndPlay (1);
}
Symbol 120 MovieClip [unit6] Frame 3
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 4
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 5
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 6
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 7
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 8
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 9
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 10
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 11
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 12
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 13
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 14
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 15
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 16
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 17
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 18
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 19
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 20
if (attack == false) {
gotoAndPlay (2);
}
Symbol 120 MovieClip [unit6] Frame 21
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 22
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 23
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 24
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 25
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 26
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 27
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 28
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 29
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 30
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 31
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 32
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 33
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 34
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 35
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 36
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 37
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 38
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 39
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 40
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 41
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 42
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 43
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 44
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 45
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 46
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 47
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 48
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 120 MovieClip [unit6] Frame 49
if ((attack == true) && (dead == false)) {
gotoAndPlay (20);
} else if ((attack == false) && (dead == false)) {
gotoAndPlay (2);
attack = false;
}
Symbol 120 MovieClip [unit6] Frame 50
if (this.dead_side == 1) {
_root.unit_place = _root.unit_place - 1;
_root.front_unit_row_lr = _root.front_unit_row_lr + 1;
_root.unit_number_lr = _root.unit_number_lr - 1;
_root.unit_made = _root.unit_made - 1;
trace("player_side");
} else {
_root.front_unit_row_lr_en = _root.front_unit_row_lr_en + 1;
_root.unit_number_lr_en = _root.unit_number_lr_en - 1;
_root.unit_place_en = _root.unit_place_en - 1;
trace("en_side");
}
Symbol 120 MovieClip [unit6] Frame 62
stop();
removeMovieClip("");
Symbol 123 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 126 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 129 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 132 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Instance of Symbol 76 MovieClip "health_bar" in Symbol 133 MovieClip [unit7] Frame 1
onClipEvent (enterFrame) {
if (_root.game_paused == true) {
_parent.punch_sensor_visible == false;
_parent.stop();
} else {
_parent.punch_sensor_visible == true;
_parent.play();
}
}
Symbol 133 MovieClip [unit7] Frame 2
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
} else if ((this.moving == false) && (this.attack == false)) {
gotoAndPlay (1);
}
Symbol 133 MovieClip [unit7] Frame 3
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 4
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 5
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 6
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 7
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 8
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 9
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 10
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 11
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 12
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 13
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 14
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 15
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 16
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 17
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 18
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 19
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 20
if (attack == false) {
gotoAndPlay (2);
}
Symbol 133 MovieClip [unit7] Frame 21
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 22
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 23
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 24
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 25
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 26
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 27
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 28
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 29
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 30
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 31
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 32
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 33
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 34
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 35
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 36
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 37
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 38
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 39
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 40
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 41
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 42
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 43
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 44
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 45
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 46
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 47
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 48
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 133 MovieClip [unit7] Frame 49
if ((attack == true) && (dead == false)) {
gotoAndPlay (20);
} else if ((attack == false) && (dead == false)) {
gotoAndPlay (2);
attack = false;
}
Symbol 133 MovieClip [unit7] Frame 50
if (this.dead_side == 1) {
_root.unit_place = _root.unit_place - 1;
_root.front_unit_row = _root.front_unit_row + 1;
_root.unit_number = _root.unit_number - 1;
_root.unit_made = _root.unit_made - 1;
trace("player_side");
} else {
_root.unit_place_en = _root.unit_place_en - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
_root.unit_number_en = _root.unit_number_en - 1;
trace("en_side");
}
Symbol 133 MovieClip [unit7] Frame 62
stop();
removeMovieClip("");
Symbol 136 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 139 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 142 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Instance of Symbol 76 MovieClip "health_bar" in Symbol 143 MovieClip [unit8] Frame 1
onClipEvent (enterFrame) {
if (_root.game_paused == true) {
_parent.punch_sensor_visible == false;
_parent.stop();
} else {
_parent.punch_sensor_visible == true;
_parent.play();
}
}
Symbol 143 MovieClip [unit8] Frame 2
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
} else if ((this.moving == false) && (this.attack == false)) {
gotoAndPlay (1);
}
Symbol 143 MovieClip [unit8] Frame 3
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 4
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 5
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 6
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 7
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 8
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 9
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 10
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 11
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 12
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 13
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 14
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 15
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 16
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 17
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 18
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 19
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 20
if (attack == false) {
gotoAndPlay (2);
}
Symbol 143 MovieClip [unit8] Frame 21
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 22
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 23
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 24
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 25
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 26
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 27
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 28
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 29
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 30
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 31
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 32
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 33
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 34
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 35
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 36
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 37
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 38
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 39
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 40
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 41
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 42
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 43
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 44
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 45
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 46
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 47
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 48
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 143 MovieClip [unit8] Frame 49
if ((attack == true) && (dead == false)) {
gotoAndPlay (20);
} else if ((attack == false) && (dead == false)) {
gotoAndPlay (2);
attack = false;
}
Symbol 143 MovieClip [unit8] Frame 50
if (this.dead_side == 1) {
_root.unit_place = _root.unit_place - 1;
_root.front_unit_row = _root.front_unit_row + 1;
_root.unit_number = _root.unit_number - 1;
_root.unit_made = _root.unit_made - 1;
trace("player_side");
} else {
_root.unit_place_en = _root.unit_place_en - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
_root.unit_number_en = _root.unit_number_en - 1;
trace("en_side");
}
Symbol 143 MovieClip [unit8] Frame 62
stop();
removeMovieClip("");
Symbol 146 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 149 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 152 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Instance of Symbol 76 MovieClip "health_bar" in Symbol 153 MovieClip [unit_lr] Frame 1
onClipEvent (enterFrame) {
if (_root.game_paused == true) {
_parent.punch_sensor_visible == false;
_parent.stop();
} else {
_parent.punch_sensor_visible == true;
_parent.play();
}
}
Symbol 153 MovieClip [unit_lr] Frame 2
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
} else if ((this.moving == false) && (this.attack == false)) {
gotoAndPlay (1);
}
Symbol 153 MovieClip [unit_lr] Frame 3
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 4
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 5
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 6
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 7
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 8
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 9
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 10
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 11
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 12
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 13
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 14
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 15
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 16
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 17
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 18
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 19
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 20
if (attack == false) {
gotoAndPlay (2);
}
Symbol 153 MovieClip [unit_lr] Frame 21
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 22
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 23
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 24
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 25
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 26
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 27
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 28
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 29
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 30
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 31
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 32
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 33
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 34
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 35
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 36
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 37
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 38
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 39
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 40
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 41
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 42
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 43
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 44
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 45
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 46
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 47
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 48
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 153 MovieClip [unit_lr] Frame 49
if ((attack == true) && (dead == false)) {
gotoAndPlay (20);
} else if ((attack == false) && (dead == false)) {
gotoAndPlay (2);
attack = false;
}
Symbol 153 MovieClip [unit_lr] Frame 50
if (this.dead_side == 1) {
_root.unit_place = _root.unit_place - 1;
_root.front_unit_row_lr = _root.front_unit_row_lr + 1;
_root.unit_number_lr = _root.unit_number_lr - 1;
_root.unit_made = _root.unit_made - 1;
trace("player_side");
} else {
_root.front_unit_row_lr_en = _root.front_unit_row_lr_en + 1;
_root.unit_number_lr_en = _root.unit_number_lr_en - 1;
_root.unit_place_en = _root.unit_place_en - 1;
trace("en_side");
}
Symbol 153 MovieClip [unit_lr] Frame 62
stop();
removeMovieClip("");
Symbol 160 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Instance of Symbol 76 MovieClip "health_bar" in Symbol 162 MovieClip [unit_lr2] Frame 1
onClipEvent (enterFrame) {
if (_root.game_paused == true) {
_parent.punch_sensor_visible == false;
_parent.stop();
} else {
_parent.punch_sensor_visible == true;
_parent.play();
}
}
Symbol 162 MovieClip [unit_lr2] Frame 2
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
} else if ((this.moving == false) && (this.attack == false)) {
gotoAndPlay (1);
}
Symbol 162 MovieClip [unit_lr2] Frame 3
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 4
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 5
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 6
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 7
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 8
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 9
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 10
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 11
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 12
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 13
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 14
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 15
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 16
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 17
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 18
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 19
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 20
if (attack == false) {
gotoAndPlay (2);
}
Symbol 162 MovieClip [unit_lr2] Frame 21
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 22
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 23
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 24
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 25
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 26
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 27
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 28
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 29
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 30
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 31
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 32
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 33
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 34
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 35
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 36
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 37
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 38
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 39
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 40
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 41
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 42
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 43
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 44
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 45
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 46
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 47
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 48
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 162 MovieClip [unit_lr2] Frame 49
if ((attack == true) && (dead == false)) {
gotoAndPlay (20);
} else if ((attack == false) && (dead == false)) {
gotoAndPlay (2);
attack = false;
}
Symbol 162 MovieClip [unit_lr2] Frame 50
if (this.dead_side == 1) {
_root.unit_place = _root.unit_place - 1;
_root.front_unit_row_lr = _root.front_unit_row_lr + 1;
_root.unit_number_lr = _root.unit_number_lr - 1;
_root.unit_made = _root.unit_made - 1;
trace("player_side");
} else {
_root.front_unit_row_lr_en = _root.front_unit_row_lr_en + 1;
_root.unit_number_lr_en = _root.unit_number_lr_en - 1;
_root.unit_place_en = _root.unit_place_en - 1;
trace("en_side");
}
Symbol 162 MovieClip [unit_lr2] Frame 62
stop();
removeMovieClip("");
Symbol 165 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 168 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 171 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 174 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Instance of Symbol 76 MovieClip "health_bar" in Symbol 175 MovieClip [unit_heal] Frame 1
onClipEvent (enterFrame) {
if (_root.game_paused == true) {
_parent.punch_sensor_visible == false;
_parent.stop();
} else {
_parent.punch_sensor_visible == true;
_parent.play();
}
}
Symbol 175 MovieClip [unit_heal] Frame 2
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
} else if ((this.moving == false) && (this.attack == false)) {
gotoAndPlay (1);
}
Symbol 175 MovieClip [unit_heal] Frame 3
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 4
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 5
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 6
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 7
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 8
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 9
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 10
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 11
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 12
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 13
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 14
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 15
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 16
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 17
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 18
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 19
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 175 MovieClip [unit_heal] Frame 20
if (attack == false) {
gotoAndPlay (2);
}
Symbol 175 MovieClip [unit_heal] Frame 49
if ((attack == true) && (dead == false)) {
gotoAndPlay (20);
} else if ((attack == false) && (dead == false)) {
gotoAndPlay (2);
attack = false;
}
Symbol 175 MovieClip [unit_heal] Frame 50
if (this.dead_side == 1) {
_root.unit_place = _root.unit_place - 1;
_root.front_unit_row_lr = _root.front_unit_row_lr + 1;
_root.unit_number_lr = _root.unit_number_lr - 1;
_root.unit_made = _root.unit_made - 1;
trace("player_side");
} else {
_root.front_unit_row_lr_en = _root.front_unit_row_lr_en + 1;
_root.unit_number_lr_en = _root.unit_number_lr_en - 1;
_root.unit_place_en = _root.unit_place_en - 1;
trace("en_side");
}
Symbol 175 MovieClip [unit_heal] Frame 62
stop();
removeMovieClip("");
Symbol 178 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 181 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Symbol 184 MovieClip Frame 1
if (_parent.unit_side == 1) {
stop();
trace("player_unit");
} else {
gotoAndStop (2);
trace("en_unit");
}
Instance of Symbol 76 MovieClip "health_bar" in Symbol 185 MovieClip [unit] Frame 1
onClipEvent (enterFrame) {
if (_root.game_paused == true) {
_parent.punch_sensor_visible == false;
_parent.stop();
} else {
_parent.punch_sensor_visible == true;
_parent.play();
}
}
Symbol 185 MovieClip [unit] Frame 2
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
} else if ((this.moving == false) && (this.attack == false)) {
gotoAndPlay (1);
}
Symbol 185 MovieClip [unit] Frame 3
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 4
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 5
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 6
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 7
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 8
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 9
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 10
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 11
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 12
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 13
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 14
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 15
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 16
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 17
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 18
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 19
if (this.attack == true) {
gotoAndPlay (20);
} else if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 20
if (attack == false) {
gotoAndPlay (2);
}
Symbol 185 MovieClip [unit] Frame 21
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 22
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 23
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 24
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 25
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 26
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 27
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 28
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 29
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 30
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 31
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 32
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 33
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 34
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 35
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 36
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 37
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 38
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 39
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 40
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 41
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 42
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 43
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 44
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 45
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 46
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 47
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 48
if (this.dead == true) {
gotoAndPlay (50);
}
Symbol 185 MovieClip [unit] Frame 49
if ((attack == true) && (dead == false)) {
gotoAndPlay (20);
} else if ((attack == false) && (dead == false)) {
gotoAndPlay (2);
attack = false;
}
Symbol 185 MovieClip [unit] Frame 50
if (this.dead_side == 1) {
_root.unit_place = _root.unit_place - 1;
_root.front_unit_row = _root.front_unit_row + 1;
_root.unit_made = _root.unit_made - 1;
_root.unit_number = _root.unit_number - 1;
trace("player_side");
} else {
_root.unit_place_en = _root.unit_place_en - 1;
_root.front_unit_row_en = _root.front_unit_row_en + 1;
_root.unit_number_en = _root.unit_number_en - 1;
trace("en_side");
}
Symbol 185 MovieClip [unit] Frame 62
stop();
removeMovieClip("");
Symbol 191 Button
on (release) {
if (((_parent.game_paused == false) && (_parent.unit_made < _parent.unit_limit)) && (_parent.gold >= 70)) {
_parent.gold = _parent.gold - 70;
_parent.unit_made = _parent.unit_made + 1;
_parent.build_time = 230;
play();
} else if (_parent.unit_made == _parent.unit_limit) {
_parent.ins2.play();
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datUnit[my_ID][0];
_root.hargaBangunan = _root.datUnit[my_ID][1];
_root.deskBangunan = _root.datUnit[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 204 Button
on (release) {
if (((_parent.game_paused == false) && (_parent.unit_made < _parent.unit_limit)) && (_parent.gold >= 90)) {
_parent.gold = _parent.gold - 90;
_parent.build_time_lr = 230;
_parent.unit_made = _parent.unit_made + 1;
play();
} else if (_parent.unit_made == _parent.unit_limit) {
_parent.ins2.play();
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datUnit[my_ID][0];
_root.hargaBangunan = _root.datUnit[my_ID][1];
_root.deskBangunan = _root.datUnit[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Instance of Symbol 202 MovieClip in Symbol 205 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 206 Button
on (release) {
if (((_parent.game_paused == false) && (_parent.unit_made < _parent.unit_limit)) && (_parent.gold >= 80)) {
_parent.gold = _parent.gold - 80;
_parent.build_time_heal = 230;
_parent.unit_made = _parent.unit_made + 1;
play();
} else if (_parent.unit_made == _parent.unit_limit) {
_parent.ins2.play();
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datUnit[my_ID][0];
_root.hargaBangunan = _root.datUnit[my_ID][1];
_root.deskBangunan = _root.datUnit[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Instance of Symbol 202 MovieClip in Symbol 207 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 208 Button
on (release) {
if (((_parent.game_paused == false) && (_parent.unit_made < _parent.unit_limit)) && (_parent.gold >= 120)) {
_parent.gold = _parent.gold - 120;
_parent.build_time_lr2 = 270;
_parent.unit_made = _parent.unit_made + 1;
play();
} else if (_parent.unit_made == _parent.unit_limit) {
_parent.ins2.play();
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datUnit[my_ID][0];
_root.hargaBangunan = _root.datUnit[my_ID][1];
_root.deskBangunan = _root.datUnit[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Instance of Symbol 202 MovieClip in Symbol 209 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 210 Button
on (release) {
if (((_parent.game_paused == false) && (_parent.unit_made < _parent.unit_limit)) && (_parent.gold >= 140)) {
_parent.gold = _parent.gold - 140;
_parent.build_time2 = 270;
_parent.unit_made = _parent.unit_made + 1;
play();
} else if (_parent.unit_made == _parent.unit_limit) {
_parent.ins2.play();
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datUnit[my_ID][0];
_root.hargaBangunan = _root.datUnit[my_ID][1];
_root.deskBangunan = _root.datUnit[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Instance of Symbol 202 MovieClip in Symbol 211 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 212 Button
on (release) {
if (((_parent.game_paused == false) && (_parent.unit_made < _parent.unit_limit)) && (_parent.gold >= 225)) {
_parent.gold = _parent.gold - 225;
_parent.build_time_lr3 = 290;
_parent.unit_made = _parent.unit_made + 1;
play();
} else if (_parent.unit_made == _parent.unit_limit) {
_parent.ins2.play();
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datUnit[my_ID][0];
_root.hargaBangunan = _root.datUnit[my_ID][1];
_root.deskBangunan = _root.datUnit[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Instance of Symbol 202 MovieClip in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 214 Button
on (release) {
if (((_parent.game_paused == false) && (_parent.unit_made < _parent.unit_limit)) && (_parent.gold >= 210)) {
_parent.gold = _parent.gold - 210;
_parent.build_time3 = 300;
_parent.unit_made = _parent.unit_made + 1;
play();
} else if (_parent.unit_made == _parent.unit_limit) {
_parent.ins2.play();
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datUnit[my_ID][0];
_root.hargaBangunan = _root.datUnit[my_ID][1];
_root.deskBangunan = _root.datUnit[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Instance of Symbol 202 MovieClip in Symbol 215 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 216 Button
on (release) {
if (((_parent.game_paused == false) && (_parent.unit_made < _parent.unit_limit)) && (_parent.gold >= 320)) {
_parent.gold = _parent.gold - 320;
_parent.build_time4 = 300;
_parent.unit_made = _parent.unit_made + 1;
play();
} else if (_parent.unit_made == _parent.unit_limit) {
_parent.ins2.play();
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datUnit[my_ID][0];
_root.hargaBangunan = _root.datUnit[my_ID][1];
_root.deskBangunan = _root.datUnit[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Instance of Symbol 202 MovieClip in Symbol 217 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 218 Button
on (release) {
_parent.retreat = true;
_parent.charge = false;
}
on (rollOver) {
_parent.com_display.gotoAndStop("retreat");
}
on (rollOut) {
_parent.com_display.gotoAndStop(1);
}
Symbol 219 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 202 MovieClip in Symbol 219 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 223 Button
on (release) {
_root.game_paused = false;
_parent.removeMovieClip();
}
Symbol 226 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 203 MovieClip "B1" in Symbol 227 MovieClip [pause_screen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 205 MovieClip "B2" in Symbol 227 MovieClip [pause_screen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 207 MovieClip "B3" in Symbol 227 MovieClip [pause_screen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 209 MovieClip "B4" in Symbol 227 MovieClip [pause_screen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 211 MovieClip "B5" in Symbol 227 MovieClip [pause_screen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 213 MovieClip "B6" in Symbol 227 MovieClip [pause_screen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 215 MovieClip "B7" in Symbol 227 MovieClip [pause_screen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 217 MovieClip "B8" in Symbol 227 MovieClip [pause_screen] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 232 Button
on (release) {
if (_parent.gold >= 260) {
_parent.build_time_b18 = 350;
_parent.gold = _parent.gold - 260;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 252 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 252 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 254 Button
on (release) {
if (_parent.gold >= 500) {
_parent.build_time_b17 = 350;
_parent.gold = _parent.gold - 500;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 255 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 255 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 255 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 257 Button
on (release) {
if (_parent.gold >= 150) {
_parent.build_time_b16 = 350;
_parent.gold = _parent.gold - 150;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 258 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 258 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 258 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 260 Button
on (release) {
if (_parent.gold >= 150) {
_parent.build_time_b14 = 350;
_parent.gold = _parent.gold - 150;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 261 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 261 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 261 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 263 Button
on (release) {
if (_parent.gold >= 420) {
_parent.build_time_b15 = 350;
_parent.gold = _parent.gold - 420;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 264 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 264 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 264 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 266 Button
on (release) {
if (_parent.gold >= 200) {
_parent.build_time_b13 = 350;
_parent.gold = _parent.gold - 200;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 267 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 267 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 267 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 272 MovieClip Frame 2
stop();
Symbol 281 Button
on (release) {
nextFrame();
}
Symbol 282 Button
on (release) {
getURL ("http://www.box10.com/?utm_source=brandedgames&utm_medium=1willsurvive", "_blank");
}
Symbol 286 Button
on (release) {
getURL ("http://www.box10.com/?utm_source=brandedgames&utm_medium=1willsurvive", "_blank");
}
Symbol 292 Button
on (release) {
nextFrame();
_parent.gold_en = 120;
_parent.easy_diff = true;
}
Symbol 294 Button
on (release) {
nextFrame();
_parent.gold_en = 190;
_parent.normal_diff = true;
}
Symbol 295 Button
on (release) {
nextFrame();
_parent.gold_en = 210;
_parent.hard_diff = true;
}
Symbol 297 Button
on (release) {
prevFrame();
}
Symbol 305 Button
on (release) {
_root.nextFrame();
}
Symbol 307 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 2
_root.head_buble.gotoAndStop("intro2");
Symbol 320 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 4
_root.tower_target();
Symbol 335 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 4
trace("tembak");
_root["unit_" + _root.front_unit_row].unit_health = _root["unit_" + _root.front_unit_row].unit_health - 3;
Symbol 360 Button
on (release) {
if ((_parent.game_paused == false) && (_parent.gold >= 120)) {
_parent.build_time_b1 = 350;
_parent.gold = _parent.gold - 120;
trace(num);
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[1][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 361 MovieClip Frame 1
my_str = _name;
my_ID = 1;
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 361 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 361 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 362 Button
on (release) {
if (_parent.gold >= 210) {
_parent.build_time_b2 = 350;
_parent.gold = _parent.gold - 210;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 363 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 363 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 363 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 364 Button
on (release) {
if (_parent.gold >= 250) {
_parent.build_time_b3 = 350;
_parent.gold = _parent.gold - 250;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 365 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 365 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 365 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 366 Button
on (release) {
if (_parent.gold >= 160) {
_parent.build_time_b4 = 350;
_parent.gold = _parent.gold - 160;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 367 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 367 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 367 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 368 Button
on (release) {
if (_parent.gold >= 100) {
_parent.build_time_b8 = 350;
_parent.gold = _parent.gold - 100;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 369 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 369 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 369 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 370 Button
on (release) {
if (_parent.gold >= 180) {
_parent.build_time_b9 = 350;
_parent.gold = _parent.gold - 180;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 371 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 371 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 371 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 372 Button
on (release) {
if (_parent.gold >= 120) {
_parent.build_time_b10 = 350;
_parent.gold = _parent.gold - 120;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 373 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 373 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 374 Button
on (release) {
if (_parent.gold >= 210) {
_parent.build_time_b11 = 350;
_parent.gold = _parent.gold - 210;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 375 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 375 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 375 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 377 Button
on (release) {
if (_parent.gold >= 500) {
_parent.build_time_b5 = 350;
_parent.gold = _parent.gold - 500;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 378 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 378 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 379 Button
on (release) {
if (_parent.gold >= 300) {
_parent.build_time_b6 = 350;
_parent.gold = _parent.gold - 300;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 380 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 380 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 380 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 381 Button
on (release) {
if (_parent.gold >= 900) {
_parent.build_time_b7 = 350;
_parent.gold = _parent.gold - 900;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 382 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 382 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 382 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 383 Button
on (release) {
if (_parent.gold >= 220) {
_parent.build_time_b12 = 350;
_parent.gold = _parent.gold - 220;
} else {
_parent.ins.play();
}
}
on (rollOver) {
_root.namaBangunan = _root.datBangunan[my_ID][0];
_root.hargaBangunan = _root.datBangunan[my_ID][1];
_root.deskBangunan = _root.datBangunan[my_ID][2];
trace(_root.datBangunan[0][0]);
_root.head_buble.gotoAndStop("desk");
}
on (rollOut) {
_root.head_buble.gotoAndStop(1);
}
Symbol 384 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 251 MovieClip in Symbol 384 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Instance of Symbol 251 MovieClip in Symbol 384 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 386 Button
on (release) {
_parent.charge = true;
_parent.retreat = false;
}
on (rollOver) {
_parent.com_display.gotoAndStop("attack");
}
on (rollOut) {
_parent.com_display.gotoAndStop(1);
}
Symbol 387 MovieClip Frame 1
gotoAndStop (2);
Instance of Symbol 202 MovieClip in Symbol 387 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._name);
}
Symbol 389 Button
on (release) {
_parent.game_paused = true;
_root.attachMovie("pause_screen", "pause_screen", _root.getNextHighestDepth());
}
on (rollOver) {
_parent.com_display.gotoAndStop("pause");
}
on (rollOut) {
_parent.com_display.gotoAndStop(1);
}
Symbol 390 MovieClip Frame 1
gotoAndStop (2);
Symbol 396 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
stop();
Symbol 410 Button
on (release) {
base_health = base_health + 1000;
}
Symbol 415 Button
on (release) {
en_base_health = 0;
}
Symbol 420 Button
on (release) {
if ((_parent.jumlah_unit < 10) && (_parent.gold >= 75)) {
_parent.gold = _parent.gold - 75;
_parent.build_time = 230;
} else {
_parent.ins.play();
}
}
Symbol 422 Button
on (release) {
_parent.build_time_en2 = 10;
if (_parent.jumlah_unit_en < 10) {
}
}
Symbol 426 Button
on (release) {
gold = gold + 1000;
}
Symbol 429 Button
on (release) {
if ((_parent.jumlah_unit < 10) && (_parent.gold >= 75)) {
_parent.gold = _parent.gold - 75;
_parent.build_time_lr = 230;
} else {
_parent.ins.play();
}
}
Symbol 432 Button
on (release) {
_root.gold = _root.gold + 800;
}
Symbol 435 Button
on (release) {
charge_en = true;
retreat_en = false;
}
Symbol 436 Button
on (release) {
retreat_en = true;
charge_en = false;
}
Symbol 437 Button
on (release) {
if (_parent.jumlah_unit_en < 10) {
_parent.build_time_lr_en = 10;
}
}
Symbol 439 Button
on (release) {
if (_parent.jumlah_unit_en < 10) {
_parent.build_time_heal_en = 230;
}
}
Symbol 449 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 1
Symbol 469 MovieClip Frame 2
stop();
Symbol 474 Button
on (release) {
gotoAndStop (10);
victory = false;
lose = false;
}