Instance of Symbol 88 MovieClip "bar" in Frame 1
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
pc = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this.gotoAndStop(Math.floor(pc));
_root.percentLoaded = Math.floor(pc);
if (pc == 100) {
this._alpha = this._alpha - 10;
if (this._alpha < 0) {
_root.play();
}
}
}
Frame 2
stop();
Frame 3
stop();
if (!bgsndmc) {
bgsnd = new Sound();
bgsndmc = _root.createEmptyMovieClip("bgsndmc", _root.getNextHighestDepth());
bgsnd.setVolume(0);
vol = 0;
curvol = 70;
changeBGMusic = function (music) {
bgsndmc.toplay = music;
vol = bgsnd.getVolume();
bgsndmc.onEnterFrame = function () {
vol = vol - 5;
if (vol < 0) {
bgsnd.stop();
if (!(this.toplay === undefined)) {
bgsnd.attachSound(this.toplay);
bgsnd.start(null, 128);
}
vol = 0;
bgsndmc.onEnterFrame = function () {
vol = vol + 5;
if (vol > curvol) {
vol = curvol;
delete this.onEnterFrame;
}
bgsnd.setVolume(vol);
};
}
bgsnd.setVolume(vol);
};
};
}
changeBGMusic("menumusic");
Instance of Symbol 360 MovieClip "bg" in Frame 3
onClipEvent (load) {
onEnterFrame = function () {
fadeout._alpha = fadeout._alpha - 5;
if (fadeout._alpha < 0) {
fadeout._visible = false;
delete this.onEnterFrame;
}
};
}
Instance of Symbol 401 MovieClip "unlockpanel" in Frame 3
onClipEvent (load) {
curbattle = _root.battles[_root.battleProgress];
txt = curbattle.message;
_root.battleMode = curbattle.mode;
_root.startPoints = curbattle.points;
_root.battleEnemies = curbattle.enemies;
_visible = false;
}
Instance of Symbol 408 MovieClip "loadpanel" in Frame 3
onClipEvent (load) {
curbattle = _root.battles[_root.battleProgress];
txt = curbattle.message;
_root.battleMode = curbattle.mode;
_root.startPoints = curbattle.points;
_root.battleEnemies = curbattle.enemies;
_visible = false;
}
Frame 4
playerWeapons = [0];
playerShields = [0];
playerHelmets = [0];
playerArmours = [0];
playerArms = [0];
playerBoots = [0];
playerActiveWeapon = 0;
playerActiveShield = 0;
playerActiveHelmet = 0;
playerActiveArmour = 0;
playerActiveArms = 0;
playerActiveBoots = 0;
playerActiveHair = 0;
playerMoney = 1000;
playerExperience = 0;
battleProgress = 0;
changeBGMusic("intromusic");
Frame 5
changeBGMusic();
Instance of Symbol 468 MovieClip in Frame 5
onClipEvent (load) {
_root.stop();
}
Frame 6
possibleWeapons = new Array();
possibleWeapons.push({name:"basic sword", framename:"sword1", cost:100, rare:1, attr:{att:1}, type:"sword"});
possibleWeapons.push({name:"good sword", framename:"sword2", cost:1000, rare:2, attr:{att:5}, type:"sword"});
possibleWeapons.push({name:"legendary sword", framename:"sword2", cost:1000, rare:6, attr:{att:25}, type:"sword"});
possibleWeapons.push({name:"ultimate sword", framename:"sword3", cost:8000, rare:4, attr:{att:40}, type:"sword"});
possibleWeapons.push({name:"gladiators ultimate sword", framename:"sword3", cost:10000, rare:10, attr:{att:50}, type:"sword"});
possibleWeapons.push({name:"basic mace", framename:"mace1", cost:200, rare:1, attr:{att:1}, type:"sword"});
possibleWeapons.push({name:"good mace", framename:"mace2", cost:500, rare:2, attr:{att:5}, type:"sword"});
possibleWeapons.push({name:"ultimate mace", framename:"mace3", cost:5000, rare:3, attr:{att:20}, type:"sword"});
possibleWeapons.push({name:"basic spear", framename:"spear1", cost:500, rare:1, attr:{att:5}, type:"spear"});
possibleWeapons.push({name:"good spear", framename:"spear2", cost:2000, rare:5, attr:{att:10}, type:"spear"});
possibleWeapons.push({name:"ultimate spear", framename:"spear3", cost:4000, rare:10, attr:{att:20}, type:"spear"});
possibleWeapons.push({name:"basic axe", framename:"axe1", cost:1000, rare:1, attr:{att:10}, type:"axe"});
possibleWeapons.push({name:"good axe", framename:"axe2", cost:3000, rare:5, attr:{att:30}, type:"axe"});
possibleWeapons.push({name:"ultimate axe", framename:"axe3", cost:5000, rare:8, attr:{att:50}, type:"axe"});
possibleWeapons.push({name:"bonesnapper", framename:"axe3", cost:10000, rare:18, attr:{att:100}, type:"axe"});
possibleShields = new Array();
possibleShields.push({name:"wooden shield", framename:"wooden shield", cost:100, rare:1, attr:{def:1}});
possibleShields.push({name:"bronze shield", framename:"bronze shield", cost:300, rare:2, attr:{def:3}});
possibleShields.push({name:"spiked shield", framename:"spiked shield", cost:600, rare:3, attr:{def:5, att:1}});
possibleShields.push({name:"bone shield", framename:"bone shield", cost:1000, rare:4, attr:{def:10}});
possibleShields.push({name:"conformed shield", framename:"conformed shield", cost:1500, rare:5, attr:{def:15}});
possibleShields.push({name:"kite shield", framename:"kite shield", cost:2000, rare:6, attr:{def:20}});
possibleShields.push({name:"tower shield", framename:"tower shield", cost:5000, rare:10, attr:{def:25}});
possibleHelmets = new Array();
possibleHelmets.push({name:"cap", framename:"cap", cost:100, rare:1, attr:{def:1}});
possibleHelmets.push({name:"Bandana", framename:"Bandana", cost:200, rare:2, attr:{def:2}});
possibleHelmets.push({name:"skull cap", framename:"skull cap", cost:300, rare:3, attr:{def:3}});
possibleHelmets.push({name:"Bone helmet", framename:"Bone helmet", cost:500, rare:4, attr:{def:5}});
possibleHelmets.push({name:"mask", framename:"mask", cost:1000, rare:5, attr:{def:10}});
possibleHelmets.push({name:"Jaw helmet", framename:"Jaw helmet", cost:1200, rare:6, attr:{def:12}});
possibleHelmets.push({name:"Giant helm", framename:"Giant helm", cost:1500, rare:7, attr:{def:15}});
possibleHelmets.push({name:"Great helm", framename:"Great helm", cost:1700, rare:8, attr:{def:17}});
possibleHelmets.push({name:"Tiara", framename:"Tiara", cost:2000, rare:10, attr:{def:20}});
possibleArmours = new Array();
possibleArmours.push({name:"normal", framename:"normal", cost:100, rare:1, attr:{def:1}});
possibleArmours.push({name:"leather", framename:"leather", cost:500, rare:2, attr:{def:5}});
possibleArmours.push({name:"toothline", framename:"toothline", cost:1000, rare:4, attr:{def:10}});
possibleArmours.push({name:"warriors", framename:"warriors", cost:2000, rare:6, attr:{def:20}});
possibleArmours.push({name:"silent warriors", framename:"warriors", cost:3000, rare:16, attr:{def:20, agi:10}});
possibleArmours.push({name:"knights", framename:"knights", cost:3000, rare:8, attr:{def:30}});
possibleArms = new Array();
possibleArms.push({name:"arm", framename:"arm", cost:100, rare:1, attr:{def:1}});
possibleArms.push({name:"gloves", framename:"gloves", cost:100, rare:2, attr:{def:2}});
possibleArms.push({name:"iron gloves", framename:"iron gloves", cost:100, rare:3, attr:{def:4}});
possibleArms.push({name:"leather gloves", framename:"leather gloves", cost:100, rare:4, attr:{def:5}});
possibleArms.push({name:"spiked gloves", framename:"spiked gloves", cost:1000, rare:10, attr:{def:4, att:5}});
possibleArms.push({name:"palmstop gloves", framename:"palmstop gloves", cost:100, rare:5, attr:{def:1}});
possibleArms.push({name:"elite gloves", framename:"elite gloves", cost:1000, rare:10, attr:{def:4, agi:5}});
possibleArms.push({name:"gauntlets", framename:"gauntlets", cost:3000, rare:20, attr:{def:30}});
possibleArms.push({name:"golden gauntlets", framename:"golden gauntlets", cost:5000, rare:30, attr:{def:40}});
possibleBoots = new Array();
possibleBoots.push({name:"boots", framename:"boots", cost:100, rare:1, attr:{def:1}});
possibleBoots.push({name:"leather boots", framename:"leather boots", cost:200, rare:2, attr:{def:2}});
possibleBoots.push({name:"hard boots", framename:"hard boots", cost:300, rare:3, attr:{def:3}});
possibleBoots.push({name:"extra hard boots", framename:"hard boots", cost:1200, rare:6, attr:{def:6}});
possibleBoots.push({name:"black boots", framename:"black boots", cost:400, rare:4, attr:{def:4}});
possibleBoots.push({name:"black boots of speed", framename:"black boots", cost:1000, rare:8, attr:{def:4, agi:10}});
possibleBoots.push({name:"greaves", framename:"greaves", cost:1000, rare:5, attr:{def:5}});
possibleBoots.push({name:"mighty greaves", framename:"greaves", cost:2000, rare:15, attr:{def:10}});
possibleHair = new Array();
possibleHair.push("hair1");
possibleHair.push("hair2");
possibleHair.push("hair3");
possibleHair.push("hair4");
enemiesAr = {skeleton:{mc:"skeleton", jump:40, walk:9, att:30, def:10}, ninja:{mc:"ninja", jump:45, walk:12, att:10, def:10}, blogknight:{mc:"blogknight", jump:45, walk:8, att:30, def:50}, brao:{mc:"brao", jump:45, walk:10, att:50, def:30}, shrum:{mc:"shrum", jump:50, walk:18, att:0, def:0}, shrumking:{mc:"shrumking", jump:50, walk:20, att:30, def:30, boss:true}, grimsor:{mc:"Grimsor", jump:50, walk:12, att:40, def:50, boss:true}};
battles = new Array();
battles.push({mode:"survival", points:2, enemies:[enemiesAr.shrum], message:"your first battle, this is a survival battle, lose all your points and you lose"});
battles.push({mode:"survival", points:2, enemies:[enemiesAr.skeleton], message:"your second battle, a stronger opponent"});
battles.push({mode:"survival", points:4, enemies:[enemiesAr.skeleton, enemiesAr.shrum], message:"now try multiple opponents"});
battles.push({mode:"elimination", points:4, enemies:[enemiesAr.skeleton, enemiesAr.shrum], message:"up til now you have had survival matches, this is an elimination match, you win by reaching the target amount of point first"});
battles.push({mode:"survival", points:2, enemies:[enemiesAr.shrum, enemiesAr.shrum], message:"youre doing well, we need to battle some shrum now"});
battles.push({mode:"survival", points:4, enemies:[enemiesAr.blogknight, enemiesAr.skeleton], message:"Nice work, this time we've been given a new type of enemy, a blogknight"});
battles.push({mode:"elimination", points:4, enemies:[enemiesAr.blogknight, enemiesAr.shrum], message:"Keep battling, youre gettin there"});
battles.push({mode:"survival", points:2, enemies:[enemiesAr.skeleton, enemiesAr.blogknight, enemiesAr.shrum], message:"lets see how you do when youre outnumbered"});
battles.push({mode:"elimination", points:5, enemies:[enemiesAr.skeleton, enemiesAr.blogknight, enemiesAr.shrum], message:"you did well, this time its and elimination match"});
battles.push({mode:"survival", points:4, enemies:[enemiesAr.ninja, enemiesAr.shrum], message:"were workin up into the higher ranks, there will be new guys here"});
battles.push({mode:"survival", points:4, enemies:[enemiesAr.skeleton, enemiesAr.ninja, enemiesAr.shrum], message:"were workin up into the higher ranks, there will be new guys here"});
battles.push({mode:"survival", points:4, enemies:[enemiesAr.blogknight, enemiesAr.ninja, enemiesAr.shrum], message:"youre doing well, keep it up"});
battles.push({mode:"elimination", points:6, enemies:[enemiesAr.blogknight, enemiesAr.ninja, enemiesAr.blogknight], message:"youre doing well, keep it up"});
battles.push({mode:"survival", points:6, enemies:[enemiesAr.shrum, enemiesAr.shrum, enemiesAr.shrum], message:"super shrum match"});
battles.push({mode:"survival", points:6, enemies:[enemiesAr.ninja, enemiesAr.ninja, enemiesAr.ninja], message:"super ninja match"});
battles.push({mode:"survival", points:6, enemies:[enemiesAr.grimsor], message:"Beware you are fighting the boss Grimsor, he wont be as easy to hit as he may look"});
battles.push({mode:"survival", points:4, enemies:[enemiesAr.blogknight, enemiesAr.ninja, enemiesAr.shrum], message:"Congrats on Grimsor"});
battles.push({mode:"survival", points:4, enemies:[enemiesAr.brao, enemiesAr.skeleton], message:"the braos are starting to appear in matches now"});
battles.push({mode:"elimination", points:4, enemies:[enemiesAr.brao, enemiesAr.brao], message:"brao elimination match"});
battles.push({mode:"survival", points:6, enemies:[enemiesAr.brao, enemiesAr.skeleton, enemiesAr.ninja], message:"keep it up"});
battles.push({mode:"survival", points:6, enemies:[enemiesAr.brao, enemiesAr.blogknight, enemiesAr.ninja], message:"keep it up"});
battles.push({mode:"elimination", points:8, enemies:[enemiesAr.brao, enemiesAr.blogknight, enemiesAr.skeleton, enemiesAr.ninja], message:"keep it up"});
battles.push({mode:"survival", points:6, enemies:[enemiesAr.brao, enemiesAr.shrum, enemiesAr.ninja], message:"keep it up"});
battles.push({mode:"survival", points:6, enemies:[enemiesAr.blogknight, enemiesAr.skeleton, enemiesAr.shrum, enemiesAr.ninja], message:"keep it up"});
battles.push({mode:"survival", points:6, enemies:[enemiesAr.brao, enemiesAr.brao, enemiesAr.brao], message:"super brao match"});
battles.push({mode:"elimination", points:8, enemies:[enemiesAr.brao, enemiesAr.shrum, enemiesAr.ninja, enemiesAr.shrum], message:"youre in the high tiers of the arena, there wont be long til youre finished!"});
battles.push({mode:"survival", points:8, enemies:[enemiesAr.brao, enemiesAr.brao, enemiesAr.ninja, enemiesAr.shrum], message:"wow youre nearly there"});
battles.push({mode:"survival", points:8, enemies:[enemiesAr.shrumking, enemiesAr.shrum, enemiesAr.shrum, enemiesAr.shrum], message:"ultra shrum match"});
battles.push({mode:"survival", points:8, enemies:[enemiesAr.ninja, enemiesAr.ninja, enemiesAr.ninja, enemiesAr.ninja], message:"ultra ninja match"});
battles.push({mode:"survival", points:10, enemies:[enemiesAr.grimsor, enemiesAr.ninja, enemiesAr.shrum, enemiesAr.brao], message:"youve made it, this is the final round in the arena. good luck!"});
changeBGMusic("nonbattlearea");
function degToRad(deg) {
return((deg * Math.PI) / 180);
}
function radToDeg(rad) {
return((rad * 180) / Math.PI);
}
function rotate(obj, deg) {
rad = degToRad(deg);
cos = Math.cos(rad);
sin = Math.sin(rad) * aspect;
matrix = new flash.geom.Matrix((cos * obj._xscale) / 100, sin, 0, obj._yscale / 100, obj._x, obj._y);
obj.transform.matrix = matrix;
}
function easeTo(pos, trg, amnt) {
return((trg + (pos * (amnt - 1))) / amnt);
}
function moveChar(charMC) {
charMC.xspeed = charMC.xspeed * 0.8;
charMC.yspeed = charMC.yspeed * 0.8;
charMC.x = charMC.x + charMC.xspeed;
charMC.y = charMC.y + charMC.yspeed;
if (charMC.x < ((-mapwide) / 2)) {
charMC.x = (-mapwide) / 2;
}
if (charMC.x > (mapwide / 2)) {
charMC.x = mapwide / 2;
}
if (charMC.y < ((-maphigh) / 2)) {
if (charMC.y < -440) {
charMC.y = charMC.y + 20;
if (charMC.x > 80) {
charMC.x = 80;
}
if (charMC.x < -80) {
charMC.x = -80;
}
} else {
charMC.y = (-maphigh) / 2;
}
walkin = true;
}
if (charMC.y > (maphigh / 2)) {
charMC.y = charMC.y - 20;
walkin = true;
}
}
function attachWallPanel(x, y, rot, type) {
d = game.getNextHighestDepth();
panel = game.attachMovie(type, "wallpanel" + (itemRoller++), d);
wallpanels.push(panel);
panel.x = x;
panel.y = y;
panel.z = 0;
panel.rot = rot;
panel.hardcodeDepth = hardcodeDepth;
return(panel);
}
function attachTopPanel(x, y, rot, hardcodeDepth) {
d = ((!(hardcodeDepth === undefined)) ? (hardcodeDepth + 100000) : (game.getNextHighestDepth()));
panelHolder = game.createEmptyMovieClip("topTileHolder" + (itemRoller++), d);
panel = panelHolder.attachMovie("blockTopTile", "panel", 1);
panelHolder._yscale = 100 * aspect;
toppanels.push(panel);
panel.x = x;
panel.y = y;
panelHolder.y = y - 200;
panelHolder.z = wallHeight;
panelHolder.hardcodeDepth = hardcodeDepth;
panel.rot = rot;
return(panelHolder);
}
function addCharacter(name, x, y, jumpPower, walkSpeed, team, charnum) {
s = game.attachMovie(name, "character" + (itemRoller++), game.getNextHighestDepth());
s.points = startPoints;
s.charnum = charnum;
s.x = x;
s.y = y;
s.z = 0;
s.team = team;
s.jumpPower = jumpPower;
s.walkSpeed = walkSpeed;
s.xspeed = 0;
s.yspeed = 0;
s.zspeed = 0;
s.health = 100;
s.shadow = game.attachMovie("shadow", "shadow" + (itemRoller++), game.getNextHighestDepth());
s.shadow._yscale = 100 * aspect;
activeChars.push(s);
return(s);
}
function sortDepths(ar) {
newar = [];
for (a in ar) {
obj = ar[a];
newar.push({obj:obj, y:obj.y});
}
newar.sortOn("y", Array.NUMERIC);
a = 0;
while (a < newar.length) {
v = newar.shift();
newar.push(v.obj);
a++;
}
return(newar);
}
stop();
aspect = 0.5;
test_aspect._y = 50;
test_aspect.onPress = function () {
this.active = true;
};
test_aspect.onRelease = (test_aspect.onReleaseOutside = function () {
this.active = false;
});
test_aspect.onEnterFrame = function () {
if (this.active) {
this._y = _root._ymouse;
depthaspect = this._y;
}
};
depthaspect = 200;
arenaRotation = 0;
wallHeight = 80;
groundHolder = game.createEmptyMovieClip("groundholder", -1000000);
ground = groundHolder.attachMovie("groundtile_nonbattle", "ground", -1000);
groundHolder._yscale = 100 * aspect;
activeChars = [];
wallpanels = [];
toppanels = [];
itemRoller = 0;
mapwide = 800;
maphigh = 800;
pts1 = (pts2 = (pts3 = (pts4 = startPoints)));
playerCharacter = addCharacter("dwarf", 0, 400, 40, 5, 1, 1);
konrei = addCharacter("konrei", 200, -200, 40, 4, 4);
barbus = addCharacter("barbus", -200, -350, 40, 4, 4);
stash = addCharacter("stash", 300, -350, 40, 4, 4);
hairdresser = addCharacter("hairdresser", 330, -50, 40, 4, 4);
patrick = addCharacter("patrick", -300, 100, 40, 4, 4);
backWall = attachWallPanel(400, -400, 0, "backWall");
wallObjects = new Array();
var charListener = new Object();
charListener.char = char;
charListener.onKeyUp = function () {
if (Key.getCode() == 37) {
lastLeftUp = getTimer();
}
if (Key.getCode() == 39) {
lastRightUp = getTimer();
}
};
charListener.onKeyDown = function () {
if (Key.getCode() == 67) {
cheat = "c";
} else if (Key.getCode() == 65) {
if (cheat == "c") {
cheat = "ca";
}
} else if (Key.getCode() == 83) {
if (cheat == "ca") {
cheat = "cas";
}
} else if (Key.getCode() == 72) {
if (cheat == "cas") {
cheat = "cash";
playerMoney = playerMoney + 10000;
}
} else {
cheat = "";
}
if (Key.getCode() == 37) {
if ((getTimer() - lastLeftUp) < 100) {
if (!playerCharacter.waitForAnimation) {
playerCharacter.gotoAndPlay("dash");
}
}
}
if (Key.getCode() == 39) {
if ((getTimer() - lastRightUp) < 100) {
if (!playerCharacter.waitForAnimation) {
playerCharacter.gotoAndPlay("dash");
}
}
}
if (Key.getCode() == 88) {
closestDist = Infinity;
for (ch2 in activeChars) {
char2 = activeChars[ch2];
if (!(char2 === playerCharacter)) {
dist = Math.abs(char2.x - playerCharacter.x) + Math.abs(char2.y - playerCharacter.y);
if (dist < closestDist) {
closestDist = dist;
closest = char2;
}
}
}
char.fighting = closest;
if (closestDist < 100) {
switch (closest) {
case barbus :
_root.battlepanel._visible = true;
break;
case konrei :
_root.weaponspanel._visible = true;
_root.weaponspanel.gp = ("you have " + playerMoney) + " gp";
break;
case stash :
_root.stashpanel._visible = true;
_root.stashpanel.play();
break;
case hairdresser :
_root.hairpanel._visible = true;
break;
case patrick :
_root.savepanel._visible = true;
}
}
}
};
Key.addListener(charListener);
game.onEnterFrame = function () {
if (playerCharacter) {
arenaRotation = (-playerCharacter.x) / 15;
}
r = degToRad(arenaRotation);
c = Math.cos(r);
s = Math.sin(r);
ground._rotation = arenaRotation;
char = playerCharacter;
closestDist = Infinity;
closest = undefined;
for (ch2 in activeChars) {
char2 = activeChars[ch2];
if (!(char2 === char)) {
char2.talk_help._visible = false;
dist = Math.abs(char2.x - char.x) + Math.abs(char2.y - char.y);
if (dist < closestDist) {
closestDist = dist;
closest = char2;
}
}
}
if (closestDist < 100) {
closest.talk_help._visible = true;
}
for (ch in activeChars) {
char = activeChars[ch];
spd = 18;
if (!char.waitForAnimation) {
oldpos = {x:char.x, y:char.y};
if (char == playerCharacter) {
walkin = false;
if (Key.isDown(38)) {
char.yspeed = char.yspeed - char.walkSpeed;
walkin = true;
} else if (Key.isDown(40)) {
char.yspeed = char.yspeed + char.walkSpeed;
walkin = true;
}
if (Key.isDown(37)) {
char.xspeed = char.xspeed - char.walkSpeed;
char._xscale = 100;
walkin = true;
} else if (Key.isDown(39)) {
char.xspeed = char.xspeed + char.walkSpeed;
char._xscale = -100;
walkin = true;
}
moveChar(char);
}
overBlock = false;
for (ob in wallObjects) {
obj = wallObjects[ob];
if (obj.contains(char.x, char.y)) {
if (char.z < wallHeight) {
if (obj.contains(oldpos.x, char.y)) {
char.y = oldpos.y;
}
if (obj.contains(char.x, oldpos.y)) {
char.x = oldpos.x;
}
if (!(char === playerCharacter)) {
if (!char.airborne) {
char.zspeed = char.zspeed + char.jumpPower;
char.airborne = true;
}
}
} else {
overBlock = true;
}
}
}
groundheight = (overBlock ? (wallHeight) : 0);
if (!char.waitForAnimation) {
if (char.z > groundheight) {
char.gotoAndStop("jump");
} else if (walkin) {
if (!(char.currentAction === "run")) {
char.gotoAndPlay("run");
}
} else {
char.gotoAndStop("stand");
}
}
} else {
oldpos = {x:char.x, y:char.y};
moveChar(char);
overBlock = false;
for (ob in wallObjects) {
obj = wallObjects[ob];
if (obj.contains(char.x, char.y)) {
if (char.z < wallHeight) {
if (obj.contains(oldpos.x, char.y)) {
char.y = oldpos.y;
char.yspeed = char.yspeed * -1;
}
if (obj.contains(char.x, oldpos.y)) {
char.x = oldpos.x;
char.xspeed = char.xspeed * -1;
}
} else {
overBlock = true;
}
}
}
if (char.attack) {
char.attack = false;
for (ch2 in activeChars) {
char2 = activeChars[ch2];
if (((!(char2 === char)) and (!(char2.team === char.team))) and (!(char2.currentAction === "die"))) {
if (Math.abs(char2.z - char.z) < 60) {
pt = new flash.geom.Point(char2._x, char2._y);
game.localToGlobal(pt);
if (char.hit.hitTest(pt.x, pt.y, false)) {
if (!(char === playerCharacter)) {
char.comboLvl++;
}
if (char2.currentAction == "block") {
char.gotoAndPlay("recoil");
char.zspeed = 15;
} else if ((!random(12)) and (!char2.waitForAnimation)) {
char2.gotoAndPlay("block");
char.gotoAndPlay("recoil");
char.zspeed = 15;
} else {
char2.fighting = char;
char2.health = char2.health - char.str;
if (char2.health > 0) {
char2.healthbar._xscale = char2.health;
char2.gotoAndPlay("recoil");
} else {
switch (battleMode) {
case "elimination" :
char.points--;
_root["pts" + char.charnum] = char.points;
break;
case "survival" :
char2.points--;
_root["pts" + char2.charnum] = char2.points;
}
char2.healthbar._xscale = 0;
char2.gotoAndPlay("die");
char.fighting = undefined;
}
char2.waitForAnimation = true;
if (char.knockback) {
char.fighting = undefined;
char2.zspeed = 30;
if (char2.x < char.x) {
char2._xscale = -100;
char2.xspeed = -60;
} else {
char2._xscale = 100;
char2.xspeed = 60;
}
} else {
char2.zspeed = 15;
if (char2.x < char.x) {
char2._xscale = -100;
} else {
char2._xscale = 100;
}
}
}
}
}
}
}
char.knockback = false;
}
}
aspect = 0.5 - (playerCharacter.z / 1000);
dist = Math.sqrt(Math.pow(char.x, 2) + Math.pow(char.y, 2));
myrad = r + Math.atan2(char.y, char.x);
myc = Math.cos(myrad);
mys = Math.sin(myrad);
groundheight = (overBlock ? (wallHeight) : 0);
if ((!(char.zspeed === 0)) or (!(char.z === groundheight))) {
char.zspeed = char.zspeed - 6;
char.z = char.z + char.zspeed;
if (char.z > groundheight) {
} else {
char.z = groundheight;
char.zspeed = 0;
if (!char.waitForAnimation) {
char.gotoAndPlay("land");
}
char.airborne = false;
}
}
char._x = myc * dist;
char._y = ((mys * dist) * aspect) - char.z;
char.shadow._x = char._x;
char.shadow._y = char._y + char.z;
char.shadow._xscale = 100 - (char.z / 2);
if (char.shadow._xscale < 30) {
char.shadow._xscale = 30;
}
char.shadow._yscale = char.shadow._xscale * aspect;
char.shadow.swapDepths(char.getDepth() - 1);
if (overBlock) {
char.shadow._y = char.shadow._y - wallHeight;
}
char.overBlock = overBlock;
}
for (wp in wallpanels) {
panel = wallpanels[wp];
dist = Math.sqrt(Math.pow(panel.x, 2) + Math.pow(panel.y, 2));
myrad = r + Math.atan2(panel.y, panel.x);
panel._x = Math.cos(myrad) * dist;
panel._y = (Math.sin(myrad) * dist) * aspect;
rotate(panel, arenaRotation + panel.rot);
}
for (tp in toppanels) {
panel = toppanels[tp];
dist = Math.sqrt(Math.pow(panel.x, 2) + Math.pow(panel.y, 2));
myrad = r + Math.atan2(panel.y, panel.x);
panel._parent._x = Math.cos(myrad) * dist;
panel._parent._y = ((Math.sin(myrad) * dist) * aspect) - wallHeight;
panel._rotation = arenaRotation;
panel._parent._yscale = 100 * aspect;
}
topRow = [];
frontRow = [];
middleRow = [];
backRow = [];
offstageRow = [];
for (ch in activeChars) {
char = activeChars[ch];
if (char.overBlock) {
topRow.push(char);
} else if ((Math.abs(char.x) <= char.y) and (char.y > 1)) {
frontRow.push(char);
} else if ((Math.abs(char.x) <= (char.y + (mapwide / 2))) and (char.y > ((-mapwide) / 2))) {
middleRow.push(char);
} else if (char.y >= ((-mapwide) / 2)) {
backRow.push(char);
} else {
offstageRow.push(char);
}
}
topRow = sortDepths(topRow);
frontRow = sortDepths(frontRow);
middleRow = sortDepths(middleRow);
backRow = sortDepths(backRow);
offstageRow = sortDepths(offstageRow);
depthAr = offstageRow.concat([backWall], backRow, middleRow, frontRow, topRow);
depthcount = 1;
d = 0;
while (d < depthAr.length) {
obj = depthAr[d];
obj.swapDepths((d + 1) * 2);
d++;
}
for (ch in activeChars) {
char = activeChars[ch];
char.shadow.swapDepths(char.getDepth() - 1);
}
game._x = (((Stage.width / 2) - playerCharacter._x) + (game._x * 5)) / 6;
game._y = (((Stage.height / 2) - playerCharacter._y) + (game._y * 5)) / 6;
groundHolder._yscale = 100 * aspect;
};
Instance of Symbol 474 MovieClip "hairpanel" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 492 MovieClip "weaponspanel" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 500 MovieClip "stashpanel" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 503 MovieClip "battlepanel" in Frame 6
onClipEvent (load) {
curbattle = _root.battles[_root.battleProgress];
txt = curbattle.message;
_root.battleMode = curbattle.mode;
_root.startPoints = curbattle.points;
_root.battleEnemies = curbattle.enemies;
_visible = false;
}
Instance of Symbol 505 MovieClip "savepanel" in Frame 6
onClipEvent (load) {
curbattle = _root.battles[_root.battleProgress];
txt = curbattle.message;
_root.battleMode = curbattle.mode;
_root.startPoints = curbattle.points;
_root.battleEnemies = curbattle.enemies;
_visible = false;
}
Instance of Symbol 509 MovieClip in Frame 6
onClipEvent (load) {
basex = 480;
range = 60;
this._x = basex + (range * (_root.curvol / 100));
}
on (press) {
active = true;
}
on (release, releaseOutside) {
active = false;
}
onClipEvent (enterFrame) {
if (active) {
_x = _root._xmouse;
if (_x < basex) {
_x = basex;
}
if (_x > (basex + range)) {
_x = (basex + range);
}
pc = ((_x - basex) / range) * 100;
_root.curvol = pc;
_root.bgsnd.setVolume(pc);
_root.battlesound.setVolume(pc);
}
}
Frame 7
function degToRad(deg) {
return((deg * Math.PI) / 180);
}
function radToDeg(rad) {
return((rad * 180) / Math.PI);
}
function rotate(obj, deg) {
rad = degToRad(deg);
cos = Math.cos(rad);
sin = Math.sin(rad) * aspect;
matrix = new flash.geom.Matrix((cos * obj._xscale) / 100, sin, 0, obj._yscale / 100, obj._x, obj._y);
obj.transform.matrix = matrix;
}
function easeTo(pos, trg, amnt) {
return((trg + (pos * (amnt - 1))) / amnt);
}
function closeGame() {
Key.removeListener(charListener);
}
function moveChar(charMC) {
charMC.xspeed = charMC.xspeed * 0.6;
charMC.yspeed = charMC.yspeed * 0.6;
charMC.x = charMC.x + charMC.xspeed;
charMC.y = charMC.y + charMC.yspeed;
if (charMC.x < ((-mapwide) / 2)) {
charMC.x = (-mapwide) / 2;
}
if (charMC.x > (mapwide / 2)) {
charMC.x = mapwide / 2;
}
if (charMC.y < ((-maphigh) / 2)) {
if (charMC.y < -440) {
charMC.y = charMC.y + 20;
if (charMC.x > 80) {
charMC.x = 80;
}
if (charMC.x < -80) {
charMC.x = -80;
}
} else {
charMC.y = (-maphigh) / 2;
}
walkin = true;
}
if (charMC.y > (maphigh / 2)) {
charMC.y = charMC.y - 20;
walkin = true;
}
}
function attachWallPanel(x, y, rot, type) {
d = game.getNextHighestDepth();
panel = game.attachMovie(type, "wallpanel" + (itemRoller++), d);
wallpanels.push(panel);
panel.x = x;
panel.y = y;
panel.z = 0;
panel.rot = rot;
panel.hardcodeDepth = hardcodeDepth;
return(panel);
}
function attachTopPanel(x, y, rot, hardcodeDepth) {
d = ((!(hardcodeDepth === undefined)) ? (hardcodeDepth + 100000) : (game.getNextHighestDepth()));
panelHolder = game.createEmptyMovieClip("topTileHolder" + (itemRoller++), d);
panel = panelHolder.attachMovie("blockTopTile", "panel", 1);
panelHolder._yscale = 100 * aspect;
toppanels.push(panel);
panel.x = x;
panel.y = y;
panelHolder.y = y - 200;
panelHolder.z = wallHeight;
panelHolder.hardcodeDepth = hardcodeDepth;
panel.rot = rot;
return(panelHolder);
}
function addCharacter(name, x, y, jumpPower, walkSpeed, att, def, team, charnum, boss) {
s = game.attachMovie(name, "char" + (itemRoller++), game.getNextHighestDepth());
s.points = startPoints;
s.charnum = charnum;
s.x = x;
s.y = y;
s.z = 0;
s.att = att;
s.def = def;
s.team = team;
s.boss = boss;
s.jumpPower = jumpPower;
s.walkSpeed = walkSpeed;
s.xspeed = 0;
s.yspeed = 0;
s.zspeed = 0;
s.health = 100;
s.shadow = game.attachMovie("shadow", "shadow" + (itemRoller++), game.getNextHighestDepth());
s.shadow._yscale = 100 * aspect;
activeChars.push(s);
return(s);
}
function sortDepths(ar) {
newar = [];
for (a in ar) {
obj = ar[a];
newar.push({obj:obj, y:obj.y});
}
newar.sortOn("y", Array.NUMERIC);
a = 0;
while (a < newar.length) {
v = newar.shift();
newar.push(v.obj);
a++;
}
return(newar);
}
changeBGMusic("battlemusic");
var so = SharedObject.getLocal("unlockable");
if (!battlesound) {
battlesound = new Sound();
}
battlesound.setVolume(curvol);
stop();
aspect = 0.5;
test_aspect._y = 50;
test_aspect.onPress = function () {
this.active = true;
};
test_aspect.onRelease = (test_aspect.onReleaseOutside = function () {
this.active = false;
});
test_aspect.onEnterFrame = function () {
if (this.active) {
this._y = _root._ymouse;
depthaspect = this._y;
}
};
depthaspect = 200;
arenaRotation = 0;
wallHeight = 80;
groundHolder = game.createEmptyMovieClip("groundholder", -1000000);
ground = groundHolder.attachMovie("groundtile", "ground", -1000);
groundHolder._yscale = 100 * aspect;
activeChars = [];
wallpanels = [];
toppanels = [];
itemRoller = 0;
mapwide = 800;
maphigh = 800;
pts1 = (pts2 = (pts3 = (pts4 = (pts5 = (pts6 = startPoints)))));
playerStats = {agi:40, def:0, att:0};
itms = new Array();
itms.push(possibleWeapons[playerActiveWeapon]);
itms.push(possibleShields[playerActiveShield]);
itms.push(possibleHelmets[playerActiveHelmet]);
itms.push(possibleArmours[playerActiveArmour]);
itms.push(possibleArms[playerActiveArms]);
itms.push(possibleBoots[playerActiveBoots]);
for (i in itms) {
item = itms[i];
if (!(item.attr.agi === undefined)) {
playerStats.agi = playerStats.agi + item.attr.agi;
}
if (!(item.attr.att === undefined)) {
playerStats.att = playerStats.att + item.attr.att;
}
if (!(item.attr.def === undefined)) {
playerStats.def = playerStats.def + item.attr.def;
}
}
if (so.data.doubledamage) {
playerStats.att = playerStats.att * 2;
}
playerCharacter = addCharacter("dwarf", 0, 1000, playerStats.agi, playerStats.agi / 4, playerStats.att, playerStats.def, 1, 1);
addCharacter("dwarf", 0, 900, 40, 10, 0, 0, 1, 2);
pts3mc._visible = (pts4mc._visible = (pts5mc._visible = (pts6mc._visible = false)));
_root.pts3_txt = (_root.pts4_txt = (_root.pts5_txt = (_root.pts6_txt = "")));
for (e in battleEnemies) {
en = battleEnemies[e];
n = 3 + Number(e);
_root[("pts" + n) + "mc"]._visible = true;
_root[("pts" + n) + "_txt"] = en.mc;
addCharacter(en.mc, 0, -800, en.jump, en.walk, en.att, en.def, 2, n, en.boss);
}
l = attachWallPanel(100, 100, 270, "wallpanel");
r = attachWallPanel(300, 100, 270, "wallpanel");
f = attachWallPanel(300, 300, 0, "wallpanel");
t = attachTopPanel(100, 300, 0);
boxFront = [l, r, f, t];
l = attachWallPanel(-300, -300, 270, "wallpanel");
r = attachWallPanel(-100, -300, 270, "wallpanel");
f = attachWallPanel(-100, -100, 0, "wallpanel");
t = attachTopPanel(-300, -100, 0);
boxRear = [l, r, f, t];
backWall = attachWallPanel(400, -400, 0, "backWall");
wallObjects = new Array();
wallObjects.push(new flash.geom.Rectangle(100, 100, 200, 200));
wallObjects.push(new flash.geom.Rectangle(-300, -300, 200, 200));
var charListener = new Object();
charListener.char = char;
charListener.onKeyUp = function () {
if (Key.getCode() == 37) {
lastLeftUp = getTimer();
}
if (Key.getCode() == 39) {
lastRightUp = getTimer();
}
};
charListener.onKeyDown = function () {
if (Key.getCode() == 37) {
if ((getTimer() - lastLeftUp) < 100) {
if (!playerCharacter.waitForAnimation) {
playerCharacter.gotoAndPlay("dash");
}
}
}
if (Key.getCode() == 39) {
if ((getTimer() - lastRightUp) < 100) {
if (!playerCharacter.waitForAnimation) {
playerCharacter.gotoAndPlay("dash");
}
}
}
if (Key.getCode() == 88) {
if (!playerCharacter.waitForAnimation) {
if (playerCharacter.airborne) {
playerCharacter.gotoAndPlay("airattack");
} else {
switch (possibleWeapons[playerActiveWeapon].type) {
case "sword" :
playerCharacter.gotoAndPlay("attack1");
break;
case "spear" :
playerCharacter.gotoAndPlay("attackspear");
break;
case "axe" :
playerCharacter.gotoAndPlay("attackaxe");
}
}
playerCharacter.comboLvl = 1;
} else {
playerCharacter.comboLvl++;
if (playerCharacter.currentAction == "dash") {
}
}
}
if (Key.getCode() == 90) {
if ((!playerCharacter.airborne) and (!playerCharacter.waitForAnimation)) {
playerCharacter.zspeed = playerCharacter.zspeed + playerCharacter.jumpPower;
playerCharacter.airborne = true;
}
}
if (Key.getCode() == 67) {
if ((!playerCharacter.airborne) and (!playerCharacter.waitForAnimation)) {
playerCharacter.gotoAndPlay("block");
}
}
};
Key.addListener(charListener);
game.onEnterFrame = function () {
if (playerCharacter) {
arenaRotation = (-playerCharacter.x) / 15;
}
r = degToRad(arenaRotation);
c = Math.cos(r);
s = Math.sin(r);
ground._rotation = arenaRotation;
for (ch in activeChars) {
char = activeChars[ch];
spd = 18;
if (!char.waitForAnimation) {
oldpos = {x:char.x, y:char.y};
if (char == playerCharacter) {
walkin = false;
if (Key.isDown(38)) {
char.yspeed = char.yspeed - char.walkSpeed;
walkin = true;
} else if (Key.isDown(40)) {
char.yspeed = char.yspeed + char.walkSpeed;
walkin = true;
}
if (Key.isDown(37)) {
char.xspeed = char.xspeed - char.walkSpeed;
char._xscale = 100;
walkin = true;
} else if (Key.isDown(39)) {
char.xspeed = char.xspeed + char.walkSpeed;
char._xscale = -100;
walkin = true;
}
moveChar(char);
} else {
if (typeof(char.fighting) == "number") {
char.fighting--;
if (char.fighting < 0) {
char.fighting = undefined;
}
} else if (((char.fighting == undefined) or (char.fighting.currentAction == "die")) or (!random(20))) {
closestDist = Infinity;
closest = undefined;
chars = [];
for (ch2 in activeChars) {
char2 = activeChars[ch2];
if (((!(char2 === char)) and (!(char2.currentAction === "die"))) and (!(char2.team === char.team))) {
dist = Math.abs(char2.x - char.x) + Math.abs(char2.y - char.y);
chars.push(char2);
if (dist < closestDist) {
closestDist = dist;
closest = char2;
}
}
}
if ((closestDist > 200) and (!random(4))) {
char.fighting = random(40);
} else {
char.fighting = chars[random(chars.length)];
}
}
phase = (Math.cos(getTimer() / 2000) + 1) * 40;
if ((char.health < phase) and ((char.fighting.currentAction == "attack1") or ((!char.fighting.waitForAnimation) and ((char.x < char.fighting.x) ? (char.fighting._xscale > 0) : (char.fighting._xscale < 0))))) {
char.standoff = true;
xbuffer = 150;
ybuffer = 20;
} else {
char.standoff = false;
xbuffer = 60;
ybuffer = 10;
}
walkin = false;
if (char.x < (char.fighting.x - xbuffer)) {
char._xscale = -100;
char.xspeed = char.xspeed + char.walkSpeed;
walkin = true;
} else if (char.x > (char.fighting.x + xbuffer)) {
char._xscale = 100;
char.xspeed = char.xspeed - char.walkSpeed;
walkin = true;
} else {
diff = Math.abs(char.x - char.fighting.x);
if (diff < (xbuffer / 2)) {
walkin = true;
if (char.x > char.fighting.x) {
char.xspeed = char.xspeed + (char.walkSpeed / 2);
char._xscale = -100;
} else {
char.xspeed = char.xspeed - (char.walkSpeed / 2);
char._xscale = 100;
}
} else if (char.x > char.fighting.x) {
char._xscale = 100;
} else {
char._xscale = -100;
}
}
if (char.y < (char.fighting.y - ybuffer)) {
char.yspeed = char.yspeed + char.walkSpeed;
walkin = true;
} else if (char.y > (char.fighting.y + ybuffer)) {
char.yspeed = char.yspeed - char.walkSpeed;
walkin = true;
}
moveChar(char);
if ((((!walkin) and (!(char.fighting === undefined))) and (!char.standoff)) and (typeof(char.fighting) == "movieclip")) {
if (!random(5)) {
if (char.airborne) {
if ((char.z > char.fighting.z) || (char.z < (char.fighting.z - 60))) {
char.gotoAndPlay("airattack");
}
} else {
char.gotoAndPlay("attack1");
}
char.waitForAnimation = true;
char.comboLvl = 1;
char.xspeed = (char.yspeed = 0);
}
}
}
overBlock = false;
for (ob in wallObjects) {
obj = wallObjects[ob];
if (obj.contains(char.x, char.y)) {
if (char.z < wallHeight) {
if (obj.contains(oldpos.x, char.y)) {
char.y = oldpos.y;
}
if (obj.contains(char.x, oldpos.y)) {
char.x = oldpos.x;
}
if (!(char === playerCharacter)) {
if (!char.airborne) {
char.zspeed = char.zspeed + char.jumpPower;
char.airborne = true;
}
}
} else {
overBlock = true;
}
}
}
groundheight = (overBlock ? (wallHeight) : 0);
if (!char.waitForAnimation) {
if (char.z > groundheight) {
char.gotoAndStop("jump");
} else if (walkin) {
if (!(char.currentAction === "run")) {
char.gotoAndPlay("run");
}
} else {
char.gotoAndStop("stand");
}
}
} else {
oldpos = {x:char.x, y:char.y};
moveChar(char);
overBlock = false;
for (ob in wallObjects) {
obj = wallObjects[ob];
if (obj.contains(char.x, char.y)) {
if (char.z < wallHeight) {
if (obj.contains(oldpos.x, char.y)) {
char.y = oldpos.y;
char.yspeed = char.yspeed * -1;
}
if (obj.contains(char.x, oldpos.y)) {
char.x = oldpos.x;
char.xspeed = char.xspeed * -1;
}
} else {
overBlock = true;
}
}
}
if (char.attack) {
char.attack = false;
for (ch2 in activeChars) {
char2 = activeChars[ch2];
if (((!(char2 === char)) and (!(char2.team === char.team))) and (!(char2.currentAction === "die"))) {
if (Math.abs(char2.z - char.z) < 60) {
pt = new flash.geom.Point(char2._x, char2._y);
game.localToGlobal(pt);
if (char.hit.hitTest(pt.x, pt.y, false)) {
if (!(char === playerCharacter)) {
char.comboLvl++;
}
if ((char2.boss == true) and (char2.currentAction == "attack1")) {
char.gotoAndPlay("recoil");
char.zspeed = 15;
} else if (char2.currentAction == "block") {
char.gotoAndPlay("recoil");
char.zspeed = 15;
} else if ((!random((char2.standoff ? 2 : 12))) and ((char.x < char.fighting.x) ? (char.fighting._xscale > 0) : (char.fighting._xscale < 0))) {
char2.gotoAndPlay("block");
char.gotoAndPlay("recoil");
char.zspeed = 15;
} else {
char2.fighting = char;
battlesound.attachSound("swordsound" + random(3));
battlesound.start();
char2.health = char2.health - ((char.str * (1 + (char.att / 100))) * (1 - (char2.def / 200)));
if (so.data.godmode) {
playerCharacter.health = 100;
}
if (char == playerCharacter) {
playerMoney = playerMoney + Math.floor(char.str * (1 + (char2.def / 30)));
}
if (char2.health > 0) {
char2.healthbar._xscale = char2.health;
char2.gotoAndPlay("recoil");
} else {
switch (battleMode) {
case "elimination" :
char.points--;
_root["pts" + char.charnum] = char.points;
if (char.points == 0) {
winningteam = char.team;
if (winningteam == playerCharacter.team) {
battleProgress++;
playerMoney = playerMoney + (100 * battleProgress);
closeGame();
win.play();
} else {
lose.play();
}
delete game.onEnterFrame;
blackscreen._alpha = -100;
blackscreen._visible = true;
blackscreen.onEnterFrame = function () {
blackscreen._alpha = blackscreen._alpha + 3;
if (blackscreen._alpha >= 100) {
_root.gotoAndStop("prebattle");
}
};
}
break;
case "survival" :
char2.points--;
_root["pts" + char2.charnum] = char2.points;
enpts = 0;
for (ch3 in activeChars) {
if (!(activeChars[ch3].team === char.team)) {
enpts = enpts + activeChars[ch3].points;
}
}
if (enpts) {
break;
}
winningteam = char.team;
if (winningteam == playerCharacter.team) {
battleProgress++;
if (so.data.furthest == undefined) {
so.data.furthest = 0;
}
so.data.furthest = ((battleProgress > so.data.furthest) ? battleProgress : so.data.furthest);
if (battleProgress == battles.length) {
gotoAndStop ("outro");
if (so.data.timesFinished) {
so.data.timesFinished++;
} else {
so.data.timesFinished = 1;
}
}
so.data.flush();
playerMoney = playerMoney + (100 * battleProgress);
closeGame();
win.play();
} else {
lose.play();
}
blackscreen._alpha = -100;
blackscreen._visible = true;
blackscreen.onEnterFrame = function () {
blackscreen._alpha = blackscreen._alpha + 3;
if (blackscreen._alpha >= 100) {
_root.gotoAndStop("prebattle");
}
};
}
char2.healthbar._xscale = 0;
char2.gotoAndPlay("die");
char2.currentAction = "die";
char.fighting = undefined;
}
char2.waitForAnimation = true;
if (char.knockback) {
char.fighting = undefined;
char2.zspeed = 30;
if (char2.x < char.x) {
char2._xscale = -100;
char2.xspeed = -60;
} else {
char2._xscale = 100;
char2.xspeed = 60;
}
} else {
char2.zspeed = 15;
if (char2.x < char.x) {
char2._xscale = -100;
} else {
char2._xscale = 100;
}
}
}
}
}
}
}
char.knockback = false;
}
}
aspect = 0.5 - (playerCharacter.z / 1000);
dist = Math.sqrt(Math.pow(char.x, 2) + Math.pow(char.y, 2));
myrad = r + Math.atan2(char.y, char.x);
myc = Math.cos(myrad);
mys = Math.sin(myrad);
groundheight = (overBlock ? (wallHeight) : 0);
if ((!(char.zspeed === 0)) or (!(char.z === groundheight))) {
char.zspeed = char.zspeed - 6;
char.z = char.z + char.zspeed;
if (char.z > groundheight) {
} else {
char.z = groundheight;
char.zspeed = 0;
if (!char.waitForAnimation) {
char.gotoAndPlay("land");
}
char.airborne = false;
}
}
char._x = myc * dist;
char._y = ((mys * dist) * aspect) - char.z;
char.shadow._x = char._x;
char.shadow._y = char._y + char.z;
char.shadow._xscale = 100 - (char.z / 2);
if (char.shadow._xscale < 30) {
char.shadow._xscale = 30;
}
char.shadow._yscale = char.shadow._xscale * aspect;
char.shadow.swapDepths(char.getDepth() - 1);
if (overBlock) {
char.shadow._y = char.shadow._y - wallHeight;
}
char.overBlock = overBlock;
}
for (wp in wallpanels) {
panel = wallpanels[wp];
dist = Math.sqrt(Math.pow(panel.x, 2) + Math.pow(panel.y, 2));
myrad = r + Math.atan2(panel.y, panel.x);
panel._x = Math.cos(myrad) * dist;
panel._y = (Math.sin(myrad) * dist) * aspect;
rotate(panel, arenaRotation + panel.rot);
}
for (tp in toppanels) {
panel = toppanels[tp];
dist = Math.sqrt(Math.pow(panel.x, 2) + Math.pow(panel.y, 2));
myrad = r + Math.atan2(panel.y, panel.x);
panel._parent._x = Math.cos(myrad) * dist;
panel._parent._y = ((Math.sin(myrad) * dist) * aspect) - wallHeight;
panel._rotation = arenaRotation;
panel._parent._yscale = 100 * aspect;
}
topRow = [];
frontRow = [];
middleRow = [];
backRow = [];
offstageRow = [];
for (ch in activeChars) {
char = activeChars[ch];
if (char.overBlock) {
topRow.push(char);
} else if ((Math.abs(char.x) <= char.y) and (char.y > 1)) {
frontRow.push(char);
} else if ((Math.abs(char.x) <= (char.y + (mapwide / 2))) and (char.y > ((-mapwide) / 2))) {
middleRow.push(char);
} else if (char.y >= ((-mapwide) / 2)) {
backRow.push(char);
} else {
offstageRow.push(char);
}
}
topRow = sortDepths(topRow);
frontRow = sortDepths(frontRow);
middleRow = sortDepths(middleRow);
backRow = sortDepths(backRow);
offstageRow = sortDepths(offstageRow);
depthAr = offstageRow.concat([backWall], backRow, boxRear, middleRow, boxFront, frontRow, topRow);
depthcount = 1;
d = 0;
while (d < depthAr.length) {
obj = depthAr[d];
obj.swapDepths((d + 1) * 2);
d++;
}
for (ch in activeChars) {
char = activeChars[ch];
char.shadow.swapDepths(char.getDepth() - 1);
}
game._x = (((Stage.width / 2) - playerCharacter._x) + (game._x * 5)) / 6;
game._y = (((Stage.height / 2) - playerCharacter._y) + (game._y * 5)) / 6;
groundHolder._yscale = 100 * aspect;
};
Instance of Symbol 512 MovieClip "win" in Frame 7
onClipEvent (load) {
}
Instance of Symbol 515 MovieClip "lose" in Frame 7
onClipEvent (load) {
}
Instance of Symbol 509 MovieClip in Frame 7
onClipEvent (load) {
basex = 155;
range = 60;
this._x = basex + (range * (_root.curvol / 100));
}
on (press) {
active = true;
}
on (release, releaseOutside) {
active = false;
}
onClipEvent (enterFrame) {
if (active) {
_x = _root._xmouse;
if (_x < basex) {
_x = basex;
}
if (_x > (basex + range)) {
_x = (basex + range);
}
pc = ((_x - basex) / range) * 100;
_root.curvol = pc;
_root.bgsnd.setVolume(pc);
_root.battlesound.setVolume(pc);
}
}
Instance of Symbol 532 MovieClip "blackscreen" in Frame 7
onClipEvent (load) {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha < 0) {
_visible = false;
}
};
}
Frame 8
stop();
changeBGMusic("intromusic");
Frame 9
changeBGMusic();
Instance of Symbol 612 MovieClip in Frame 9
onClipEvent (load) {
_root.stop();
}
Frame 10
changeBGMusic();
Symbol 29 MovieClip Frame 1
stop();
obj = this;
while ((!(obj === _root)) and (!(obj === _root.playerCharacter))) {
obj = obj._parent;
}
if (obj == _root.playerCharacter) {
gotoAndStop(_root.possibleWeapons[_root.playerActiveWeapon].framename);
}
Symbol 29 MovieClip Frame 51
stop();
Symbol 37 MovieClip Frame 1
stop();
obj = this;
while ((!(obj === _root)) and (!(obj === _root.playerCharacter))) {
obj = obj._parent;
}
if (obj == _root.playerCharacter) {
gotoAndStop(_root.possibleShields[_root.playerActiveShield].framename);
}
Symbol 47 MovieClip Frame 1
stop();
obj = this;
while ((!(obj === _root)) and (!(obj === _root.playerCharacter))) {
obj = obj._parent;
}
if (obj == _root.playerCharacter) {
gotoAndStop(_root.possibleHelmets[_root.playerActiveHelmet].framename);
}
Symbol 53 MovieClip Frame 1
stop();
obj = this;
while ((!(obj === _root)) and (!(obj === _root.playerCharacter))) {
obj = obj._parent;
}
if (obj == _root.playerCharacter) {
gotoAndStop(_root.possibleArmours[_root.playerActiveArmour].framename);
}
Symbol 64 MovieClip Frame 1
stop();
obj = this;
while ((!(obj === _root)) and (!(obj === _root.playerCharacter))) {
obj = obj._parent;
}
if (obj == _root.playerCharacter) {
gotoAndStop(_root.possibleArms[_root.playerActiveArms].framename);
}
Symbol 70 MovieClip Frame 1
stop();
obj = this;
while ((!(obj === _root)) and (!(obj === _root.playerCharacter))) {
obj = obj._parent;
}
if (obj == _root.playerCharacter) {
gotoAndStop(_root.possibleBoots[_root.playerActiveBoots].framename);
}
Symbol 71 MovieClip [itemicon] Frame 1
stop();
Symbol 92 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 99 MovieClip Frame 92
_root.play();
Symbol 120 MovieClip [barbus] Frame 1
stop();
Instance of Symbol 119 MovieClip "talk_help" in Symbol 120 MovieClip [barbus] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 126 MovieClip Frame 1
stop();
obj = this;
while ((!(obj === _root)) and (!(obj === _root.playerCharacter))) {
obj = obj._parent;
}
if (obj == _root.playerCharacter) {
gotoAndStop(_root.possibleArmours[_root.playerActiveArmour].framename);
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
obj = this;
while ((!(obj === _root)) and (!(obj === _root.playerCharacter))) {
obj = obj._parent;
}
if (obj == _root.playerCharacter) {
gotoAndStop(_root.possibleHair[_root.playerActiveHair]);
}
Symbol 152 MovieClip [dwarf] Frame 1
currentAction = "stand";
Symbol 152 MovieClip [dwarf] Frame 2
currentAction = "run";
play();
Symbol 152 MovieClip [dwarf] Frame 9
gotoAndPlay ("run");
Symbol 152 MovieClip [dwarf] Frame 10
play();
currentAction = "jump";
Symbol 152 MovieClip [dwarf] Frame 11
waitForAnimation = false;
gotoAndPlay ("jump");
Symbol 152 MovieClip [dwarf] Frame 12
currentAction = "land";
waitForAnimation = true;
Symbol 152 MovieClip [dwarf] Frame 16
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 17
currentAction = "attack1";
waitForAnimation = true;
Symbol 152 MovieClip [dwarf] Frame 21
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 24
if (this.comboLvl < 2) {
waitForAnimation = false;
gotoAndStop ("stand");
} else {
this.comboLvl = 2;
}
Symbol 152 MovieClip [dwarf] Frame 30
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 32
if (this.comboLvl < 3) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 152 MovieClip [dwarf] Frame 34
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 36
if (this.comboLvl < 4) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 152 MovieClip [dwarf] Frame 39
attack = true;
knockback = true;
str = 20;
Symbol 152 MovieClip [dwarf] Frame 43
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 44
currentAction = "attack1";
waitForAnimation = true;
Symbol 152 MovieClip [dwarf] Frame 46
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 48
if (this.comboLvl < 2) {
waitForAnimation = false;
gotoAndStop ("stand");
} else {
this.comboLvl = 2;
}
Symbol 152 MovieClip [dwarf] Frame 50
knockback = true;
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 52
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 53
currentAction = "attack1";
waitForAnimation = true;
Symbol 152 MovieClip [dwarf] Frame 62
attack = true;
str = 20;
Symbol 152 MovieClip [dwarf] Frame 68
if (this.comboLvl < 2) {
waitForAnimation = false;
gotoAndStop ("stand");
} else {
this.comboLvl = 2;
}
Symbol 152 MovieClip [dwarf] Frame 74
attack = true;
str = 20;
Symbol 152 MovieClip [dwarf] Frame 79
if (this.comboLvl < 3) {
waitForAnimation = false;
gotoAndStop ("stand");
} else {
this.comboLvl = 3;
}
Symbol 152 MovieClip [dwarf] Frame 82
knockback = true;
attack = true;
str = 20;
Symbol 152 MovieClip [dwarf] Frame 89
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 90
currentAction = "airattack";
waitForAnimation = true;
zspeed = -20;
Symbol 152 MovieClip [dwarf] Frame 93
attack = true;
str = 10;
knockback = true;
Symbol 152 MovieClip [dwarf] Frame 94
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 95
attack = true;
str = 10;
knockback = true;
Symbol 152 MovieClip [dwarf] Frame 97
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 98
currentAction = "recoil";
waitForAnimation = true;
Symbol 152 MovieClip [dwarf] Frame 106
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 107
currentAction = "block";
waitForAnimation = true;
Symbol 152 MovieClip [dwarf] Frame 114
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 115
currentAction = "dash";
waitForAnimation = true;
if (Key.getCode() == 39) {
xspeed = 70;
} else {
xspeed = -70;
}
zspeed = 20;
Symbol 152 MovieClip [dwarf] Frame 122
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 123
currentAction = "dashattack";
waitForAnimation = true;
zspeed = 10;
if (xspeed > 0) {
xspeed = 70;
} else {
xspeed = -70;
}
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 125
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 127
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 129
attack = true;
str = 10;
Symbol 152 MovieClip [dwarf] Frame 131
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 152 MovieClip [dwarf] Frame 132
currentAction = "die";
waitForAnimation = true;
Symbol 152 MovieClip [dwarf] Frame 200
if (points > 0) {
waitForAnimation = false;
z = 0;
health = 100;
healthbar._xscale = 100;
fighting = undefined;
x = 0;
y = 800;
gotoAndStop ("stand");
} else {
_visible = false;
this.shadow._visible = false;
stop();
}
Instance of Symbol 119 MovieClip "talk_help" in Symbol 165 MovieClip [konrei] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 183 MovieClip [ninja] Frame 1
currentAction = "stand";
Symbol 183 MovieClip [ninja] Frame 2
currentAction = "run";
play();
Symbol 183 MovieClip [ninja] Frame 10
gotoAndPlay ("run");
Symbol 183 MovieClip [ninja] Frame 11
currentAction = "jump";
Symbol 183 MovieClip [ninja] Frame 12
currentAction = "land";
waitForAnimation = true;
Symbol 183 MovieClip [ninja] Frame 14
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 183 MovieClip [ninja] Frame 15
currentAction = "attack1";
waitForAnimation = true;
Symbol 183 MovieClip [ninja] Frame 17
attack = true;
str = 10;
Symbol 183 MovieClip [ninja] Frame 22
if (this.comboLvl < 2) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 183 MovieClip [ninja] Frame 25
attack = true;
str = 10;
Symbol 183 MovieClip [ninja] Frame 27
if (this.comboLvl < 3) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 183 MovieClip [ninja] Frame 29
attack = true;
str = 10;
knockback = true;
Symbol 183 MovieClip [ninja] Frame 32
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 183 MovieClip [ninja] Frame 33
currentAction = "airattack";
waitForAnimation = true;
Symbol 183 MovieClip [ninja] Frame 35
attack = true;
str = 10;
Symbol 183 MovieClip [ninja] Frame 42
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 183 MovieClip [ninja] Frame 43
currentAction = "recoil";
waitForAnimation = true;
Symbol 183 MovieClip [ninja] Frame 50
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 183 MovieClip [ninja] Frame 62
currentAction = "block";
waitForAnimation = true;
Symbol 183 MovieClip [ninja] Frame 71
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 183 MovieClip [ninja] Frame 80
currentAction = "die";
waitForAnimation = true;
Symbol 183 MovieClip [ninja] Frame 113
if (points > 0) {
waitForAnimation = false;
z = 0;
health = 100;
healthbar._xscale = 100;
fighting = undefined;
x = 0;
y = -800;
gotoAndStop ("stand");
} else {
_visible = false;
this.shadow._visible = false;
stop();
}
Symbol 199 MovieClip [skeleton] Frame 1
currentAction = "stand";
Symbol 199 MovieClip [skeleton] Frame 2
currentAction = "run";
play();
Symbol 199 MovieClip [skeleton] Frame 25
gotoAndPlay ("run");
Symbol 199 MovieClip [skeleton] Frame 26
currentAction = "jump";
Symbol 199 MovieClip [skeleton] Frame 27
currentAction = "land";
waitForAnimation = true;
Symbol 199 MovieClip [skeleton] Frame 29
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 199 MovieClip [skeleton] Frame 30
currentAction = "attack1";
waitForAnimation = true;
Symbol 199 MovieClip [skeleton] Frame 38
attack = true;
str = 10;
Symbol 199 MovieClip [skeleton] Frame 43
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 199 MovieClip [skeleton] Frame 44
currentAction = "recoil";
waitForAnimation = true;
Symbol 199 MovieClip [skeleton] Frame 52
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 199 MovieClip [skeleton] Frame 53
currentAction = "block";
waitForAnimation = true;
Symbol 199 MovieClip [skeleton] Frame 61
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 199 MovieClip [skeleton] Frame 62
currentAction = "die";
waitForAnimation = true;
Symbol 199 MovieClip [skeleton] Frame 101
if (points > 0) {
waitForAnimation = false;
z = 200;
health = 100;
healthbar._xscale = 100;
fighting = undefined;
x = 0;
y = -800;
gotoAndStop ("stand");
} else {
_visible = false;
this.shadow._visible = false;
stop();
}
Symbol 219 MovieClip [blogknight] Frame 1
currentAction = "stand";
Symbol 219 MovieClip [blogknight] Frame 2
currentAction = "run";
play();
Symbol 219 MovieClip [blogknight] Frame 28
gotoAndPlay ("run");
Symbol 219 MovieClip [blogknight] Frame 29
currentAction = "jump";
Symbol 219 MovieClip [blogknight] Frame 30
currentAction = "land";
waitForAnimation = true;
Symbol 219 MovieClip [blogknight] Frame 32
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 219 MovieClip [blogknight] Frame 33
currentAction = "attack1";
waitForAnimation = true;
Symbol 219 MovieClip [blogknight] Frame 40
attack = true;
str = 20;
Symbol 219 MovieClip [blogknight] Frame 43
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 219 MovieClip [blogknight] Frame 44
currentAction = "recoil";
waitForAnimation = true;
Symbol 219 MovieClip [blogknight] Frame 52
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 219 MovieClip [blogknight] Frame 53
currentAction = "block";
waitForAnimation = true;
Symbol 219 MovieClip [blogknight] Frame 61
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 219 MovieClip [blogknight] Frame 62
currentAction = "die";
waitForAnimation = true;
Symbol 219 MovieClip [blogknight] Frame 101
if (points > 0) {
waitForAnimation = false;
z = 200;
health = 100;
healthbar._xscale = 100;
fighting = undefined;
x = 0;
y = -800;
gotoAndStop ("stand");
} else {
_visible = false;
this.shadow._visible = false;
stop();
}
Symbol 252 MovieClip [brao] Frame 1
currentAction = "stand";
Symbol 252 MovieClip [brao] Frame 2
currentAction = "run";
play();
Symbol 252 MovieClip [brao] Frame 15
gotoAndPlay ("run");
Symbol 252 MovieClip [brao] Frame 16
play();
currentAction = "jump";
Symbol 252 MovieClip [brao] Frame 17
waitForAnimation = false;
gotoAndPlay ("jump");
Symbol 252 MovieClip [brao] Frame 18
currentAction = "land";
waitForAnimation = true;
Symbol 252 MovieClip [brao] Frame 22
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 252 MovieClip [brao] Frame 23
currentAction = "attack1";
waitForAnimation = true;
Symbol 252 MovieClip [brao] Frame 28
attack = true;
str = 20;
Symbol 252 MovieClip [brao] Frame 31
if (this.comboLvl < 2) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 252 MovieClip [brao] Frame 34
attack = true;
str = 10;
Symbol 252 MovieClip [brao] Frame 37
if (this.comboLvl < 3) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 252 MovieClip [brao] Frame 40
knockback = true;
attack = true;
str = 20;
Symbol 252 MovieClip [brao] Frame 43
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 252 MovieClip [brao] Frame 44
currentAction = "recoil";
waitForAnimation = true;
Symbol 252 MovieClip [brao] Frame 52
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 252 MovieClip [brao] Frame 53
currentAction = "block";
waitForAnimation = true;
Symbol 252 MovieClip [brao] Frame 61
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 252 MovieClip [brao] Frame 62
currentAction = "die";
waitForAnimation = true;
Symbol 252 MovieClip [brao] Frame 121
if (points > 0) {
waitForAnimation = false;
z = 200;
health = 100;
healthbar._xscale = 100;
fighting = undefined;
x = 0;
y = -800;
gotoAndStop ("stand");
} else {
_visible = false;
this.shadow._visible = false;
stop();
}
Symbol 268 MovieClip [shrum] Frame 1
currentAction = "stand";
Symbol 268 MovieClip [shrum] Frame 2
currentAction = "run";
play();
Symbol 268 MovieClip [shrum] Frame 10
gotoAndPlay ("run");
Symbol 268 MovieClip [shrum] Frame 11
play();
currentAction = "jump";
Symbol 268 MovieClip [shrum] Frame 12
waitForAnimation = false;
gotoAndPlay ("jump");
Symbol 268 MovieClip [shrum] Frame 13
currentAction = "land";
waitForAnimation = true;
Symbol 268 MovieClip [shrum] Frame 17
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 268 MovieClip [shrum] Frame 18
currentAction = "attack1";
waitForAnimation = true;
Symbol 268 MovieClip [shrum] Frame 23
attack = true;
str = 20;
Symbol 268 MovieClip [shrum] Frame 25
if (this.comboLvl < 2) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 268 MovieClip [shrum] Frame 27
attack = true;
str = 10;
Symbol 268 MovieClip [shrum] Frame 29
if (this.comboLvl < 3) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 268 MovieClip [shrum] Frame 31
knockback = true;
attack = true;
str = 20;
Symbol 268 MovieClip [shrum] Frame 33
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 268 MovieClip [shrum] Frame 34
currentAction = "recoil";
waitForAnimation = true;
Symbol 268 MovieClip [shrum] Frame 43
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 268 MovieClip [shrum] Frame 44
currentAction = "block";
waitForAnimation = true;
Symbol 268 MovieClip [shrum] Frame 52
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 268 MovieClip [shrum] Frame 53
currentAction = "die";
waitForAnimation = true;
Symbol 268 MovieClip [shrum] Frame 97
if (points > 0) {
waitForAnimation = false;
z = 200;
health = 100;
healthbar._xscale = 100;
fighting = undefined;
x = 0;
y = -800;
gotoAndStop ("stand");
} else {
_visible = false;
this.shadow._visible = false;
stop();
}
Symbol 305 MovieClip [Grimsor] Frame 1
currentAction = "stand";
Symbol 305 MovieClip [Grimsor] Frame 2
currentAction = "run";
play();
Symbol 305 MovieClip [Grimsor] Frame 19
gotoAndPlay ("run");
Symbol 305 MovieClip [Grimsor] Frame 20
currentAction = "jump";
Symbol 305 MovieClip [Grimsor] Frame 21
currentAction = "land";
waitForAnimation = true;
Symbol 305 MovieClip [Grimsor] Frame 23
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 305 MovieClip [Grimsor] Frame 24
currentAction = "attack1";
waitForAnimation = true;
Symbol 305 MovieClip [Grimsor] Frame 30
attack = true;
str = 20;
Symbol 305 MovieClip [Grimsor] Frame 36
if (this.comboLvl < 2) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 305 MovieClip [Grimsor] Frame 43
attack = true;
str = 20;
Symbol 305 MovieClip [Grimsor] Frame 47
if (this.comboLvl < 3) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 305 MovieClip [Grimsor] Frame 52
knockback = true;
attack = true;
str = 30;
Symbol 305 MovieClip [Grimsor] Frame 56
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 305 MovieClip [Grimsor] Frame 63
currentAction = "recoil";
waitForAnimation = true;
Symbol 305 MovieClip [Grimsor] Frame 69
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 305 MovieClip [Grimsor] Frame 70
currentAction = "block";
waitForAnimation = true;
Symbol 305 MovieClip [Grimsor] Frame 76
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 305 MovieClip [Grimsor] Frame 84
currentAction = "die";
waitForAnimation = true;
Symbol 305 MovieClip [Grimsor] Frame 132
if (points > 0) {
waitForAnimation = false;
z = 200;
health = 100;
healthbar._xscale = 100;
fighting = undefined;
x = 0;
y = -800;
gotoAndStop ("stand");
} else {
_visible = false;
this.shadow._visible = false;
stop();
}
Instance of Symbol 119 MovieClip "talk_help" in Symbol 319 MovieClip [hairdresser] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 119 MovieClip "talk_help" in Symbol 326 MovieClip [patrick] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 327 MovieClip [shrumking] Frame 1
currentAction = "stand";
Symbol 327 MovieClip [shrumking] Frame 2
currentAction = "run";
play();
Symbol 327 MovieClip [shrumking] Frame 10
gotoAndPlay ("run");
Symbol 327 MovieClip [shrumking] Frame 11
play();
currentAction = "jump";
Symbol 327 MovieClip [shrumking] Frame 12
waitForAnimation = false;
gotoAndPlay ("jump");
Symbol 327 MovieClip [shrumking] Frame 13
currentAction = "land";
waitForAnimation = true;
Symbol 327 MovieClip [shrumking] Frame 17
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 327 MovieClip [shrumking] Frame 18
currentAction = "attack1";
waitForAnimation = true;
Symbol 327 MovieClip [shrumking] Frame 23
attack = true;
str = 20;
Symbol 327 MovieClip [shrumking] Frame 25
if (this.comboLvl < 2) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 327 MovieClip [shrumking] Frame 27
attack = true;
str = 10;
Symbol 327 MovieClip [shrumking] Frame 29
if (this.comboLvl < 3) {
waitForAnimation = false;
gotoAndStop ("stand");
}
Symbol 327 MovieClip [shrumking] Frame 31
knockback = true;
attack = true;
str = 20;
Symbol 327 MovieClip [shrumking] Frame 33
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 327 MovieClip [shrumking] Frame 34
currentAction = "recoil";
waitForAnimation = true;
Symbol 327 MovieClip [shrumking] Frame 43
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 327 MovieClip [shrumking] Frame 44
currentAction = "block";
waitForAnimation = true;
Symbol 327 MovieClip [shrumking] Frame 52
waitForAnimation = false;
gotoAndStop ("stand");
Symbol 327 MovieClip [shrumking] Frame 53
currentAction = "die";
waitForAnimation = true;
Symbol 327 MovieClip [shrumking] Frame 97
if (points > 0) {
waitForAnimation = false;
z = 200;
health = 100;
healthbar._xscale = 100;
fighting = undefined;
x = 0;
y = -800;
gotoAndStop ("stand");
} else {
_visible = false;
this.shadow._visible = false;
stop();
}
Symbol 332 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
}
on (release) {
_root.nextFrame();
}
Instance of Symbol 368 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
}
on (release) {
_root.loadpanel._visible = true;
}
Instance of Symbol 370 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
}
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 372 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
}
on (release) {
_root.unlockpanel._visible = true;
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 2
on (release) {
_parent.prevFrame();
}
Symbol 395 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 1
var so = SharedObject.getLocal("unlockable");
if (so.data.timesFinished) {
timeswon = "times won - " + so.data.timesFinished;
if (so.data.timesFinished >= 1) {
if (so.data.godmode) {
u2.nextFrame();
}
if (so.data.doubledamage) {
u4.nextFrame();
}
u2.onRelease = function () {
if (this._currentframe == 1) {
this.nextFrame();
so.data.godmode = true;
} else {
this.prevFrame();
so.data.godmode = false;
}
};
} else {
u2._alpha = 50;
}
if (so.data.timesFinished >= 2) {
u3.onRelease = function () {
_root.gotoAndStop("altoutro");
};
} else {
u3._alpha = 50;
}
if (so.data.timesFinished >= 3) {
u4.onRelease = function () {
if (this._currentframe == 1) {
this.nextFrame();
so.data.doubledamage = true;
} else {
this.prevFrame();
so.data.doubledamage = false;
}
};
} else {
u4._alpha = 50;
}
} else {
timeswon = "times won - 0";
u2._alpha = (u3._alpha = (u4._alpha = 50));
}
if (so.data.furthest) {
furthest = ("furthest " + so.data.furthest) + " battles";
if (so.data.furthest >= 15) {
u1.onRelease = function () {
_root.gotoAndStop("altintro");
};
} else {
u1._alpha = 50;
}
}
Instance of Symbol 387 MovieClip in Symbol 401 MovieClip Frame 1
on (release) {
_parent._visible = false;
}
Symbol 408 MovieClip Frame 1
Instance of Symbol 387 MovieClip in Symbol 408 MovieClip Frame 1
on (release) {
_parent._visible = false;
}
Instance of Symbol 406 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
this.num = 1;
var so = SharedObject.getLocal("save" + num);
money = so.data.money;
progress = so.data.progress;
if (!(progress === undefined)) {
save = "save " + this.num;
battleprog = "battle " + progress;
gp = money + "gp";
} else {
save = "no save";
battleprog = "";
gp == "";
}
}
on (release) {
if (!(progress === undefined)) {
_root.playerMoney = so.data.money;
_root.battleProgress = so.data.progress;
_root.playerWeapons = so.data.playerWeapons;
_root.playerShields = so.data.playerShields;
_root.playerHelmets = so.data.playerHelmets;
_root.playerArmours = so.data.playerArmours;
_root.playerArms = so.data.playerArms;
_root.playerBoots = so.data.playerBoots;
_root.playerActiveWeapon = so.data.playerActiveWeapon;
_root.playerActiveShield = so.data.playerActiveShield;
_root.playerActiveHelmet = so.data.playerActiveHelmet;
_root.playerActiveArmour = so.data.playerActiveArmour;
_root.playerActiveArms = so.data.playerActiveArms;
_root.playerActiveBoots = so.data.playerActiveBoots;
_root.playerActiveHair = so.data.playerActiveHair;
_root.gotoAndStop("prebattle");
}
}
Instance of Symbol 406 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
this.num = 2;
var so = SharedObject.getLocal("save" + num);
money = so.data.money;
progress = so.data.progress;
if (!(progress === undefined)) {
save = "save " + this.num;
battleprog = "battle " + progress;
gp = money + "gp";
} else {
save = "no save";
battleprog = "";
gp == "";
}
}
on (release) {
if (!(progress === undefined)) {
_root.playerMoney = so.data.money;
_root.battleProgress = so.data.progress;
_root.playerWeapons = so.data.playerWeapons;
_root.playerShields = so.data.playerShields;
_root.playerHelmets = so.data.playerHelmets;
_root.playerArmours = so.data.playerArmours;
_root.playerArms = so.data.playerArms;
_root.playerBoots = so.data.playerBoots;
_root.playerActiveWeapon = so.data.playerActiveWeapon;
_root.playerActiveShield = so.data.playerActiveShield;
_root.playerActiveHelmet = so.data.playerActiveHelmet;
_root.playerActiveArmour = so.data.playerActiveArmour;
_root.playerActiveArms = so.data.playerActiveArms;
_root.playerActiveBoots = so.data.playerActiveBoots;
_root.playerActiveHair = so.data.playerActiveHair;
_root.gotoAndStop("prebattle");
}
}
Instance of Symbol 406 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
this.num = 3;
var so = SharedObject.getLocal("save" + num);
money = so.data.money;
progress = so.data.progress;
if (!(progress === undefined)) {
save = "save " + this.num;
battleprog = "battle " + progress;
gp = money + "gp";
} else {
save = "no save";
battleprog = "";
gp == "";
}
}
on (release) {
if (!(progress === undefined)) {
_root.playerMoney = so.data.money;
_root.battleProgress = so.data.progress;
_root.playerWeapons = so.data.playerWeapons;
_root.playerShields = so.data.playerShields;
_root.playerHelmets = so.data.playerHelmets;
_root.playerArmours = so.data.playerArmours;
_root.playerArms = so.data.playerArms;
_root.playerBoots = so.data.playerBoots;
_root.playerActiveWeapon = so.data.playerActiveWeapon;
_root.playerActiveShield = so.data.playerActiveShield;
_root.playerActiveHelmet = so.data.playerActiveHelmet;
_root.playerActiveArmour = so.data.playerActiveArmour;
_root.playerActiveArms = so.data.playerActiveArms;
_root.playerActiveBoots = so.data.playerActiveBoots;
_root.playerActiveHair = so.data.playerActiveHair;
_root.gotoAndStop("prebattle");
}
}
Symbol 444 MovieClip Frame 346
_root.nextFrame();
Symbol 468 MovieClip Frame 1
stop();
Instance of Symbol 450 MovieClip in Symbol 468 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Instance of Symbol 452 MovieClip in Symbol 468 MovieClip Frame 1
on (release) {
_root.nextFrame();
}
Instance of Symbol 455 MovieClip in Symbol 468 MovieClip Frame 2
on (release) {
_parent.prevFrame();
}
Instance of Symbol 466 MovieClip in Symbol 468 MovieClip Frame 9
on (release) {
_root.nextFrame();
}
Symbol 468 MovieClip Frame 68
_root.nextFrame();
Symbol 474 MovieClip Frame 1
stop();
n = 1;
for (h in _root.possibleHair) {
if (!(h === _root.playerActiveHair)) {
this["h" + n].gotoAndStop(_root.possibleHair[h]);
this["h" + n].num = h;
this["h" + n].onRelease = function () {
if (_root.playerMoney >= 50) {
_root.playerMoney = _root.playerMoney - 50;
_root.playerActiveHair = this.num;
nextFrame();
} else {
txt = "you do not have enough cash";
}
};
n++;
}
}
Instance of Symbol 387 MovieClip in Symbol 474 MovieClip Frame 1
on (release) {
_parent._visible = false;
}
Instance of Symbol 387 MovieClip in Symbol 474 MovieClip Frame 2
on (release) {
_parent._visible = false;
_parent.prevFrame();
}
Symbol 491 MovieClip Frame 1
stop();
Instance of Symbol 486 MovieClip in Symbol 491 MovieClip Frame 2
on (release) {
_parent._visible = false;
}
Symbol 492 MovieClip Frame 1
function attachitem(item, num, type) {
if ((!random(item.rare)) or (!random(item.rare))) {
i = display.attachMovie("itemicon", "itemicon" + items, items);
i.gotoAndStop(type);
i.icon.gotoAndStop(item.framename);
i._x = ((items % 6) * 60) + 25;
i._y = 25 + (Math.floor(items / 6) * 60);
items++;
i.cost = item.cost;
i.num = num;
i.framename = item.framename;
i.name = item.name;
i.type = type;
i.onRollOver = function () {
statstr = "";
for (obj in item.attr) {
statstr = statstr + (((" " + obj) + " +") + item.attr[obj]);
}
desc = (((this.name + " - ") + this.cost) + "gp -") + statstr;
};
i.onRelease = function () {
confirm.item = this;
confirm.type = this.type;
confirm._visible = true;
confirm.gotoAndStop(1);
if (_root.playerMoney >= this.cost) {
confirm.txt = ((("would you like to buy the " + this.name) + " for ") + this.cost) + "gp?";
confirm.yes._visible = true;
} else {
confirm.txt = "you cannot afford this";
confirm.yes._visible = false;
}
confirm.no.onRelease = function () {
confirm._visible = false;
};
confirm.yes.onRelease = function () {
_root.playerMoney = _root.playerMoney - confirm.item.cost;
_root.playerCharacter.gotoAndPlay("land");
switch (confirm.type) {
case "weapon" :
_root.playerWeapons.push(confirm.item.num);
break;
case "helmet" :
_root.playerHelmets.push(confirm.item.num);
break;
case "shield" :
_root.playerShields.push(confirm.item.num);
break;
case "boots" :
_root.playerBoots.push(confirm.item.num);
break;
case "armour" :
_root.playerArmours.push(confirm.item.num);
break;
case "arm" :
_root.playerArms.push(confirm.item.num);
}
gp = ("you have " + _root.playerMoney) + "gp";
confirm.item._visible = false;
confirm.nextFrame();
};
};
}
}
stop();
gp = ("you have " + _root.playerMoney) + "gp";
items = 0;
for (w in _root.possibleWeapons) {
owned = false;
for (w2 in _root.playerWeapons) {
if (_root.playerWeapons[w2] == w) {
owned = true;
}
}
if (!owned) {
weap = _root.possibleWeapons[w];
attachitem(weap, w, "weapon");
}
}
for (w in _root.possibleShields) {
owned = false;
for (w2 in _root.playerShields) {
if (_root.playerShields[w2] == w) {
owned = true;
}
}
if (!owned) {
item = _root.possibleShields[w];
attachitem(item, w, "shield");
}
}
for (w in _root.possibleHelmets) {
owned = false;
for (w2 in _root.playerHelmets) {
if (_root.playerHelmets[w2] == w) {
owned = true;
}
}
if (!owned) {
item = _root.possibleHelmets[w];
attachitem(item, w, "helmet");
}
}
for (w in _root.possibleArmours) {
owned = false;
for (w2 in _root.playerArmours) {
if (_root.playerArmours[w2] == w) {
owned = true;
}
}
if (!owned) {
item = _root.possibleArmours[w];
attachitem(item, w, "armour");
}
}
for (w in _root.possibleArms) {
owned = false;
for (w2 in _root.playerArms) {
if (_root.playerArms[w2] == w) {
owned = true;
}
}
if (!owned) {
item = _root.possibleArms[w];
attachitem(item, w, "arm");
}
}
for (w in _root.possibleBoots) {
owned = false;
for (w2 in _root.playerBoots) {
if (_root.playerBoots[w2] == w) {
owned = true;
}
}
if (!owned) {
item = _root.possibleBoots[w];
attachitem(item, w, "boots");
}
}
Instance of Symbol 477 MovieClip in Symbol 492 MovieClip Frame 1
onClipEvent (load) {
mybasey = _y;
dbasey = _parent.display._y;
visheight = 150;
myheight = _height;
}
on (press) {
active = true;
lasty = _root._ymouse;
}
on (release, releaseOutside) {
active = false;
}
onClipEvent (enterFrame) {
if (_parent.display._height > visheight) {
_yscale = ((visheight / _parent.display._height) * 100);
} else {
_yscale = 100;
}
if (active) {
_y = (_y - (lasty - _root._ymouse));
lasty = _root._ymouse;
}
if (_y < mybasey) {
_y = mybasey;
}
range = myheight - _height;
if (_y > (mybasey + range)) {
_y = (mybasey + range);
}
pc = (_y - mybasey) / range;
_parent.display._y = dbasey - (pc * (_parent.display._height - visheight));
}
Instance of Symbol 387 MovieClip in Symbol 492 MovieClip Frame 1
on (release) {
_parent._visible = false;
}
Instance of Symbol 491 MovieClip "confirm" in Symbol 492 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 500 MovieClip Frame 1
function findStats() {
playerStats = {agi:40, def:0, att:0};
itms = new Array();
itms.push(_root.possibleWeapons[_root.playerActiveWeapon]);
itms.push(_root.possibleShields[_root.playerActiveShield]);
itms.push(_root.possibleHelmets[_root.playerActiveHelmet]);
itms.push(_root.possibleArmours[_root.playerActiveArmour]);
itms.push(_root.possibleArms[_root.playerActiveArms]);
itms.push(_root.possibleBoots[_root.playerActiveBoots]);
for (i in itms) {
item = itms[i];
if (!(item.attr.agi === undefined)) {
playerStats.agi = playerStats.agi + item.attr.agi;
}
if (!(item.attr.att === undefined)) {
playerStats.att = playerStats.att + item.attr.att;
}
if (!(item.attr.def === undefined)) {
playerStats.def = playerStats.def + item.attr.def;
}
}
stats = (((("att=" + playerStats.att) + " def=") + playerStats.def) + " agi=") + playerStats.agi;
return(playerStats);
}
function attachitem(item, num, type) {
i = display.attachMovie("itemicon", "itemicon" + items, items);
i.gotoAndStop(type);
i.icon.gotoAndStop(item.framename);
i._x = ((items % 4) * 60) + 25;
i._y = 25 + (Math.floor(items / 4) * 60);
items++;
i.cost = item.cost;
i.num = num;
i.framename = item.framename;
i.name = item.name;
i.type = type;
i.onRollOver = function () {
itemname = this.name;
};
i.onRollOut = function () {
itemname = "";
};
i.onRelease = function () {
switch (this.type) {
case "weapon" :
_root.playerActiveWeapon = this.num;
weapon.icon.gotoAndStop(this.framename);
break;
case "helmet" :
_root.playerActiveHelmet = this.num;
helmet.icon.gotoAndStop(this.framename);
break;
case "shield" :
_root.playerActiveShield = this.num;
shield.icon.gotoAndStop(this.framename);
break;
case "boots" :
_root.playerActiveBoots = this.num;
boots.icon.gotoAndStop(this.framename);
break;
case "armour" :
_root.playerActiveArmour = this.num;
armour.icon.gotoAndStop(this.framename);
break;
case "arm" :
_root.playerActiveArms = this.num;
arm.icon.gotoAndStop(this.framename);
}
findStats();
};
}
findStats();
stop();
gp = ("you have " + _root.playerMoney) + "gp";
items = 0;
for (w in _root.playerWeapons) {
weap = _root.possibleWeapons[_root.playerWeapons[w]];
attachitem(weap, _root.playerWeapons[w], "weapon");
}
for (w in _root.playerShields) {
weap = _root.possibleShields[_root.playerShields[w]];
attachitem(weap, _root.playerShields[w], "shield");
}
for (w in _root.playerHelmets) {
weap = _root.possibleHelmets[_root.playerHelmets[w]];
attachitem(weap, _root.playerHelmets[w], "helmet");
}
for (w in _root.playerArmours) {
weap = _root.possibleArmours[_root.playerArmours[w]];
attachitem(weap, _root.playerArmours[w], "armour");
}
for (w in _root.playerArms) {
weap = _root.possibleArms[_root.playerArms[w]];
attachitem(weap, _root.playerArms[w], "arm");
}
for (w in _root.playerBoots) {
weap = _root.possibleBoots[_root.playerBoots[w]];
attachitem(weap, _root.playerBoots[w], "boots");
}
Instance of Symbol 495 MovieClip in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
mybasey = _y;
dbasey = _parent.display._y;
visheight = 220;
myheight = _height;
}
on (press) {
active = true;
lasty = _root._ymouse;
}
on (release, releaseOutside) {
active = false;
}
onClipEvent (enterFrame) {
if (_parent.display._height > visheight) {
_yscale = ((visheight / _parent.display._height) * 100);
} else {
_yscale = 100;
}
if (active) {
_y = (_y - (lasty - _root._ymouse));
lasty = _root._ymouse;
}
if (_y < mybasey) {
_y = mybasey;
}
range = myheight - _height;
if (_y > (mybasey + range)) {
_y = (mybasey + range);
}
pc = (_y - mybasey) / range;
_parent.display._y = dbasey - (pc * (_parent.display._height - visheight));
}
Instance of Symbol 71 MovieClip [itemicon] "helmet" in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("helmet");
icon.gotoAndStop(_root.possibleHelmets[_root.playerActiveHelmet].framename);
}
Instance of Symbol 71 MovieClip [itemicon] "armour" in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("armour");
icon.gotoAndStop(_root.possibleArmours[_root.playerActiveArmour].framename);
}
Instance of Symbol 71 MovieClip [itemicon] "boots" in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("boots");
icon.gotoAndStop(_root.possibleBoots[_root.playerActiveBoots].framename);
}
Instance of Symbol 71 MovieClip [itemicon] "arm" in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("arm");
icon.gotoAndStop(_root.possibleArms[_root.playerActiveArms].framename);
}
Instance of Symbol 71 MovieClip [itemicon] "shield" in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("shield");
icon.gotoAndStop(_root.possibleShields[_root.playerActiveShield].framename);
}
Instance of Symbol 71 MovieClip [itemicon] "weapon" in Symbol 500 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("weapon");
icon.gotoAndStop(_root.possibleWeapons[_root.playerActiveWeapon].framename);
}
Instance of Symbol 387 MovieClip in Symbol 500 MovieClip Frame 1
on (release) {
_parent._visible = false;
}
Instance of Symbol 486 MovieClip in Symbol 503 MovieClip Frame 1
on (release) {
_root.nextFrame();
}
Instance of Symbol 489 MovieClip in Symbol 503 MovieClip Frame 1
on (release) {
_parent._visible = false;
}
Instance of Symbol 387 MovieClip in Symbol 505 MovieClip Frame 1
on (release) {
_parent._visible = false;
}
Instance of Symbol 406 MovieClip in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
this.num = 1;
var so = SharedObject.getLocal("save" + num);
money = so.data.money;
progress = so.data.progress;
if (!(progress === undefined)) {
save = "save " + this.num;
battleprog = "battle " + progress;
gp = money + "gp";
} else {
save = "no save";
battleprog = "";
gp == "";
}
}
on (release) {
so.data.money = _root.playerMoney;
so.data.progress = _root.battleProgress;
so.data.playerWeapons = _root.playerWeapons;
so.data.playerShields = _root.playerShields;
so.data.playerHelmets = _root.playerHelmets;
so.data.playerArmours = _root.playerArmours;
so.data.playerArms = _root.playerArms;
so.data.playerBoots = _root.playerBoots;
so.data.playerActiveWeapon = _root.playerActiveWeapon;
so.data.playerActiveShield = _root.playerActiveShield;
so.data.playerActiveHelmet = _root.playerActiveHelmet;
so.data.playerActiveArmour = _root.playerActiveArmour;
so.data.playerActiveArms = _root.playerActiveArms;
so.data.playerActiveBoots = _root.playerActiveBoots;
so.data.playerActiveHair = _root.playerActiveHair;
so.flush();
battleprog = "battle " + _root.battleProgress;
gp = _root.playerMoney + "gp";
}
Instance of Symbol 406 MovieClip in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
this.num = 2;
var so = SharedObject.getLocal("save" + num);
money = so.data.money;
progress = so.data.progress;
if (!(progress === undefined)) {
save = "save " + this.num;
battleprog = "battle " + progress;
gp = money + "gp";
} else {
save = "no save";
battleprog = "";
gp == "";
}
}
on (release) {
so.data.money = _root.playerMoney;
so.data.progress = _root.battleProgress;
so.data.playerWeapons = _root.playerWeapons;
so.data.playerShields = _root.playerShields;
so.data.playerHelmets = _root.playerHelmets;
so.data.playerArmours = _root.playerArmours;
so.data.playerArms = _root.playerArms;
so.data.playerBoots = _root.playerBoots;
so.data.playerActiveWeapon = _root.playerActiveWeapon;
so.data.playerActiveShield = _root.playerActiveShield;
so.data.playerActiveHelmet = _root.playerActiveHelmet;
so.data.playerActiveArmour = _root.playerActiveArmour;
so.data.playerActiveArms = _root.playerActiveArms;
so.data.playerActiveBoots = _root.playerActiveBoots;
so.data.playerActiveHair = _root.playerActiveHair;
so.flush();
battleprog = "battle " + _root.battleProgress;
gp = _root.playerMoney + "gp";
}
Instance of Symbol 406 MovieClip in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
this.num = 3;
var so = SharedObject.getLocal("save" + num);
money = so.data.money;
progress = so.data.progress;
if (!(progress === undefined)) {
save = "save " + this.num;
battleprog = "battle " + progress;
gp = money + "gp";
} else {
save = "no save";
battleprog = "";
gp == "";
}
}
on (release) {
so.data.money = _root.playerMoney;
so.data.progress = _root.battleProgress;
so.data.playerWeapons = _root.playerWeapons;
so.data.playerShields = _root.playerShields;
so.data.playerHelmets = _root.playerHelmets;
so.data.playerArmours = _root.playerArmours;
so.data.playerArms = _root.playerArms;
so.data.playerBoots = _root.playerBoots;
so.data.playerActiveWeapon = _root.playerActiveWeapon;
so.data.playerActiveShield = _root.playerActiveShield;
so.data.playerActiveHelmet = _root.playerActiveHelmet;
so.data.playerActiveArmour = _root.playerActiveArmour;
so.data.playerActiveArms = _root.playerActiveArms;
so.data.playerActiveBoots = _root.playerActiveBoots;
so.data.playerActiveHair = _root.playerActiveHair;
so.flush();
battleprog = "battle " + _root.battleProgress;
gp = _root.playerMoney + "gp";
}
Symbol 512 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 284
_root.gotoAndStop("menu");
Symbol 601 MovieClip Frame 22
stop();
Symbol 612 MovieClip Frame 255
_root.gotoAndStop("menu");
Symbol 650 MovieClip Frame 380
_root.gotoAndStop("menu");