Frame 1
LinktoURL = "http://www.kongregate.com/games/DJStatika/warlords-call-to-arms/?gamereferral=warlords";
LinktoURLmain = "http://www.kongregate.com/?gamereferral=warlords";
lastmusic = random(2) + 1;
_root.gameinprogress = false;
_root.winner = undefined;
arrleftSoldiers = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
arrrightSoldiers = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.cheatcode = "";
soldiernum = 0;
objectnum = 0;
rightscore = 0;
leftscore = 0;
rightkills = 0;
leftkills = 0;
_root.tutorialstage = 1;
if ((adsetup != true) && (_url.indexOf("kongregate.com") < 0)) {
trace("CPM Star Ad");
var CPMStarPoolID = 1059;
var CPMStarSubPoolID = 201;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
adsetup = true;
}
if (baramount == undefined) {
baramount = 0;
}
loadedamount = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (baramount < loadedamount) {
baramount++;
}
loadedtext = baramount + "%";
if (baramount >= 100) {
_root.loader.gotoAndStop(2);
}
Frame 2
gotoAndPlay (1);
Frame 3
stopAllSounds();
stop();
_root.kongregateServices.connect();
_root.attackingregion = undefined;
arrleftSoldierChoices = new Array(0, 1, 2);
arrrightSoldierChoices = new Array(0, 1, 2);
reset();
Stage.showMenu = false;
_root.towin = 50;
_root.chargekills = 20;
_root.top = 600;
strUpgradeOptions = "";
strUpgradeOptions = strUpgradeOptions + "Speed|600|Speed Training (+1)|Increase the movement speed of all units\n";
strUpgradeOptions = strUpgradeOptions + "Armour|600|Increased Armour (+10)|Increase the armour of all units\n";
strUpgradeOptions = strUpgradeOptions + "Archery|500|Marksmanship (+1)|Improve the accuracy of archers and other ranged units\n";
strUpgradeOptions = strUpgradeOptions + "Spear|300|Spear Training (+5)|Increase the damage done by spear wielding units\n";
strUpgradeOptions = strUpgradeOptions + "Sword|450|Swordsmanship (+5)|Increase the damage done by sword wielding units\n";
strUpgradeOptions = strUpgradeOptions + "Halberd|400|Halberd Training (+5)|Increase the damage done by halberd wielding units\n";
strUpgradeOptions = strUpgradeOptions + "Axe|400|Axe Training (+5)|Increase the damage done by axe wielding units\n";
arrUpgradeOptions = strUpgradeOptions.split(newline);
so = SharedObject.getLocal("Warlords");
if (so.data.quality != undefined) {
_quality = so.data.quality;
} else {
_quality = "medium";
}
levelnum = so.data.level;
if (levelnum == undefined) {
levelnum = 1;
}
if (_root.demonsunlocked == undefined) {
_root.demonsunlocked = so.data.demonsunlocked;
}
option_sound = so.data.option_sound;
if (option_sound == undefined) {
option_sound = true;
}
option_music = so.data.option_music;
if (option_music == undefined) {
option_music = true;
}
option_autosend = so.data.option_autosend;
if (option_autosend == undefined) {
option_autosend = false;
}
leftmoney = so.data.money;
if (leftmoney == undefined) {
leftmoney = 500;
}
mykills = so.data.mykills;
if (mykills == undefined) {
mykills = 0;
}
MyRace = so.data.race;
if (MyRace == undefined) {
MyRace = random(arrRacesDataArray.length - 5);
blnSavedDataFound = false;
} else {
blnSavedDataFound = true;
}
arrleftSoldierChoices = so.data.mysoldiers;
if (arrleftSoldierChoices == undefined) {
arrleftSoldierChoices = new Array(0, 1, 2);
}
arrrightSoldierChoices = new Array(0, 1, 2);
strRegions = "";
strRegions = strRegions + "Isendor|1|2,13|Easy|250|7,15,2|22\n";
strRegions = strRegions + "Chan|1|1,13,3|Medium|500|0,1,2,7|23\n";
strRegions = strRegions + "Goroth|2|2,13,14,15,5,4|Medium|500|0,1,2,9|16\n";
strRegions = strRegions + "Chogoth|2|3,5|Easy|250|0,15,2,9|17\n";
strRegions = strRegions + "Thareth|2|4,3,15,7,6|Hard|750|0,1,2,9,4|18\n";
strRegions = strRegions + "Chogro|7|5,7,8|Easy|750|0,1,2,8|14\n";
strRegions = strRegions + "Trajeck|7|5,6,8,11,16,25,14,15|Medium|500|0,1,2|15\n";
strRegions = strRegions + "Othok|8|6,7,11,10,9|V. Hard|1250|0,1,8,15|11\n";
strRegions = strRegions + "Sath|8|8,10|V. Hard|1250|0,1,2,4,14|10\n";
strRegions = strRegions + "Thray|8|9,8,11,12|V. Hard|500|0,1,2,4,3,14|11\n";
strRegions = strRegions + "Vorth|8|8,10,12,18,17,16,7|V. Hard|1750|0,1,8,4,6,5,14|12\n";
strRegions = strRegions + "Orthshire|0|10,11,18|Hard|750|0,1,2,5,18|2\n";
strRegions = strRegions + "Azzitha|1|1,2,3,14,27,21|Hard|750|1,2,3,10|24\n";
strRegions = strRegions + "Senshan|6|3,15,7,25,24,26,27,13|Easy|250|0,15,2,5|6\n";
strRegions = strRegions + "Battakka|7|3,5,7,14|Hard|750|15,1,2,16|13\n";
strRegions = strRegions + "Forest of the Damned|5|7,11,17,23,24,25|Medium|500|5,1,2|9\n";
strRegions = strRegions + "Farreshire|0|16,11,18,19,20,23|Easy|250|0,15,2,5|1\n";
strRegions = strRegions + "Acity|0|12,11,17,19|Medium|500|0,1,2,8,4|3\n";
strRegions = strRegions + "Darkwood|3|18,17,20,22|Easy|250|0,15,2|25\n";
strRegions = strRegions + "Eastern Forest|3|17,19,22,23|Hard|750|0,1,2,3,5,6|26\n";
strRegions = strRegions + "Roon|6|13,27,26,28|Medium|500|0,1,13,4|5\n";
strRegions = strRegions + "Woodland|3|23,20,19|Medium|500|0,1,2,5|27\n";
strRegions = strRegions + "Arragas|4|28,26,24,16,17,20,22|Easy|250|0,15,11,5|19\n";
strRegions = strRegions + "Dead Plains|5|26,14,25,16,23|Hard|750|0,5,17,6|7\n";
strRegions = strRegions + "Dead Marshes|5|14,7,16,24|Easy|250|5,15,2|8\n";
strRegions = strRegions + "Barrock|4|21,27,14,24,23,28|Medium|500|0,1,11|20\n";
strRegions = strRegions + "Mylen|6|21,13,14,26|Hard|750|0,1,13,6,5|4\n";
strRegions = strRegions + "Nartoth|4|21,26,23|Hard|750|0,1,11,8|21\n";
arrRegions = strRegions.split(newline);
strRaces = "";
strRaces = strRaces + "human|0,102,255|Human Alliance|Armour+1|Spear-1|an age of peace|An alliance of different regions of humans who all serve under one king. Skilled craftsmen enable them to have the toughest armour in the land.\n";
strRaces = strRaces + "elf|102,0,204|Night Elves|Archery+2|Sword-2|an endless night|A mysterious army of elves that hide away during the day and work and train at night. Only such extremes as war will bring these expert archers out in the day.\n";
strRaces = strRaces + "orc|255,0,0|Orcs of the North|Halberd+2|Archery-2|an age of chaos|A particularly strong breed of orcs. These chaotic green warriors crave the excitement of battle.\n";
strRaces = strRaces + "woodelf|0,153,102|Wood Elves|Archery+1|Spear-1|an age of natural beauty|These elves that live in forests and woodland have great respect for nature and will defend it at all costs.\n";
strRaces = strRaces + "orc2|157,106,30|Orcs of the South|Sword+1|Archery-1|oppression and misery|The orcs from the south have been oppressed for a long time, and a deep hatred of all others has developed. They believe now is the time for vengence.\n";
strRaces = strRaces + "undead|255,255,204|The Undead|Halberd+3|Archery-3|a reign of terror|Once resurrected by a great necromancer who has since perished, these warriors will not die through natural causes. Only through the weapons of war.\n";
strRaces = strRaces + "human2|255,204,0|Men of the West|Sword+2|Halberd-2|a mighty empire|A rogue kingdom of men, who no longer server the king. These humans take great pride in their finely crafted swords and their ability to use them.\n";
strRaces = strRaces + "troll|204,51,153|Mountain Trolls|Speed+1|Armour-1|an endless winter|The Mountain Trolls have been driven from their homes and now only live in cold, icey places where others won't. Their giant troll warriors make them an army feared around the land.\n";
strRaces = strRaces + "demon|51,0,0|Demons|Speed+2|Spear+2|a reign of fire|The demons are creatures filled with anger. The only thing that brings them pleasure is the pain of others.\n";
arrRacesDataArray = strRaces.split(newline);
strSoldiers = "";
strSoldiers = strSoldiers + "Spearman|5|40|50|130|250||20|Standard unit. Fast moving and quick to produce with a long reach. But with low armour. Good for charging down archers and getting men across the map quickly.\n";
strSoldiers = strSoldiers + "Swordsman|3|100|70|100|600||35|Tough infantry unit. Fairly short range attack but have tough armor and can do good damage.\n";
strSoldiers = strSoldiers + "Archer|2|15|70|1500|500||10|Long ranged attack unit. Weak armour, but can kill low armour units before they get close enough to attack. Very dangerous in large numbers.\n";
strSoldiers = strSoldiers + "Mage|3|10|180|1000|900||50|Powerful ranged attack, but with very low armour.\n";
strSoldiers = strSoldiers + "Mounted Spearman|6|100|180|200|1400||20|Fast, tough, powerful unit. Good for driving the enemy back.\n";
strSoldiers = strSoldiers + "Halberdier|2|40|60|130|500||40|Strong, long reaching attack but with low armour. Excellent in numbers against mounted units. Vulnerable to ranged attacks.\n";
strSoldiers = strSoldiers + "Mounted Halberdier|8|60|150|200|1100||45|Very fast unit with a long ranged attack. Excellent for driving back the enemy.\n";
strSoldiers = strSoldiers + "Scout|10|10|60|60|400||10|Very fast, but very weak unit. Useful for charging through gaps in the enemy's defence.\n";
strSoldiers = strSoldiers + "Longswordsman|3|100|130|100|1000||60|Extra tough swordsman with a long reaching sword.\n";
strSoldiers = strSoldiers + "Battle Axeman|3|40|60|100|900|2|60|Very high damage attack, but is slow to use it and has weak armour.\n";
strSoldiers = strSoldiers + "Whirler|5|100|160|160|1600|1|35|Dangerous rapid attacks. Very useful against lone units.\n";
strSoldiers = strSoldiers + "Axe Thrower|3|40|70|750|600|4|20|Medium ranged, medium damage attacks\n";
strSoldiers = strSoldiers + "Ranger|2|50|120|1700|1300|3|10|Skilled archer. Can fire arrows more rapidly and further than the standard archer.\n";
strSoldiers = strSoldiers + "Javelin Thrower|4|50|130|750|800|6|25|Medium-short ranged projectile attacks. Useful against halberdiers and Battle Axemen.\n";
strSoldiers = strSoldiers + "Spearmaster|6|130|130|130|1200|8|45|Highly skilled spearman.\n";
strSoldiers = strSoldiers + "Axeman|5|80|100|110|500||45|Attacks while charging forward. Useful for driving back enemy and against long reaching weapons.\n";
strSoldiers = strSoldiers + "Giant Troll|5|220|400|250|3200|7|500|Very tough unit with very dangerous attack. Takes a long time to produce.\n";
strSoldiers = strSoldiers + "Flailer|3|100|180|165|1300|5|100|Tough unit with very dangerous attack.\n";
strSoldiers = strSoldiers + "King's Guard|4|120|180|130|1600|0|90|Heavily armoured elite swordsman\n";
arrSoldiers = strSoldiers.split(newline);
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("90365f49", this, 10301, true);
function reset() {
_root.gameinprogress = false;
_root.winner = undefined;
arrleftSoldiers = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
arrrightSoldiers = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
soldiernum = 0;
objectnum = 0;
rightscore = 0;
leftscore = 0;
rightkills = 0;
leftkills = 0;
}
function IncrementObjectNum() {
objectnum++;
if (objectnum > 1000) {
objectnum = 1;
}
}
function AddSound(strSound, pos) {
if (pos == undefined) {
pos = 3;
}
IncrementObjectNum();
newSoundClip = _root.createEmptyMovieClip((("Sounds_" + strSound) + "_") + pos, objectnum);
newSoundClip.SoundFX = new Sound(newSoundClip);
newSoundClip.SoundFX.attachSound(strSound);
newSoundClip.SoundFX.setPan(-100 + ((pos - 1) * 50));
}
function PlaySound(strSound, xpos) {
if (option_sound == true) {
if (xpos == undefined) {
posnum = 3;
} else {
posnum = Math.ceil(xpos / 580);
}
_root[(("Sounds_" + strSound) + "_") + posnum].SoundFX.stop();
_root[(("Sounds_" + strSound) + "_") + posnum].SoundFX.setVolume(80);
_root[(("Sounds_" + strSound) + "_") + posnum].SoundFX.start(0, 1);
}
}
function PlayMusic(strSound) {
stopAllSounds();
if (option_music == true) {
trace("Play: " + strSound);
_root.music.gotoAndStop(strSound);
}
}
function StopSound(strSound, xpos) {
if (xpos == undefined) {
posnum = 3;
} else {
posnum = Math.ceil(xpos / 580);
}
_root[(("Sounds_" + strSound) + "_") + posnum].SoundFX.stop();
}
function Tint(obj, r, g, b) {
myColor = new Color(obj);
myColorTransform = new Object();
myColorTransform.ra = r;
myColorTransform.rb = 0;
myColorTransform.ga = g;
myColorTransform.gb = 0;
myColorTransform.ba = b;
myColorTransform.bb = 0;
myColorTransform.aa = 100;
myColorTransform.ab = 0;
myColor.setTransform(myColorTransform);
}
function SetRegionOwner(intRegion, owner) {
arrRegionData = arrRegions[intRegion - 1].split("|");
so.data[("level" + intRegion) + "owner"] = owner;
so.flush();
_root.victorytext = (GetRegionData("Name", intRegion) + " is now owned by ") + GetRaceData("Full Name", owner);
arrRegions[intRegion - 1] = (((arrRegionData[0] + "|") + owner) + "|") + arrRegionData[2];
}
function GetRegionData(strData, intRegion) {
arrRegionData = arrRegions[intRegion - 1].split("|");
if (strData == "Name") {
return(arrRegionData[0]);
}
if (strData == "Race") {
return(Number(arrRegionData[1]));
}
if (strData == "Adjacent") {
return(arrRegionData[2]);
}
if (strData == "Difficulty") {
return(arrRegionData[3]);
}
if (strData == "Reward") {
return(arrRegionData[4]);
}
if (strData == "Starting Units") {
return(arrRegionData[5]);
}
if (strData == "Background") {
return(Number(arrRegionData[6]));
}
}
function GetRaceData(strData, intRace) {
arrRaceData = arrRacesDataArray[Number(intRace)].split("|");
if (strData == "Name") {
return(arrRaceData[0]);
}
if (strData == "RGB") {
return(arrRaceData[1]);
}
if (strData == "Full Name") {
return(arrRaceData[2]);
}
}
function AI(obj) {
if (obj.AI == true) {
if (random(100) < obj.difficulty) {
obj.arrEnemies = new Array(8);
i = 1;
while (i <= 8) {
oppo = obj.player;
enemies = _root[("arr" + oppo) + "Soldiers"][i];
obj.arrEnemies[i - 1] = 0;
e = 1;
while ((e <= enemies) && (e < 1000)) {
totest = game[((("soldier" + oppo) + i) + "_") + e];
if ((totest != undefined) && (totest.dead != true)) {
obj.arrEnemies[i - 1]++;
}
e++;
}
i++;
}
i = 1;
while (i <= 8) {
oppo = obj.facing;
enemies = _root[("arr" + oppo) + "Soldiers"][i];
e = 1;
while ((e <= enemies) && (e < 1000)) {
totest = game[((("soldier" + oppo) + i) + "_") + e];
if ((totest != undefined) && (totest.dead != true)) {
obj.arrEnemies[i - 1]--;
}
e++;
}
i++;
}
i = 1;
while (i <= 8) {
if (obj.arrEnemies[i - 1] > AIAllowUnits) {
obj.chan = i;
if (Math.random() > 0.6) {
break;
}
}
i++;
}
if (Math.random() > 0.98) {
if (Math.random() >= 0.5) {
if (obj.chan > 1) {
obj.chan--;
}
} else if (obj.chan < 8) {
obj.chan++;
}
obj.channely = _root.top + (150 * obj.chan);
obj._y = obj.channely;
}
if (random(obj.rechargetime * 2) < 1) {
if (Math.random() >= 0.5) {
if (obj.soldierselected > 0) {
obj.soldierselected--;
} else {
obj.soldierselected = _root[("arr" + obj.player) + "SoldierChoices"].length - 1;
}
} else if (obj.soldierselected < (_root[("arr" + obj.player) + "SoldierChoices"].length - 1)) {
obj.soldierselected++;
} else {
obj.soldierselected = 0;
}
if (obj.player == "left") {
arrSoldierData = _root.arrSoldiers[arrleftSoldierChoices[obj.soldierselected]].split("|");
} else {
arrSoldierData = _root.arrSoldiers[arrrightSoldierChoices[obj.soldierselected]].split("|");
rightsoldier = arrSoldierData[0];
}
obj.rechargetime = Number(arrSoldierData[3]);
}
if (obj.player == "left") {
arr = arrleftSoldierChoices;
} else {
arr = arrrightSoldierChoices;
}
if ((Math.random() > 0.9) && (obj.charged >= obj.rechargetime)) {
if (obj.chargecharge > _root.chargekills) {
s = 1;
while (s < 9) {
_root.CreateSoldier(s, obj.facing, arr[obj.soldierselected]);
s++;
}
obj.chargecharge = 0;
} else {
_root.CreateSoldier(obj.chan, obj.facing, arr[obj.soldierselected]);
}
obj.charged = 0;
}
}
} else if (((obj.charged >= obj.rechargetime) && (option_autosend == true)) && (obj.chargecharge <= _root.chargekills)) {
if (obj.player == "left") {
arr = arrleftSoldierChoices;
} else {
arr = arrrightSoldierChoices;
}
_root.CreateSoldier(obj.chan, obj.facing, arr[obj.soldierselected]);
obj.charged = 0;
_root.twoplayerinst = true;
_root.gameinprogress = true;
}
}
function enemiesinchannel(obj) {
if (obj.facing == "left") {
intreturn = arrrightSoldiers[obj.channel];
} else {
intreturn = arrleftSoldiers[obj.channel];
}
return(intreturn);
}
function moveman(obj, amount, keymustbedown) {
if (obj.dead == true) {
obj.gotoAndPlay("die1");
} else {
if (obj.facing == "right") {
obj._x = obj._x + (amount * (1 + (left_Upgrade_Speed / 10)));
if (enemyinrange(obj, 50)) {
obj.target._x = obj.target._x + (amount * (1 + (left_Upgrade_Speed / 10)));
}
} else {
obj._x = obj._x - (amount * (1 + (right_Upgrade_Speed / 10)));
if (enemyinrange(obj, 50)) {
obj.target._x = obj.target._x - (amount * (1 + (right_Upgrade_Speed / 10)));
}
}
if (obj.facing == "left") {
if (obj._x < -50) {
obj.removeMovieClip();
rightscore++;
}
} else if (obj._x > 2900) {
obj.removeMovieClip();
leftscore++;
}
if (_root.winner == obj.facing) {
if (obj.facing == "left") {
obj.facing = "right";
obj._xscale = 100;
} else {
obj.facing = "left";
obj._xscale = -100;
}
obj.retreating = true;
}
}
}
function GetDistance(obj1, obj2) {
return(Math.abs(obj1._x - obj2._x));
}
function enemyinrange(obj, rangeoveride) {
blnReturn = false;
if (rangeoveride != undefined) {
therange = rangeoveride;
} else {
therange = obj.range;
}
if (obj.facing == "left") {
oppo = "right";
} else {
oppo = "left";
}
enemies = enemiesinchannel(obj);
closestdist = 0;
if (obj.target.dead == true) {
obj.target = undefined;
}
e = 1;
while ((e <= enemies) && (e < 1000)) {
totest = game[((("soldier" + oppo) + obj.channel) + "_") + e];
if (totest != obj) {
dist = GetDistance(obj, totest);
if ((dist < therange) && (totest.dead != true)) {
if ((closestdist == 0) || (dist < closestdist)) {
closestdist = dist;
obj.target = totest;
}
blnReturn = true;
}
}
e++;
}
return(blnReturn);
}
function hurt(target, amount) {
PlaySound("Hit" + (random(6) + 1), target._x);
target.health = target.health - amount;
if ((target.health <= 0) && (target.dead != true)) {
_root[target.facing + "kills"]++;
_root[target.facing + "money"] = _root[target.facing + "money"] + target.value;
if ((gametype == 1) && (target.facing == "left")) {
_root.mykills++;
so.data.mykills = _root.mykills;
}
game[target.facing].chargecharge++;
target.dead = true;
}
}
function attack(obj, pos, range, power) {
if (GetDistance(obj, obj.target) <= range) {
hurt(obj.target, random(power));
if (power > 50) {
power = 50;
}
if (obj.facing == "right") {
obj.target._x = obj.target._x + power;
} else {
obj.target._x = obj.target._x - power;
}
combatsound("slice" + (random(2) + 1));
} else {
combatsound("swipe" + (random(2) + 1));
}
}
function combatsound(playsound) {
if (option_sound != false) {
}
}
function ready(obj) {
if ((_root.gameinprogress == true) && (obj.inbattle == true)) {
if (obj.dead == true) {
obj.gotoAndPlay("die1");
} else {
if (obj.facing == "left") {
obj._xscale = -100;
}
if ((enemyinrange(obj) && (Math.random() > 0.2)) && (obj.retreating != true)) {
obj.gotoAndPlay("swipe" + (random(obj.swipes) + 1));
} else {
if (obj.retreating == true) {
obj.speed = 6;
}
obj.gotoAndPlay("walk");
}
}
} else {
obj.stop();
}
}
function CreateSoldier(channel, facing, type) {
if (_root.winner == undefined) {
soldiernum++;
if (soldiernum >= 300) {
soldiernum = 1;
}
arrSoldierData = arrSoldiers[type].split("|");
_root[("arr" + facing) + "Soldiers"][channel]++;
newsoldier = game.attachMovie(arrSoldierData[0], ((("soldier" + facing) + channel) + "_") + _root[("arr" + facing) + "Soldiers"][channel], soldiernum + (1000 * (1 + channel)));
newsoldier._y = _root.top + (150 * channel);
if (facing == "left") {
newsoldier._x = 2800;
} else {
newsoldier._x = 50;
}
newsoldier.facing = facing;
newsoldier.speed = Number(arrSoldierData[1]) + (Math.random() / 2);
newsoldier.channel = channel;
newsoldier.inbattle = true;
if (facing == "right") {
newsoldier.player = "left";
newsoldier.health = Number(arrSoldierData[2]) + (left_Upgrade_Armour * 10);
} else {
newsoldier.player = "right";
newsoldier.health = Number(arrSoldierData[2]) + (right_Upgrade_Armour * 10);
}
newsoldier.range = Number(arrSoldierData[4]);
newsoldier.value = Math.ceil(Number(arrSoldierData[5]) / 50);
if (facing == "left") {
newsoldier.race = game.right.race;
} else {
newsoldier.race = game.left.race;
}
newsoldier.onEnterFrame = function () {
if (this.dead == true) {
if (this.deadtimer == undefined) {
this.deadtimer = 0;
}
this.deadtimer++;
if (this.deadtimer > 500) {
this._alpha--;
}
if ((Math.abs(this._x - this._parent.Player._x) > 800) || (this._alpha <= 0)) {
removeMovieClip(this);
}
}
};
}
}
function firearrow(obj, type) {
combatsound("bowfire");
IncrementObjectNum();
if (type == undefined) {
type = "Arrow Fired";
}
game.attachMovie(type, "arrow" + objectnum, objectnum + 300);
game["arrow" + objectnum].Firer = obj;
game["arrow" + objectnum]._x = obj._x;
game["arrow" + objectnum]._y = obj._y - 66;
game["arrow" + objectnum].swapDepths(game.Player);
if (obj.facing == "left") {
game["arrow" + objectnum]._xscale = -100;
}
}
function SetRace(side, race) {
arrRaceInfo = arrRacesDataArray[race].split("|");
_root[side + "PlayerRace"] = arrRaceInfo[0];
_root[side + "PlayerRaceFullName"] = arrRaceInfo[2];
u = 0;
while (u < (arrUpgradeOptions.length - 1)) {
_root[(side + "_Upgrade_") + arrUpgradeOptions[u].substr(0, arrUpgradeOptions[u].indexOf("|"))] = 0;
u++;
}
racedescription = arrRaceInfo[6];
Attribute1 = arrRaceInfo[3].substr(0, arrRaceInfo[3].length - 2);
Attribute2 = arrRaceInfo[4].substr(0, arrRaceInfo[4].length - 2);
_root[("arr" + side) + "colours"] = arrRaceInfo[1].split(",");
Attribute1value = arrRaceInfo[3].substr(arrRaceInfo[3].length - 2, arrRaceInfo[3].length);
Attribute2value = arrRaceInfo[4].substr(arrRaceInfo[4].length - 2, arrRaceInfo[4].length);
if (side == "left") {
VictoryText = ((("After years of fighting, the " + arrRaceInfo[2].toLowerCase()) + " conquered the land, bringing with them ") + arrRaceInfo[5]) + " which lasted for many years.";
if (_root.demonsunlocked != true) {
VictoryText = VictoryText + "\n\nThe Demons have now been unlocked";
}
}
_root[(side + "_Upgrade_") + Attribute1] = Number(Attribute1value);
_root[(side + "_Upgrade_") + Attribute2] = Number(Attribute2value);
}
function AddUnitType(side, unitnum) {
if (side == "left") {
arrleftSoldierChoices[arrleftSoldierChoices.length] = unitnum;
} else {
arrrightSoldierChoices[arrleftSoldierChoices.length] = unitnum;
}
}
function RandomRightUpgrade(amount) {
rnd = random(arrUpgradeOptions.length - 1);
strTheUpgrade = arrUpgradeOptions[rnd].substr(0, arrUpgradeOptions[rnd].indexOf("|"));
_root["right_Upgrade_" + strTheUpgrade] = _root["right_Upgrade_" + strTheUpgrade] + amount;
}
Instance of Symbol 673 MovieClip "menu" in Frame 3
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 481 MovieClip [Archer] in Frame 3
onClipEvent (load) {
race = _root.GetRaceData("Name", _root.MyRace);
}
Instance of Symbol 535 MovieClip [Swordsman] in Frame 3
onClipEvent (load) {
race = _root.GetRaceData("Name", _root.MyRace);
}
Instance of Symbol 478 MovieClip [Spearman] in Frame 3
onClipEvent (load) {
race = _root.GetRaceData("Name", _root.MyRace);
}
Frame 4
_root.kongregateStats.submit("Level Reached", levelnum);
_root.kongregateStats.submit("Kills", _root.mykills);
so.data.level = levelnum;
so.flush();
reset();
Instance of Symbol 768 MovieClip "mapinfo" in Frame 4
onClipEvent (load) {
name = "";
}
onClipEvent (enterFrame) {
if (_root._xmouse > 350) {
_x = 100;
} else {
_x = 600;
}
_visible = (name != "");
}
Frame 5
if (blnSoundsAdded != true) {
AddSound("MenuMusic");
AddSound("BattleMusic1");
AddSound("BattleMusic2");
blnSoundsAdded = true;
}
if (lastmusic == 1) {
lastmusic = 2;
PlayMusic("BattleMusic2");
} else {
lastmusic = 1;
PlayMusic("BattleMusic1");
}
AIAllowUnits = random(4) - 1;
trace("Before Block: " + AIAllowUnits);
i = 1;
while (i <= 5) {
AddSound("BowFire", i);
AddSound("Hit1", i);
AddSound("Hit2", i);
AddSound("Hit3", i);
AddSound("Hit4", i);
AddSound("Hit5", i);
AddSound("Hit6", i);
AddSound("Troll_Hit", i);
AddSound("Troll1", i);
AddSound("Troll2", i);
AddSound("Troll3", i);
AddSound("Troll4", i);
AddSound("Troll5", i);
i++;
}
AddSound("Equip_Halberd", 1);
AddSound("Equip_Spear", 1);
AddSound("Equip_Sword", 1);
AddSound("Equip_Big", 1);
AddSound("Equip_Other", 1);
AddSound("Equip_Halberd", 5);
AddSound("Equip_Spear", 5);
AddSound("Equip_Sword", 5);
AddSound("Equip_Big", 5);
AddSound("Equip_Other", 5);
_root.gameinprogress = true;
_quality = "medium";
Instance of Symbol 845 MovieClip in Frame 5
onClipEvent (load) {
_root.Tint(this, _root.arrrightcolours[0], _root.arrrightcolours[1], _root.arrrightcolours[2]);
}
Instance of Symbol 845 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.Tint(this, _root.arrleftcolours[0], _root.arrleftcolours[1], _root.arrleftcolours[2]);
if (_root.winner == undefined) {
one = 700 / _root.towin;
thewidth = ((_root.towin / 2) * one) + ((_root.leftscore - _root.rightscore) * one);
if (_width < thewidth) {
_width = (_width+1);
}
if (_width > thewidth) {
_width = (_width-1);
}
if (_width >= 700) {
_root.winner = "left";
}
if (_width <= 0) {
_root.winner = "right";
}
}
}
Instance of Symbol 899 MovieClip in Frame 5
onClipEvent (load) {
if (_root.cheatcode == "quick") {
totaltime = 720;
} else {
totaltime = 7200;
}
timeleft = totaltime;
}
onClipEvent (enterFrame) {
if (timeleft <= 0) {
if (_root.leftscore > _root.rightscore) {
_root.winner = "left";
}
if (_root.rightscore > _root.leftscore) {
_root.winner = "right";
}
} else {
if ((_root.tutorialstage > 2) || (_root.gametype == 2)) {
timeleft--;
}
time = Math.round(timeleft / 24);
if (time >= 60) {
time = "";
}
gotoAndStop(200 - Math.round((timeleft / totaltime) * 200));
}
}
Instance of Symbol 919 MovieClip in Frame 5
onClipEvent (enterFrame) {
gotoAndStop(_root.gametype);
}
Frame 6
soldiernum = 0;
r = 0;
while (r < (arrRacesDataArray.length - 1)) {
x = 75 + (r * 50);
therace = arrRacesDataArray[r].substr(0, arrRacesDataArray[r].indexOf("|"));
u = 9;
while (u < (arrSoldiers.length - 1)) {
soldiernum++;
y = 75 + ((u - 12) * 100);
strSoldier = arrSoldiers[u].substr(0, arrSoldiers[u].indexOf("|"));
newsoldier = _root.attachMovie(strSoldier, "s_" + soldiernum, soldiernum);
newsoldier._x = x;
newsoldier._y = y;
newsoldier.race = therace;
newsoldier._xscale = 30;
newsoldier._yscale = 30;
u++;
}
r++;
}
Frame 7
_quality = "high";
Frame 8
if (_root.cheatcode == "") {
_root.kongregateStats.submit("Completed game", 1);
_root.kongregateStats.submit("Completed With " + _root.leftPlayerRaceFullName, 1);
}
_root.kongregateStats.submit("Kills", _root.mykills);
so.data.race = undefined;
so.data.mysoldiers = undefined;
so.data.money = undefined;
so.data.level = undefined;
_root.demonsunlocked = true;
so.data.demonsunlocked = true;
Instance of Symbol 983 MovieClip in Frame 8
onClipEvent (load) {
race = _root.GetRaceData("Name", _root.MyRace);
}
Frame 9
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("5c9af0ac", this, 10301, true);
trace("Redirect 1");
getURL (LinktoURLmain, "_blank");
Frame 10
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("2578b405", this, 10301, true);
trace("Redirect 2");
getURL (LinktoURLmain, "_blank");
Frame 11
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("400b6db2", this, 10301, true);
trace("Redirect 3");
getURL (LinktoURL, "_blank");
Frame 12
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("95d32dc1", this, 10301, true);
trace("Redirect 4");
getURL (LinktoURLmain, "_blank");
Frame 13
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("1705480f", this, 10301, true);
trace("Redirect 5");
getURL (LinktoURLmain, "_blank");
Symbol 37 MovieClip Frame 1
if ((_parent.dead != true) && (_parent.inbattle == true)) {
if (random(1000) > 980) {
gotoAndPlay("roar" + (random(5) + 1));
}
}
Symbol 37 MovieClip Frame 2
gotoAndPlay (1);
Symbol 37 MovieClip Frame 3
_root.PlaySound("Troll1", _parent._x);
Symbol 37 MovieClip Frame 16
gotoAndPlay (1);
Symbol 37 MovieClip Frame 17
_root.PlaySound("Troll2", _parent._x);
Symbol 37 MovieClip Frame 28
gotoAndPlay (1);
Symbol 37 MovieClip Frame 29
_root.PlaySound("Troll3", _parent._x);
Symbol 37 MovieClip Frame 45
gotoAndPlay (1);
Symbol 37 MovieClip Frame 46
_root.PlaySound("Troll4", _parent._x);
Symbol 37 MovieClip Frame 61
gotoAndPlay (1);
Symbol 37 MovieClip Frame 62
_root.PlaySound("Troll5", _parent._x);
Symbol 37 MovieClip Frame 105
gotoAndPlay (1);
Symbol 86 MovieClip [Giant Troll] Frame 1
_root.ready(this);
swipes = 2;
Symbol 86 MovieClip [Giant Troll] Frame 21
gotoAndPlay (1);
Symbol 86 MovieClip [Giant Troll] Frame 22
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 23
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 24
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 25
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 26
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 27
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 32
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 33
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 34
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 35
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 36
_root.moveman(this, speed, true);
Symbol 86 MovieClip [Giant Troll] Frame 40
gotoAndPlay (1);
Symbol 86 MovieClip [Giant Troll] Frame 58
_root.attack(this, "MIDDLE", 250, 250);
_root.PlaySound("Troll_Hit", _x);
Symbol 86 MovieClip [Giant Troll] Frame 66
gotoAndPlay (1);
Symbol 86 MovieClip [Giant Troll] Frame 74
_root.attack(this, "MIDDLE", 90, 500);
_root.PlaySound("Troll_Hit", _x);
Symbol 86 MovieClip [Giant Troll] Frame 79
gotoAndPlay (1);
Symbol 86 MovieClip [Giant Troll] Frame 96
stop();
Symbol 93 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 103 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 113 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 122 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 132 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 142 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 152 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 162 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 173 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 176 MovieClip [Spearmaster] Frame 1
_root.ready(this);
swipes = 3;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Spear", _x);
}
Symbol 176 MovieClip [Spearmaster] Frame 2
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 3
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 4
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 5
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 6
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 7
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 8
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 9
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 10
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 11
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 12
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 13
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 14
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 15
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 16
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 17
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 18
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 19
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 20
call("ready");
Symbol 176 MovieClip [Spearmaster] Frame 21
gotoAndPlay (1);
Symbol 176 MovieClip [Spearmaster] Frame 22
_root.blood(random(5) + 5, this, 60, "up");
_root.die(this);
_root.dropspear(this);
Symbol 176 MovieClip [Spearmaster] Frame 79
stop();
Symbol 176 MovieClip [Spearmaster] Frame 80
_root.moveman(this, 5, true);
Symbol 176 MovieClip [Spearmaster] Frame 81
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 82
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 83
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 84
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 85
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 86
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 87
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 88
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 89
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 90
call("walk");
Symbol 176 MovieClip [Spearmaster] Frame 91
gotoAndPlay (1);
Symbol 176 MovieClip [Spearmaster] Frame 92
_root.moveman(this, 5, true);
Symbol 176 MovieClip [Spearmaster] Frame 93
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 94
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 95
call("swipe1");
_root.bash(this, "MIDDLE", 95, 15);
Symbol 176 MovieClip [Spearmaster] Frame 96
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 97
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 98
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 99
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 100
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 101
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 102
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 103
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 104
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 105
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 106
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 107
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 108
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 109
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 110
call("swipe1");
Symbol 176 MovieClip [Spearmaster] Frame 111
_root.attack(this, "MIDDLE", 150, 45);
Symbol 176 MovieClip [Spearmaster] Frame 118
gotoAndPlay (1);
Symbol 176 MovieClip [Spearmaster] Frame 121
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 122
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 123
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 124
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 125
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 126
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 127
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 128
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 129
_root.moveman(this, -6, true);
Symbol 176 MovieClip [Spearmaster] Frame 130
_root.attack(this, "HIGH", 160, 40);
Symbol 176 MovieClip [Spearmaster] Frame 141
_root.attack(this, "HIGH", 130, 25);
Symbol 176 MovieClip [Spearmaster] Frame 151
gotoAndPlay (1);
Symbol 182 MovieClip [Axe Thrower] Frame 1
_root.ready(this);
swipes = 1;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Other", _x);
}
Symbol 182 MovieClip [Axe Thrower] Frame 22
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 182 MovieClip [Axe Thrower] Frame 79
stop();
Symbol 182 MovieClip [Axe Thrower] Frame 80
_root.moveman(this, 5, true);
Symbol 182 MovieClip [Axe Thrower] Frame 81
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 82
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 83
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 84
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 85
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 86
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 87
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 88
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 89
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 90
call("walk");
Symbol 182 MovieClip [Axe Thrower] Frame 91
gotoAndPlay (1);
Symbol 182 MovieClip [Axe Thrower] Frame 116
_root.firearrow(this, "Axe");
Symbol 182 MovieClip [Axe Thrower] Frame 131
gotoAndPlay (1);
Symbol 187 MovieClip [Mage] Frame 1
gotoAndPlay (1);
_root.ready(this);
swipes = 1;
Symbol 187 MovieClip [Mage] Frame 22
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 187 MovieClip [Mage] Frame 79
stop();
Symbol 187 MovieClip [Mage] Frame 80
_root.moveman(this, 5, true);
Symbol 187 MovieClip [Mage] Frame 81
call("walk");
Symbol 187 MovieClip [Mage] Frame 82
call("walk");
Symbol 187 MovieClip [Mage] Frame 83
call("walk");
Symbol 187 MovieClip [Mage] Frame 84
call("walk");
Symbol 187 MovieClip [Mage] Frame 85
call("walk");
Symbol 187 MovieClip [Mage] Frame 86
call("walk");
Symbol 187 MovieClip [Mage] Frame 87
call("walk");
Symbol 187 MovieClip [Mage] Frame 88
call("walk");
Symbol 187 MovieClip [Mage] Frame 89
call("walk");
Symbol 187 MovieClip [Mage] Frame 90
call("walk");
Symbol 187 MovieClip [Mage] Frame 91
gotoAndPlay (1);
Symbol 187 MovieClip [Mage] Frame 92
_root.moveman(this, -5, true);
Symbol 187 MovieClip [Mage] Frame 93
call("walkback");
Symbol 187 MovieClip [Mage] Frame 94
call("walkback");
Symbol 187 MovieClip [Mage] Frame 95
call("walkback");
Symbol 187 MovieClip [Mage] Frame 96
call("walkback");
Symbol 187 MovieClip [Mage] Frame 97
call("walkback");
Symbol 187 MovieClip [Mage] Frame 98
call("walkback");
Symbol 187 MovieClip [Mage] Frame 99
call("walkback");
Symbol 187 MovieClip [Mage] Frame 100
call("walkback");
Symbol 187 MovieClip [Mage] Frame 101
call("walkback");
Symbol 187 MovieClip [Mage] Frame 102
call("walkback");
Symbol 187 MovieClip [Mage] Frame 103
gotoAndPlay (1);
Symbol 187 MovieClip [Mage] Frame 128
_root.firearrow(this, "MagicBall1");
Symbol 187 MovieClip [Mage] Frame 143
gotoAndPlay (1);
Symbol 198 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 199 MovieClip [Javelin Thrower] Frame 1
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Spear", _x);
}
_root.ready(this);
swipes = 1;
Symbol 199 MovieClip [Javelin Thrower] Frame 2
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 3
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 4
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 5
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 6
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 7
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 8
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 9
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 10
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 11
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 12
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 13
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 14
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 15
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 16
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 17
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 18
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 19
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 20
call("ready");
Symbol 199 MovieClip [Javelin Thrower] Frame 22
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 199 MovieClip [Javelin Thrower] Frame 79
stop();
Symbol 199 MovieClip [Javelin Thrower] Frame 80
_root.moveman(this, 5, true);
Symbol 199 MovieClip [Javelin Thrower] Frame 81
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 82
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 83
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 84
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 85
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 86
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 87
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 88
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 89
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 90
call("walk");
Symbol 199 MovieClip [Javelin Thrower] Frame 91
gotoAndPlay (1);
Symbol 199 MovieClip [Javelin Thrower] Frame 104
_root.firearrow(this, "Javelin");
Symbol 199 MovieClip [Javelin Thrower] Frame 119
gotoAndPlay (1);
Symbol 202 MovieClip [MagicBall1] Frame 1
if (upspeed == undefined) {
upspeed = 4 * (Math.random() - Math.random());
}
if (_xscale > 0) {
speed = 60;
} else {
speed = -60;
}
_x = (_x + speed);
_y = (_y + upspeed);
if ((_x < -50) || (_x > 2850)) {
removeMovieClip(this);
}
if (this.hitTest(Firer.target)) {
_root.hurt(Firer.target, random(50));
gotoAndPlay (3);
}
Symbol 202 MovieClip [MagicBall1] Frame 2
gotoAndPlay (1);
Symbol 202 MovieClip [MagicBall1] Frame 16
removeMovieClip(this);
Symbol 203 MovieClip [Javelin] Frame 1
if (Firer.facing == "left") {
player = "right";
} else {
player = "left";
}
race = Firer.race;
upspeed = (5 - _root[player + "_Upgrade_Archery"]) * (Math.random() - Math.random());
this.onEnterFrame = function () {
if (_xscale > 0) {
speed = 70;
} else {
speed = -70;
}
_x = (_x + speed);
_y = (_y + upspeed);
if ((_x < -50) || (_x > 2850)) {
removeMovieClip(this);
}
if (this.hitTest(Firer.target)) {
_root.hurt(Firer.target, random(25));
removeMovieClip(this);
}
};
Symbol 206 MovieClip [Arrow Fired] Frame 1
if (Firer.facing == "left") {
player = "right";
} else {
player = "left";
}
upspeed = (7 - _root[player + "_Upgrade_Archery"]) * (Math.random() - Math.random());
_root.PlaySound("BowFire", _x);
this.onEnterFrame = function () {
if (_xscale > 0) {
speed = 70;
} else {
speed = -70;
}
_x = (_x + speed);
_y = (_y + upspeed);
if ((_x < -50) || (_x > 2850)) {
removeMovieClip(this);
}
if (this.hitTest(Firer.target)) {
_root.hurt(Firer.target, random(10));
removeMovieClip(this);
}
};
Symbol 217 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 227 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 231 MovieClip [Ranger] Frame 1
_root.ready(this);
swipes = 1;
type = "Archer";
Symbol 231 MovieClip [Ranger] Frame 2
call("ready");
Symbol 231 MovieClip [Ranger] Frame 3
call("ready");
Symbol 231 MovieClip [Ranger] Frame 4
call("ready");
Symbol 231 MovieClip [Ranger] Frame 5
gotoAndPlay (1);
Symbol 231 MovieClip [Ranger] Frame 6
_root.moveman(this, speed, true);
Symbol 231 MovieClip [Ranger] Frame 7
call("walk");
Symbol 231 MovieClip [Ranger] Frame 8
call("walk");
Symbol 231 MovieClip [Ranger] Frame 9
call("walk");
Symbol 231 MovieClip [Ranger] Frame 10
call("walk");
Symbol 231 MovieClip [Ranger] Frame 11
call("walk");
Symbol 231 MovieClip [Ranger] Frame 12
call("walk");
Symbol 231 MovieClip [Ranger] Frame 13
call("walk");
Symbol 231 MovieClip [Ranger] Frame 14
call("walk");
Symbol 231 MovieClip [Ranger] Frame 15
call("walk");
Symbol 231 MovieClip [Ranger] Frame 16
call("walk");
Symbol 231 MovieClip [Ranger] Frame 17
gotoAndPlay (1);
Symbol 231 MovieClip [Ranger] Frame 18
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 231 MovieClip [Ranger] Frame 75
stop();
Symbol 231 MovieClip [Ranger] Frame 83
_root.firearrow(this);
Symbol 231 MovieClip [Ranger] Frame 93
gotoAndPlay (1);
Symbol 241 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 249 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 259 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 268 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 278 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 287 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 298 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 309 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 313 MovieClip [Mounted Halberdier] Frame 1
_root.ready(this);
swipes = 1;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Halberd", _x);
}
Symbol 313 MovieClip [Mounted Halberdier] Frame 5
gotoAndPlay (1);
Symbol 313 MovieClip [Mounted Halberdier] Frame 6
_root.blood(random(5) + 5, this, 60, "up");
_root.die(this);
_root.dropspear(this);
Symbol 313 MovieClip [Mounted Halberdier] Frame 63
stop();
Symbol 313 MovieClip [Mounted Halberdier] Frame 64
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 65
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 66
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 67
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 68
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 69
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 70
_root.moveman(this, speed, true);
_root.attack(this, "MIDDLE", 130, 45 + (_root[player + "_Upgrade_Halberd"] * 5));
Symbol 313 MovieClip [Mounted Halberdier] Frame 71
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 72
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 73
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 74
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 75
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 76
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 77
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 78
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 79
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 80
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 81
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 82
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 83
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 84
gotoAndPlay (1);
Symbol 313 MovieClip [Mounted Halberdier] Frame 85
_root.moveman(this, speed, true);
Symbol 313 MovieClip [Mounted Halberdier] Frame 86
call("walk");
Symbol 313 MovieClip [Mounted Halberdier] Frame 87
call("walk");
Symbol 313 MovieClip [Mounted Halberdier] Frame 88
call("walk");
Symbol 313 MovieClip [Mounted Halberdier] Frame 89
call("walk");
Symbol 313 MovieClip [Mounted Halberdier] Frame 90
call("walk");
Symbol 313 MovieClip [Mounted Halberdier] Frame 91
call("walk");
Symbol 313 MovieClip [Mounted Halberdier] Frame 92
call("walk");
Symbol 313 MovieClip [Mounted Halberdier] Frame 93
call("walk");
Symbol 313 MovieClip [Mounted Halberdier] Frame 94
gotoAndPlay (1);
Symbol 316 MovieClip [Mounted Spearman] Frame 1
_root.ready(this);
swipes = 1;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Spear", _x);
}
Symbol 316 MovieClip [Mounted Spearman] Frame 5
gotoAndPlay (1);
Symbol 316 MovieClip [Mounted Spearman] Frame 6
_root.blood(random(5) + 5, this, 60, "up");
_root.die(this);
_root.dropspear(this);
Symbol 316 MovieClip [Mounted Spearman] Frame 63
stop();
Symbol 316 MovieClip [Mounted Spearman] Frame 64
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 65
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 66
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 67
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 68
_root.moveman(this, speed, true);
_root.attack(this, "MIDDLE", 130, 20 + (_root[player + "_Upgrade_Spear"] * 5));
Symbol 316 MovieClip [Mounted Spearman] Frame 69
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 70
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 71
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 72
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 73
gotoAndPlay (1);
Symbol 316 MovieClip [Mounted Spearman] Frame 74
_root.moveman(this, speed, true);
Symbol 316 MovieClip [Mounted Spearman] Frame 75
call("walk");
Symbol 316 MovieClip [Mounted Spearman] Frame 76
call("walk");
Symbol 316 MovieClip [Mounted Spearman] Frame 77
call("walk");
Symbol 316 MovieClip [Mounted Spearman] Frame 78
call("walk");
Symbol 316 MovieClip [Mounted Spearman] Frame 79
call("walk");
Symbol 316 MovieClip [Mounted Spearman] Frame 80
call("walk");
Symbol 316 MovieClip [Mounted Spearman] Frame 81
gotoAndPlay (1);
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 1
_root.ready(this);
swipes = 2;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Halberd", _x);
}
Symbol 321 MovieClip [Halberdier] Frame 21
gotoAndPlay (1);
Symbol 321 MovieClip [Halberdier] Frame 22
_root.blood(random(5) + 5, this, 60, "up");
_root.die(this);
_root.dropspear(this);
Symbol 321 MovieClip [Halberdier] Frame 79
stop();
Symbol 321 MovieClip [Halberdier] Frame 80
_root.moveman(this, speed, true);
Symbol 321 MovieClip [Halberdier] Frame 81
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 82
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 83
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 84
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 85
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 86
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 87
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 88
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 89
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 90
call("walk");
Symbol 321 MovieClip [Halberdier] Frame 91
gotoAndPlay (1);
Symbol 321 MovieClip [Halberdier] Frame 99
_root.attack(this, "MIDDLE", 130, 35 + (_root[player + "_Upgrade_Halberd"] * 5));
Symbol 321 MovieClip [Halberdier] Frame 113
gotoAndPlay (1);
Symbol 321 MovieClip [Halberdier] Frame 124
_root.attack(this, "MIDDLE", 130, 40 + (_root[player + "_Upgrade_Halberd"] * 5));
Symbol 321 MovieClip [Halberdier] Frame 135
gotoAndPlay (1);
Symbol 330 MovieClip [Whirler] Frame 1
_root.ready(this);
swipes = 2;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Sword", _x);
}
Symbol 330 MovieClip [Whirler] Frame 21
gotoAndPlay (1);
Symbol 330 MovieClip [Whirler] Frame 22
_root.blood(random(5) + 5, this, 60, "up");
_root.die(this);
_root.dropspear(this);
Symbol 330 MovieClip [Whirler] Frame 79
stop();
Symbol 330 MovieClip [Whirler] Frame 80
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 81
call("walk");
Symbol 330 MovieClip [Whirler] Frame 82
call("walk");
Symbol 330 MovieClip [Whirler] Frame 83
call("walk");
Symbol 330 MovieClip [Whirler] Frame 84
call("walk");
Symbol 330 MovieClip [Whirler] Frame 85
call("walk");
Symbol 330 MovieClip [Whirler] Frame 86
call("walk");
Symbol 330 MovieClip [Whirler] Frame 87
call("walk");
Symbol 330 MovieClip [Whirler] Frame 88
call("walk");
Symbol 330 MovieClip [Whirler] Frame 89
call("walk");
Symbol 330 MovieClip [Whirler] Frame 90
call("walk");
Symbol 330 MovieClip [Whirler] Frame 91
gotoAndPlay (1);
Symbol 330 MovieClip [Whirler] Frame 92
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 93
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 94
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 95
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 96
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 97
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 98
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 99
_root.moveman(this, speed, true);
_root.attack(this, "MIDDLE", 160, 35 + (_root[player + "_Upgrade_Halberd"] * 5));
Symbol 330 MovieClip [Whirler] Frame 100
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 101
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 102
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 103
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 104
_root.moveman(this, speed, true);
_root.attack(this, "MIDDLE", 160, 35 + (_root[player + "_Upgrade_Halberd"] * 5));
Symbol 330 MovieClip [Whirler] Frame 105
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 106
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 107
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 108
gotoAndPlay (1);
Symbol 330 MovieClip [Whirler] Frame 109
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 110
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 111
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 112
_root.moveman(this, speed, true);
_root.attack(this, "MIDDLE", 130, 35 + (_root[player + "_Upgrade_Halberd"] * 5));
Symbol 330 MovieClip [Whirler] Frame 113
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 114
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 115
_root.moveman(this, speed, true);
_root.attack(this, "MIDDLE", 130, 25 + (_root[player + "_Upgrade_Halberd"] * 5));
Symbol 330 MovieClip [Whirler] Frame 116
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 117
_root.moveman(this, speed, true);
Symbol 330 MovieClip [Whirler] Frame 118
gotoAndPlay (1);
Symbol 337 MovieClip [Flailer] Frame 1
_root.ready(this);
swipes = 1;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Big", _x);
}
Symbol 337 MovieClip [Flailer] Frame 21
gotoAndPlay (1);
Symbol 337 MovieClip [Flailer] Frame 22
_root.blood(random(5) + 5, this, 60, "up");
_root.die(this);
_root.dropspear(this);
Symbol 337 MovieClip [Flailer] Frame 79
stop();
Symbol 337 MovieClip [Flailer] Frame 80
_root.moveman(this, speed, true);
Symbol 337 MovieClip [Flailer] Frame 81
call("walk");
Symbol 337 MovieClip [Flailer] Frame 82
call("walk");
Symbol 337 MovieClip [Flailer] Frame 83
call("walk");
Symbol 337 MovieClip [Flailer] Frame 84
call("walk");
Symbol 337 MovieClip [Flailer] Frame 85
call("walk");
Symbol 337 MovieClip [Flailer] Frame 86
call("walk");
Symbol 337 MovieClip [Flailer] Frame 87
call("walk");
Symbol 337 MovieClip [Flailer] Frame 88
call("walk");
Symbol 337 MovieClip [Flailer] Frame 89
call("walk");
Symbol 337 MovieClip [Flailer] Frame 90
call("walk");
Symbol 337 MovieClip [Flailer] Frame 91
gotoAndPlay (1);
Symbol 337 MovieClip [Flailer] Frame 92
call("walk");
Symbol 337 MovieClip [Flailer] Frame 93
call("walk");
Symbol 337 MovieClip [Flailer] Frame 94
call("walk");
Symbol 337 MovieClip [Flailer] Frame 95
call("walk");
Symbol 337 MovieClip [Flailer] Frame 96
call("walk");
Symbol 337 MovieClip [Flailer] Frame 97
call("walk");
Symbol 337 MovieClip [Flailer] Frame 98
call("walk");
Symbol 337 MovieClip [Flailer] Frame 99
call("walk");
Symbol 337 MovieClip [Flailer] Frame 100
call("walk");
Symbol 337 MovieClip [Flailer] Frame 101
call("walk");
_root.attack(this, "MIDDLE", 165, 100);
Symbol 337 MovieClip [Flailer] Frame 102
call("walk");
Symbol 337 MovieClip [Flailer] Frame 103
call("walk");
Symbol 337 MovieClip [Flailer] Frame 104
call("walk");
Symbol 337 MovieClip [Flailer] Frame 105
call("walk");
Symbol 337 MovieClip [Flailer] Frame 106
call("walk");
Symbol 337 MovieClip [Flailer] Frame 107
call("walk");
Symbol 337 MovieClip [Flailer] Frame 108
call("walk");
Symbol 337 MovieClip [Flailer] Frame 109
gotoAndPlay (1);
Symbol 347 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 352 MovieClip [Axeman] Frame 1
_root.ready(this);
swipes = 2;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Other", _x);
}
Symbol 352 MovieClip [Axeman] Frame 21
gotoAndPlay (1);
Symbol 352 MovieClip [Axeman] Frame 22
_root.blood(random(5) + 5, this, 60, "up");
_root.die(this);
_root.dropspear(this);
Symbol 352 MovieClip [Axeman] Frame 79
stop();
Symbol 352 MovieClip [Axeman] Frame 80
_root.moveman(this, speed, true);
Symbol 352 MovieClip [Axeman] Frame 81
call("walk");
Symbol 352 MovieClip [Axeman] Frame 82
call("walk");
Symbol 352 MovieClip [Axeman] Frame 83
call("walk");
Symbol 352 MovieClip [Axeman] Frame 84
call("walk");
Symbol 352 MovieClip [Axeman] Frame 85
call("walk");
Symbol 352 MovieClip [Axeman] Frame 86
call("walk");
Symbol 352 MovieClip [Axeman] Frame 87
call("walk");
Symbol 352 MovieClip [Axeman] Frame 88
call("walk");
Symbol 352 MovieClip [Axeman] Frame 89
call("walk");
Symbol 352 MovieClip [Axeman] Frame 90
call("walk");
Symbol 352 MovieClip [Axeman] Frame 91
gotoAndPlay (1);
Symbol 352 MovieClip [Axeman] Frame 92
call("walk");
Symbol 352 MovieClip [Axeman] Frame 93
call("walk");
Symbol 352 MovieClip [Axeman] Frame 94
call("walk");
Symbol 352 MovieClip [Axeman] Frame 95
call("walk");
Symbol 352 MovieClip [Axeman] Frame 96
call("walk");
Symbol 352 MovieClip [Axeman] Frame 97
call("walk");
Symbol 352 MovieClip [Axeman] Frame 98
call("walk");
Symbol 352 MovieClip [Axeman] Frame 99
call("walk");
_root.attack(this, "HIGH", 70, 35 + (_root[player + "_Upgrade_Axe"] * 5));
Symbol 352 MovieClip [Axeman] Frame 100
call("walk");
Symbol 352 MovieClip [Axeman] Frame 101
call("walk");
Symbol 352 MovieClip [Axeman] Frame 102
call("walk");
Symbol 352 MovieClip [Axeman] Frame 103
call("walk");
Symbol 352 MovieClip [Axeman] Frame 104
call("walk");
Symbol 352 MovieClip [Axeman] Frame 105
call("walk");
Symbol 352 MovieClip [Axeman] Frame 106
gotoAndPlay (1);
Symbol 352 MovieClip [Axeman] Frame 107
call("walk");
Symbol 352 MovieClip [Axeman] Frame 108
call("walk");
Symbol 352 MovieClip [Axeman] Frame 109
call("walk");
Symbol 352 MovieClip [Axeman] Frame 110
call("walk");
Symbol 352 MovieClip [Axeman] Frame 111
call("walk");
Symbol 352 MovieClip [Axeman] Frame 112
call("walk");
Symbol 352 MovieClip [Axeman] Frame 113
call("walk");
Symbol 352 MovieClip [Axeman] Frame 114
call("walk");
Symbol 352 MovieClip [Axeman] Frame 115
call("walk");
_root.attack(this, "HIGH", 70, 45 + (_root[player + "_Upgrade_Axe"] * 5));
Symbol 352 MovieClip [Axeman] Frame 116
call("walk");
Symbol 352 MovieClip [Axeman] Frame 117
call("walk");
Symbol 352 MovieClip [Axeman] Frame 118
call("walk");
Symbol 352 MovieClip [Axeman] Frame 119
call("walk");
Symbol 352 MovieClip [Axeman] Frame 120
call("walk");
Symbol 352 MovieClip [Axeman] Frame 121
gotoAndPlay (1);
Symbol 355 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 357 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 360 MovieClip [Scout] Frame 1
_root.ready(this);
swipes = 2;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Spear", _x);
}
Symbol 360 MovieClip [Scout] Frame 35
call("ready");
Symbol 360 MovieClip [Scout] Frame 36
gotoAndPlay (1);
Symbol 360 MovieClip [Scout] Frame 37
_root.moveman(this, speed, true);
Symbol 360 MovieClip [Scout] Frame 38
call("walk");
Symbol 360 MovieClip [Scout] Frame 39
call("walk");
Symbol 360 MovieClip [Scout] Frame 40
call("walk");
Symbol 360 MovieClip [Scout] Frame 41
call("walk");
Symbol 360 MovieClip [Scout] Frame 42
call("walk");
Symbol 360 MovieClip [Scout] Frame 43
call("walk");
Symbol 360 MovieClip [Scout] Frame 44
call("walk");
Symbol 360 MovieClip [Scout] Frame 45
call("walk");
Symbol 360 MovieClip [Scout] Frame 46
call("walk");
Symbol 360 MovieClip [Scout] Frame 47
call("walk");
Symbol 360 MovieClip [Scout] Frame 48
gotoAndPlay (1);
Symbol 360 MovieClip [Scout] Frame 106
stop();
Symbol 360 MovieClip [Scout] Frame 115
_root.attack(this, "MIDDLE", 60, 10);
Symbol 360 MovieClip [Scout] Frame 123
gotoAndPlay (1);
Symbol 360 MovieClip [Scout] Frame 132
_root.attack(this, "MIDDLE", 60, 10);
Symbol 360 MovieClip [Scout] Frame 140
gotoAndPlay (1);
Symbol 362 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 366 MovieClip [Battle Axeman] Frame 1
_root.ready(this);
swipes = 1;
type = "Swordsman";
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Big", _x);
}
Symbol 366 MovieClip [Battle Axeman] Frame 36
gotoAndPlay (1);
Symbol 366 MovieClip [Battle Axeman] Frame 37
_root.moveman(this, speed, true);
Symbol 366 MovieClip [Battle Axeman] Frame 38
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 39
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 40
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 41
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 42
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 43
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 44
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 45
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 46
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 47
call("walk");
Symbol 366 MovieClip [Battle Axeman] Frame 48
gotoAndPlay (1);
Symbol 366 MovieClip [Battle Axeman] Frame 49
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 366 MovieClip [Battle Axeman] Frame 106
stop();
Symbol 366 MovieClip [Battle Axeman] Frame 120
_root.attack(this, "MIDDLE", 109, 60 + (_root[player + "_Upgrade_Axe"] * 5));
Symbol 366 MovieClip [Battle Axeman] Frame 134
gotoAndPlay (1);
Symbol 373 MovieClip [King's Guard] Frame 1
_root.ready(this);
swipes = 2;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Sword", _x);
}
Symbol 373 MovieClip [King's Guard] Frame 10
gotoAndPlay (1);
Symbol 373 MovieClip [King's Guard] Frame 11
_root.moveman(this, speed, true);
Symbol 373 MovieClip [King's Guard] Frame 12
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 13
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 14
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 15
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 16
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 17
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 18
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 19
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 20
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 21
call("walk");
Symbol 373 MovieClip [King's Guard] Frame 22
gotoAndPlay (1);
Symbol 373 MovieClip [King's Guard] Frame 23
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 373 MovieClip [King's Guard] Frame 80
stop();
Symbol 373 MovieClip [King's Guard] Frame 91
_root.attack(this, "MIDDLE", 130, 60 + (_root[player + "_Upgrade_Sword"] * 5));
Symbol 373 MovieClip [King's Guard] Frame 103
_root.attack(this, "MIDDLE", 130, 60 + (_root[player + "_Upgrade_Sword"] * 5));
Symbol 373 MovieClip [King's Guard] Frame 110
gotoAndPlay (1);
Symbol 373 MovieClip [King's Guard] Frame 116
_root.attack(this, "MIDDLE", 130, 20 + (_root[player + "_Upgrade_Sword"] * 5));
Symbol 373 MovieClip [King's Guard] Frame 124
_root.attack(this, "MIDDLE", 130, 90 + (_root[player + "_Upgrade_Sword"] * 5));
Symbol 373 MovieClip [King's Guard] Frame 129
gotoAndPlay (1);
Symbol 384 MovieClip Frame 1
if (_parent.race != undefined) {
gotoAndStop(_parent.race);
} else {
stop();
}
Symbol 389 MovieClip [Longswordsman] Frame 1
_root.ready(this);
swipes = 2;
if (setupsound != true) {
setupsound = true;
_root.PlaySound("Equip_Sword", _x);
}
Symbol 389 MovieClip [Longswordsman] Frame 10
gotoAndPlay (1);
Symbol 389 MovieClip [Longswordsman] Frame 11
_root.moveman(this, speed, true);
Symbol 389 MovieClip [Longswordsman] Frame 12
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 13
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 14
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 15
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 16
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 17
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 18
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 19
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 20
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 21
call("walk");
Symbol 389 MovieClip [Longswordsman] Frame 22
gotoAndPlay (1);
Symbol 389 MovieClip [Longswordsman] Frame 23
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 389 MovieClip [Longswordsman] Frame 80
stop();
Symbol 389 MovieClip [Longswordsman] Frame 94
_root.attack(this, "MIDDLE", 130, 60 + (_root[player + "_Upgrade_Sword"] * 5));
Symbol 389 MovieClip [Longswordsman] Frame 108
gotoAndPlay (1);
Symbol 389 MovieClip [Longswordsman] Frame 120
_root.attack(this, "MIDDLE", 140, 40);
Symbol 389 MovieClip [Longswordsman] Frame 125
gotoAndPlay (1);
Symbol 393 Button
on (release) {
_root.SetRace("right", racenum);
_root.attackingregion = attackingregion;
_root.attackingregionname = _root.GetRegionData("Name", attackingregion);
_root.reward = _root.GetRegionData("Reward", attackingregion);
_root.difficulty = _root.GetRegionData("Difficulty", attackingregion);
_root.arrrightSoldierChoices = _root.GetRegionData("Starting Units", attackingregion).split(",");
plus = 0;
if (_root.difficulty == "Easy") {
plus = -Math.ceil(_root.levelnum / 2);
}
if (_root.difficulty == "Medium") {
plus = Math.floor(_root.levelnum / 2);
}
if (_root.difficulty == "Hard") {
plus = Math.floor(_root.levelnum * 1.5);
}
if (_root.difficulty == "V. Hard") {
plus = Math.floor(_root.levelnum * 1.6);
}
plus = plus + (_root.levelnum - 10);
if ((_root.difficulty == "V. Hard") && (plus < 25)) {
plus = 25;
}
trace("Upgrades Added: " + plus);
i = 0;
while (i < Math.abs(plus)) {
if (plus > 0) {
_root.RandomRightUpgrade(1);
} else {
_root.RandomRightUpgrade(-1);
}
i++;
}
_root.gotoAndStop("Game");
}
on (rollOver) {
_root.mapinfo.name = _root.GetRegionData("Name", attackingregion);
_root.mapinfo.owner = _root.GetRaceData("Full Name", _root.GetRegionData("Race", attackingregion));
difficulty = _root.GetRegionData("Difficulty", attackingregion);
if (difficulty == "Easy") {
plus = -Math.ceil(_root.levelnum / 2);
}
if (difficulty == "Medium") {
plus = Math.floor(_root.levelnum / 2);
}
if (difficulty == "Hard") {
plus = Math.floor(_root.levelnum * 1.5);
}
if (difficulty == "V. Hard") {
plus = Math.floor(_root.levelnum * 1.6);
}
plus = plus + (_root.levelnum - 10);
if ((difficulty == "V. Hard") && (plus < 25)) {
plus = 25;
}
percentage = Math.round(((plus + 11) / 63) * 100);
_root.mapinfo.difficulty = percentage + "%";
_root.mapinfo.reward = _root.GetRegionData("Reward", attackingregion);
}
on (rollOut) {
_root.mapinfo.name = "";
}
Symbol 398 MovieClip [Axe] Frame 1
if (Firer.facing == "left") {
player = "right";
} else {
player = "left";
}
upspeed = (7 - _root[player + "_Upgrade_Archery"]) * (Math.random() - Math.random());
_root.PlaySound("BowFire", _x);
this.onEnterFrame = function () {
if (_xscale > 0) {
speed = 40;
inner._rotation = inner._rotation + 20;
} else {
speed = -40;
inner._rotation = inner._rotation - 20;
}
_x = (_x + speed);
_y = (_y + upspeed);
if ((_x < -50) || (_x > 2850)) {
removeMovieClip(this);
}
if (this.hitTest(Firer.target)) {
_root.hurt(Firer.target, random(20));
removeMovieClip(this);
}
};
Symbol 478 MovieClip [Spearman] Frame 1
if ((setupsound != true) && (inbattle == true)) {
setupsound = true;
_root.PlaySound("Equip_Spear", _x);
}
_root.ready(this);
swipes = 3;
type = "Spearman";
Symbol 478 MovieClip [Spearman] Frame 21
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 22
_root.blood(random(5) + 5, this, 60, "up");
_root.die(this);
_root.dropspear(this);
Symbol 478 MovieClip [Spearman] Frame 79
stop();
Symbol 478 MovieClip [Spearman] Frame 84
_root.attack(this, "MIDDLE", 130, 10 + (_root[player + "_Upgrade_Spear"] * 5));
Symbol 478 MovieClip [Spearman] Frame 94
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 99
_root.attack(this, "HIGH", 130, 20 + (_root[player + "_Upgrade_Spear"] * 5));
Symbol 478 MovieClip [Spearman] Frame 109
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 114
_root.attack(this, "MIDDLE", 130, 10 + (_root[player + "_Upgrade_Spear"] * 5));
Symbol 478 MovieClip [Spearman] Frame 124
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 125
_root.moveman(this, speed, true);
Symbol 478 MovieClip [Spearman] Frame 126
call("walk");
Symbol 478 MovieClip [Spearman] Frame 127
call("walk");
Symbol 478 MovieClip [Spearman] Frame 128
call("walk");
Symbol 478 MovieClip [Spearman] Frame 129
call("walk");
Symbol 478 MovieClip [Spearman] Frame 130
call("walk");
Symbol 478 MovieClip [Spearman] Frame 131
call("walk");
Symbol 478 MovieClip [Spearman] Frame 132
call("walk");
Symbol 478 MovieClip [Spearman] Frame 133
call("walk");
Symbol 478 MovieClip [Spearman] Frame 134
call("walk");
Symbol 478 MovieClip [Spearman] Frame 135
call("walk");
Symbol 478 MovieClip [Spearman] Frame 136
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 137
_root.moveman(this, 10, false);
Symbol 478 MovieClip [Spearman] Frame 138
_root.moveman(this, 3, false);
Symbol 478 MovieClip [Spearman] Frame 139
_root.moveman(this, 1, false);
Symbol 478 MovieClip [Spearman] Frame 140
_root.moveman(this, 1, false);
_root.bash(this, "MIDDLE", 80, 25);
Symbol 478 MovieClip [Spearman] Frame 149
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 150
_root.moveman(this, -5, false);
Symbol 478 MovieClip [Spearman] Frame 151
_root.moveman(this, -3, false);
Symbol 478 MovieClip [Spearman] Frame 155
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 174
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 175
_root.moveman(this, -5, false);
Symbol 478 MovieClip [Spearman] Frame 176
_root.moveman(this, -5, false);
Symbol 478 MovieClip [Spearman] Frame 177
_root.moveman(this, -5, false);
Symbol 478 MovieClip [Spearman] Frame 178
_root.moveman(this, -5, false);
Symbol 478 MovieClip [Spearman] Frame 179
gotoAndPlay (1);
Symbol 478 MovieClip [Spearman] Frame 180
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
_root.dropspear(this);
Symbol 478 MovieClip [Spearman] Frame 203
stop();
Symbol 478 MovieClip [Spearman] Frame 204
lostlimb = "head";
_root.die(this);
_root.dropspear(this);
Symbol 478 MovieClip [Spearman] Frame 205
_root.blood(random(10), this, 60, "up");
Symbol 478 MovieClip [Spearman] Frame 206
call("bleed");
Symbol 478 MovieClip [Spearman] Frame 207
call("bleed");
Symbol 478 MovieClip [Spearman] Frame 208
call("bleed");
Symbol 478 MovieClip [Spearman] Frame 273
stop();
Symbol 478 MovieClip [Spearman] Frame 274
lostlimb = "leg";
_root.die(this);
_root.blood(random(10), this, 60, "up");
_root.dropspear(this);
Symbol 478 MovieClip [Spearman] Frame 275
_root.blood(random(10), this, 60, "up");
Symbol 478 MovieClip [Spearman] Frame 276
_root.blood(random(10), this, 60, "up");
Symbol 478 MovieClip [Spearman] Frame 277
_root.blood(random(5), this, 60, "up");
Symbol 478 MovieClip [Spearman] Frame 332
stop();
Symbol 478 MovieClip [Spearman] Frame 342
stop();
Symbol 478 MovieClip [Spearman] Frame 343
_root.moveman(this, -5, true);
Symbol 478 MovieClip [Spearman] Frame 344
_root.moveman(this, -5, true);
Symbol 478 MovieClip [Spearman] Frame 345
_root.moveman(this, -5, true);
Symbol 478 MovieClip [Spearman] Frame 346
_root.moveman(this, -5, true);
Symbol 478 MovieClip [Spearman] Frame 347
_root.moveman(this, -5, true);
Symbol 478 MovieClip [Spearman] Frame 348
_root.moveman(this, -5, true);
Symbol 478 MovieClip [Spearman] Frame 349
_root.moveman(this, -5, true);
Symbol 478 MovieClip [Spearman] Frame 350
gotoAndPlay (1);
Symbol 481 MovieClip [Archer] Frame 1
_root.ready(this);
swipes = 1;
if ((setupsound != true) && (inbattle == true)) {
setupsound = true;
_root.PlaySound("Equip_Other", _x);
}
Symbol 481 MovieClip [Archer] Frame 2
call("ready");
Symbol 481 MovieClip [Archer] Frame 3
call("ready");
Symbol 481 MovieClip [Archer] Frame 4
call("ready");
Symbol 481 MovieClip [Archer] Frame 5
gotoAndPlay (1);
Symbol 481 MovieClip [Archer] Frame 6
_root.moveman(this, speed, true);
Symbol 481 MovieClip [Archer] Frame 7
call("walk");
Symbol 481 MovieClip [Archer] Frame 8
call("walk");
Symbol 481 MovieClip [Archer] Frame 9
call("walk");
Symbol 481 MovieClip [Archer] Frame 10
call("walk");
Symbol 481 MovieClip [Archer] Frame 11
call("walk");
Symbol 481 MovieClip [Archer] Frame 12
call("walk");
Symbol 481 MovieClip [Archer] Frame 13
call("walk");
Symbol 481 MovieClip [Archer] Frame 14
call("walk");
Symbol 481 MovieClip [Archer] Frame 15
call("walk");
Symbol 481 MovieClip [Archer] Frame 16
call("walk");
Symbol 481 MovieClip [Archer] Frame 17
_root.moveman(this, speed, true);
Symbol 481 MovieClip [Archer] Frame 18
call("walk");
Symbol 481 MovieClip [Archer] Frame 19
call("walk");
Symbol 481 MovieClip [Archer] Frame 20
call("walk");
Symbol 481 MovieClip [Archer] Frame 21
call("walk");
Symbol 481 MovieClip [Archer] Frame 22
call("walk");
Symbol 481 MovieClip [Archer] Frame 23
call("walk");
Symbol 481 MovieClip [Archer] Frame 24
call("walk");
Symbol 481 MovieClip [Archer] Frame 25
call("walk");
Symbol 481 MovieClip [Archer] Frame 26
call("walk");
Symbol 481 MovieClip [Archer] Frame 27
call("walk");
Symbol 481 MovieClip [Archer] Frame 28
_root.moveman(this, speed, true);
Symbol 481 MovieClip [Archer] Frame 29
call("walk");
Symbol 481 MovieClip [Archer] Frame 30
call("walk");
Symbol 481 MovieClip [Archer] Frame 31
call("walk");
Symbol 481 MovieClip [Archer] Frame 32
call("walk");
Symbol 481 MovieClip [Archer] Frame 33
call("walk");
Symbol 481 MovieClip [Archer] Frame 34
call("walk");
Symbol 481 MovieClip [Archer] Frame 35
call("walk");
Symbol 481 MovieClip [Archer] Frame 36
call("walk");
Symbol 481 MovieClip [Archer] Frame 37
call("walk");
Symbol 481 MovieClip [Archer] Frame 38
call("walk");
Symbol 481 MovieClip [Archer] Frame 39
_root.moveman(this, speed, true);
Symbol 481 MovieClip [Archer] Frame 40
call("walk");
Symbol 481 MovieClip [Archer] Frame 41
call("walk");
Symbol 481 MovieClip [Archer] Frame 42
call("walk");
Symbol 481 MovieClip [Archer] Frame 43
call("walk");
Symbol 481 MovieClip [Archer] Frame 44
call("walk");
Symbol 481 MovieClip [Archer] Frame 45
gotoAndPlay (1);
Symbol 481 MovieClip [Archer] Frame 46
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 481 MovieClip [Archer] Frame 103
stop();
Symbol 481 MovieClip [Archer] Frame 121
_root.firearrow(this);
Symbol 481 MovieClip [Archer] Frame 136
gotoAndPlay ("walk");
Symbol 535 MovieClip [Swordsman] Frame 1
_root.ready(this);
swipes = 4;
type = "Swordsman";
if ((setupsound != true) && (inbattle == true)) {
setupsound = true;
_root.PlaySound("Equip_Sword", _x);
}
Symbol 535 MovieClip [Swordsman] Frame 35
call("ready");
Symbol 535 MovieClip [Swordsman] Frame 36
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 42
_root.attack(this, "HIGH", 100, 25 + (_root[player + "_Upgrade_Sword"] * 5));
Symbol 535 MovieClip [Swordsman] Frame 49
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 55
_root.attack(this, "MIDDLE", 100, 25 + (_root[player + "_Upgrade_Sword"] * 5));
Symbol 535 MovieClip [Swordsman] Frame 62
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 70
_root.attack(this, "HIGH", 95, 30, "head" + (_root[player + "_Upgrade_Sword"] * 5));
Symbol 535 MovieClip [Swordsman] Frame 72
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 73
_root.moveman(this, speed, true);
Symbol 535 MovieClip [Swordsman] Frame 74
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 75
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 76
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 77
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 78
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 79
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 80
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 81
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 82
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 83
call("walk");
Symbol 535 MovieClip [Swordsman] Frame 84
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 85
_root.moveman(this, -speed, true);
Symbol 535 MovieClip [Swordsman] Frame 86
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 87
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 88
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 89
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 90
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 91
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 92
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 93
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 94
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 95
call("walkback");
Symbol 535 MovieClip [Swordsman] Frame 96
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 97
_root.moveman(this, 6, false);
Symbol 535 MovieClip [Swordsman] Frame 98
_root.moveman(this, 3, false);
Symbol 535 MovieClip [Swordsman] Frame 99
_root.moveman(this, 1, false);
Symbol 535 MovieClip [Swordsman] Frame 100
_root.moveman(this, 1, false);
_root.bash(this, "MIDDLE", 80, 25);
Symbol 535 MovieClip [Swordsman] Frame 109
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 117
call("fswipe1");
_root.attack(this, "HIGH", 115, 35 + (_root[player + "_Upgrade_Sword"] * 5), "head");
Symbol 535 MovieClip [Swordsman] Frame 125
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 127
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 128
upspeed = 15;
Symbol 535 MovieClip [Swordsman] Frame 133
_root.jumpmovement(this);
Symbol 535 MovieClip [Swordsman] Frame 134
gotoAndPlay ("midjump");
Symbol 535 MovieClip [Swordsman] Frame 137
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 140
_root.moveman(this, -5, false);
Symbol 535 MovieClip [Swordsman] Frame 141
_root.moveman(this, -3, false);
Symbol 535 MovieClip [Swordsman] Frame 145
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 146
lostlimb = "head";
_root.die(this);
Symbol 535 MovieClip [Swordsman] Frame 147
_root.blood(random(10), this, 60, "up");
Symbol 535 MovieClip [Swordsman] Frame 148
call("bleed");
Symbol 535 MovieClip [Swordsman] Frame 149
call("bleed");
Symbol 535 MovieClip [Swordsman] Frame 150
call("bleed");
Symbol 535 MovieClip [Swordsman] Frame 215
stop();
Symbol 535 MovieClip [Swordsman] Frame 216
_root.die(this);
_root.blood(random(5) + 5, this, 60, "up");
Symbol 535 MovieClip [Swordsman] Frame 273
stop();
Symbol 535 MovieClip [Swordsman] Frame 292
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 293
lostlimb = "leg";
_root.die(this);
_root.blood(random(10), this, 60, "up");
Symbol 535 MovieClip [Swordsman] Frame 294
_root.blood(random(10), this, 60, "up");
Symbol 535 MovieClip [Swordsman] Frame 295
_root.blood(random(10), this, 60, "up");
Symbol 535 MovieClip [Swordsman] Frame 296
_root.blood(random(5), this, 60, "up");
Symbol 535 MovieClip [Swordsman] Frame 351
stop();
Symbol 535 MovieClip [Swordsman] Frame 361
stop();
Symbol 535 MovieClip [Swordsman] Frame 362
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 363
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 364
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 365
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 366
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 367
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 368
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 369
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 370
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 371
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 372
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 373
_root.moveman(this, -5, true);
Symbol 535 MovieClip [Swordsman] Frame 374
gotoAndPlay (1);
Symbol 535 MovieClip [Swordsman] Frame 375
_root.die(this);
call("bleed");
Symbol 535 MovieClip [Swordsman] Frame 376
call("bleed");
Symbol 535 MovieClip [Swordsman] Frame 377
call("bleed");
Symbol 535 MovieClip [Swordsman] Frame 381
stop();
Symbol 535 MovieClip [Swordsman] Frame 383
gotoAndPlay (1);
Symbol 545 Button
on (rollOver) {
menu.helptext = "Visit Ben Olding Games.";
}
on (rollOut) {
menu.helptext = "";
}
on (release) {
getURL ("http://www.benoldinggames.co.uk?r=" + _url, "_blank");
}
Symbol 550 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 551 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 120
trace("Logo Done");
stop();
Symbol 562 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk?r=" + _url, "_blank");
}
Symbol 565 Button
on (release) {
gotoAndStop ("loadkong1");
}
Symbol 567 Button
on (release) {
_alpha = 0;
_root.gametype = 1;
_root.leftPlayerRace = _root.GetRaceData("Name", _root.MyRace);
_root.leftPlayerControl = "Player";
_root.rightPlayerControl = "Computer";
if (_root.blnSavedDataFound == true) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
on (rollOver) {
helptext = "Conquer the land by invading one region at a time. Earn money by killing the enemy's troops, then spend it on upgrading your army and adding units.\n\nNote: Your campaign will be automatically saved after each level.";
}
on (rollOut) {
helptext = "";
}
Symbol 568 Button
on (release) {
_alpha = 0;
_root.gametype = 2;
gotoAndStop (2);
}
on (rollOver) {
helptext = "Play a single battle against a friend (or computer) on the same computer";
}
on (rollOut) {
helptext = "";
}
Symbol 569 Button
on (rollOver) {
helptext = "Find out how to play and get some tips for success";
}
on (rollOut) {
helptext = "";
}
on (release) {
_alpha = 0;
gotoAndStop (6);
}
Symbol 570 Button
on (rollOver) {
helptext = "Adjust settings to improve performance and your gaming experience";
}
on (rollOut) {
helptext = "";
}
on (release) {
gotoAndStop (5);
}
on (keyPress "c") {
gotoAndStop (7);
}
on (keyPress "a") {
_root.gotoAndStop("allunits");
}
Symbol 571 Button
on (rollOver) {
helptext = "Played enough Warlords for one day? Play some other great games.";
}
on (rollOut) {
helptext = "";
}
on (release) {
_root.gotoAndStop("loadkong2");
}
Symbol 572 Button
on (rollOver) {
helptext = "";
}
on (rollOut) {
helptext = "";
}
on (release) {
gotoAndStop (8);
}
Symbol 582 Button
on (release) {
gotoAndStop (1);
}
Symbol 583 Button
on (release) {
i = 0;
while (i < 100) {
rnd = random(_root.arrSoldiers.length - 4) + 3;
arrSoldierData = _root.arrSoldiers[rnd].split("|");
if (arrSoldierData[6] == "") {
break;
}
i++;
}
_root.arrrightSoldierChoices[3] = rnd;
i = 0;
while (i < 100) {
rnd = random(_root.arrSoldiers.length - 4) + 3;
arrSoldierData = _root.arrSoldiers[rnd].split("|");
if ((rnd != _root.arrrightSoldierChoices[3]) && (arrSoldierData[6] == "")) {
break;
}
i++;
}
_root.arrrightSoldierChoices[4] = rnd;
i = 0;
while (i < 100) {
rnd = random(_root.arrSoldiers.length - 4) + 3;
arrSoldierData = _root.arrSoldiers[rnd].split("|");
if (arrSoldierData[6] == "") {
break;
}
i++;
}
_root.arrleftSoldierChoices[3] = rnd;
i = 0;
while (i < 100) {
rnd = random(_root.arrSoldiers.length - 4) + 3;
arrSoldierData = _root.arrSoldiers[rnd].split("|");
if ((rnd != _root.arrleftSoldierChoices[3]) && (arrSoldierData[6] == "")) {
break;
}
i++;
}
_root.arrleftSoldierChoices[4] = rnd;
_root.gotoAndStop("game");
}
Symbol 588 Button
on (release) {
i--;
if (i < 0) {
i = arr.length - 1;
}
}
Symbol 589 Button
on (release) {
i++;
if (i >= arr.length) {
i = 0;
}
}
Symbol 590 MovieClip Frame 1
i = 0;
this.onEnterFrame = function () {
_root[variable] = arr[i];
strText = arr[i];
};
Symbol 591 Button
on (release) {
i--;
if (_root.demonsunlocked == true) {
if (i < 0) {
i = _root.arrRacesDataArray.length - 2;
}
} else if (i < 0) {
i = _root.arrRacesDataArray.length - 3;
}
}
Symbol 592 Button
on (release) {
i++;
if (_root.demonsunlocked == true) {
if (i >= (_root.arrRacesDataArray.length - 1)) {
i = 0;
}
} else if (i >= (_root.arrRacesDataArray.length - 2)) {
i = 0;
}
}
Symbol 594 MovieClip Frame 1
i = random(3);
this.onEnterFrame = function () {
strText = _root.GetRaceData("Full Name", i);
_root.SetRace(side, i);
};
Symbol 599 Button
on (release, keyPress "a") {
i--;
if (_root.demonsunlocked == true) {
if (i < 0) {
i = _root.arrRacesDataArray.length - 2;
}
} else if (i < 0) {
i = _root.arrRacesDataArray.length - 3;
}
}
Symbol 600 Button
on (release, keyPress "d") {
i++;
if (_root.demonsunlocked == true) {
if (i >= (_root.arrRacesDataArray.length - 1)) {
i = 0;
}
} else if (i >= (_root.arrRacesDataArray.length - 2)) {
i = 0;
}
}
Symbol 601 MovieClip Frame 1
i = _root.MyRace;
this.onEnterFrame = function () {
_root.MyRace = i;
strText = _root.GetRaceData("Full Name", _root.MyRace);
if (prev != _root.MyRace) {
prev = _root.MyRace;
_root.SetRace("left", _root.MyRace);
}
};
Symbol 606 Button
on (release) {
_root.so.clear();
_root.so.data.race = _root.MyRace;
_root.levelnum = 0;
_root.leftmoney = 500;
_root.arrleftSoldierChoices = new Array(0, 1, 2);
_root.gotoAndStop("shop");
}
Symbol 615 Button
on (release) {
_root.gotoAndStop("loadkong3");
}
Symbol 617 Button
on (release) {
_root.SetRace("left", _root.MyRace);
i = 0;
while (i < _root.arrUpgradeOptions.length) {
arrCurrentUpgrade = _root.arrUpgradeOptions[i].split("|");
upgrade = arrCurrentUpgrade[0];
if (_root.so.data["Upgrade_" + upgrade] != undefined) {
_root["left_Upgrade_" + upgrade] = _root.so.data["Upgrade_" + upgrade];
}
if (_root.so.data.mysoldiers != undefined) {
_root.arrleftSoldierChoices = _root.so.data.mysoldiers;
}
i++;
}
i = 0;
while (i < _root.arrRegions.length) {
owner = _root.so.data[("level" + i) + "owner"];
if (owner != undefined) {
_root.SetRegionOwner(i, owner);
}
i++;
}
_root.gotoAndStop("shop");
}
on (rollOver) {
helptext = "Continue from where you left off.";
}
on (rollOut) {
helptext = "";
}
Symbol 618 Button
on (release) {
_alpha = 0;
_root.so.data.race == undefined;
_root.mykills = 0;
_root.blnSavedDataFound = false;
gotoAndStop (3);
}
on (rollOver) {
helptext = "Start again from the beginning.";
}
on (rollOut) {
helptext = "";
}
Symbol 619 Button
on (release) {
_alpha = 0;
gotoAndStop (1);
}
on (rollOver) {
helptext = "Back to Main Menu.";
}
on (rollOut) {
helptext = "";
}
Symbol 628 Button
on (release) {
gotoAndStop (2);
}
Symbol 629 Button
on (release) {
gotoAndStop (3);
}
Symbol 632 MovieClip Frame 1
thavar = eval ("_root." + vari);
if (thavar == true) {
gotoAndStop (2);
} else if (thavar == false) {
gotoAndStop (3);
} else {
stop();
}
Symbol 632 MovieClip Frame 2
Set("_root." + vari, true);
thavar = false;
Symbol 632 MovieClip Frame 3
Set("_root." + vari, false);
thavar = false;
if (vari == "option_music") {
stopAllSounds();
}
Symbol 637 Button
on (release) {
gotoAndStop ("low");
}
Symbol 638 Button
on (release) {
gotoAndStop ("medium");
}
Symbol 639 Button
on (release) {
gotoAndStop ("high");
}
Symbol 643 MovieClip Frame 1
gotoAndStop(_root._quality);
Symbol 643 MovieClip Frame 2
_root._quality = "low";
_root.so.data.quality = _root._quality;
Symbol 643 MovieClip Frame 3
_root._quality = "medium";
_root.so.data.quality = _root._quality;
Symbol 643 MovieClip Frame 4
_root._quality = "high";
_root.so.data.quality = _root._quality;
Instance of Symbol 632 MovieClip in Symbol 646 MovieClip Frame 1
onClipEvent (load) {
vari = "option_sound";
}
onClipEvent (enterFrame) {
_root.so.data.option_sound = _root.option_sound;
}
Instance of Symbol 632 MovieClip in Symbol 646 MovieClip Frame 1
onClipEvent (load) {
vari = "option_music";
}
onClipEvent (enterFrame) {
_root.so.data.option_music = _root.option_music;
}
Instance of Symbol 632 MovieClip in Symbol 646 MovieClip Frame 1
onClipEvent (load) {
vari = "option_autosend";
}
onClipEvent (enterFrame) {
_root.so.data.option_autosend = _root.option_autosend;
}
Symbol 650 Button
on (release) {
nextFrame();
}
Symbol 653 Button
on (release) {
prevFrame();
}
Symbol 659 MovieClip Frame 1
stop();
Symbol 669 Button
on (release) {
getURL ("http://www.flashgamelicense.com/game_referral.php?game_id=659", "_blank");
}
Symbol 670 MovieClip Frame 25
stop();
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 2
_root.arrleftSoldierChoices = new Array(0, 1, 2);
_root.arrrightSoldierChoices = new Array(0, 1, 2);
Instance of Symbol 590 MovieClip in Symbol 673 MovieClip Frame 2
onClipEvent (load) {
arr = new Array("Player", "Computer");
variable = "leftPlayerControl";
}
Instance of Symbol 594 MovieClip in Symbol 673 MovieClip Frame 2
onClipEvent (load) {
side = "left";
}
Instance of Symbol 535 MovieClip [Swordsman] in Symbol 673 MovieClip Frame 2
onClipEvent (enterFrame) {
race = _root.leftPlayerRace;
if (race != prev) {
prev = race;
gotoAndPlay ("reset");
}
}
Instance of Symbol 535 MovieClip [Swordsman] in Symbol 673 MovieClip Frame 2
onClipEvent (enterFrame) {
race = _root.rightPlayerRace;
if (race != prev) {
prev = race;
gotoAndPlay ("reset");
}
}
Instance of Symbol 590 MovieClip in Symbol 673 MovieClip Frame 2
onClipEvent (load) {
arr = new Array("Player", "Computer");
variable = "rightPlayerControl";
}
Instance of Symbol 594 MovieClip in Symbol 673 MovieClip Frame 2
onClipEvent (load) {
side = "right";
}
Instance of Symbol 535 MovieClip [Swordsman] in Symbol 673 MovieClip Frame 3
onClipEvent (enterFrame) {
race = _root.GetRaceData("Name", _root.MyRace);
if (race != prev) {
prev = race;
gotoAndPlay ("reset");
}
}
Instance of Symbol 608 MovieClip in Symbol 673 MovieClip Frame 3
onClipEvent (enterFrame) {
if (((_root.MyRace == 5) || (_root.MyRace == 6)) || (_root.MyRace == 7)) {
if ((_url.indexOf("kongregate.com") > -1) || (_url.indexOf("benoldinggames.co.uk") > -1)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 616 MovieClip in Symbol 673 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((_url.indexOf("kongregate.com") > -1) || (_url.indexOf("benoldinggames.co.uk") > -1)) {
_visible = false;
} else {
_visible = (((_root.MyRace == 5) || (_root.MyRace == 6)) || (_root.MyRace == 7));
}
}
Symbol 681 MovieClip Frame 1
stop();
Symbol 699 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 1
function GetAngle(obj1, obj2) {
x = obj1._x - obj2._x;
y = obj1._y - obj2._y;
return(ConvertRadiansToDegrees(Math.atan2(y, x)) - 90);
}
function GetDistance(obj1, obj2) {
x = Math.abs(obj2._x - obj1._x);
y = Math.abs(obj2._y - obj1._y);
return(Math.sqrt((x * x) + (y * y)));
}
function ConvertRadiansToDegrees(radians) {
return(radians * 57.2957795130823);
}
objnum = 0;
_root.levelnum = -2;
i = 1;
while (i <= 28) {
objnum++;
newMan = this.attachMovie("Swordsman", "Swordsman" + i, objnum);
thex = this["map" + i]._x;
if (thex < -350) {
thex = -340;
}
if (thex > 350) {
thex = 340;
}
newMan._x = thex;
they = this["map" + i]._y;
if (they > 250) {
they = 240;
}
newMan._y = they;
scale = 20;
newMan._xscale = scale;
newMan._yscale = scale;
racenum = _root.GetRegionData("Race", i);
arrAdj = _root.GetRegionData("Adjacent", i).split(",");
if (racenum == _root.MyRace) {
_root.levelnum++;
}
newMan.race = _root.GetRaceData("Name", racenum);
if (racenum == _root.MyRace) {
a = 0;
while (a < arrAdj.length) {
if (_root.GetRegionData("Race", arrAdj[a]) != _root.MyRace) {
if (this["toarrow" + arrAdj[a]] != true) {
objnum++;
thearrow = this.attachMovie("Move Arrow", "Arrow" + objnum, objnum);
thearrow._x = this["map" + i]._x;
thearrow._y = this["map" + i]._y;
thearrow._height = GetDistance(this["map" + i], this["map" + arrAdj[a]]);
thearrow._rotation = GetAngle(this["map" + i], this["map" + arrAdj[a]]);
thearrow.swapDepths(newMan);
thearrow.race = _root.GetRaceData("Name", _root.GetRegionData("Race", arrAdj[a]));
thearrow.racenum = _root.GetRegionData("Race", arrAdj[a]);
thearrow.attackingregion = arrAdj[a];
this["toarrow" + arrAdj[a]] = true;
}
}
a++;
}
}
objnum++;
thearrow = this.attachMovie("Map Name", "Name" + objnum, objnum);
thearrow._x = this["map" + i]._x;
thearrow._y = this["map" + i]._y + 15;
thearrow.placename = _root.GetRegionData("Name", i);
arrRGB = _root.GetRaceData("RGB", racenum).split(",");
_root.Tint(this["map" + i], Number(arrRGB[0]) / 3, Number(arrRGB[1]) / 3, Number(arrRGB[2]) / 3);
i++;
}
if (_root.levelnum > 25) {
_root.StopSound("BattleMusic1");
_root.StopSound("BattleMusic2");
_root.PlayMusic("MenuMusic");
_root.gotoAndStop("complete");
}
Symbol 771 Button
on (release) {
gotoAndStop ("shop");
}
Symbol 788 MovieClip Frame 1
gotoAndStop(random(8) + 2);
Symbol 794 MovieClip Frame 1
racenum = _root.GetRegionData("Race", _root.attackingregion);
arrRGB = _root.GetRaceData("RGB", racenum).split(",");
_root.Tint(this, Number(arrRGB[0]) / 3, Number(arrRGB[1]) / 3, Number(arrRGB[2]) / 3);
Symbol 801 MovieClip Frame 1
_xscale = (80 + random(40));
_yscale = (80 + random(40));
Symbol 814 MovieClip Frame 1
_xscale = (80 + random(40));
_yscale = (80 + random(40));
Symbol 843 MovieClip Frame 1
if (_root.attackingregion != undefined) {
gotoAndStop(_root.GetRegionData("Background", _root.attackingregion));
} else {
gotoAndStop(random(28) + 1);
}
Symbol 851 Button
on (keyPress "w") {
if (_parent.AI == false) {
if (_parent.chan > 1) {
_parent.chan--;
_parent.channely = _root.top + (150 * _parent.chan);
_parent._y = _parent.channely;
}
}
}
on (keyPress "s") {
if (_parent.AI == false) {
if (_parent.chan < 8) {
_parent.chan++;
_parent.channely = _root.top + (150 * _parent.chan);
_parent._y = _parent.channely;
}
}
}
on (keyPress "a") {
if (_parent.AI == false) {
if (_parent.soldierselected > 0) {
_parent.soldierselected--;
} else {
_parent.soldierselected = _root.arrleftSoldierChoices.length - 1;
}
_parent.arrSoldierData = _root.arrSoldiers[_root.arrleftSoldierChoices[_parent.soldierselected]].split("|");
_parent.rechargetime = Number(_parent.arrSoldierData[3]);
_root.leftsoldier = _parent.arrSoldierData[0];
}
}
on (keyPress "d") {
if (_parent.AI == false) {
if (_parent.soldierselected < (_root.arrleftSoldierChoices.length - 1)) {
_parent.soldierselected++;
} else {
_parent.soldierselected = 0;
}
_parent.arrSoldierData = _root.arrSoldiers[_root.arrleftSoldierChoices[_parent.soldierselected]].split("|");
_parent.rechargetime = Number(_parent.arrSoldierData[3]);
_root.leftsoldier = _parent.arrSoldierData[0];
}
}
on (keyPress "<Space>") {
if (_parent.AI == false) {
if (_parent.charged >= _parent.rechargetime) {
_root.CreateSoldier(_parent.chan, _parent.facing, _root.arrleftSoldierChoices[_parent.soldierselected]);
_root.twoplayerinst = true;
_root.gameinprogress = true;
_parent.charged = 0;
}
}
}
on (keyPress "q") {
if (_parent.AI == false) {
if ((_parent.charged >= _parent.rechargetime) && (_parent.chargecharge >= _root.chargekills)) {
i = 1;
while (i < 9) {
_root.CreateSoldier(i, _parent.facing, _root.arrleftSoldierChoices[_parent.soldierselected]);
i++;
}
_parent.chargecharge = 0;
_parent.charged = 0;
}
}
}
Symbol 852 Button
on (keyPress "<Up>") {
if (_parent.AI == false) {
if (_parent.chan > 1) {
_parent.chan--;
_parent.channely = _root.top + (150 * _parent.chan);
_parent._y = _parent.channely;
}
}
}
on (keyPress "<Down>") {
if (_parent.AI == false) {
if (_parent.chan < 8) {
_parent.chan++;
_parent.channely = _root.top + (150 * _parent.chan);
_parent._y = _parent.channely;
}
}
}
on (keyPress "<Right>") {
if (_parent.AI == false) {
if (_parent.soldierselected > 0) {
_parent.soldierselected--;
} else {
_parent.soldierselected = _root.arrrightSoldierChoices.length - 1;
}
_parent.arrSoldierData = _root.arrSoldiers[_root.arrrightSoldierChoices[_parent.soldierselected]].split("|");
_parent.rechargetime = Number(_parent.arrSoldierData[3]);
_root.rightsoldier = _parent.arrSoldierData[0];
}
}
on (keyPress "<Left>") {
if (_parent.AI == false) {
if (_parent.soldierselected < (_root.arrrightSoldierChoices.length - 1)) {
_parent.soldierselected++;
} else {
_parent.soldierselected = 0;
}
_parent.arrSoldierData = _root.arrSoldiers[_root.arrrightSoldierChoices[_parent.soldierselected]].split("|");
_parent.rechargetime = Number(_parent.arrSoldierData[3]);
_root.rightsoldier = _parent.arrSoldierData[0];
}
}
on (keyPress "<Enter>") {
if (_parent.AI == false) {
if (_parent.charged >= _parent.rechargetime) {
_root.CreateSoldier(_parent.chan, _parent.facing, _root.arrrightSoldierChoices[_parent.soldierselected]);
_parent.charged = 0;
_root.twoplayerinst = true;
_root.gameinprogress = true;
}
}
}
on (keyPress "0") {
if (_parent.AI == false) {
if ((_parent.charged >= _parent.rechargetime) && (_parent.chargecharge >= _root.chargekills)) {
i = 1;
while (i < 9) {
_root.CreateSoldier(i, _parent.facing, _root.arrrightSoldierChoices[_parent.soldierselected]);
i++;
}
_parent.chargecharge = 0;
_parent.charged = 0;
}
}
}
Symbol 853 Button
on (keyPress "w") {
if (_parent.AI == false) {
if (_parent.chan > 1) {
_parent.chan--;
_parent.channely = _root.top + (150 * _parent.chan);
_parent._y = _parent.channely;
if (_root.tutorialstage < 2) {
_root.tutorialstage = 2;
}
}
}
}
on (keyPress "s") {
if (_parent.AI == false) {
if (_parent.chan < 8) {
_parent.chan++;
_parent.channely = _root.top + (150 * _parent.chan);
_parent._y = _parent.channely;
if (_root.tutorialstage < 2) {
_root.tutorialstage = 2;
}
}
}
}
on (keyPress "a") {
if (_parent.AI == false) {
if (_parent.soldierselected > 0) {
_parent.soldierselected--;
} else {
_parent.soldierselected = _root.arrleftSoldierChoices.length - 1;
}
_parent.arrSoldierData = _root.arrSoldiers[_root.arrleftSoldierChoices[_parent.soldierselected]].split("|");
_parent.rechargetime = Number(_parent.arrSoldierData[3]);
_root.leftsoldier = _parent.arrSoldierData[0];
}
}
on (keyPress "d") {
if (_parent.AI == false) {
if (_parent.soldierselected < (_root.arrleftSoldierChoices.length - 1)) {
_parent.soldierselected++;
} else {
_parent.soldierselected = 0;
}
_parent.arrSoldierData = _root.arrSoldiers[_root.arrleftSoldierChoices[_parent.soldierselected]].split("|");
_parent.rechargetime = Number(_parent.arrSoldierData[3]);
_root.leftsoldier = _parent.arrSoldierData[0];
}
}
on (keyPress "<Space>") {
if (_parent.AI == false) {
if (_parent.charged >= _parent.rechargetime) {
_root.CreateSoldier(_parent.chan, _parent.facing, _root.arrleftSoldierChoices[_parent.soldierselected]);
_parent.charged = 0;
if (_root.tutorialstage < 3) {
_root.tutorialstage = 3;
}
}
}
}
on (keyPress "h") {
if (_root.cheatcode == "skippy") {
_root.winner = "left";
}
}
on (keyPress "q") {
if (_parent.AI == false) {
if ((_parent.charged >= _parent.rechargetime) && (_parent.chargecharge >= _root.chargekills)) {
i = 1;
while (i < 9) {
_root.CreateSoldier(i, _parent.facing, _root.arrleftSoldierChoices[_parent.soldierselected]);
i++;
}
_parent.chargecharge = 0;
_parent.charged = 0;
}
}
}
Symbol 854 Button
on (keyPress "<Up>") {
if (_parent.AI == false) {
if (_parent.chan > 1) {
_parent.chan--;
_parent.channely = _root.top + (150 * _parent.chan);
_parent._y = _parent.channely;
if (_root.tutorialstage < 2) {
_root.tutorialstage = 2;
}
}
}
}
on (keyPress "<Down>") {
if (_parent.AI == false) {
if (_parent.chan < 8) {
_parent.chan++;
_parent.channely = _root.top + (150 * _parent.chan);
_parent._y = _parent.channely;
if (_root.tutorialstage < 2) {
_root.tutorialstage = 2;
}
}
}
}
on (keyPress "<Left>") {
if (_parent.AI == false) {
if (_parent.soldierselected > 0) {
_parent.soldierselected--;
} else {
_parent.soldierselected = _root.arrleftSoldierChoices.length - 1;
}
_parent.arrSoldierData = _root.arrSoldiers[_root.arrleftSoldierChoices[_parent.soldierselected]].split("|");
_parent.rechargetime = Number(_parent.arrSoldierData[3]);
_root.leftsoldier = _parent.arrSoldierData[0];
}
}
on (keyPress "<Right>") {
if (_parent.AI == false) {
if (_parent.soldierselected < (_root.arrleftSoldierChoices.length - 1)) {
_parent.soldierselected++;
} else {
_parent.soldierselected = 0;
}
_parent.arrSoldierData = _root.arrSoldiers[_root.arrleftSoldierChoices[_parent.soldierselected]].split("|");
_parent.rechargetime = Number(_parent.arrSoldierData[3]);
_root.leftsoldier = _parent.arrSoldierData[0];
}
}
on (keyPress "<Enter>") {
if (_parent.AI == false) {
if (_parent.charged >= _parent.rechargetime) {
_root.CreateSoldier(_parent.chan, _parent.facing, _root.arrleftSoldierChoices[_parent.soldierselected]);
_parent.charged = 0;
if (_root.tutorialstage < 3) {
_root.tutorialstage = 3;
}
}
}
}
on (keyPress "0") {
if (_parent.AI == false) {
if ((_parent.charged >= _parent.rechargetime) && (_parent.chargecharge >= _root.chargekills)) {
i = 1;
while (i < 9) {
_root.CreateSoldier(i, _parent.facing, _root.arrleftSoldierChoices[_parent.soldierselected]);
i++;
}
_parent.chargecharge = 0;
_parent.charged = 0;
}
}
}
Symbol 856 MovieClip Frame 1
soldierselected = 0;
arrSoldierData = _root.arrSoldiers[0].split("|");
rechargetime = Number(arrSoldierData[3]);
_root[player + "soldier"] = arrSoldierData[0];
charged = 0;
chargecharge = 0;
chan = 4;
channely = _root.top + (150 * chan);
_y = channely;
this.onEnterFrame = function () {
_alpha = ((charged / rechargetime) * 100);
charged++;
if ((_root.tutorialstage > 2) || (_root.gametype == 2)) {
_root.AI(this);
}
};
Instance of Symbol 849 MovieClip in Symbol 856 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.winner != undefined) {
gotoAndStop (4);
} else if (_parent.charged >= _parent.rechargetime) {
if (_parent.chargecharge >= _root.chargekills) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 855 MovieClip in Symbol 856 MovieClip Frame 1
onClipEvent (load) {
if (_parent.AI == true) {
gotoAndStop ("AI");
} else if (_root.gametype == 1) {
gotoAndStop ("campaign");
} else {
gotoAndStop(_parent.player);
}
}
Symbol 871 MovieClip Frame 1
stop();
if (setup != true) {
setup = true;
player = "left";
arrSoldierData = _root.arrSoldiers[_root.arrleftSoldierChoices[i]].split("|");
rechargetime = Number(arrSoldierData[3]);
_root.IncrementObjectNum();
soldier = this.attachMovie(arrSoldierData[0], "soldierdisp", _root.objectnum + 300);
soldier.race = _root.leftPlayerRace;
soldier._xscale = 80;
soldier._yscale = 80;
}
this.onEnterFrame = function () {
gotoAndStop(Math.round((_root.game.left.charged / rechargetime) * 200));
if (_root.game.left.soldierselected == i) {
inner.gotoAndStop(2);
} else {
inner.gotoAndStop(1);
}
};
Symbol 879 MovieClip Frame 1
stop();
if (setup != true) {
setup = true;
player = "right";
arrSoldierData = _root.arrSoldiers[_root.arrrightSoldierChoices[i]].split("|");
rechargetime = Number(arrSoldierData[3]);
_root.IncrementObjectNum();
soldier = this.attachMovie(arrSoldierData[0], "soldierdisp", _root.objectnum + 300);
soldier.race = _root.rightPlayerRace;
soldier._xscale = 80;
soldier._yscale = 80;
}
this.onEnterFrame = function () {
gotoAndStop(Math.round((_root.game.right.charged / rechargetime) * 200));
if (_root.game.right.soldierselected == i) {
inner.gotoAndStop(2);
} else {
inner.gotoAndStop(1);
}
};
Symbol 880 MovieClip Frame 1
i = 0;
while (i < _root.arrleftSoldierChoices.length) {
if (i > 0) {
_root.IncrementObjectNum();
duplicateMovieClip (lefttimer0, "lefttimer" + i, _root.objectnum + 300);
this["lefttimer" + i]._x = lefttimer0._x + ((lefttimer0._width + 10) * i);
this["lefttimer" + i]._y = lefttimer0._y;
}
this["lefttimer" + i].i = i;
i++;
}
i = 0;
while (i < _root.arrrightSoldierChoices.length) {
if (i > 0) {
_root.IncrementObjectNum();
duplicateMovieClip (righttimer0, "righttimer" + i, _root.objectnum + 300);
this["righttimer" + i]._x = righttimer0._x - ((righttimer0._width + 10) * i);
this["righttimer" + i]._y = righttimer0._y;
}
this["righttimer" + i].i = i;
i++;
}
Instance of Symbol 856 MovieClip "left" in Symbol 887 MovieClip Frame 1
onClipEvent (load) {
AI = _root.leftPlayerControl == "Computer";
_visible = (!AI);
player = "left";
facing = "right";
difficulty = 100;
race = _root.leftPlayerRace;
}
Instance of Symbol 856 MovieClip "right" in Symbol 887 MovieClip Frame 1
onClipEvent (load) {
AI = _root.rightPlayerControl == "Computer";
_visible = (!AI);
player = "right";
facing = "left";
difficulty = 100;
race = _root.rightPlayerRace;
}
Instance of Symbol 880 MovieClip in Symbol 887 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = (_root.winner == undefined);
}
Instance of Symbol 886 MovieClip in Symbol 887 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop (1);
_visible = (((_parent.left.chargecharge >= _root.chargekills) && (_root.gametype == 1)) && (_parent.left.charged >= _parent.left.rechargetime));
}
Instance of Symbol 886 MovieClip in Symbol 887 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop (2);
_visible = ((((_parent.right.chargecharge >= _root.chargekills) && (_root.gametype == 1)) && (_parent.right.charged >= _parent.right.rechargetime)) && (_parent.right.AI != true));
}
Symbol 899 MovieClip Frame 1
stop();
Symbol 902 Button
on (release) {
intTimer = 0;
}
Symbol 907 MovieClip Frame 1
intTimer = 240;
this.onEnterFrame = function () {
if (_root.winner == undefined) {
gotoAndStop (1);
} else if (_root.winner == "left") {
if (_root.gametype == 1) {
if (musicstarted != true) {
_root.StopSound("BattleMusic1");
_root.StopSound("BattleMusic2");
_root.PlayMusic("MenuMusic");
musicstarted = true;
}
_root.SetRegionOwner(_root.attackingregion, _root.MyRace);
if (_root.levelnum < 25) {
gotoAndStop (2);
} else {
_root.gotoAndStop("complete");
}
} else {
gotoAndStop (4);
}
} else if (_root.winner == "right") {
if (_root.gametype == 1) {
gotoAndStop (3);
} else {
gotoAndStop (5);
}
}
};
Symbol 907 MovieClip Frame 2
this.onEnterFrame = function () {
intTimer--;
if (intTimer <= 0) {
if (_root.winner == "left") {
_root.so.data.money = _root.leftmoney;
}
_root.gotoAndStop("shop");
}
};
Symbol 907 MovieClip Frame 3
this.onEnterFrame = function () {
intTimer--;
if (intTimer <= 0) {
_root.gotoAndStop("shop");
}
};
Symbol 907 MovieClip Frame 4
this.onEnterFrame = function () {
intTimer--;
if (intTimer <= 0) {
_root.gotoAndStop("menu");
}
};
Symbol 907 MovieClip Frame 5
this.onEnterFrame = function () {
intTimer--;
if (intTimer <= 0) {
_root.gotoAndStop("menu");
}
};
Symbol 912 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 914 Button
on (release) {
_root.gotoAndStop("loadkong4");
}
Symbol 915 Button
on (release) {
_root.winner = "right";
}
Symbol 917 Button
on (release) {
_root.ingameoptions.gotoAndStop(2);
}
Symbol 918 Button
on (release) {
getURL (_root.LinktoURL, "_blank");
}
Symbol 925 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.gametype == 2) {
if ((_root.twoplayerinst != true) && ((_root.game.left.AI != true) && (_root.game.right.AI != true))) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
} else if (_root.levelnum > 1) {
_root.tutorialstage = 3;
gotoAndStop (1);
} else {
gotoAndStop(_root.tutorialstage + 1);
}
};
Symbol 927 Button
on (release) {
gotoAndStop (1);
}
Symbol 929 MovieClip Frame 1
stop();
Symbol 930 Button
on (release) {
gotoAndStop ("menu");
}
on (rollOver) {
_root.unitmenu.description = "Back to the main menu";
}
on (rollOut) {
_root.unitmenu.description = "";
}
Symbol 931 Button
on (release) {
StopSound("MenuMusic");
_root.so.data.mysoldiers = _root.arrleftSoldierChoices;
_root.gotoAndStop("map");
}
on (rollOver) {
_root.unitmenu.description = "Continue to the map screen";
}
on (rollOut) {
_root.unitmenu.description = "";
}
Symbol 936 Button
on (release) {
_root["left_Upgrade_" + upgrade]++;
_root.so.data["Upgrade_" + upgrade] = _root["left_Upgrade_" + upgrade];
_root.leftmoney = _root.leftmoney - cost;
_root.so.data.money = _root.leftmoney;
}
on (rollOver) {
_root.unitmenu.description = upgradedescription;
}
on (rollOut) {
_root.unitmenu.description = "";
}
Symbol 943 MovieClip Frame 1
this.onEnterFrame = function () {
current = _root["left_Upgrade_" + upgrade];
cost = Number(basecost) + (Number(basecost) * Math.abs(current));
if (cost > _root.leftmoney) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 948 MovieClip Frame 1
i = 0;
while (i < (_root.arrUpgradeOptions.length - 1)) {
arrCurrentUpgrade = _root.arrUpgradeOptions[i].split("|");
this["upgrade" + i].i = i;
this["upgrade" + i].upgrade = arrCurrentUpgrade[0];
this["upgrade" + i].basecost = arrCurrentUpgrade[1];
this["upgrade" + i].upgradename = arrCurrentUpgrade[2];
this["upgrade" + i].upgradedescription = arrCurrentUpgrade[3];
i++;
}
Symbol 952 Button
on (rollOver) {
_parent.description = (((((((((soldiertype + " - ") + description) + "\nSpeed: ") + speed) + ", Armour: ") + armour) + ", Range: ") + range) + ", Max Damage: ") + damage;
}
on (rollOut) {
_parent.description = "";
}
Symbol 955 Button
on (release) {
_parent.gotoAndStop(2);
}
Symbol 956 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 2
arrSoldierData = _root.arrSoldiers[unittype].split("|");
soldier = this.attachMovie(arrSoldierData[0], "soldierdisp", i + 1);
description = arrSoldierData[8];
soldiertype = arrSoldierData[0];
speed = arrSoldierData[1];
damage = arrSoldierData[7];
armour = arrSoldierData[2];
range = arrSoldierData[4];
cost = Number(arrSoldierData[5]);
soldier.race = _root.leftPlayerRace;
soldier._x = 100 * i;
soldier._y = 30;
soldier._xscale = 40;
soldier._yscale = 40;
Symbol 961 Button
on (release) {
gotoAndStop (1);
}
Symbol 963 Button
on (rollOver) {
_parent.description = (((((((((((soldiertype + " - ") + description) + "\nPrice: ") + cost) + ", Speed: ") + speed) + ", Armour: ") + armour) + ", Range: ") + range) + ", Max Damage: ") + damage;
}
on (rollOut) {
_parent.description = "";
}
on (release) {
if (_root.leftmoney >= cost) {
_root.AddUnitType("left", unittype);
_root.so.data.mysoldiers = _root.arrleftSoldierChoices;
_root.leftmoney = _root.leftmoney - cost;
_root.so.data.money = _root.leftmoney;
added = true;
_parent.gotoAndStop(1);
} else {
_parent.description = "You cannot afford this unit. It costs " + cost;
}
}
Symbol 964 MovieClip Frame 1
stop();
Symbol 964 MovieClip Frame 2
arrSoldierData = _root.arrSoldiers[unittype].split("|");
soldier = this.attachMovie(arrSoldierData[0], "soldierdisp", i + 1);
description = arrSoldierData[8];
soldier.race = _root.leftPlayerRace;
soldier._x = 100 * i;
soldier._y = 30;
soldier._xscale = 40;
soldier._yscale = 40;
Symbol 967 MovieClip Frame 1
trace("Units: " + _root.arrleftSoldierChoices.length);
i = 0;
while (i < _root.arrleftSoldierChoices.length) {
this["sq" + (i + 1)].unittype = _root.arrleftSoldierChoices[i];
this["sq" + (i + 1)].gotoAndStop(2);
i++;
}
this["sq" + (i + 1)].gotoAndStop(3);
stop();
Symbol 967 MovieClip Frame 2
function HasAlready(soldiernum) {
blnReturn = false;
x = 0;
while (x < _root.arrleftSoldierChoices.length) {
if (_root.arrleftSoldierChoices[x] == soldiernum) {
blnReturn = true;
}
x++;
}
return(blnReturn);
}
function HasAlreadySelected(soldiernum) {
blnReturn = false;
g = 0;
while (g < arrSelected.length) {
if (arrSelected[g] == soldiernum) {
blnReturn = true;
}
g++;
}
return(blnReturn);
}
c = 1;
rnd = 1;
arrSelected = new Array(9);
i = 0;
while (i < 100) {
rnd++;
if ((HasAlready(rnd) == false) && (HasAlreadySelected(rnd) == false)) {
arrSoldierData = _root.arrSoldiers[rnd].split("|");
if ((arrSoldierData[6] == "") || (Number(arrSoldierData[6]) == _root.MyRace)) {
this["sq" + c].unittype = rnd;
this["sq" + c].soldiertype = arrSoldierData[0];
this["sq" + c].speed = arrSoldierData[1];
this["sq" + c].damage = arrSoldierData[7];
this["sq" + c].armour = arrSoldierData[2];
this["sq" + c].range = arrSoldierData[4];
this["sq" + c].cost = Number(arrSoldierData[5]);
this["sq" + c].gotoAndStop(2);
arrSelected[c] = rnd;
c++;
if (c > 8) {
break;
}
}
}
i++;
}
Symbol 973 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk/warlordsstrategyguide", "_blank");
}
on (rollOver) {
_root.unitmenu.description = "View more information about upgrades, units and general tactics and tips (will open website in a new window)";
}
on (rollOut) {
_root.unitmenu.description = "";
}
Symbol 979 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 982 Button
on (release) {
_root.gotoAndStop("loadkong5");
}
Symbol 983 MovieClip Frame 30
stop();
Symbol 985 Button
on (release) {
getURL (LinktoURL, "_blank");
}
Symbol 986 Button
on (release) {
gotoAndPlay (1);
}