Frame 1
function dpweb() {
getURL ("http://dissoluteproductions.com/", "_blank");
}
_quality = "medium";
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Visit DissoluteProductions.com!", dpweb);
MENU.customItems.push(Functioned);
_root.menu = MENU;
Instance of Symbol 1037 MovieClip in Frame 2
onClipEvent (enterFrame) {
_global.percentloaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
bar._xscale = _global.percentloaded;
}
Frame 80
stop();
Frame 110
stop();
Frame 140
stop();
Frame 171
stop();
Frame 201
stop();
Frame 275
stop();
Frame 276
stop();
Instance of Symbol 1175 MovieClip in Frame 277
onClipEvent (load) {
i = 0;
}
onClipEvent (mouseMove) {
i++;
m = _root.attachMovie("mouse glow", "c" + i, i);
m._x = _root._xmouse;
m._y = _root._ymouse;
m._rotation = random(360);
}
Frame 310
stop();
Frame 311
_quality = "low";
Frame 324
stop();
_quality = "medium";
Frame 325
_quality = "low";
Frame 338
_quality = "medium";
gotoAndStop ("menu2");
Frame 339
stopAllSounds();
Frame 464
gotoAndPlay ("intro");
Frame 465
_root.stopped = false;
Instance of Symbol 1244 MovieClip "horse1" in Frame 465
onClipEvent (load) {
gotoAndPlay(random(80) + 1 +464);
}
Instance of Symbol 1244 MovieClip "horse2" in Frame 465
onClipEvent (load) {
gotoAndPlay(random(80) + 1 +464);
}
Instance of Symbol 1254 MovieClip "coach" in Frame 465
onClipEvent (enterFrame) {
if (_root.stopped) {
stop();
}
}
Frame 522
stop();
Frame 531
_root.stopped = true;
driver.stop();
horse1.stop();
horse2.stop();
back.stop();
trees.stop();
coach.stop();
coach.wheel1.stop();
coach.wheel2.stop();
coach.wheel3.stop();
coach.wheel4.stop();
shaftetc.stop();
monsters.play();
sound.play();
Frame 705
stop();
Frame 706
_quality = "medium";
wgHANDS = true;
stop();
Frame 734
_root.gotoAndPlay("level" + _root.$scenegoto);
Frame 735
attachMovie("blackfade", "blackfade", 5232);
function error() {
}
function ammochance() {
if (_root.$levelover != true) {
if (random(5) == 1) {
_root.all.attachMovie("convictionpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("ragepotion", "mc" + i, i);
i++;
}
if (random(2) == 1) {
_root.all.attachMovie("healthpotion", "mc" + i, i);
i++;
}
if ((wgDM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("darkpotion", "mc" + i, i);
i++;
}
if ((wgLM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("lightpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("largehealthpotion", "mc" + i, i);
i++;
}
if ((wgKnives == true) && (random(3) == 1)) {
_root.all.attachMovie("knifeammo", "mc" + i, i);
i++;
}
}
}
function chance(b, n, d) {
c = (b * _root.conviction) + ((1 - b) * _root.rage);
c = c / 100;
c = (c * (1 - n)) + n;
c = c * d;
if (Math.random() < c) {
return(true);
}
return(false);
}
function monsterhurt(targ) {
if (targ.hitTest(_root.all.man.punchhit)) {
_root.punchhit(targ);
}
if (targ.hitTest(_root.all.man.thumphit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.thumphit(targ);
}
if (targ.hitTest(_root.all.man.kickhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.kickhit(targ);
}
if (targ.hitTest(_root.all.man.AXEhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.AXEhit(targ);
}
if (targ.hitTest(_root.all.man.ramhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.ramhit(targ);
}
if (targ.hitTest(_root.all.strike.strikehit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.strikehit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["knife" + i])) {
s = new Sound(this);
s.attachSound("knife hit enemy");
s.start();
_root.knifehit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.jabhitl) || (targ.hitTest(_root.all.man.jabhitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.jabhit(targ);
}
if (targ.hitTest(_root.all.man.slicehitl) || (targ.hitTest(_root.all.man.slicehitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.slicehit(targ);
}
if (targ.hitTest(_root.all.fearcloud)) {
_root.fearhit(targ);
}
if (targ.hitTest(_root.all.man.beamhit)) {
_root.beamhit(targ);
}
if (targ.hitTest(_root.all.man.blasthit)) {
_root.blasthit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["dart" + i])) {
_root.darthit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.bindhit)) {
_root.bindhit(targ);
}
if (targ.hitTest(_root.all.dBall)) {
_root.dballhit(targ);
}
}
function armourset() {
switch (_root.armour) {
case "Test" :
return(2);
case "Harness" :
return(3);
}
return(1);
}
function normalstat() {
_root.topspeed = _root.$topspeed;
_root.turn = _root.$turn;
_root.accel = _root.$accel;
_root.friction = _root.$friction;
}
function punchhit(targ) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
targ.$recoil = 4;
targ.$health = targ.$health - (2 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function thumphit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - (5 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function kickhit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 3;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function AXEhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(5));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function ramhit(targ) {
targ.$recoil = _root.speed;
targ.$health = targ.$health - ((_root.speed * (1 + (_root.conviction / 100))) + 6);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function strikehit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 30;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function knifehit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(10) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (targ.$aggression >= 100) {
targ.$aggression = 100;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
removeMovieClip(_root.all["knife" + knifeno]);
}
function jabhit(targ) {
targ.$recoil = 7;
targ.$health = targ.$health - 8;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function slicehit(targ) {
targ.$recoil = 2;
targ.$health = targ.$health - 10;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function beamhit(targ) {
targ.$recoil = 10;
targ.$health = targ.$health - _root.charge;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if ((targ.$health <= 0) && (targ.$dead != true)) {
targ.gotoAndPlay("dead");
targ.$mode = "dying";
targ.$dead = true;
if (random(2) == 1) {
targ._yscale = -targ._yscale;
}
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function blasthit(targ) {
targ.$recoil = (_root.charge / 5) + 20;
targ.$health = targ.$health - ((_root.charge / 10) + 20);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function darthit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(15) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.knifeo--;
removeMovieClip(_root.all["dart" + knifeno]);
}
function dballhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(10));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (_root.all.dBall._currentframe < 3) {
_root.all.dBall.gotoAndPlay(3);
}
targ.$mode = "hurt";
_root.rage = _root.rage + 1;
}
function fearhit(targ) {
targ.$recoil = 1;
targ.$aggression = targ.$aggression - 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 50;
}
targ.$mode = "hurt";
_root.rage = _root.rage + 2;
}
function bindhit(targ) {
targ.$mode = "paralysed";
targ.$aggression = targ.$aggression + 10;
}
_global.depthi = 0;
_root.knives = 60;
_root.knifei = 0;
_root.overi = 0;
_root.knifeo = 0;
_quality = "medium";
wgHANDS = true;
_root.dcharge = 0;
_root.charge = 0;
_root.activefireball = false;
_root.activefearcloud = false;
hold = true;
_root.all.man._rotation = 180;
i = 10;
while (i >= 0) {
_root["$room" + i] = false;
i--;
}
weapon = "HANDS";
armour = "Harness";
$friction = 0.7;
$health = 100;
$topspeed = 8;
$turn = 0.1;
$accel = 2;
$lmana = 200;
$dmana = 200;
lmana = 200;
dmana = 200;
friction = $friction;
normalstat();
speed = 0;
sidespeed = 0;
health = $health;
conviction = 0;
rage = 0;
var command = new Object();
Mouse.addListener(command);
command.onMouseDown = function () {
_global.$down = true;
};
command.onMouseUp = function () {
_global.$down = false;
};
Key.addListener(command);
command.onKeyDown = function () {
_global.key = Key.getCode();
};
if (Math.random() > _root.conviction) {
gotoAndPlay ("HANDS1");
} else {
gotoAndPlay ("HANDS2-3");
}
var weaponlist = new Object();
weaponlist.onKeyDown = function () {
if (Key.isDown(49)) {
if (wgHANDS == true) {
_root.weapon = "HANDS";
} else {
error();
}
}
if (Key.isDown(50)) {
if (wgAXE == true) {
_root.weapon = "AXE";
}
}
if (Key.isDown(51)) {
if (wgKnives == true) {
_root.weapon = "Knives";
}
}
if (Key.isDown(52)) {
if (wgBlades == true) {
_root.weapon = "Blades";
}
}
if (Key.isDown(53)) {
if (((wgLM1 == true) || (wgLM2 == true)) || (wgLM3 == true)) {
_root.weapon = "Light Magic";
}
}
if (Key.isDown(54)) {
if (((wgDM1 == true) || (wgDM2 == true)) || (wgDM3 == true)) {
_root.weapon = "Dark Magic";
}
}
};
Key.addListener(weaponlist);
stop();
$level = 1;
Instance of Symbol 1478 MovieClip in Frame 735
onClipEvent (enterFrame) {
_x = _root.headx;
_y = _root.heady;
}
Instance of Symbol 1512 MovieClip in Frame 735
onClipEvent (enterFrame) {
_alpha = _root.charge;
}
Frame 736
if (($worldover != true) && ($gameover != true)) {
gotoAndPlay (735);
}
Frame 737
attachMovie("blackfade", "blackfade", 5232);
function error() {
}
function ammochance() {
if (_root.$levelover != true) {
if (random(5) == 1) {
_root.all.attachMovie("convictionpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("ragepotion", "mc" + i, i);
i++;
}
if (random(2) == 1) {
_root.all.attachMovie("healthpotion", "mc" + i, i);
i++;
}
if ((wgDM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("darkpotion", "mc" + i, i);
i++;
}
if ((wgLM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("lightpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("largehealthpotion", "mc" + i, i);
i++;
}
if ((wgKnives == true) && (random(3) == 1)) {
_root.all.attachMovie("knifeammo", "mc" + i, i);
i++;
}
}
}
function chance(b, n, d) {
c = (b * _root.conviction) + ((1 - b) * _root.rage);
c = c / 100;
c = (c * (1 - n)) + n;
c = c * d;
if (Math.random() < c) {
return(true);
}
return(false);
}
function monsterhurt(targ) {
if (targ.hitTest(_root.all.man.punchhit)) {
_root.punchhit(targ);
}
if (targ.hitTest(_root.all.man.thumphit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.thumphit(targ);
}
if (targ.hitTest(_root.all.man.kickhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.kickhit(targ);
}
if (targ.hitTest(_root.all.man.AXEhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.AXEhit(targ);
}
if (targ.hitTest(_root.all.man.ramhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.ramhit(targ);
}
if (targ.hitTest(_root.all.strike.strikehit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.strikehit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["knife" + i])) {
s = new Sound(this);
s.attachSound("knife hit enemy");
s.start();
_root.knifehit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.jabhitl) || (targ.hitTest(_root.all.man.jabhitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.jabhit(targ);
}
if (targ.hitTest(_root.all.man.slicehitl) || (targ.hitTest(_root.all.man.slicehitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.slicehit(targ);
}
if (targ.hitTest(_root.all.fearcloud)) {
_root.fearhit(targ);
}
if (targ.hitTest(_root.all.man.beamhit)) {
_root.beamhit(targ);
}
if (targ.hitTest(_root.all.man.blasthit)) {
_root.blasthit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["dart" + i])) {
_root.darthit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.bindhit)) {
_root.bindhit(targ);
}
if (targ.hitTest(_root.all.dBall)) {
_root.dballhit(targ);
}
}
function armourset() {
switch (_root.armour) {
case "Test" :
return(2);
case "Harness" :
return(3);
}
return(1);
}
function normalstat() {
_root.topspeed = _root.$topspeed;
_root.turn = _root.$turn;
_root.accel = _root.$accel;
_root.friction = _root.$friction;
}
function punchhit(targ) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
targ.$recoil = 4;
targ.$health = targ.$health - (2 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function thumphit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - (5 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function kickhit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 3;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function AXEhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(5));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function ramhit(targ) {
targ.$recoil = _root.speed;
targ.$health = targ.$health - ((_root.speed * (1 + (_root.conviction / 100))) + 6);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function strikehit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 30;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function knifehit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(10) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (targ.$aggression >= 100) {
targ.$aggression = 100;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
removeMovieClip(_root.all["knife" + knifeno]);
}
function jabhit(targ) {
targ.$recoil = 7;
targ.$health = targ.$health - 8;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function slicehit(targ) {
targ.$recoil = 2;
targ.$health = targ.$health - 10;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function beamhit(targ) {
targ.$recoil = 10;
targ.$health = targ.$health - _root.charge;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if ((targ.$health <= 0) && (targ.$dead != true)) {
targ.gotoAndPlay("dead");
targ.$mode = "dying";
targ.$dead = true;
if (random(2) == 1) {
targ._yscale = -targ._yscale;
}
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function blasthit(targ) {
targ.$recoil = (_root.charge / 5) + 20;
targ.$health = targ.$health - ((_root.charge / 10) + 20);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function darthit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(15) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.knifeo--;
removeMovieClip(_root.all["dart" + knifeno]);
}
function dballhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(10));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (_root.all.dBall._currentframe < 3) {
_root.all.dBall.gotoAndPlay(3);
}
targ.$mode = "hurt";
_root.rage = _root.rage + 1;
}
function fearhit(targ) {
targ.$recoil = 1;
targ.$aggression = targ.$aggression - 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 50;
}
targ.$mode = "hurt";
_root.rage = _root.rage + 2;
}
function bindhit(targ) {
targ.$mode = "paralysed";
targ.$aggression = targ.$aggression + 10;
}
_global.depthi = 0;
_root.knives = 60;
_root.knifei = 0;
_root.overi = 0;
_root.knifeo = 0;
_quality = "medium";
wgHANDS = true;
_root.dcharge = 0;
_root.charge = 0;
_root.activefireball = false;
_root.activefearcloud = false;
_root.all.man._rotation = 180;
i = 10;
while (i >= 0) {
_root["$room" + i] = false;
i--;
}
weapon = "HANDS";
armour = "Harness";
$friction = 0.7;
$health = 100;
$topspeed = 8;
$turn = 0.1;
$accel = 2;
$lmana = 200;
$dmana = 200;
lmana = 200;
dmana = 200;
friction = $friction;
normalstat();
speed = 0;
sidespeed = 0;
health = $health;
conviction = 0;
rage = 0;
var command = new Object();
Mouse.addListener(command);
command.onMouseDown = function () {
_global.$down = true;
};
command.onMouseUp = function () {
_global.$down = false;
};
Key.addListener(command);
command.onKeyDown = function () {
_global.key = Key.getCode();
};
if (Math.random() > _root.conviction) {
gotoAndPlay ("HANDS1");
} else {
gotoAndPlay ("HANDS2-3");
}
var weaponlist = new Object();
weaponlist.onKeyDown = function () {
if (Key.isDown(49)) {
if (wgHANDS == true) {
_root.weapon = "HANDS";
} else {
error();
}
}
if (Key.isDown(50)) {
if (wgAXE == true) {
_root.weapon = "AXE";
}
}
if (Key.isDown(51)) {
if (wgKnives == true) {
_root.weapon = "Knives";
}
}
if (Key.isDown(52)) {
if (wgBlades == true) {
_root.weapon = "Blades";
}
}
if (Key.isDown(53)) {
if (((wgLM1 == true) || (wgLM2 == true)) || (wgLM3 == true)) {
_root.weapon = "Light Magic";
}
}
if (Key.isDown(54)) {
if (((wgDM1 == true) || (wgDM2 == true)) || (wgDM3 == true)) {
_root.weapon = "Dark Magic";
}
}
};
Key.addListener(weaponlist);
stop();
$level = 2;
Instance of Symbol 1478 MovieClip in Frame 737
onClipEvent (enterFrame) {
_x = _root.headx;
_y = _root.heady;
}
Instance of Symbol 1512 MovieClip in Frame 737
onClipEvent (enterFrame) {
_alpha = _root.charge;
}
Frame 738
if (($worldover != true) && ($gameover != true)) {
gotoAndPlay (737);
}
Frame 739
attachMovie("blackfade", "blackfade", 5232);
if (_root.wgLM1 == true) {
_root.$firstlight = true;
} else {
_root.$firstlight = false;
}
function error() {
}
function ammochance() {
if (_root.$levelover != true) {
if (random(5) == 1) {
_root.all.attachMovie("convictionpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("ragepotion", "mc" + i, i);
i++;
}
if (random(2) == 1) {
_root.all.attachMovie("healthpotion", "mc" + i, i);
i++;
}
if ((wgDM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("darkpotion", "mc" + i, i);
i++;
}
if ((wgLM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("lightpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("largehealthpotion", "mc" + i, i);
i++;
}
if ((wgKnives == true) && (random(3) == 1)) {
_root.all.attachMovie("knifeammo", "mc" + i, i);
i++;
}
}
}
function chance(b, n, d) {
c = (b * _root.conviction) + ((1 - b) * _root.rage);
c = c / 100;
c = (c * (1 - n)) + n;
c = c * d;
if (Math.random() < c) {
return(true);
}
return(false);
}
function monsterhurt(targ) {
if (targ.hitTest(_root.all.man.punchhit)) {
_root.punchhit(targ);
}
if (targ.hitTest(_root.all.man.thumphit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.thumphit(targ);
}
if (targ.hitTest(_root.all.man.kickhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.kickhit(targ);
}
if (targ.hitTest(_root.all.man.AXEhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.AXEhit(targ);
}
if (targ.hitTest(_root.all.man.ramhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.ramhit(targ);
}
if (targ.hitTest(_root.all.strike.strikehit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.strikehit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["knife" + i])) {
s = new Sound(this);
s.attachSound("knife hit enemy");
s.start();
_root.knifehit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.jabhitl) || (targ.hitTest(_root.all.man.jabhitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.jabhit(targ);
}
if (targ.hitTest(_root.all.man.slicehitl) || (targ.hitTest(_root.all.man.slicehitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.slicehit(targ);
}
if (targ.hitTest(_root.all.fearcloud)) {
_root.fearhit(targ);
}
if (targ.hitTest(_root.all.man.beamhit)) {
_root.beamhit(targ);
}
if (targ.hitTest(_root.all.man.blasthit)) {
_root.blasthit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["dart" + i])) {
_root.darthit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.bindhit)) {
_root.bindhit(targ);
}
if (targ.hitTest(_root.all.dBall)) {
_root.dballhit(targ);
}
}
function armourset() {
switch (_root.armour) {
case "Test" :
return(2);
case "Harness" :
return(3);
}
return(1);
}
function normalstat() {
_root.topspeed = _root.$topspeed;
_root.turn = _root.$turn;
_root.accel = _root.$accel;
_root.friction = _root.$friction;
}
function punchhit(targ) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
targ.$recoil = 4;
targ.$health = targ.$health - (2 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function thumphit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - (5 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function kickhit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 3;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function AXEhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(5));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function ramhit(targ) {
targ.$recoil = _root.speed;
targ.$health = targ.$health - ((_root.speed * (1 + (_root.conviction / 100))) + 6);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function strikehit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 30;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function knifehit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(10) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (targ.$aggression >= 100) {
targ.$aggression = 100;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
removeMovieClip(_root.all["knife" + knifeno]);
}
function jabhit(targ) {
targ.$recoil = 7;
targ.$health = targ.$health - 8;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function slicehit(targ) {
targ.$recoil = 2;
targ.$health = targ.$health - 10;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function beamhit(targ) {
targ.$recoil = 10;
targ.$health = targ.$health - _root.charge;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if ((targ.$health <= 0) && (targ.$dead != true)) {
targ.gotoAndPlay("dead");
targ.$mode = "dying";
targ.$dead = true;
if (random(2) == 1) {
targ._yscale = -targ._yscale;
}
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function blasthit(targ) {
targ.$recoil = (_root.charge / 5) + 20;
targ.$health = targ.$health - ((_root.charge / 10) + 20);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function darthit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(15) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.knifeo--;
removeMovieClip(_root.all["dart" + knifeno]);
}
function dballhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(10));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (_root.all.dBall._currentframe < 3) {
_root.all.dBall.gotoAndPlay(3);
}
targ.$mode = "hurt";
_root.rage = _root.rage + 1;
}
function fearhit(targ) {
targ.$recoil = 1;
targ.$aggression = targ.$aggression - 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 50;
}
targ.$mode = "hurt";
_root.rage = _root.rage + 2;
}
function bindhit(targ) {
targ.$mode = "paralysed";
targ.$aggression = targ.$aggression + 10;
}
_global.depthi = 0;
_root.knives = 60;
_root.knifei = 0;
_root.overi = 0;
_root.knifeo = 0;
_quality = "medium";
wgHANDS = true;
_root.dcharge = 0;
_root.charge = 0;
_root.activefireball = false;
_root.activefearcloud = false;
_root.all.man._rotation = 180;
i = 10;
while (i >= 0) {
_root["$room" + i] = false;
i--;
}
weapon = "HANDS";
armour = "Harness";
$friction = 0.7;
$health = 100;
$topspeed = 8;
$turn = 0.1;
$accel = 2;
$lmana = 200;
$dmana = 200;
lmana = 200;
dmana = 200;
friction = $friction;
normalstat();
speed = 0;
sidespeed = 0;
health = $health;
conviction = 0;
rage = 0;
var command = new Object();
Mouse.addListener(command);
command.onMouseDown = function () {
_global.$down = true;
};
command.onMouseUp = function () {
_global.$down = false;
};
Key.addListener(command);
command.onKeyDown = function () {
_global.key = Key.getCode();
};
if (Math.random() > _root.conviction) {
gotoAndPlay ("HANDS1");
} else {
gotoAndPlay ("HANDS2-3");
}
var weaponlist = new Object();
weaponlist.onKeyDown = function () {
if (Key.isDown(49)) {
if (wgHANDS == true) {
_root.weapon = "HANDS";
} else {
error();
}
}
if (Key.isDown(50)) {
if (wgAXE == true) {
_root.weapon = "AXE";
}
}
if (Key.isDown(51)) {
if (wgKnives == true) {
_root.weapon = "Knives";
}
}
if (Key.isDown(52)) {
if (wgBlades == true) {
_root.weapon = "Blades";
}
}
if (Key.isDown(53)) {
if (((wgLM1 == true) || (wgLM2 == true)) || (wgLM3 == true)) {
_root.weapon = "Light Magic";
}
}
if (Key.isDown(54)) {
if (((wgDM1 == true) || (wgDM2 == true)) || (wgDM3 == true)) {
_root.weapon = "Dark Magic";
}
}
};
Key.addListener(weaponlist);
stop();
$level = 3;
Instance of Symbol 1478 MovieClip in Frame 739
onClipEvent (enterFrame) {
_x = _root.headx;
_y = _root.heady;
}
Instance of Symbol 1512 MovieClip in Frame 739
onClipEvent (enterFrame) {
_alpha = _root.charge;
}
Frame 740
if (($worldover != true) && ($gameover != true)) {
gotoAndPlay (739);
}
Frame 741
attachMovie("", "blackfade", 5232);
function error() {
}
function ammochance() {
if (_root.$levelover != true) {
if (random(5) == 1) {
_root.all.attachMovie("convictionpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("ragepotion", "mc" + i, i);
i++;
}
if (random(2) == 1) {
_root.all.attachMovie("healthpotion", "mc" + i, i);
i++;
}
if ((wgDM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("darkpotion", "mc" + i, i);
i++;
}
if ((wgLM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("lightpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("largehealthpotion", "mc" + i, i);
i++;
}
if ((wgKnives == true) && (random(3) == 1)) {
_root.all.attachMovie("knifeammo", "mc" + i, i);
i++;
}
}
}
function chance(b, n, d) {
c = (b * _root.conviction) + ((1 - b) * _root.rage);
c = c / 100;
c = (c * (1 - n)) + n;
c = c * d;
if (Math.random() < c) {
return(true);
}
return(false);
}
function monsterhurt(targ) {
if (targ.hitTest(_root.all.man.punchhit)) {
_root.punchhit(targ);
}
if (targ.hitTest(_root.all.man.thumphit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.thumphit(targ);
}
if (targ.hitTest(_root.all.man.kickhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.kickhit(targ);
}
if (targ.hitTest(_root.all.man.AXEhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.AXEhit(targ);
}
if (targ.hitTest(_root.all.man.ramhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.ramhit(targ);
}
if (targ.hitTest(_root.all.strike.strikehit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.strikehit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["knife" + i])) {
s = new Sound(this);
s.attachSound("knife hit enemy");
s.start();
_root.knifehit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.jabhitl) || (targ.hitTest(_root.all.man.jabhitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.jabhit(targ);
}
if (targ.hitTest(_root.all.man.slicehitl) || (targ.hitTest(_root.all.man.slicehitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.slicehit(targ);
}
if (targ.hitTest(_root.all.fearcloud)) {
_root.fearhit(targ);
}
if (targ.hitTest(_root.all.man.beamhit)) {
_root.beamhit(targ);
}
if (targ.hitTest(_root.all.man.blasthit)) {
_root.blasthit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["dart" + i])) {
_root.darthit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.bindhit)) {
_root.bindhit(targ);
}
if (targ.hitTest(_root.all.dBall)) {
_root.dballhit(targ);
}
}
function armourset() {
switch (_root.armour) {
case "Test" :
return(2);
case "Harness" :
return(3);
}
return(1);
}
function normalstat() {
_root.topspeed = _root.$topspeed;
_root.turn = _root.$turn;
_root.accel = _root.$accel;
_root.friction = _root.$friction;
}
function punchhit(targ) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
targ.$recoil = 4;
targ.$health = targ.$health - (2 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function thumphit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - (5 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function kickhit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 3;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function AXEhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(5));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function ramhit(targ) {
targ.$recoil = _root.speed;
targ.$health = targ.$health - ((_root.speed * (1 + (_root.conviction / 100))) + 6);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function strikehit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 30;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function knifehit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(10) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (targ.$aggression >= 100) {
targ.$aggression = 100;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
removeMovieClip(_root.all["knife" + knifeno]);
}
function jabhit(targ) {
targ.$recoil = 7;
targ.$health = targ.$health - 8;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function slicehit(targ) {
targ.$recoil = 2;
targ.$health = targ.$health - 10;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function beamhit(targ) {
targ.$recoil = 10;
targ.$health = targ.$health - _root.charge;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if ((targ.$health <= 0) && (targ.$dead != true)) {
targ.gotoAndPlay("dead");
targ.$mode = "dying";
targ.$dead = true;
if (random(2) == 1) {
targ._yscale = -targ._yscale;
}
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function blasthit(targ) {
targ.$recoil = (_root.charge / 5) + 20;
targ.$health = targ.$health - ((_root.charge / 10) + 20);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function darthit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(15) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.knifeo--;
removeMovieClip(_root.all["dart" + knifeno]);
}
function dballhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(10));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (_root.all.dBall._currentframe < 3) {
_root.all.dBall.gotoAndPlay(3);
}
targ.$mode = "hurt";
_root.rage = _root.rage + 1;
}
function fearhit(targ) {
targ.$recoil = 1;
targ.$aggression = targ.$aggression - 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 50;
}
targ.$mode = "hurt";
_root.rage = _root.rage + 2;
}
function bindhit(targ) {
targ.$mode = "paralysed";
targ.$aggression = targ.$aggression + 10;
}
_global.depthi = 0;
_root.knives = 60;
_root.knifei = 0;
_root.overi = 0;
_root.knifeo = 0;
_quality = "medium";
wgHANDS = true;
_root.dcharge = 0;
_root.charge = 0;
_root.activefireball = false;
_root.activefearcloud = false;
_root.all.man._rotation = 180;
i = 10;
while (i >= 0) {
_root["$room" + i] = false;
i--;
}
weapon = "HANDS";
armour = "Harness";
$friction = 0.7;
$health = 100;
$topspeed = 8;
$turn = 0.1;
$accel = 0.5;
$lmana = 200;
$dmana = 200;
lmana = 200;
dmana = 200;
friction = $friction;
normalstat();
speed = 0;
sidespeed = 0;
health = $health;
conviction = 0;
rage = 0;
var command = new Object();
Mouse.addListener(command);
command.onMouseDown = function () {
_global.$down = true;
};
command.onMouseUp = function () {
_global.$down = false;
};
Key.addListener(command);
command.onKeyDown = function () {
_global.key = Key.getCode();
};
if (Math.random() > _root.conviction) {
gotoAndPlay ("HANDS1");
} else {
gotoAndPlay ("HANDS2-3");
}
var weaponlist = new Object();
weaponlist.onKeyDown = function () {
if (Key.isDown(49)) {
if (wgHANDS == true) {
_root.weapon = "HANDS";
} else {
error();
}
}
if (Key.isDown(50)) {
if (wgAXE == true) {
_root.weapon = "AXE";
}
}
if (Key.isDown(51)) {
if (wgKnives == true) {
_root.weapon = "Knives";
}
}
if (Key.isDown(52)) {
if (wgBlades == true) {
_root.weapon = "Blades";
}
}
if (Key.isDown(53)) {
if (((wgLM1 == true) || (wgLM2 == true)) || (wgLM3 == true)) {
_root.weapon = "Light Magic";
}
}
if (Key.isDown(54)) {
if (((wgDM1 == true) || (wgDM2 == true)) || (wgDM3 == true)) {
_root.weapon = "Dark Magic";
}
}
};
Key.addListener(weaponlist);
stop();
$level = 3;
Instance of Symbol 1478 MovieClip in Frame 741
onClipEvent (enterFrame) {
_x = _root.headx;
_y = _root.heady;
}
Instance of Symbol 1512 MovieClip in Frame 741
onClipEvent (enterFrame) {
_alpha = _root.charge;
}
Frame 742
if (($worldover != true) && ($gameover != true)) {
gotoAndPlay (741);
}
Frame 743
attachMovie("blackfade", "blackfade", 5232);
function error() {
}
function ammochance() {
if (_root.$levelover != true) {
if (random(5) == 1) {
_root.all.attachMovie("convictionpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("ragepotion", "mc" + i, i);
i++;
}
if (random(2) == 1) {
_root.all.attachMovie("healthpotion", "mc" + i, i);
i++;
}
if ((wgDM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("darkpotion", "mc" + i, i);
i++;
}
if ((wgLM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("lightpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("largehealthpotion", "mc" + i, i);
i++;
}
if ((wgKnives == true) && (random(3) == 1)) {
_root.all.attachMovie("knifeammo", "mc" + i, i);
i++;
}
}
}
function chance(b, n, d) {
c = (b * _root.conviction) + ((1 - b) * _root.rage);
c = c / 100;
c = (c * (1 - n)) + n;
c = c * d;
if (Math.random() < c) {
return(true);
}
return(false);
}
function monsterhurt(targ) {
if (targ.hitTest(_root.all.man.punchhit)) {
_root.punchhit(targ);
}
if (targ.hitTest(_root.all.man.thumphit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.thumphit(targ);
}
if (targ.hitTest(_root.all.man.kickhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.kickhit(targ);
}
if (targ.hitTest(_root.all.man.AXEhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.AXEhit(targ);
}
if (targ.hitTest(_root.all.man.ramhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.ramhit(targ);
}
if (targ.hitTest(_root.all.strike.strikehit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.strikehit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["knife" + i])) {
s = new Sound(this);
s.attachSound("knife hit enemy");
s.start();
_root.knifehit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.jabhitl) || (targ.hitTest(_root.all.man.jabhitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.jabhit(targ);
}
if (targ.hitTest(_root.all.man.slicehitl) || (targ.hitTest(_root.all.man.slicehitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.slicehit(targ);
}
if (targ.hitTest(_root.all.fearcloud)) {
_root.fearhit(targ);
}
if (targ.hitTest(_root.all.man.beamhit)) {
_root.beamhit(targ);
}
if (targ.hitTest(_root.all.man.blasthit)) {
_root.blasthit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["dart" + i])) {
_root.darthit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.bindhit)) {
_root.bindhit(targ);
}
if (targ.hitTest(_root.all.dBall)) {
_root.dballhit(targ);
}
}
function armourset() {
switch (_root.armour) {
case "Test" :
return(2);
case "Harness" :
return(3);
}
return(1);
}
function normalstat() {
_root.topspeed = _root.$topspeed;
_root.turn = _root.$turn;
_root.accel = _root.$accel;
_root.friction = _root.$friction;
}
function punchhit(targ) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
targ.$recoil = 4;
targ.$health = targ.$health - (2 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function thumphit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - (5 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function kickhit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 3;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function AXEhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(5));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function ramhit(targ) {
targ.$recoil = _root.speed;
targ.$health = targ.$health - ((_root.speed * (1 + (_root.conviction / 100))) + 6);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function strikehit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 30;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function knifehit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(10) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (targ.$aggression >= 100) {
targ.$aggression = 100;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
removeMovieClip(_root.all["knife" + knifeno]);
}
function jabhit(targ) {
targ.$recoil = 7;
targ.$health = targ.$health - 8;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function slicehit(targ) {
targ.$recoil = 2;
targ.$health = targ.$health - 10;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function beamhit(targ) {
targ.$recoil = 10;
targ.$health = targ.$health - _root.charge;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if ((targ.$health <= 0) && (targ.$dead != true)) {
targ.gotoAndPlay("dead");
targ.$mode = "dying";
targ.$dead = true;
if (random(2) == 1) {
targ._yscale = -targ._yscale;
}
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function blasthit(targ) {
targ.$recoil = (_root.charge / 5) + 20;
targ.$health = targ.$health - ((_root.charge / 10) + 20);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function darthit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(15) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.knifeo--;
removeMovieClip(_root.all["dart" + knifeno]);
}
function dballhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(10));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (_root.all.dBall._currentframe < 3) {
_root.all.dBall.gotoAndPlay(3);
}
targ.$mode = "hurt";
_root.rage = _root.rage + 1;
}
function fearhit(targ) {
targ.$recoil = 1;
targ.$aggression = targ.$aggression - 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 50;
}
targ.$mode = "hurt";
_root.rage = _root.rage + 2;
}
function bindhit(targ) {
targ.$mode = "paralysed";
targ.$aggression = targ.$aggression + 10;
}
_global.depthi = 0;
_root.knives = 60;
_root.knifei = 0;
_root.overi = 0;
_root.knifeo = 0;
_quality = "medium";
wgHANDS = true;
_root.dcharge = 0;
_root.charge = 0;
_root.activefireball = false;
_root.activefearcloud = false;
_root.all.man._rotation = 180;
i = 10;
while (i >= 0) {
_root["$room" + i] = false;
i--;
}
weapon = "HANDS";
armour = "Harness";
$friction = 0.7;
$health = 100;
$topspeed = 8;
$turn = 0.1;
$accel = 2;
$lmana = 200;
$dmana = 200;
lmana = 200;
dmana = 200;
friction = $friction;
normalstat();
speed = 0;
sidespeed = 0;
health = $health;
conviction = 0;
rage = 0;
var command = new Object();
Mouse.addListener(command);
command.onMouseDown = function () {
_global.$down = true;
};
command.onMouseUp = function () {
_global.$down = false;
};
Key.addListener(command);
command.onKeyDown = function () {
_global.key = Key.getCode();
};
if (Math.random() > _root.conviction) {
gotoAndPlay ("HANDS1");
} else {
gotoAndPlay ("HANDS2-3");
}
var weaponlist = new Object();
weaponlist.onKeyDown = function () {
if (Key.isDown(49)) {
if (wgHANDS == true) {
_root.weapon = "HANDS";
} else {
error();
}
}
if (Key.isDown(50)) {
if (wgAXE == true) {
_root.weapon = "AXE";
}
}
if (Key.isDown(51)) {
if (wgKnives == true) {
_root.weapon = "Knives";
}
}
if (Key.isDown(52)) {
if (wgBlades == true) {
_root.weapon = "Blades";
}
}
if (Key.isDown(53)) {
if (((wgLM1 == true) || (wgLM2 == true)) || (wgLM3 == true)) {
_root.weapon = "Light Magic";
}
}
if (Key.isDown(54)) {
if (((wgDM1 == true) || (wgDM2 == true)) || (wgDM3 == true)) {
_root.weapon = "Dark Magic";
}
}
};
Key.addListener(weaponlist);
stop();
$level = 4;
Instance of Symbol 1478 MovieClip in Frame 743
onClipEvent (enterFrame) {
_x = _root.headx;
_y = _root.heady;
}
Instance of Symbol 1512 MovieClip in Frame 743
onClipEvent (enterFrame) {
_alpha = _root.charge;
}
Frame 744
if (($worldover != true) && ($gameover != true)) {
gotoAndPlay (743);
}
Frame 745
attachMovie("blackfade", "blackfade", 5232);
function error() {
}
function ammochance() {
if (_root.$levelover != true) {
if (random(5) == 1) {
_root.all.attachMovie("convictionpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("ragepotion", "mc" + i, i);
i++;
}
if (random(2) == 1) {
_root.all.attachMovie("healthpotion", "mc" + i, i);
i++;
}
if ((wgDM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("darkpotion", "mc" + i, i);
i++;
}
if ((wgLM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("lightpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("largehealthpotion", "mc" + i, i);
i++;
}
if ((wgKnives == true) && (random(3) == 1)) {
_root.all.attachMovie("knifeammo", "mc" + i, i);
i++;
}
}
}
function chance(b, n, d) {
c = (b * _root.conviction) + ((1 - b) * _root.rage);
c = c / 100;
c = (c * (1 - n)) + n;
c = c * d;
if (Math.random() < c) {
return(true);
}
return(false);
}
function monsterhurt(targ) {
if (targ.hitTest(_root.all.man.punchhit)) {
_root.punchhit(targ);
}
if (targ.hitTest(_root.all.man.thumphit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.thumphit(targ);
}
if (targ.hitTest(_root.all.man.kickhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.kickhit(targ);
}
if (targ.hitTest(_root.all.man.AXEhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.AXEhit(targ);
}
if (targ.hitTest(_root.all.man.ramhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.ramhit(targ);
}
if (targ.hitTest(_root.all.strike.strikehit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.strikehit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["knife" + i])) {
s = new Sound(this);
s.attachSound("knife hit enemy");
s.start();
_root.knifehit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.jabhitl) || (targ.hitTest(_root.all.man.jabhitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.jabhit(targ);
}
if (targ.hitTest(_root.all.man.slicehitl) || (targ.hitTest(_root.all.man.slicehitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.slicehit(targ);
}
if (targ.hitTest(_root.all.fearcloud)) {
_root.fearhit(targ);
}
if (targ.hitTest(_root.all.man.beamhit)) {
_root.beamhit(targ);
}
if (targ.hitTest(_root.all.man.blasthit)) {
_root.blasthit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["dart" + i])) {
_root.darthit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.bindhit)) {
_root.bindhit(targ);
}
if (targ.hitTest(_root.all.dBall)) {
_root.dballhit(targ);
}
}
function armourset() {
switch (_root.armour) {
case "Test" :
return(2);
case "Harness" :
return(3);
}
return(1);
}
function normalstat() {
_root.topspeed = _root.$topspeed;
_root.turn = _root.$turn;
_root.accel = _root.$accel;
_root.friction = _root.$friction;
}
function punchhit(targ) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
targ.$recoil = 4;
targ.$health = targ.$health - (2 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function thumphit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - (5 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function kickhit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 3;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function AXEhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(5));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function ramhit(targ) {
targ.$recoil = _root.speed;
targ.$health = targ.$health - ((_root.speed * (1 + (_root.conviction / 100))) + 6);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function strikehit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 30;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function knifehit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(10) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (targ.$aggression >= 100) {
targ.$aggression = 100;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
removeMovieClip(_root.all["knife" + knifeno]);
}
function jabhit(targ) {
targ.$recoil = 7;
targ.$health = targ.$health - 8;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function slicehit(targ) {
targ.$recoil = 2;
targ.$health = targ.$health - 10;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function beamhit(targ) {
targ.$recoil = 10;
targ.$health = targ.$health - _root.charge;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if ((targ.$health <= 0) && (targ.$dead != true)) {
targ.gotoAndPlay("dead");
targ.$mode = "dying";
targ.$dead = true;
if (random(2) == 1) {
targ._yscale = -targ._yscale;
}
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function blasthit(targ) {
targ.$recoil = (_root.charge / 5) + 20;
targ.$health = targ.$health - ((_root.charge / 10) + 20);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function darthit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(15) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.knifeo--;
removeMovieClip(_root.all["dart" + knifeno]);
}
function dballhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(10));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (_root.all.dBall._currentframe < 3) {
_root.all.dBall.gotoAndPlay(3);
}
targ.$mode = "hurt";
_root.rage = _root.rage + 1;
}
function fearhit(targ) {
targ.$recoil = 1;
targ.$aggression = targ.$aggression - 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 50;
}
targ.$mode = "hurt";
_root.rage = _root.rage + 2;
}
function bindhit(targ) {
targ.$mode = "paralysed";
targ.$aggression = targ.$aggression + 10;
}
_global.depthi = 0;
_root.knives = 60;
_root.knifei = 0;
_root.overi = 0;
_root.knifeo = 0;
_quality = "medium";
wgHANDS = true;
_root.dcharge = 0;
_root.charge = 0;
_root.activefireball = false;
_root.activefearcloud = false;
_root.all.man._rotation = 180;
i = 10;
while (i >= 0) {
_root["$room" + i] = false;
i--;
}
weapon = "HANDS";
armour = "Harness";
$friction = 0.7;
$health = 100;
$topspeed = 8;
$turn = 0.1;
$accel = 2;
$lmana = 200;
$dmana = 200;
lmana = 200;
dmana = 200;
friction = $friction;
normalstat();
speed = 0;
sidespeed = 0;
health = $health;
conviction = 0;
rage = 0;
var command = new Object();
Mouse.addListener(command);
command.onMouseDown = function () {
_global.$down = true;
};
command.onMouseUp = function () {
_global.$down = false;
};
Key.addListener(command);
command.onKeyDown = function () {
_global.key = Key.getCode();
};
if (Math.random() > _root.conviction) {
gotoAndPlay ("HANDS1");
} else {
gotoAndPlay ("HANDS2-3");
}
var weaponlist = new Object();
weaponlist.onKeyDown = function () {
if (Key.isDown(49)) {
if (wgHANDS == true) {
_root.weapon = "HANDS";
} else {
error();
}
}
if (Key.isDown(50)) {
if (wgAXE == true) {
_root.weapon = "AXE";
}
}
if (Key.isDown(51)) {
if (wgKnives == true) {
_root.weapon = "Knives";
}
}
if (Key.isDown(52)) {
if (wgBlades == true) {
_root.weapon = "Blades";
}
}
if (Key.isDown(53)) {
if (((wgLM1 == true) || (wgLM2 == true)) || (wgLM3 == true)) {
_root.weapon = "Light Magic";
}
}
if (Key.isDown(54)) {
if (((wgDM1 == true) || (wgDM2 == true)) || (wgDM3 == true)) {
_root.weapon = "Dark Magic";
}
}
};
Key.addListener(weaponlist);
stop();
$level = 5;
Instance of Symbol 1478 MovieClip in Frame 745
onClipEvent (enterFrame) {
_x = _root.headx;
_y = _root.heady;
}
Instance of Symbol 1512 MovieClip in Frame 745
onClipEvent (enterFrame) {
_alpha = _root.charge;
}
Frame 746
if (($worldover != true) && ($gameover != true)) {
gotoAndPlay (745);
}
Frame 747
attachMovie("blackfade", "blackfade", 5232);
function error() {
}
function ammochance() {
if (_root.$levelover != true) {
if (random(5) == 1) {
_root.all.attachMovie("convictionpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("ragepotion", "mc" + i, i);
i++;
}
if (random(2) == 1) {
_root.all.attachMovie("healthpotion", "mc" + i, i);
i++;
}
if ((wgDM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("darkpotion", "mc" + i, i);
i++;
}
if ((wgLM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("lightpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("largehealthpotion", "mc" + i, i);
i++;
}
if ((wgKnives == true) && (random(3) == 1)) {
_root.all.attachMovie("knifeammo", "mc" + i, i);
i++;
}
}
}
function chance(b, n, d) {
c = (b * _root.conviction) + ((1 - b) * _root.rage);
c = c / 100;
c = (c * (1 - n)) + n;
c = c * d;
if (Math.random() < c) {
return(true);
}
return(false);
}
function monsterhurt(targ) {
if (targ.hitTest(_root.all.man.punchhit)) {
_root.punchhit(targ);
}
if (targ.hitTest(_root.all.man.thumphit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.thumphit(targ);
}
if (targ.hitTest(_root.all.man.kickhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.kickhit(targ);
}
if (targ.hitTest(_root.all.man.AXEhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.AXEhit(targ);
}
if (targ.hitTest(_root.all.man.ramhit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
_root.ramhit(targ);
}
if (targ.hitTest(_root.all.strike.strikehit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.strikehit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["knife" + i])) {
s = new Sound(this);
s.attachSound("knife hit enemy");
s.start();
_root.knifehit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.jabhitl) || (targ.hitTest(_root.all.man.jabhitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.jabhit(targ);
}
if (targ.hitTest(_root.all.man.slicehitl) || (targ.hitTest(_root.all.man.slicehitr))) {
targ.sound = new Sound(targ);
targ.sound.attachSound("raptor bite 2");
targ.sound.start();
_root.slicehit(targ);
}
if (targ.hitTest(_root.all.fearcloud)) {
_root.fearhit(targ);
}
if (targ.hitTest(_root.all.man.beamhit)) {
_root.beamhit(targ);
}
if (targ.hitTest(_root.all.man.blasthit)) {
_root.blasthit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["dart" + i])) {
_root.darthit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.bindhit)) {
_root.bindhit(targ);
}
if (targ.hitTest(_root.all.dBall)) {
_root.dballhit(targ);
}
}
function armourset() {
switch (_root.armour) {
case "Test" :
return(2);
case "Harness" :
return(3);
}
return(1);
}
function normalstat() {
_root.topspeed = _root.$topspeed;
_root.turn = _root.$turn;
_root.accel = _root.$accel;
_root.friction = _root.$friction;
}
function punchhit(targ) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
targ.$recoil = 4;
targ.$health = targ.$health - (2 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function thumphit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - (5 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function kickhit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 3;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function AXEhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(5));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function ramhit(targ) {
targ.$recoil = _root.speed;
targ.$health = targ.$health - ((_root.speed * (1 + (_root.conviction / 100))) + 6);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function strikehit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 30;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function knifehit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(10) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (targ.$aggression >= 100) {
targ.$aggression = 100;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
removeMovieClip(_root.all["knife" + knifeno]);
}
function jabhit(targ) {
targ.$recoil = 7;
targ.$health = targ.$health - 8;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function slicehit(targ) {
targ.$recoil = 2;
targ.$health = targ.$health - 10;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function beamhit(targ) {
targ.$recoil = 10;
targ.$health = targ.$health - _root.charge;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if ((targ.$health <= 0) && (targ.$dead != true)) {
targ.gotoAndPlay("dead");
targ.$mode = "dying";
targ.$dead = true;
if (random(2) == 1) {
targ._yscale = -targ._yscale;
}
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function blasthit(targ) {
targ.$recoil = (_root.charge / 5) + 20;
targ.$health = targ.$health - ((_root.charge / 10) + 20);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function darthit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(15) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.knifeo--;
removeMovieClip(_root.all["dart" + knifeno]);
}
function dballhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(10));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (_root.all.dBall._currentframe < 3) {
_root.all.dBall.gotoAndPlay(3);
}
targ.$mode = "hurt";
_root.rage = _root.rage + 1;
}
function fearhit(targ) {
targ.$recoil = 1;
targ.$aggression = targ.$aggression - 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 50;
}
targ.$mode = "hurt";
_root.rage = _root.rage + 2;
}
function bindhit(targ) {
targ.$mode = "paralysed";
targ.$aggression = targ.$aggression + 10;
}
_global.depthi = 0;
_root.knives = 60;
_root.knifei = 0;
_root.overi = 0;
_root.knifeo = 0;
_quality = "medium";
wgHANDS = true;
_root.dcharge = 0;
_root.charge = 0;
_root.activefireball = false;
_root.activefearcloud = false;
_root.all.man._rotation = 180;
i = 10;
while (i >= 0) {
_root["$room" + i] = false;
i--;
}
weapon = "HANDS";
armour = "Harness";
$friction = 0.7;
$health = 100;
$topspeed = 8;
$turn = 0.1;
$accel = 2;
$lmana = 200;
$dmana = 200;
lmana = 200;
dmana = 200;
friction = $friction;
normalstat();
speed = 0;
sidespeed = 0;
health = $health;
conviction = 0;
rage = 0;
var command = new Object();
Mouse.addListener(command);
command.onMouseDown = function () {
_global.$down = true;
};
command.onMouseUp = function () {
_global.$down = false;
};
Key.addListener(command);
command.onKeyDown = function () {
_global.key = Key.getCode();
};
if (Math.random() > _root.conviction) {
gotoAndPlay ("HANDS1");
} else {
gotoAndPlay ("HANDS2-3");
}
var weaponlist = new Object();
weaponlist.onKeyDown = function () {
if (Key.isDown(49)) {
if (wgHANDS == true) {
_root.weapon = "HANDS";
} else {
error();
}
}
if (Key.isDown(50)) {
if (wgAXE == true) {
_root.weapon = "AXE";
}
}
if (Key.isDown(51)) {
if (wgKnives == true) {
_root.weapon = "Knives";
}
}
if (Key.isDown(52)) {
if (wgBlades == true) {
_root.weapon = "Blades";
}
}
if (Key.isDown(53)) {
if (((wgLM1 == true) || (wgLM2 == true)) || (wgLM3 == true)) {
_root.weapon = "Light Magic";
}
}
if (Key.isDown(54)) {
if (((wgDM1 == true) || (wgDM2 == true)) || (wgDM3 == true)) {
_root.weapon = "Dark Magic";
}
}
};
Key.addListener(weaponlist);
stop();
$level = 6;
Instance of Symbol 1478 MovieClip in Frame 747
onClipEvent (enterFrame) {
_x = _root.headx;
_y = _root.heady;
}
Instance of Symbol 1512 MovieClip in Frame 747
onClipEvent (enterFrame) {
_alpha = _root.charge;
}
Frame 748
if (($worldover != true) && ($gameover != true)) {
gotoAndPlay (747);
}
Frame 749
attachMovie("", "blackfade", 5232);
function error() {
}
function ammochance() {
if (_root.$levelover != true) {
if (random(5) == 1) {
_root.all.attachMovie("convictionpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("ragepotion", "mc" + i, i);
i++;
}
if (random(2) == 1) {
_root.all.attachMovie("healthpotion", "mc" + i, i);
i++;
}
if ((wgDM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("darkpotion", "mc" + i, i);
i++;
}
if ((wgLM1 == true) && (random(5) == 1)) {
_root.all.attachMovie("lightpotion", "mc" + i, i);
i++;
}
if (random(5) == 1) {
_root.all.attachMovie("largehealthpotion", "mc" + i, i);
i++;
}
if ((wgKnives == true) && (random(3) == 1)) {
_root.all.attachMovie("knifeammo", "mc" + i, i);
i++;
}
}
}
function chance(b, n, d) {
c = (b * _root.conviction) + ((1 - b) * _root.rage);
c = c / 100;
c = (c * (1 - n)) + n;
c = c * d;
if (Math.random() < c) {
return(true);
}
return(false);
}
function monsterhurt(targ) {
if (targ.hitTest(_root.all.man.punchhit)) {
_root.punchhit(targ);
}
if (targ.hitTest(_root.all.man.thumphit)) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch2");
targ.sound.start();
_root.thumphit(targ);
}
if (targ.hitTest(_root.all.man.kickhit)) {
_root.kickhit(targ);
}
if (targ.hitTest(_root.all.man.AXEhit)) {
_root.AXEhit(targ);
}
if (targ.hitTest(_root.all.man.ramhit)) {
_root.ramhit(targ);
}
if (targ.hitTest(_root.all.strike.strikehit)) {
_root.strikehit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["knife" + i])) {
s = new Sound(this);
s.attachSound("knife hit enemy");
s.start();
_root.knifehit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.man.jabhitl) || (targ.hitTest(_root.all.man.jabhitr))) {
_root.jabhit(targ);
}
if (targ.hitTest(_root.all.man.slicehitl) || (targ.hitTest(_root.all.man.slicehitr))) {
_root.slicehit(targ);
}
if (targ.hitTest(_root.all.man.beamhit)) {
_root.beamhit(targ);
}
if (targ.hitTest(_root.all.man.blasthit)) {
_root.blasthit(targ);
}
if ((_root.knifei - _root.knifeo) > 0) {
i = _root.knifeo;
while (i <= _root.knifei) {
if (targ.hitTest(_root.all["dart" + i])) {
_root.darthit(targ, i);
}
i++;
}
}
if (targ.hitTest(_root.all.fearcloud)) {
_root.fearhit(targ);
}
if (targ.hitTest(_root.all.man.bindhit)) {
_root.bindhit(targ);
}
if (targ.hitTest(_root.all.dBall)) {
_root.dballhit(targ);
}
}
function armourset() {
switch (_root.armour) {
case "Test" :
return(2);
case "Harness" :
return(3);
}
return(1);
}
function normalstat() {
_root.topspeed = _root.$topspeed;
_root.turn = _root.$turn;
_root.accel = _root.$accel;
_root.friction = _root.$friction;
}
function punchhit(targ) {
targ.sound = new Sound(targ);
targ.sound.attachSound("punch1");
targ.sound.start();
targ.$recoil = 4;
targ.$health = targ.$health - (2 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function thumphit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - (5 * (1 + ((_root.conviction + _root.rage) / 200)));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.rage = _root.rage + 0.5;
}
function kickhit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 3;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function AXEhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - 16;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function ramhit(targ) {
targ.$recoil = _root.speed;
targ.$health = targ.$health - ((_root.speed * (1 + (_root.conviction / 100))) + 2);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function strikehit(targ) {
targ.$recoil = 8;
targ.$health = targ.$health - 30;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function knifehit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - (random(10) + 5);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (targ.$aggression >= 100) {
targ.$aggression = 100;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
removeMovieClip(_root.all["knife" + knifeno]);
}
function jabhit(targ) {
targ.$recoil = 6;
targ.$health = targ.$health - 15;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function slicehit(targ) {
targ.$recoil = 2;
targ.$health = targ.$health - 20;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function beamhit(targ) {
targ.$recoil = 10;
targ.$health = targ.$health - _root.charge;
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if ((targ.$health <= 0) && (targ.$dead != true)) {
targ.gotoAndPlay("dead");
targ.$mode = "dying";
targ.$dead = true;
if (random(2) == 1) {
targ._yscale = -targ._yscale;
}
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function blasthit(targ) {
targ.$recoil = (_root.charge / 5) + 20;
targ.$health = targ.$health - ((_root.charge / 10) + 20);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
}
function darthit(targ, knifeno) {
knifeo++;
targ.$recoil = 1;
targ.$health = targ.$health - random(10);
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
targ.$mode = "hurt";
_root.conviction = _root.conviction + 1;
_root.knifeo--;
removeMovieClip(_root.all["dart" + knifeno]);
}
function dballhit(targ) {
targ.$recoil = 4;
targ.$health = targ.$health - (20 + random(10));
targ.$aggression = targ.$aggression + 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 10;
}
if (_root.all.dBall._currentframe < 3) {
_root.all.dBall.gotoAndPlay(3);
}
targ.$mode = "hurt";
_root.rage = _root.rage + 1;
}
function fearhit(targ) {
targ.$recoil = 1;
targ.$aggression = targ.$aggression - 10;
if (targ.$mode == "flee") {
targ.$fear = 50;
} else {
targ.$fear = targ.$fear + 50;
}
targ.$mode = "hurt";
_root.rage = _root.rage + 2;
}
function bindhit(targ) {
targ.$mode = "paralysed";
targ.$aggression = targ.$aggression + 10;
}
_global.depthi = 0;
_root.knifei = 0;
_root.overi = 0;
_root.knifeo = 0;
_quality = "medium";
_root.dcharge = 0;
_root.charge = 0;
_root.activefireball = false;
_root.activefearcloud = false;
hold = true;
weapon = "HANDS";
armour = "Harness";
$friction = 0.7;
$health = 100;
$topspeed = 8;
$turn = 0.1;
$accel = 0.5;
$lmana = 200;
$dmana = 200;
lmana = 200;
dmana = 200;
friction = $friction;
normalstat();
speed = 0;
sidespeed = 0;
health = $health;
conviction = 0;
rage = 0;
var command = new Object();
Mouse.addListener(command);
command.onMouseDown = function () {
_global.$down = true;
};
command.onMouseUp = function () {
_global.$down = false;
};
Key.addListener(command);
command.onKeyDown = function () {
_global.key = Key.getCode();
};
if (Math.random() > _root.conviction) {
gotoAndPlay ("HANDS1");
} else {
gotoAndPlay ("HANDS2-3");
}
var weaponlist = new Object();
weaponlist.onKeyDown = function () {
if (Key.isDown(49)) {
if (wgHANDS == true) {
_root.weapon = "HANDS";
} else {
error();
}
}
if (Key.isDown(50)) {
if (wgAXE == true) {
_root.weapon = "AXE";
}
}
if (Key.isDown(51)) {
if (wgKnives == true) {
_root.weapon = "Knives";
}
}
if (Key.isDown(52)) {
if (wgBlades == true) {
_root.weapon = "Blades";
}
}
if (Key.isDown(53)) {
if (((wgLM1 == true) || (wgLM2 == true)) || (wgLM3 == true)) {
_root.weapon = "Light Magic";
}
}
if (Key.isDown(54)) {
if (((wgDM1 == true) || (wgDM2 == true)) || (wgDM3 == true)) {
_root.weapon = "Dark Magic";
}
}
};
Key.addListener(weaponlist);
stop();
$level = 6;
Instance of Symbol 1478 MovieClip in Frame 749
onClipEvent (enterFrame) {
_x = _root.headx;
_y = _root.heady;
}
Instance of Symbol 1512 MovieClip in Frame 749
onClipEvent (enterFrame) {
_alpha = _root.charge;
}
Frame 750
if (($worldover != true) && ($gameover != true)) {
gotoAndPlay (749);
}
Frame 751
_root.hold = false;
Frame 778
stop();
Frame 816
_root.$scenegoto = $level;
_root.gotoAndPlay("gap");
Frame 817
stop();
stopAllSounds();
Frame 938
c1.play();
stop();
Frame 992
stop();
Frame 1047
stop();
Frame 1100
stop();
Frame 1155
stop();
Frame 1195
stop();
Symbol 95 MovieClip [portout] Frame 47
removeMovieClip(this);
Symbol 97 MovieClip [portin] Frame 49
removeMovieClip(this);
Symbol 100 MovieClip Frame 1
_visible = false;
Symbol 103 MovieClip [arrow] Frame 1
$i++;
if ($i > 80) {
$firable = true;
}
Instance of Symbol 100 MovieClip in Symbol 103 MovieClip [arrow] Frame 1
onClipEvent (load) {
_visible = false;
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit) && (_parent.$held == false)) {
_root.health = _root.health - 3;
i++;
if (i > 1) {
_parent.gotoAndPlay(3);
}
}
}
Symbol 103 MovieClip [arrow] Frame 2
gotoAndPlay (1);
Symbol 103 MovieClip [arrow] Frame 5
$firable = true;
removeMovieClip(this);
Symbol 121 MovieClip Frame 60
gotoAndPlay (1);
Symbol 121 MovieClip Frame 61
s = new Sound(this);
s.attachSound("archer die " + (random(2) + 1));
s.start();
Symbol 121 MovieClip Frame 75
_root.all.attachMovie("bloodpool", "bloodpool" + $order, $order - 500);
setProperty(_root.all["bloodpool" + $order], _x , _x);
setProperty(_root.all["bloodpool" + $order], _y , _y);
stop();
Symbol 122 MovieClip [archer] Frame 1
stop();
Instance of Symbol 121 MovieClip in Symbol 122 MovieClip [archer] Frame 1
onClipEvent (load) {
$i = _root.all.command1.i + random(1000);
$dead = false;
$mode = "watch";
$basespeed = 0;
$topspeed = 3;
$speed = 0;
$accel = 0.2;
$wait = 0;
$end = 10;
$health = 15;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$diecount = 180;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
_root.all["arrow" + $i]._x = _root.all["arrow" + $i]._x + ($arrowdirx * 22);
_root.all["arrow" + $i]._y = _root.all["arrow" + $i]._y + ($arrowdiry * 22);
if (($fear > 100) && ($mode != "hurt")) {
$mode = "flee";
if (random(10) == 1) {
$fear--;
}
}
if ($health > 0) {
if ($mode == "chase") {
if (random(150) == 1) {
$mode = "watch";
}
}
_root.all["arrow" + $i].$held = false;
if (($mode == "watch") && (_root.all["arrow" + $i].$firable != false)) {
_root.all.attachMovie("arrow", "arrow" + $i, 3001 + $i);
$arrowdiry = Math.sin((Math.PI * _rotation) / 180);
$arrowdirx = Math.cos((Math.PI * _rotation) / 180);
_root.all["arrow" + $i]._x = _x;
_root.all["arrow" + $i]._y = _y;
_root.all["arrow" + $i]._rotation = _rotation;
_root.all["arrow" + $i].$held = true;
_root.all["arrow" + $i].$i = 0;
$on = true;
}
if ((_root.all["arrow" + $i].$held != true) && (_root.all["arrow" + $i].$firable != false)) {
_root.all["arrow" + $i].$firable = false;
if ($on) {
$on = false;
s = new Sound(this);
s.attachSound("archer bow fire " + (random(2) + 1));
s.start();
}
}
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if (($mode == "chase") || ($mode == "flee")) {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
} else if ($dead != true) {
$mode = "dying";
$dead = true;
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if ($health > 0) {
if ($mode != "flee") {
_rotation = (_rotation - 180);
}
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
if ($mode != "flee") {
_rotation = (_rotation + 180);
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
$mode = "watch";
} else if ((Math.abs($x) < 80) && (Math.abs($y) < 80)) {
if ((Math.abs($x) < 20) && (Math.abs($y) < 20)) {
$mode = "flee";
$fear++;
} else {
$fear++;
}
} else {
$mode = "chase";
}
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < 0) {
_x = 0;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < 0) {
_y = 0;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 122 MovieClip [archer] Frame 35
_root.$enemyno--;
this.removeMovieClip();
Symbol 126 MovieClip [sparkle] Frame 60
this.removeMovieClip();
Symbol 130 MovieClip [mouse glow] Frame 25
this.removeMovieClip();
Symbol 133 MovieClip [menu sparkle button] Frame 20
this.removeMovieClip();
Symbol 141 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
if (_root.billow == false) {
gotoAndPlay (1);
}
Symbol 163 MovieClip Frame 35
if (_root.billow == true) {
gotoAndPlay ("loopstart");
}
Symbol 180 MovieClip Frame 1
if (Math.random() < 0.01) {
gotoAndPlay (3);
}
Symbol 180 MovieClip Frame 2
gotoAndPlay (1);
Symbol 180 MovieClip Frame 3
_x = (random(50) - 25);
_y = (random(300) - 150);
Instance of Symbol 178 MovieClip in Symbol 182 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndPlay(random(20));
}
Symbol 182 MovieClip Frame 10
gotoAndPlay (2);
Symbol 184 MovieClip Frame 31
stop();
Instance of Symbol 192 MovieClip in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
size = random(50) + 100;
_xscale = size;
_yscale = size;
spin = random(4) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spin);
}
Instance of Symbol 192 MovieClip in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
size = random(50) + 100;
_xscale = size;
_yscale = size;
spin = random(4) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spin);
}
Instance of Symbol 192 MovieClip in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
size = random(50) + 100;
_xscale = size;
_yscale = size;
spin = random(4) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spin);
}
Symbol 199 MovieClip Frame 1
_root._x = random(6) - 3;
Symbol 199 MovieClip Frame 2
gotoAndPlay (1);
Symbol 202 MovieClip Frame 1
if (Math.random() < 0.01) {
gotoAndPlay (3);
}
Symbol 202 MovieClip Frame 2
gotoAndPlay (1);
Symbol 202 MovieClip Frame 3
_x = (random(200) - 100);
_y = (random(200) - 100);
size = random(300);
_xscale = size;
_yscale = size;
Symbol 207 MovieClip Frame 1
_root.billow = false;
Symbol 207 MovieClip Frame 60
gotoAndPlay ("run");
Symbol 207 MovieClip Frame 61
_root.billow = true;
Symbol 207 MovieClip Frame 84
if (cast == "shield") {
s = new Sound(this);
s.attachSound("boss shield");
s.start(0, 999);
}
gotoAndPlay(cast);
Symbol 207 MovieClip Frame 85
_root.billow = false;
Symbol 207 MovieClip Frame 108
gotoAndPlay ("run");
Instance of Symbol 182 MovieClip in Symbol 207 MovieClip Frame 109
onClipEvent (enterFrame) {
}
Symbol 207 MovieClip Frame 110
if (shielding == true) {
gotoAndPlay ("shield");
} else {
gotoAndPlay ("uncast");
s.stop();
}
Symbol 207 MovieClip Frame 135
$random = random(8);
if ($random == 1) {
_root.all.attachMovie("wizard", "mc" + i, i);
} else if ($random == 2) {
_root.all.attachMovie("redwizard", "mc" + i, i);
} else if ($random == 3) {
_root.all.attachMovie("octo", "mc" + i, i);
} else if ($random == 4) {
_root.all.attachMovie("ogre", "mc" + i, i);
} else if ($random == 5) {
_root.all.attachMovie("archer", "mc" + i, i);
} else if ($random == 6) {
_root.all.attachMovie("swarm", "mc" + i, i);
} else if ($random == 7) {
_root.all.attachMovie("redswarm", "mc" + i, i);
} else if ($random == 8) {
_root.all.attachMovie("redraptor", "mc" + i, i);
} else {
_root.all.attachMovie("rat", "mc" + i, i);
}
i++;
_root.$enemyno++;
Symbol 207 MovieClip Frame 145
gotoAndPlay ("uncast");
Symbol 207 MovieClip Frame 165
s = new Sound(this);
s.attachSound("dball " + (random(2) + 1));
s.start();
Instance of Symbol 195 MovieClip in Symbol 207 MovieClip Frame 165
onClipEvent (load) {
_root.activefireball = true;
_root.knifei++;
tmp = _root.all.attachMovie("bossfireball", "bBall", _root.knifei + 2010);
tmp._rotation = _parent._rotation;
var point = {x:0, y:0};
localToGlobal(point);
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp.speed = 10;
tmp.turn = 0.05;
tmp.trail = 1;
}
Symbol 207 MovieClip Frame 191
gotoAndPlay ("uncast");
Symbol 207 MovieClip Frame 192
_root.billow = true;
Symbol 207 MovieClip Frame 679
_root.$enemyno--;
removeMovieClip(this);
stop();
Instance of Symbol 207 MovieClip "boss" in Symbol 208 MovieClip [boss] Frame 1
onClipEvent (load) {
_root.$enemyno++;
_root.billow = false;
i = 500;
boss.moving = true;
$dead = false;
$mode = "chase";
$basespeed = 0;
$topspeed = 3;
$speed = 0;
$accel = 0.05;
$turn = 0.05;
$wait = 0;
$end = 10;
$health = 240;
$aggression = random(100);
$fear = random(100);
$sense = 220;
$diecount = 180;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = 275;
_y = 200;
}
onClipEvent (enterFrame) {
if (($fear > 100) && ($mode != "hurt")) {
$mode = "flee";
if (random(5) == 1) {
$fear--;
}
}
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($mode == "flee") {
_root.all.attachMovie("portout", "portout", 9997);
_root.all.portout._x = _x;
_root.all.portout._y = _y;
_x = (_x + ($dirx * 150));
_y = (_y + ($diry * 150));
_root.all.attachMovie("portin", "portin", 9998);
_root.all.portin._x = _x;
_root.all.portin._y = _y;
_rotation = (_rotation - 180);
$fear = 60;
$mode = "chase";
}
if ($mode == "shield") {
shielding = true;
} else {
shielding = false;
}
if (this._currentframe <= 60) {
if ($mode == "chase") {
if (random(20) == 1) {
cast = "summon";
gotoAndPlay ("casting");
}
}
}
if ($mode == "prowl") {
play();
_y = (_y + ($diry * 2));
_x = (_x + ($dirx * 2));
$wait++;
if ($wait > $end) {
$on = random(2);
$wait = 0;
$end = random(15) + 5;
$turnspeed = random(10);
}
if ($on == 1) {
_rotation = (_rotation + $turnspeed);
} else {
_rotation = (_rotation - $turnspeed);
}
}
if ($mode == "chase") {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
if ($mode == "attack") {
if (this._currentframe <= 60) {
cast = "fireball";
gotoAndPlay ("casting");
}
}
} else if ($dead != true) {
$mode = "dying";
$dead = true;
_root.conviction = _root.conviction + 2;
gotoAndPlay ("die");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if ($health > 0) {
if ($mode != "prowl") {
_rotation = (_rotation - 180);
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa * $turn));
_rotation = (_rotation + 180);
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) < 80) && (Math.abs($y) < 80)) {
$mode = "attack";
} else if (_root.$enemyno > 2) {
if (this._currentframe <= 60) {
$mode = "shield";
gotoAndPlay ("casting");
cast = "shield";
}
} else {
$mode = "chase";
}
}
if (($mode == "watch") && (random(60) == 1)) {
$mode = "prowl";
}
if (($mode == "prowl") && (random(102 - $aggression) == 1)) {
$mode = "chase";
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if (shielding != true) {
_root.monsterhurt(this);
}
}
if ($mode == "shield") {
shielding = true;
} else {
shielding = false;
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 221 MovieClip Frame 1
_rotation = random(360);
size = random(20) + 100;
_xscale = size;
_yscale = size;
gotoAndPlay(random(31) + 1);
Symbol 221 MovieClip Frame 2
_rotation = random(360);
size = random(20) + 100;
_xscale = size;
_yscale = size;
Symbol 221 MovieClip Frame 32
gotoAndPlay (2);
Symbol 222 MovieClip [bossfireball] Frame 1
if (this.hitTest(_root.all.man.hit) && (random(2) == 1)) {
gotoAndPlay (3);
_root.health = _root.health - 10;
}
trail++;
tmp = _root.all.attachMovie("dBalltrail", "dBalltrail" + trail, trail + 800);
tmp._x = _x;
tmp._y = _y;
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * speed));
if (_x > _root.all.$roomwidth) {
gotoAndPlay (3);
}
if (_x < _root.all.$leftside) {
gotoAndPlay (3);
}
if (_y > _root.all.$roomheight) {
gotoAndPlay (3);
}
if (_y < _root.all.$upside) {
gotoAndPlay (3);
}
turn = turn * 0.9;
speed = speed * 1.1;
Symbol 222 MovieClip [bossfireball] Frame 2
gotoAndPlay (1);
Symbol 222 MovieClip [bossfireball] Frame 3
s = new Sound(this);
s.attachSound("dball hit " + (random(2) + 1));
s.start();
Symbol 222 MovieClip [bossfireball] Frame 25
_root.activefireball = false;
removeMovieClip(this);
Symbol 250 MovieClip [bloodpool] Frame 161
this.removeMovieClip();
Symbol 253 MovieClip Frame 9
_rotation = 0;
_rotation = (_rotation + (random(40) - 20));
Symbol 255 MovieClip Frame 1
if ($mode == "bite") {
gotoAndPlay ("bite");
} else {
stop();
}
Instance of Symbol 236 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rot = _parent._rotation;
}
onClipEvent (enterFrame) {
if (rot != _parent._rotation) {
if (rot < (_parent._rotation - 1)) {
_rotation = (_rotation + 2);
}
if (rot > (_parent._rotation + 1)) {
_rotation = (_rotation - 2);
}
}
if (_rotation < -20) {
_rotation = -20;
}
if (_rotation > 20) {
_rotation = 20;
}
if (_rotation > 1) {
_rotation = (_rotation-1);
}
if (_rotation < -1) {
_rotation = (_rotation+1);
}
rot = _parent._rotation;
}
Instance of Symbol 236 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rot = _parent._rotation;
}
onClipEvent (enterFrame) {
if (rot != _parent._rotation) {
if (rot < (_parent._rotation - 1)) {
_rotation = (_rotation + 2);
}
if (rot > (_parent._rotation + 1)) {
_rotation = (_rotation - 2);
}
}
if (_rotation < -20) {
_rotation = -20;
}
if (_rotation > 20) {
_rotation = 20;
}
if (_rotation > 1) {
_rotation = (_rotation-1);
}
if (_rotation < -1) {
_rotation = (_rotation+1);
}
rot = _parent._rotation;
}
Symbol 255 MovieClip Frame 2
gotoAndPlay (1);
Symbol 255 MovieClip Frame 3
stop();
Instance of Symbol 100 MovieClip in Symbol 255 MovieClip Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.all.man._root.health = _root.all.man._root.health - 3;
s = new Sound(this);
s.attachSound("raptor bite");
s.start();
}
}
Symbol 255 MovieClip Frame 38
gotoAndPlay (1);
Instance of Symbol 236 MovieClip in Symbol 255 MovieClip Frame 38
onClipEvent (load) {
rot = _parent._rotation;
}
onClipEvent (enterFrame) {
if (rot != _parent._rotation) {
if (rot < (_parent._rotation - 1)) {
_rotation = (_rotation + 2);
}
if (rot > (_parent._rotation + 1)) {
_rotation = (_rotation - 2);
}
}
if (_rotation < -20) {
_rotation = -20;
}
if (_rotation > 20) {
_rotation = 20;
}
if (_rotation > 1) {
_rotation = (_rotation-1);
}
if (_rotation < -1) {
_rotation = (_rotation+1);
}
rot = _parent._rotation;
}
Instance of Symbol 236 MovieClip in Symbol 255 MovieClip Frame 38
onClipEvent (load) {
rot = _parent._rotation;
}
onClipEvent (enterFrame) {
if (rot != _parent._rotation) {
if (rot < (_parent._rotation - 1)) {
_rotation = (_rotation + 2);
}
if (rot > (_parent._rotation + 1)) {
_rotation = (_rotation - 2);
}
}
if (_rotation < -20) {
_rotation = -20;
}
if (_rotation > 20) {
_rotation = 20;
}
if (_rotation > 1) {
_rotation = (_rotation-1);
}
if (_rotation < -1) {
_rotation = (_rotation+1);
}
rot = _parent._rotation;
}
Symbol 255 MovieClip Frame 66
if ($mode == "summon") {
$mode = "chase";
}
_root.all.attachMovie("rat", "rat" + i, i);
i++;
_root.$enemyno++;
gotoAndPlay (1);
Instance of Symbol 236 MovieClip in Symbol 255 MovieClip Frame 66
onClipEvent (load) {
rot = _parent._rotation;
}
onClipEvent (enterFrame) {
if (rot != _parent._rotation) {
if (rot < (_parent._rotation - 1)) {
_rotation = (_rotation + 2);
}
if (rot > (_parent._rotation + 1)) {
_rotation = (_rotation - 2);
}
}
if (_rotation < -20) {
_rotation = -20;
}
if (_rotation > 20) {
_rotation = 20;
}
if (_rotation > 1) {
_rotation = (_rotation-1);
}
if (_rotation < -1) {
_rotation = (_rotation+1);
}
rot = _parent._rotation;
}
Instance of Symbol 236 MovieClip in Symbol 255 MovieClip Frame 66
onClipEvent (load) {
rot = _parent._rotation;
}
onClipEvent (enterFrame) {
if (rot != _parent._rotation) {
if (rot < (_parent._rotation - 1)) {
_rotation = (_rotation + 2);
}
if (rot > (_parent._rotation + 1)) {
_rotation = (_rotation - 2);
}
}
if (_rotation < -20) {
_rotation = -20;
}
if (_rotation > 20) {
_rotation = 20;
}
if (_rotation > 1) {
_rotation = (_rotation-1);
}
if (_rotation < -1) {
_rotation = (_rotation+1);
}
rot = _parent._rotation;
}
Symbol 255 MovieClip Frame 101
stop();
Symbol 256 MovieClip [tamer] Frame 1
stop();
Instance of Symbol 255 MovieClip in Symbol 256 MovieClip [tamer] Frame 1
onClipEvent (load) {
b = 200;
i = 501;
$dead = false;
$mode = "chase";
$basespeed = 0;
$topspeed = 7;
$speed = 0;
$accel = 0.2;
$wait = 0;
$end = 10;
$health = 40;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$diecount = 180;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
if (($mode == "hurt") or ($mode == "flee")) {
if (random(20) == 1) {
s = new Sound();
s.attachSound("tamer flinch " + (random(2) + 1));
s.start();
}
}
if (($fear > 100) && ($mode != "hurt")) {
$mode = "flee";
if (random(5) == 1) {
$fear--;
}
}
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($mode == "flee") {
$mode = "chase";
}
if ($mode == "chase") {
b++;
if (b > 120) {
$mode = "summon";
gotoAndPlay ("summon");
b = 0;
}
}
if ($mode == "prowl") {
play();
_y = (_y + ($diry * 2));
_x = (_x + ($dirx * 2));
$wait++;
if ($wait > $end) {
$on = random(2);
$wait = 0;
$end = random(15) + 5;
$turnspeed = random(10);
}
if ($on == 1) {
_rotation = (_rotation + $turnspeed);
} else {
_rotation = (_rotation - $turnspeed);
}
}
if (($mode == "chase") || ($mode == "flee")) {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
if ($mode == "attack") {
play();
}
} else if ($dead != true) {
$mode = "dying";
$dead = true;
if (random(2) == 1) {
_yscale = (-_yscale);
}
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if ($health > 0) {
if ($mode != "prowl") {
_rotation = (_rotation - 180);
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
_rotation = (_rotation + 180);
}
if ($mode != "summon") {
if (($mode != "hurt") || ($recoil < 0.5)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
if ($mode != "prowl") {
$mode = "watch";
}
} else if ((Math.abs($x) < 80) && (Math.abs($y) < 80)) {
$mode = "bite";
} else {
$mode = "chase";
}
}
}
if (($mode == "watch") && (random(60) == 1)) {
$mode = "prowl";
}
if (($mode == "prowl") && (random(102 - $aggression) == 1)) {
$mode = "chase";
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 256 MovieClip [tamer] Frame 52
_root.$enemyno--;
removeMovieClip(this);
Symbol 272 Button
on (press) {
play();
}
Symbol 273 MovieClip Frame 1
_parent.stop();
Symbol 273 MovieClip Frame 15
_parent.play();
Symbol 275 Button
on (press) {
play();
}
on (keyPress "<Enter>") {
play();
}
Symbol 281 MovieClip Frame 1
_parent.stop();
Symbol 281 MovieClip Frame 16
_parent.play();
Symbol 302 MovieClip [kingbox light] Frame 2
stop();
Symbol 302 MovieClip [kingbox light] Frame 5
stop();
Symbol 302 MovieClip [kingbox light] Frame 8
stop();
Symbol 302 MovieClip [kingbox light] Frame 11
stop();
Symbol 302 MovieClip [kingbox light] Frame 14
stop();
Symbol 302 MovieClip [kingbox light] Frame 17
stop();
Symbol 302 MovieClip [kingbox light] Frame 20
stop();
Symbol 302 MovieClip [kingbox light] Frame 23
stop();
Symbol 302 MovieClip [kingbox light] Frame 26
stop();
Symbol 302 MovieClip [kingbox light] Frame 29
stop();
Symbol 302 MovieClip [kingbox light] Frame 31
_root.fade.play();
removeMovieClip(this);
Symbol 315 MovieClip [kingbox dark] Frame 2
stop();
Symbol 315 MovieClip [kingbox dark] Frame 5
stop();
Symbol 315 MovieClip [kingbox dark] Frame 8
stop();
Symbol 315 MovieClip [kingbox dark] Frame 11
stop();
Symbol 315 MovieClip [kingbox dark] Frame 14
stop();
Symbol 315 MovieClip [kingbox dark] Frame 17
stop();
Symbol 315 MovieClip [kingbox dark] Frame 20
stop();
Symbol 315 MovieClip [kingbox dark] Frame 23
stop();
Symbol 315 MovieClip [kingbox dark] Frame 26
stop();
Symbol 315 MovieClip [kingbox dark] Frame 28
tmp = _root.all.attachMovie("darkfireball", "dball", 2000);
tmp._x = _root.all.man._x;
tmp._y = _root.all.man._y;
tmp._rotation = _root.all.man._rotation;
tmp.speed = 10;
tmp.turn = 0.1;
tmp.hometoking = true;
Symbol 315 MovieClip [kingbox dark] Frame 30
stop();
Symbol 315 MovieClip [kingbox dark] Frame 32
_root.fade.play();
removeMovieClip(this);
Symbol 320 Button
on (press) {
gotoAndPlay ("end");
}
Symbol 336 MovieClip [guardbox] Frame 2
stop();
Symbol 336 MovieClip [guardbox] Frame 5
stop();
Symbol 336 MovieClip [guardbox] Frame 8
stop();
Symbol 336 MovieClip [guardbox] Frame 11
stop();
Symbol 336 MovieClip [guardbox] Frame 14
stop();
Symbol 336 MovieClip [guardbox] Frame 17
stop();
Symbol 336 MovieClip [guardbox] Frame 20
stop();
Symbol 336 MovieClip [guardbox] Frame 23
stop();
Symbol 336 MovieClip [guardbox] Frame 26
stop();
Symbol 336 MovieClip [guardbox] Frame 29
_root.all.guard._alpha--;
if (_root.all.guard._alpha < 3) {
_root.all.guard.removeMovieClip();
} else {
gotoAndPlay (28);
}
Symbol 336 MovieClip [guardbox] Frame 31
stop();
Symbol 336 MovieClip [guardbox] Frame 33
_root.$enemyno = 0;
_root.hold = false;
_root.attack_info.play();
removeMovieClip(this);
Symbol 342 MovieClip [bossbox] Frame 2
stop();
Symbol 342 MovieClip [bossbox] Frame 5
stop();
Symbol 342 MovieClip [bossbox] Frame 7
_root.$enemyno--;
removeMovieClip(this);
Symbol 346 MovieClip [mystery2box] Frame 2
stop();
Symbol 346 MovieClip [mystery2box] Frame 4
_root.$enemyno--;
removeMovieClip(this);
Symbol 348 MovieClip [mystery1box] Frame 2
stop();
Symbol 348 MovieClip [mystery1box] Frame 4
_root.$enemyno--;
removeMovieClip(this);
Symbol 353 MovieClip [tamerbox] Frame 2
stop();
Symbol 353 MovieClip [tamerbox] Frame 4
_root.$enemyno--;
removeMovieClip(this);
Symbol 363 Button
on (press) {
play();
}
Symbol 381 Button
on (press) {
play();
}
Symbol 421 MovieClip [allweaponinstructions] Frame 1
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 2
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 3
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 4
removeMovieClip(this);
Symbol 421 MovieClip [allweaponinstructions] Frame 5
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 6
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 7
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 8
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 9
removeMovieClip(this);
Symbol 421 MovieClip [allweaponinstructions] Frame 10
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 11
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 12
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 13
removeMovieClip(this);
Symbol 421 MovieClip [allweaponinstructions] Frame 14
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 15
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 16
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 17
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 18
removeMovieClip(this);
Symbol 421 MovieClip [allweaponinstructions] Frame 19
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 20
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 21
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 22
stop();
Symbol 421 MovieClip [allweaponinstructions] Frame 23
removeMovieClip(this);
Symbol 428 MovieClip Frame 1
gotoAndStop(_parent.item);
Instance of Symbol 432 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (load) {
spin = random(5) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spin);
}
Instance of Symbol 434 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (load) {
spin = random(5) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spin);
}
Instance of Symbol 436 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (load) {
spin = random(5) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spin);
}
Symbol 438 MovieClip [waanim] Frame 1
Symbol 438 MovieClip [waanim] Frame 125
_root.attachMovie("allweaponinstructions", "allweaponinstructions", 3448);
_root.allweaponinstructions._x = _x;
_root.allweaponinstructions._y = _y;
_root.allweaponinstructions.gotoAndPlay(item);
removeMovieClip(this);
Instance of Symbol 100 MovieClip in Symbol 442 MovieClip [gas] Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.health--;
}
}
Symbol 442 MovieClip [gas] Frame 45
removeMovieClip(this);
Symbol 444 MovieClip [darkfireball] Frame 1
trail++;
tmp = _root.all.attachMovie("dBalltrail", "dBalltrail" + trail, trail + 800);
tmp._x = _x;
tmp._y = _y;
if (hometoking != true) {
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
} else {
ydist = _root.all.king.pawn._y - _y;
xdist = _root.all.king.pawn._x - _x;
}
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * speed));
if (_x > _root.all.$roomwidth) {
gotoAndPlay (3);
}
if (_x < _root.all.$leftside) {
gotoAndPlay (3);
}
if (_y > _root.all.$roomheight) {
gotoAndPlay (3);
}
if (_y < _root.all.$upside) {
gotoAndPlay (3);
}
turn = turn * 0.9;
speed = speed * 1.1;
Symbol 444 MovieClip [darkfireball] Frame 2
gotoAndPlay (1);
Symbol 444 MovieClip [darkfireball] Frame 3
s = new Sound(this);
s.attachSound("dball hit " + (random(2) + 1));
s.start();
Symbol 444 MovieClip [darkfireball] Frame 25
_root.activefireball = false;
removeMovieClip(this);
Symbol 450 MovieClip [dart] Frame 9
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * speed));
play();
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Instance of Symbol 449 MovieClip in Symbol 450 MovieClip [dart] Frame 9
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_rotation = random(360);
}
Symbol 450 MovieClip [dart] Frame 10
prevFrame();
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 34
_root.all.attachMovie("octofire", "octofire" + _parent.$i, _parent.$i + 200);
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
_parent.$bdiry = Math.sin((Math.PI * _rotation) / 180);
_parent.$bdirx = Math.cos((Math.PI * _rotation) / 180);
_root.all["octofire" + _parent.$i]._x = _parent._x;
_root.all["octofire" + _parent.$i]._y = _parent._y;
_root.all["octofire" + _parent.$i]._rotation = _rotation;
_parent.$mode = "normal";
gotoAndPlay (1);
Symbol 470 MovieClip Frame 43
gotoAndStop (1);
Symbol 470 MovieClip Frame 44
s = new Sound(this);
s.attachSound("octo die " + (random(2) + 1));
s.start();
Symbol 470 MovieClip Frame 55
stop();
Symbol 472 MovieClip [octo] Frame 1
stop();
Instance of Symbol 471 MovieClip "octo" in Symbol 472 MovieClip [octo] Frame 1
onClipEvent (load) {
$i = random(300);
$dead = false;
$mode = "normal";
$basespeed = 0;
$topspeed = 5 + random(4);
$speed = 0;
$accel = 0.2;
$on = false;
$wait = 0;
$end = 10;
$health = 15;
$diecount = 130;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
if ($mode == "paralysed") {
_root.monsterhurt(this);
if (random(200) == 1) {
s = new Sound();
s.attachSound("paralysis");
s.start();
}
}
if (random(300) == 1) {
s = new Sound();
s.attachSound("octo idle");
s.start();
}
if (random(200) == 1) {
s = new Sound();
s.attachSound("octo spot player " + (random(2) + 1));
s.start();
}
if (($mode == "hurt") or ($mode == "flee")) {
if (random(100) == 1) {
s = new Sound();
s.attachSound("octo flinch " + (random(2) + 1));
s.start();
}
}
_root.all["octofire" + $i]._x = _root.all["octofire" + $i]._x + ($bdirx * 7);
_root.all["octofire" + $i]._y = _root.all["octofire" + $i]._y + ($bdiry * 7);
if ($health > 0) {
if (random(100) == 1) {
$mode = "fire";
}
if ($mode == "normal") {
if ($on != true) {
$direction = random(4);
$on = true;
} else {
$wait++;
if ($wait > 300) {
$wait = 0;
$on = false;
}
if ($direction == 1) {
_x = (_x + ((150 - $wait) / 40));
}
if ($direction == 2) {
_x = (_x - ((150 - $wait) / 40));
}
if ($direction == 3) {
_y = (_y + ((150 - $wait) / 40));
}
if ($direction == 0) {
_y = (_y - ((150 - $wait) / 40));
}
}
}
$diry = Math.sin((Math.PI * octohead._rotation) / 180);
$dirx = Math.cos((Math.PI * octohead._rotation) / 180);
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
if ($mode == "fire") {
octohead.play();
}
} else if ($dead != true) {
$mode = "dying";
$dead = true;
_root.conviction = _root.conviction + 2;
octohead.gotoAndPlay("dead");
octolegs.stop();
} else {
octohead._rotation = octohead._rotation + 1;
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if (($health > 0) && ($mode != "paralysed")) {
if (($mode == "normal") || ($mode == "fire")) {
octohead._rotation = octohead._rotation - 180;
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - octohead._rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
octohead._rotation = octohead._rotation + ($rotationa / 10);
octohead._rotation = octohead._rotation + 180;
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < 0) {
_x = 0;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < 0) {
_y = 0;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 472 MovieClip [octo] Frame 40
_root.$enemyno--;
this.removeMovieClip();
Symbol 499 MovieClip Frame 1
if ($mode == "bite") {
if (random(2) == 1) {
gotoAndPlay ("swingright");
} else {
gotoAndPlay ("swingleft");
}
}
stop();
Symbol 499 MovieClip Frame 20
if ($mode == "bite") {
if (random(2) == 1) {
gotoAndPlay ("swingright");
} else {
gotoAndPlay ("swingleft");
}
}
stop();
Symbol 499 MovieClip Frame 43
gotoAndPlay (1);
Symbol 499 MovieClip Frame 54
_rotation = (_rotation + 8);
Symbol 499 MovieClip Frame 55
_rotation = (_rotation + 10);
Symbol 499 MovieClip Frame 56
_rotation = (_rotation + 12);
Instance of Symbol 100 MovieClip in Symbol 499 MovieClip Frame 56
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.health = _root.health - 5;
s = new Sound(this);
s.attachSound("ogre attack " + (random(2) + 1));
s.start();
}
}
Symbol 499 MovieClip Frame 57
_rotation = (_rotation + 14);
Symbol 499 MovieClip Frame 58
_rotation = (_rotation + 12);
Symbol 499 MovieClip Frame 59
_rotation = (_rotation + 10);
Symbol 499 MovieClip Frame 60
_rotation = (_rotation + 8);
Symbol 499 MovieClip Frame 61
_rotation = (_rotation + 6);
Symbol 499 MovieClip Frame 69
gotoAndPlay (1);
Symbol 499 MovieClip Frame 80
_rotation = (_rotation - 6);
Symbol 499 MovieClip Frame 81
_rotation = (_rotation - 8);
Symbol 499 MovieClip Frame 82
_rotation = (_rotation - 10);
Symbol 499 MovieClip Frame 83
_rotation = (_rotation - 12);
Instance of Symbol 100 MovieClip in Symbol 499 MovieClip Frame 83
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
s = new Sound(this);
s.attachSound("ogre attack " + (random(2) + 1));
s.start();
_root.health = _root.health - 5;
}
}
Symbol 499 MovieClip Frame 84
_rotation = (_rotation - 14);
Symbol 499 MovieClip Frame 85
_rotation = (_rotation - 12);
Symbol 499 MovieClip Frame 86
_rotation = (_rotation - 10);
Symbol 499 MovieClip Frame 87
_rotation = (_rotation - 8);
Symbol 499 MovieClip Frame 95
gotoAndPlay (1);
Symbol 499 MovieClip Frame 96
s = new Sound(this);
s.attachSound("ogre die " + (random(2) + 1));
s.start();
Symbol 499 MovieClip Frame 123
stop();
Symbol 500 MovieClip [ogre] Frame 1
stop();
Instance of Symbol 499 MovieClip in Symbol 500 MovieClip [ogre] Frame 1
onClipEvent (load) {
$dead = false;
$mode = "chase";
$basespeed = 0;
$topspeed = 2 + random(2);
$speed = 0;
$accel = 0.2;
$wait = 0;
$end = 10;
$health = 80;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$diecount = 180;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
if ($mode == "paralysed") {
_root.monsterhurt(this);
if (random(200) == 1) {
s = new Sound();
s.attachSound("paralysis");
s.start();
}
}
if ($mode == "prowl") {
if (random(50) == 1) {
s = new Sound();
s.attachSound("ogre idle 1");
s.start();
}
}
if ($mode == "chase") {
if (random(100) == 1) {
s = new Sound();
s.attachSound("ogre spot player " + (random(2) + 1));
s.start();
}
}
if (($mode == "hurt") or ($mode == "flee")) {
if (random(20) == 1) {
s = new Sound();
s.attachSound("ogre flinch " + (random(2) + 1));
s.start();
}
}
_rotation = (_rotation + 90);
if (($fear > 200) && ($mode != "hurt")) {
$mode = "flee";
if (random(5) == 1) {
$fear--;
}
}
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($mode == "prowl") {
play();
_y = (_y + ($diry * 2));
_x = (_x + ($dirx * 2));
$wait++;
if ($wait > $end) {
$on = random(2);
$wait = 0;
$end = random(15) + 5;
$turnspeed = random(10);
}
if ($on == 1) {
_rotation = (_rotation + $turnspeed);
} else {
_rotation = (_rotation - $turnspeed);
}
}
if (($mode == "chase") || ($mode == "flee")) {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
if ($mode == "bite") {
play();
}
} else if ($dead != true) {
$mode = "dying";
$dead = true;
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if (($health > 0) && ($mode != "paralysed")) {
if ($mode != "prowl") {
if ($mode != "flee") {
_rotation = (_rotation - 180);
}
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
if ($mode != "flee") {
_rotation = (_rotation + 180);
}
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
if ($mode != "prowl") {
$mode = "watch";
}
} else if ((Math.abs($x) < 80) && (Math.abs($y) < 80)) {
if ((Math.abs($x) < 20) && (Math.abs($y) < 20)) {
$mode = "flee";
} else {
$mode = "bite";
}
} else {
$mode = "chase";
}
}
if (($mode == "watch") && (random(60) == 1)) {
$mode = "prowl";
}
if (($mode == "prowl") && (random(102 - $aggression) == 1)) {
$mode = "chase";
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
_rotation = (_rotation - 90);
}
Symbol 500 MovieClip [ogre] Frame 30
_root.$enemyno--;
this.removeMovieClip();
Symbol 504 MovieClip [rubble] Frame 1
i = 0;
while (i < 3) {
attachMovie("fallingrubble", "fallingrubble" + i, 4567 + i);
this["fallingrubble" + i]._x = random(30) - 15;
this["fallingrubble" + i]._y = random(30) - 15;
this["fallingrubble" + i]._rotation = random(360);
i++;
}
this.swapDepths(random(1000) + 2000);
_root.overi++;
tmp = _parent.attachMovie("rubblelight", "rubblelight" + _root.overi, -1000 + _root.overi);
tmp._x = _x;
tmp._y = _y;
Symbol 504 MovieClip [rubble] Frame 2
i = 3;
while (i < 5) {
attachMovie("fallingrubble", "fallingrubble" + i, 4567 + i);
this["fallingrubble" + i]._x = random(30) - 15;
this["fallingrubble" + i]._y = random(30) - 15;
this["fallingrubble" + i]._rotation = random(360);
i++;
}
Symbol 504 MovieClip [rubble] Frame 3
i = 5;
while (i < 7) {
attachMovie("fallingrubble", "fallingrubble" + i, 4567 + i);
this["fallingrubble" + i]._x = random(30) - 15;
this["fallingrubble" + i]._y = random(30) - 15;
this["fallingrubble" + i]._rotation = random(360);
i++;
}
Symbol 504 MovieClip [rubble] Frame 59
stop();
Symbol 504 MovieClip [rubble] Frame 60
this.removeMovieClip();
Symbol 510 MovieClip [rubblelight] Frame 12
stop();
Symbol 510 MovieClip [rubblelight] Frame 13
this.removeMovieClip();
stop();
Symbol 510 MovieClip [rubblelight] Frame 14
gotoAndPlay (13);
Symbol 549 MovieClip Frame 1
$hittable = false;
Symbol 549 MovieClip Frame 32
$hittable = true;
Symbol 549 MovieClip Frame 49
$mode = "search";
Symbol 549 MovieClip Frame 51
if (($mode != "teleport") && ($mode != "dying")) {
gotoAndPlay (50);
}
Symbol 549 MovieClip Frame 63
$hittable = false;
Symbol 549 MovieClip Frame 111
_x = (random(500) + 25);
_y = (random(350) + 25);
if ($mode != "dying") {
gotoAndPlay (1);
}
Symbol 549 MovieClip Frame 135
_parent.play();
stop();
Symbol 550 MovieClip [greenwizard] Frame 1
stop();
Instance of Symbol 549 MovieClip in Symbol 550 MovieClip [greenwizard] Frame 1
onClipEvent (load) {
_x = (random(500) + 25);
_y = (random(350) + 25);
$willtofire = random(100) + 100;
$mode = "teleport";
$sense = random(300) + 150;
$i = random(100);
$health = 30;
$diecount = 100;
}
onClipEvent (enterFrame) {
if (($mode != "teleport") && ($health > 0)) {
_rotation = (_rotation - 180);
$x = _parent._parent.man._x - _x;
$y = _parent._parent.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
_rotation = (_rotation + 180);
if ($mode == "fire") {
_root.all.attachMovie("wizardfiregreen", "wizardfiregreen" + $i, 800 + $i);
_root.all["wizardfiregreen" + $i]._x = _x + 92;
_root.all["wizardfiregreen" + $i]._y = _y + 36;
$mode = "teleport";
}
if (($mode != "teleport") && ($mode != "hurt")) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
$mode = "watch";
} else if ((Math.abs($x) < $willtofire) && (Math.abs($y) < $willtofire)) {
$mode = "fire";
} else {
$mode = "search";
}
}
} else if (($mode != "teleport") && ($dead != true)) {
gotoAndPlay ("dead");
$mode = "dying";
$dead = true;
}
}
onClipEvent (enterFrame) {
if ($health > 0) {
if ($hittable) {
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
if (($recoil < 0.4) && ($health > 0)) {
$mode = "teleport";
}
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 550 MovieClip [greenwizard] Frame 40
_root.$enemyno--;
this.removeMovieClip();
Symbol 584 MovieClip Frame 1
$hittable = false;
Symbol 584 MovieClip Frame 41
$hittable = true;
Symbol 584 MovieClip Frame 49
$mode = "search";
Symbol 584 MovieClip Frame 51
if (($mode != "teleport") && ($mode != "dying")) {
gotoAndPlay (50);
}
Symbol 584 MovieClip Frame 63
$hittable = false;
Symbol 584 MovieClip Frame 111
_x = (random(500) + 25);
_y = (random(350) + 25);
if ($mode != "dying") {
gotoAndPlay (1);
}
Symbol 584 MovieClip Frame 135
_parent.play();
stop();
Symbol 585 MovieClip [redwizard] Frame 1
stop();
Instance of Symbol 584 MovieClip in Symbol 585 MovieClip [redwizard] Frame 1
onClipEvent (load) {
_x = (random(500) + 25);
_y = (random(350) + 25);
$willtofire = random(100) + 50;
$mode = "teleport";
$sense = random(300) + 150;
$i = 100 + random(1000);
$j = $i + 1;
$k = $j + 1;
$health = 40;
$diecount = 100;
$wait = 0;
}
onClipEvent (enterFrame) {
if (($mode != "teleport") && ($health > 0)) {
_rotation = (_rotation - 180);
$x = _parent._parent.man._x - _x;
$y = _parent._parent.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
_rotation = (_rotation + 180);
if ($mode == "search") {
if ((_rotation > ($rotation - 3)) && (_rotation < ($rotation + 3))) {
$mode = "fire1";
}
}
if ($mode == "pause1") {
$wait++;
if ($wait > 8) {
$wait = 0;
$mode = "fire2";
}
}
if ($mode == "pause2") {
$wait++;
if ($wait > 8) {
$wait = 0;
$mode = "fire3";
}
}
if ($mode == "fire1") {
_root.all.attachMovie("wizardfirered", "wizardfirered" + $i, 3000 + $i);
$idiry = Math.sin((Math.PI * _rotation) / 180);
$idirx = Math.cos((Math.PI * _rotation) / 180);
_root.all["wizardfirered" + $i]._x = _x;
_root.all["wizardfirered" + $i]._y = _y;
_root.all["wizardfirered" + $i]._rotation = _rotation;
$mode = "pause1";
}
if ($mode == "fire2") {
_root.all.attachMovie("wizardfirered", "wizardfirered" + $j, 3000 + $j);
$jdiry = Math.sin((Math.PI * _rotation) / 180);
$jdirx = Math.cos((Math.PI * _rotation) / 180);
_root.all["wizardfirered" + $j]._x = _x;
_root.all["wizardfirered" + $j]._y = _y;
_root.all["wizardfirered" + $j]._rotation = _rotation;
$mode = "pause2";
}
if ($mode == "fire3") {
_root.all.attachMovie("wizardfirered", "wizardfirered" + $k, 3000 + $k);
$kdiry = Math.sin((Math.PI * _rotation) / 180);
$kdirx = Math.cos((Math.PI * _rotation) / 180);
_root.all["wizardfirered" + $k]._x = _x;
_root.all["wizardfirered" + $k]._y = _y;
_root.all["wizardfirered" + $k]._rotation = _rotation;
$mode = "teleport";
}
if ((($mode != "teleport") && ($mode != "pause1")) && ($mode != "pause2")) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
$mode = "watch";
} else if ((Math.abs($x) < $willtofire) && (Math.abs($y) < $willtofire)) {
$mode = "teleport";
} else {
$mode = "search";
}
}
} else if (($mode != "teleport") && ($dead != true)) {
gotoAndPlay ("dead");
$mode = "dying";
$dead = true;
}
_root.all["wizardfirered" + $i]._x = _root.all["wizardfirered" + $i]._x + ($idirx * 8);
_root.all["wizardfirered" + $i]._y = _root.all["wizardfirered" + $i]._y + ($idiry * 8);
_root.all["wizardfirered" + $j]._x = _root.all["wizardfirered" + $j]._x + ($jdirx * 8);
_root.all["wizardfirered" + $j]._y = _root.all["wizardfirered" + $j]._y + ($jdiry * 8);
_root.all["wizardfirered" + $k]._x = _root.all["wizardfirered" + $k]._x + ($kdirx * 8);
_root.all["wizardfirered" + $k]._y = _root.all["wizardfirered" + $k]._y + ($kdiry * 8);
}
onClipEvent (enterFrame) {
if ($health > 0) {
if ($hittable) {
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
if (($recoil < 0.4) && ($health > 0)) {
$mode = "teleport";
}
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 585 MovieClip [redwizard] Frame 40
_root.$enemyno--;
this.removeMovieClip();
Symbol 619 MovieClip Frame 40
$hittable = true;
Symbol 619 MovieClip Frame 49
$mode = "search";
Symbol 619 MovieClip Frame 51
if (($mode != "teleport") && ($mode != "dying")) {
gotoAndPlay (50);
}
Symbol 619 MovieClip Frame 63
$hittable = false;
Symbol 619 MovieClip Frame 111
_x = (random(500) + 25);
_y = (random(350) + 25);
if ($mode != "dying") {
gotoAndPlay (1);
}
Symbol 619 MovieClip Frame 133
_parent.play();
stop();
Symbol 620 MovieClip [wizard] Frame 1
stop();
Instance of Symbol 619 MovieClip in Symbol 620 MovieClip [wizard] Frame 1
onClipEvent (load) {
_x = (random(500) + 25);
_y = (random(350) + 25);
$willtofire = random(100) + 50;
$mode = "teleport";
$sense = random(300) + 150;
$i = random(100);
$health = 20;
$diecount = 100;
}
onClipEvent (enterFrame) {
if (($mode != "teleport") && ($health > 0)) {
_rotation = (_rotation - 180);
$x = _parent._parent.man._x - _x;
$y = _parent._parent.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
_rotation = (_rotation + 180);
if ($mode == "search") {
if ((_rotation > ($rotation - 3)) && (_rotation < ($rotation + 3))) {
$mode = "fire";
}
}
if ($mode == "fire") {
_root.all.attachMovie("wizardfire", "wizardfire" + $i, 3000);
$idiry = Math.sin((Math.PI * _rotation) / 180);
$idirx = Math.cos((Math.PI * _rotation) / 180);
_root.all["wizardfire" + $i]._x = _x;
_root.all["wizardfire" + $i]._y = _y;
_root.all["wizardfire" + $i]._rotation = _rotation;
$mode = "teleport";
}
if (($mode != "teleport") && ($mode != "hurt")) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
$mode = "watch";
} else if ((Math.abs($x) < $willtofire) && (Math.abs($y) < $willtofire)) {
$mode = "teleport";
} else {
$mode = "search";
}
}
} else if (($mode != "teleport") && ($dead != true)) {
gotoAndPlay ("dead");
$mode = "dying";
$dead = true;
}
_root.all["wizardfire" + $i]._x = _root.all["wizardfire" + $i]._x + ($idirx * 7);
_root.all["wizardfire" + $i]._y = _root.all["wizardfire" + $i]._y + ($idiry * 7);
}
onClipEvent (enterFrame) {
if ($health > 0) {
if ($hittable) {
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
if (($recoil < 0.4) && ($health > 0)) {
$mode = "teleport";
}
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 620 MovieClip [wizard] Frame 40
_root.$enemyno--;
this.removeMovieClip();
Symbol 627 MovieClip [wizardfirered] Frame 1
s = new Sound(this);
s.attachSound("wizard fire " + (random(2) + 1));
s.start();
Instance of Symbol 100 MovieClip in Symbol 627 MovieClip [wizardfirered] Frame 1
onClipEvent (load) {
_visible = false;
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.health--;
i++;
if (i > 3) {
_parent.gotoAndPlay("hit");
}
}
}
Symbol 627 MovieClip [wizardfirered] Frame 70
removeMovieClip(this);
Symbol 627 MovieClip [wizardfirered] Frame 71
s = new Sound(this);
s.attachSound("wizard hit " + (random(2) + 1));
s.start();
Symbol 627 MovieClip [wizardfirered] Frame 78
removeMovieClip(this);
Symbol 633 MovieClip [wizardfire] Frame 1
s = new Sound(this);
s.attachSound("wizard fire " + (random(2) + 1));
s.start();
Instance of Symbol 100 MovieClip in Symbol 633 MovieClip [wizardfire] Frame 1
onClipEvent (load) {
_visible = false;
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.health--;
i++;
if (i > 3) {
_parent.gotoAndPlay("hit");
}
}
}
Symbol 633 MovieClip [wizardfire] Frame 70
removeMovieClip(this);
Symbol 633 MovieClip [wizardfire] Frame 71
s = new Sound(this);
s.attachSound("wizard hit " + (random(2) + 1));
s.start();
Symbol 633 MovieClip [wizardfire] Frame 78
removeMovieClip(this);
Instance of Symbol 100 MovieClip in Symbol 648 MovieClip [wizardfiregreen] Frame 40
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.health--;
}
}
Symbol 648 MovieClip [wizardfiregreen] Frame 72
this.removeMovieClip();
Symbol 688 MovieClip [octofire] Frame 1
s = new Sound(this);
s.attachSound("octo fire " + (random(2) + 1));
s.start();
Instance of Symbol 100 MovieClip in Symbol 688 MovieClip [octofire] Frame 1
onClipEvent (load) {
_visible = false;
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.health--;
i++;
if (i > 4) {
s = new Sound(this);
s.attachSound("octo hit");
s.start();
_parent.removeMovieClip();
}
}
}
Symbol 688 MovieClip [octofire] Frame 75
removeMovieClip(this);
Symbol 691 MovieClip [knifeammo] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 691 MovieClip [knifeammo] Frame 2
if (_root.all[("$roomhole" + $num) + "open"] != true) {
gotoAndPlay (27);
}
Symbol 691 MovieClip [knifeammo] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Symbol 691 MovieClip [knifeammo] Frame 7
_root.knives = _root.knives + 30;
this.removeMovieClip();
Symbol 695 MovieClip [lightpotion] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 695 MovieClip [lightpotion] Frame 2
if (_root.all[("$roomhole" + $num) + "open"] != true) {
this.removeMovieClip();
}
Symbol 695 MovieClip [lightpotion] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Instance of Symbol 100 MovieClip in Symbol 695 MovieClip [lightpotion] Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.health = _root.health + 4;
if (_root.health > 100) {
_root.health = 100;
}
}
Symbol 695 MovieClip [lightpotion] Frame 29
_root.lmana = 200;
stop();
this.removeMovieClip();
Symbol 698 MovieClip [darkpotion] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 698 MovieClip [darkpotion] Frame 2
if (_root.all[("$roomhole" + $num) + "open"] != true) {
this.removeMovieClip();
}
Symbol 698 MovieClip [darkpotion] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Instance of Symbol 100 MovieClip in Symbol 698 MovieClip [darkpotion] Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.dmana = _root.dmana + 8;
}
Symbol 698 MovieClip [darkpotion] Frame 29
_root.dmana = 200;
stop();
this.removeMovieClip();
Symbol 701 MovieClip [healthpotion] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 701 MovieClip [healthpotion] Frame 2
if (_root.all[("$roomhole" + $num) + "open"] != true) {
this.removeMovieClip();
}
Symbol 701 MovieClip [healthpotion] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Instance of Symbol 100 MovieClip in Symbol 701 MovieClip [healthpotion] Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.health = _root.health + 1;
if (_root.health > 100) {
_root.health = 100;
}
}
Symbol 701 MovieClip [healthpotion] Frame 29
if (_root.health > 100) {
_root.health = 100;
}
stop();
this.removeMovieClip();
Symbol 704 MovieClip [largehealthpotion] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 704 MovieClip [largehealthpotion] Frame 2
if (_root.all[("$roomhole" + $num) + "open"] != true) {
this.removeMovieClip();
}
Symbol 704 MovieClip [largehealthpotion] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Instance of Symbol 100 MovieClip in Symbol 704 MovieClip [largehealthpotion] Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.health = _root.health + 4;
if (_root.health > 100) {
_root.health = 100;
}
}
Symbol 704 MovieClip [largehealthpotion] Frame 29
_root.health = 100;
stop();
this.removeMovieClip();
Symbol 707 MovieClip [convictionpotion] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 707 MovieClip [convictionpotion] Frame 2
if (_root.all[("$roomhole" + $num) + "open"] != true) {
this.removeMovieClip();
}
Symbol 707 MovieClip [convictionpotion] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Instance of Symbol 100 MovieClip in Symbol 707 MovieClip [convictionpotion] Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.conviction = _root.conviction + 2;
}
Symbol 707 MovieClip [convictionpotion] Frame 29
stop();
this.removeMovieClip();
Symbol 710 MovieClip [ragepotion] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 710 MovieClip [ragepotion] Frame 2
if (_root.all[("$roomhole" + $num) + "open"] != true) {
this.removeMovieClip();
}
Symbol 710 MovieClip [ragepotion] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Instance of Symbol 100 MovieClip in Symbol 710 MovieClip [ragepotion] Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.rage = _root.rage + 2;
}
Symbol 710 MovieClip [ragepotion] Frame 29
stop();
this.removeMovieClip();
Symbol 717 MovieClip Frame 1
stop();
Instance of Symbol 100 MovieClip in Symbol 717 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_parent.play();
_root.all.man._root.health = _root.all.man._root.health - 3;
}
}
Symbol 717 MovieClip Frame 2
s = new Sound(this);
s.attachSound("swarm attack " + (random(2) + 1));
s.start();
Symbol 717 MovieClip Frame 10
_parent.play();
stop();
Symbol 717 MovieClip Frame 11
s = new Sound(this);
s.attachSound("swarm die " + (random(2) + 1));
s.start();
Symbol 717 MovieClip Frame 26
stop();
Symbol 718 MovieClip [redswarm] Frame 1
stop();
Instance of Symbol 717 MovieClip in Symbol 718 MovieClip [redswarm] Frame 1
onClipEvent (load) {
$dead = false;
$basespeed = 0;
$topspeed = 1 + random(6);
$speed = 0;
$accel = 0.2;
$health = 5;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
} else if ($dead != true) {
$mode = "dying";
$dead = true;
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if (random(100) == 1) {
s = new Sound();
s.attachSound("swarm spot player " + (random(4) + 1));
s.start();
}
if ($health > 0) {
_rotation = (_rotation - 180);
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
_rotation = (_rotation + 180);
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_parent.play();
}
}
Symbol 718 MovieClip [redswarm] Frame 25
_root.$enemyno--;
this.removeMovieClip();
Symbol 723 MovieClip Frame 1
stop();
Instance of Symbol 100 MovieClip in Symbol 723 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_parent.play();
_root.all.man._root.health = _root.all.man._root.health - 3;
}
}
Symbol 723 MovieClip Frame 2
s = new Sound(this);
s.attachSound("swarm attack " + (random(2) + 1));
s.start();
Symbol 723 MovieClip Frame 10
_parent.play();
stop();
Symbol 723 MovieClip Frame 11
s = new Sound(this);
s.attachSound("swarm die " + (random(2) + 1));
s.start();
Symbol 723 MovieClip Frame 26
stop();
Symbol 724 MovieClip [swarm2] Frame 1
stop();
Instance of Symbol 723 MovieClip "swarminside" in Symbol 724 MovieClip [swarm2] Frame 1
onClipEvent (load) {
$dead = false;
$basespeed = 0;
$topspeed = 2 + random(6);
$speed = 0;
$accel = 0.2;
$health = 1;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$order = _root.all.command1.i;
}
onClipEvent (enterFrame) {
if (random(100) == 1) {
s = new Sound();
s.attachSound("swarm spot player " + (random(4) + 1));
s.start();
}
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
} else if ($dead != true) {
$mode = "dying";
$dead = true;
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if ($health > 0) {
_rotation = (_rotation - 180);
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
_rotation = (_rotation + 180);
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_parent.play();
}
}
Symbol 724 MovieClip [swarm2] Frame 25
this.removeMovieClip();
Symbol 725 MovieClip [swarm] Frame 1
stop();
Instance of Symbol 723 MovieClip in Symbol 725 MovieClip [swarm] Frame 1
onClipEvent (load) {
$dead = false;
$basespeed = 0;
$topspeed = 2 + random(6);
$speed = 0;
$accel = 0.2;
$health = 1;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
if (random(100) == 1) {
s = new Sound();
s.attachSound("swarm spot player " + (random(4) + 1));
s.start();
}
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
} else if ($dead != true) {
$mode = "dying";
$dead = true;
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if ($health > 0) {
_rotation = (_rotation - 180);
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
_rotation = (_rotation + 180);
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_parent.play();
}
}
Symbol 725 MovieClip [swarm] Frame 25
_root.$enemyno--;
this.removeMovieClip();
Symbol 768 MovieClip [mc0] Frame 1
if ($mode == "bite") {
gotoAndPlay (61);
} else {
stop();
}
Symbol 768 MovieClip [mc0] Frame 30
stop();
if ($mode == "bite") {
gotoAndPlay (61);
}
Symbol 768 MovieClip [mc0] Frame 60
if ($mode != "bite") {
gotoAndPlay (1);
}
Symbol 768 MovieClip [mc0] Frame 74
s = new Sound();
if (random(2) == 1) {
s.attachSound("raptor bite");
} else {
s.attachSound("raptor bite 2");
}
s.start();
Instance of Symbol 745 MovieClip in Symbol 768 MovieClip [mc0] Frame 74
onClipEvent (load) {
if (_parent.$bloodshow) {
_visible = true;
s = new Sound();
if (random(2) == 1) {
s.attachSound("raptor bite");
} else {
s.attachSound("raptor bite 2");
}
s.start();
} else {
_visible = false;
}
}
Instance of Symbol 100 MovieClip in Symbol 768 MovieClip [mc0] Frame 74
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.all.man._root.health = _root.all.man._root.health - 1;
_parent.$bloodshow = true;
} else {
_parent.$bloodshow = false;
}
}
Symbol 768 MovieClip [mc0] Frame 80
$bloodshow = false;
Symbol 768 MovieClip [mc0] Frame 82
gotoAndPlay (1);
Symbol 768 MovieClip [mc0] Frame 83
s = new Sound();
if (random(2) == 1) {
s.attachSound("raptor die 1");
} else {
s.attachSound("raptor die 2");
}
s.start();
Symbol 768 MovieClip [mc0] Frame 97
stop();
_root.all.attachMovie("bloodpool", "bloodpool" + $order, $order - 500);
setProperty(_root.all["bloodpool" + $order], _x , _x);
setProperty(_root.all["bloodpool" + $order], _y , _y);
Symbol 768 MovieClip [mc0] Frame 98
prevFrame();
Symbol 769 MovieClip [redraptor] Frame 1
stop();
Instance of Symbol 768 MovieClip [mc0] "raptor" in Symbol 769 MovieClip [redraptor] Frame 1
onClipEvent (load) {
$dead = false;
$mode = "chase";
$basespeed = 0;
$topspeed = 5 + random(4);
$speed = 0;
$accel = 0.2;
$wait = 0;
$end = 10;
$health = 40;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$diecount = 180;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
if ($mode == "paralysed") {
_root.monsterhurt(this);
if (random(200) == 1) {
s = new Sound();
s.attachSound("paralysis");
s.start();
}
}
if ($mode == "prowl") {
if (random(50) == 1) {
s = new Sound();
s.attachSound("raptor idle");
s.start();
}
}
if ($mode == "watch") {
if (random(50) == 1) {
s = new Sound();
s.attachSound("raptor spot player " + (random(2) + 1));
s.start();
}
}
if (($mode == "hurt") or ($mode == "flee")) {
if (random(20) == 1) {
s = new Sound();
s.attachSound("raptor flinch " + (random(2) + 1));
s.start();
}
}
if (($fear > 100) && ($mode != "hurt")) {
$mode = "flee";
if (random(5) == 1) {
$fear--;
}
}
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($mode == "prowl") {
play();
_y = (_y + ($diry * 2));
_x = (_x + ($dirx * 2));
$wait++;
if ($wait > $end) {
$on = random(2);
$wait = 0;
$end = random(15) + 5;
$turnspeed = random(10);
}
if ($on == 1) {
_rotation = (_rotation + $turnspeed);
} else {
_rotation = (_rotation - $turnspeed);
}
}
if (($mode == "chase") || ($mode == "flee")) {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
if ($mode == "bite") {
play();
}
} else if ($dead != true) {
$mode = "dying";
$dead = true;
if (random(2) == 1) {
_yscale = (-_yscale);
}
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if (($health > 0) && ($mode != "paralysed")) {
if ($mode != "prowl") {
if ($mode != "flee") {
_rotation = (_rotation - 180);
}
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
if ($mode != "flee") {
_rotation = (_rotation + 180);
}
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
if ($mode != "prowl") {
$mode = "watch";
}
} else if ((Math.abs($x) < 80) && (Math.abs($y) < 80)) {
if ((Math.abs($x) < 20) && (Math.abs($y) < 20)) {
$mode = "flee";
} else {
$mode = "bite";
}
} else {
$mode = "chase";
}
}
if (($mode == "watch") && (random(60) == 1)) {
$mode = "prowl";
}
if (($mode == "prowl") && (random(102 - $aggression) == 1)) {
$mode = "chase";
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 769 MovieClip [redraptor] Frame 50
_root.$enemyno--;
this.removeMovieClip();
Symbol 771 MovieClip [dBalltrail] Frame 21
removeMovieClip(this);
Symbol 776 MovieClip Frame 1
_visible = false;
Symbol 777 MovieClip [fearcloud] Frame 1
dcharge = _root.dcharge;
size = 1;
_xscale = 1;
_yscale = 1;
time = 0;
Symbol 777 MovieClip [fearcloud] Frame 2
if (size < dcharge) {
size++;
} else {
time = time + 0.1;
dcharge = dcharge - time;
size = dcharge;
if (_alpha > 1) {
_alpha = (_alpha * 0.9);
} else {
_root.activefearcloud = false;
removeMovieClip(this);
}
}
_xscale = size;
_yscale = size;
Instance of Symbol 192 MovieClip in Symbol 777 MovieClip [fearcloud] Frame 2
/* no clip actions */
Instance of Symbol 192 MovieClip in Symbol 777 MovieClip [fearcloud] Frame 2
/* no clip actions */
Instance of Symbol 192 MovieClip in Symbol 777 MovieClip [fearcloud] Frame 2
/* no clip actions */
Instance of Symbol 192 MovieClip in Symbol 777 MovieClip [fearcloud] Frame 2
/* no clip actions */
Instance of Symbol 192 MovieClip in Symbol 777 MovieClip [fearcloud] Frame 2
/* no clip actions */
Symbol 777 MovieClip [fearcloud] Frame 3
gotoAndPlay (2);
Symbol 782 MovieClip [chest3] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 782 MovieClip [chest3] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Symbol 782 MovieClip [chest3] Frame 12
_root.attachMovie("waanim", "waanim", 4991);
_root.waanim._x = 275;
_root.waanim._y = 200;
_root.waanim.item = "blades";
Symbol 782 MovieClip [chest3] Frame 27
Symbol 782 MovieClip [chest3] Frame 28
_root.wgBlades = true;
_root.$enemyno--;
this.removeMovieClip();
Symbol 785 MovieClip [chest2] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 785 MovieClip [chest2] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Symbol 785 MovieClip [chest2] Frame 16
_root.attachMovie("waanim", "waanim", 4991);
_root.waanim._x = 275;
_root.waanim._y = 200;
_root.waanim.item = "knives";
Symbol 785 MovieClip [chest2] Frame 28
_root.wgKnives = true;
_root.$enemyno--;
this.removeMovieClip();
Symbol 789 MovieClip [chest] Frame 1
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
Symbol 789 MovieClip [chest] Frame 3
if (this.hitTest(_root.all.man) != true) {
gotoAndPlay (2);
}
Symbol 789 MovieClip [chest] Frame 13
_root.attachMovie("waanim", "waanim", 4991);
_root.waanim._x = 275;
_root.waanim._y = 200;
_root.waanim.item = "axe";
Symbol 789 MovieClip [chest] Frame 28
_root.wgAXE = true;
_root.$enemyno--;
this.removeMovieClip();
Symbol 806 MovieClip Frame 72
if (_root.$levelover != true) {
gotoAndPlay (71);
} else {
$firable = false;
}
Symbol 806 MovieClip Frame 142
_parent.play();
Symbol 807 MovieClip [turret] Frame 1
stop();
Instance of Symbol 806 MovieClip in Symbol 807 MovieClip [turret] Frame 1
onClipEvent (load) {
_x = ((_root.all.$roomwidth + _root.all.$leftside) / 2);
_y = ((_root.all.$upside + _root.all.$roomheight) / 2);
$itimer = 0;
$i = _root.all.command1.i;
$firable = true;
}
onClipEvent (enterFrame) {
_root.all["fireball" + $i]._x = _root.all["fireball" + $i]._x + $x;
_root.all["fireball" + $i]._y = _root.all["fireball" + $i]._y + $y;
$itimer++;
if (($itimer > 100) && ($firable)) {
if ((_root.all.man._x > (_x - 10)) || (_root.all.man._x < (_x + 10))) {
if (_root.all.man._y < (_y - 60)) {
$itimer = 0;
_root.all.attachMovie("fireball", "fireball" + $i, 2453);
_root.all["fireball" + $i]._x = _x;
_root.all["fireball" + $i]._y = _y;
$y = -5;
$x = 0;
} else if (_root.all.man._y > (_y + 60)) {
$itimer = 0;
_root.all.attachMovie("fireball", "fireball" + $i, 2453);
_root.all["fireball" + $i]._x = _x;
_root.all["fireball" + $i]._y = _y;
$y = 5;
$x = 0;
}
}
if ((_root.all.man._y > (_y - 10)) || (_root.all.man._y < (_y + 10))) {
if (_root.all.man._x < (_x - 60)) {
$itimer = 0;
_root.all.attachMovie("fireball", "fireball" + $i, 2453);
_root.all["fireball" + $i]._x = _x;
_root.all["fireball" + $i]._y = _y;
$y = 0;
$x = -5;
} else if (_root.all.man._x > (_x + 60)) {
$itimer = 0;
_root.all.attachMovie("fireball", "fireball" + $i, 2453);
_root.all["fireball" + $i]._x = _x;
_root.all["fireball" + $i]._y = _y;
$y = 0;
$x = 5;
}
}
}
}
Symbol 807 MovieClip [turret] Frame 2
removeMovieClip(this);
Symbol 816 MovieClip [fallingrubble] Frame 48
removeMovieClip(this);
stop();
Symbol 818 MovieClip [strike1] Frame 1
_root._x = _root._x + 10;
Symbol 818 MovieClip [strike1] Frame 2
_root._x = _root._x - 20;
Symbol 818 MovieClip [strike1] Frame 3
_root._x = _root._x + 15;
Symbol 818 MovieClip [strike1] Frame 4
_root._x = _root._x - 10;
Symbol 818 MovieClip [strike1] Frame 5
_root._x = _root._x + 5;
Symbol 818 MovieClip [strike1] Frame 36
removeMovieClip(this);
Symbol 821 MovieClip [knife] Frame 1
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * 30));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * 30));
if (_x > _root.all.$roomwidth) {
gotoAndPlay (3);
}
if (_x < _root.all.$leftside) {
gotoAndPlay (3);
}
if (_y > _root.all.$roomheight) {
gotoAndPlay (3);
}
if (_y < _root.all.$upside) {
gotoAndPlay (3);
}
Symbol 821 MovieClip [knife] Frame 2
gotoAndPlay (1);
Instance of Symbol 819 MovieClip in Symbol 821 MovieClip [knife] Frame 3
onClipEvent (load) {
stop();
}
Symbol 821 MovieClip [knife] Frame 53
_root.activeknives--;
removeMovieClip(this);
Symbol 871 MovieClip Frame 1
stop();
Symbol 871 MovieClip Frame 14
stop();
Symbol 871 MovieClip Frame 28
stop();
Symbol 871 MovieClip Frame 29
if ($mode != "bite") {
gotoAndPlay (1);
}
Instance of Symbol 829 MovieClip in Symbol 871 MovieClip Frame 35
onClipEvent (load) {
if (_parent.$slash) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 100 MovieClip in Symbol 871 MovieClip Frame 35
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
if (_parent.$end > 34) {
_root.health = _root.health - 1;
s = new Sound(this);
s.attachSound("rat attack 1");
s.start();
}
}
}
Symbol 871 MovieClip Frame 36
if ($mode == "bite") {
prevFrame();
gotoAndPlay;
}
Symbol 871 MovieClip Frame 40
if (_root.$health > 0) {
gotoAndPlay (1);
}
Symbol 871 MovieClip Frame 50
stop();
Symbol 871 MovieClip Frame 51
if (_root.$health > 0) {
gotoAndPlay (1);
}
Symbol 871 MovieClip Frame 61
stop();
Symbol 871 MovieClip Frame 71
stop();
Symbol 871 MovieClip Frame 85
stop();
Symbol 872 MovieClip [rat] Frame 1
stop();
Instance of Symbol 871 MovieClip "rat" in Symbol 872 MovieClip [rat] Frame 1
onClipEvent (load) {
$mode = "chase";
$basespeed = 0;
_root.$topspeed = 5 + random(4);
$speed = 0;
_root.$accel = 0.2;
$wait = 0;
$end = 10;
$health = 5;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$diecount = 110;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
_x = $x;
_y = $y;
}
onClipEvent (enterFrame) {
if ($mode == "paralysed") {
_root.monsterhurt(this);
if (random(200) == 1) {
s = new Sound();
s.attachSound("paralysis");
s.start();
}
}
if ($health > 0) {
if (($fear > 100) && ($mode != "hurt")) {
$mode = "flee";
if (random(5) == 1) {
$fear--;
}
}
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($mode == "prowl") {
play();
_y = (_y + ($diry * 2));
_x = (_x + ($dirx * 2));
$wait++;
if ($wait > $end) {
$on = random(2);
$wait = 0;
$end = random(15) + 5;
_root.$turnspeed = random(10);
}
if ($on == 1) {
_rotation = (_rotation + _root.$turnspeed);
} else {
_rotation = (_rotation - _root.$turnspeed);
}
}
if ($mode == "hurt") {
if (random(10) == 1) {
s = new Sound(this);
s.attachSound("rat flinch " + (random(2) + 1));
s.start();
}
}
if ($mode == "prowl") {
if (random(80) == 1) {
s = new Sound(this);
s.attachSound("rat idle " + (random(2) + 1));
s.start();
}
}
if ($mode == "chase") {
if (random(50) == 1) {
s = new Sound(this);
s.attachSound("rat spot player " + (random(2) + 1));
s.start();
}
}
if (($mode == "chase") || ($mode == "flee")) {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= _root.$topspeed) {
$speed = _root.$topspeed;
}
$speed = $speed + _root.$accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
if ($mode == "bite") {
play();
}
} else if ($dead != true) {
$random = random(4);
gotoAndPlay("dead" + (random(4) + 1));
$dead = true;
$mode = "dying";
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if (($health > 0) && ($mode != "paralysed")) {
if ($mode == "bite") {
if (($end > 25) && ($end < 30)) {
$slash = false;
$mode = "chase";
}
$end--;
if ($end <= 0) {
$end = 40;
}
if ($end > 30) {
$slash = true;
_y = (_y + ($diry * ($end - 30)));
_x = (_x + ($dirx * ($end - 30)));
}
}
if (($mode != "prowl") && ($mode != "bite")) {
if ($mode != "flee") {
_rotation = (_rotation - 180);
}
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
if ($mode != "flee") {
_rotation = (_rotation + 180);
}
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
if ($mode != "prowl") {
$mode = "watch";
}
} else if ((Math.abs($x) < 55) && (Math.abs($y) < 55)) {
$mode = "bite";
} else {
$mode = "chase";
}
}
if (($mode == "watch") && (random(60) == 1)) {
$mode = "prowl";
}
if (($mode == "prowl") && (random(102 - $aggression) == 1)) {
$mode = "chase";
}
if ($mode == "hurt") {
_y = (_y - ($diry * $recoil));
_x = (_x - ($dirx * $recoil));
$recoil = $recoil * 0.93;
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($health <= 0) && ($dead != true)) {
gotoAndPlay("dead" + (random(4) + 1));
$mode = "dying";
$dead = true;
if (random(2) == 1) {
_yscale = (-_yscale);
}
}
}
onClipEvent (enterFrame) {
if ((_y < 180) || (_y > 240)) {
if (_x < 0) {
_x = 0;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
}
if ((_x < 190) || (_x > 360)) {
if (_y < 0) {
_y = 0;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 872 MovieClip [rat] Frame 50
_root.$enemyno--;
removeMovieClip(this);
Symbol 907 MovieClip Frame 1
if ($mode == "bite") {
gotoAndPlay (35);
} else {
stop();
}
Instance of Symbol 883 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.$mode);
}
Symbol 907 MovieClip Frame 20
stop();
Symbol 907 MovieClip Frame 35
if ($mode != "bite") {
gotoAndPlay (1);
}
if (random(2) == 1) {
gotoAndPlay (66);
}
Instance of Symbol 100 MovieClip in Symbol 907 MovieClip Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.man.hit)) {
if (random(3) == 1) {
_root.man._root.$health = _root.man._root.$health - 1;
}
}
}
Symbol 907 MovieClip Frame 66
if ($mode != "bite") {
gotoAndPlay (1);
}
Instance of Symbol 100 MovieClip in Symbol 907 MovieClip Frame 76
onClipEvent (enterFrame) {
if (this.hitTest(_root.man.hit)) {
if (random(3) == 1) {
_root.man._root.$health = _root.man._root.$health - 1;
}
}
}
Instance of Symbol 100 MovieClip in Symbol 907 MovieClip Frame 84
onClipEvent (enterFrame) {
if (this.hitTest(_root.man.hit)) {
if (random(3) == 1) {
_root.man._root.$health = _root.man._root.$health - 1;
}
}
}
Symbol 907 MovieClip Frame 97
if (_root.$health > 0) {
gotoAndPlay (1);
}
Symbol 907 MovieClip Frame 127
_root.attachMovie("bloodpool", "bloodpool" + $order, $order - 500);
_x = (_x + 5);
setProperty(_root["bloodpool" + $order], _x , _x + 5);
_y = (_y + 5);
setProperty(_root["bloodpool" + $order], _y , _y + 5);
stop();
Symbol 908 MovieClip [blob] Frame 1
stop();
Instance of Symbol 907 MovieClip in Symbol 908 MovieClip [blob] Frame 1
onClipEvent (load) {
$mode = "chase";
$basespeed = 0;
_root.$topspeed = 5 + random(4);
$speed = 0;
_root.$accel = 0.2;
$wait = 0;
$end = 10;
_root.$health = 45;
$aggression = random(100);
$fear = random(100);
$sense = random(150) + 80;
$diecount = 180;
$order = _root.command1.i;
$ran = random(2);
if ($ran == 1) {
$ran = random(2);
if ($ran == 1) {
$x = 0;
} else {
$x = 570;
}
$x = $x - random(20);
$y = random(40) + 180;
} else {
$ran = random(2);
if ($ran == 1) {
$y = 0;
} else {
$y = 420;
}
$y = $y - random(20);
$x = random(50) + 200;
}
_x = $x;
_y = $y;
}
onClipEvent (enterFrame) {
if (($fear > 100) && ($mode != "hurt")) {
$mode = "flee";
if (random(5) == 1) {
$fear--;
}
}
if (_root.$health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($mode == "prowl") {
play();
_y = (_y + ($diry * 2));
_x = (_x + ($dirx * 2));
$wait++;
if ($wait > $end) {
$on = random(2);
$wait = 0;
$end = random(15) + 5;
_root.$turnspeed = random(10);
}
if ($on == 1) {
_rotation = (_rotation + _root.$turnspeed);
} else {
_rotation = (_rotation - _root.$turnspeed);
}
}
if (($mode == "chase") || ($mode == "flee")) {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= _root.$topspeed) {
$speed = _root.$topspeed;
}
$speed = $speed + _root.$accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
if ($mode == "bite") {
play();
}
} else if ($dead != true) {
gotoAndPlay ("dead");
$dead = true;
$mode = "dying";
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if (_root.$health > 0) {
if ($mode != "prowl") {
if ($mode != "flee") {
_rotation = (_rotation - 180);
}
$x = _root.man._x - _x;
$y = _root.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
if ($mode != "flee") {
_rotation = (_rotation + 180);
}
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
if ($mode != "prowl") {
$mode = "watch";
}
} else if ((Math.abs($x) < 80) && (Math.abs($y) < 80)) {
$mode = "bite";
} else {
$mode = "chase";
}
}
if (($mode == "watch") && (random(60) == 1)) {
$mode = "prowl";
}
if (($mode == "prowl") && (random(101 - $aggression) == 1)) {
$mode = "chase";
}
if ($mode == "hurt") {
_y = (_y - ($diry * $recoil));
_x = (_x - ($dirx * $recoil));
$recoil = $recoil * 0.93;
}
}
if (this.hitTest(_root.man.AXE.hit) && ($mode != "hurt")) {
$recoil = 4;
_root.$health = _root.$health - 5;
$aggression = $aggression + 10;
if ($mode == "flee") {
$fear = 50;
} else {
$fear = $fear + 10;
}
if ($aggression >= 100) {
$aggression = 100;
}
if ((_root.$health <= 0) && ($dead != true)) {
gotoAndPlay ("dead");
$mode = "dying";
$dead = true;
if (random(2) == 1) {
_yscale = (-_yscale);
}
}
$mode = "hurt";
}
}
onClipEvent (enterFrame) {
if ((_y < 180) || (_y > 240)) {
if (_x < 0) {
_x = 0;
}
if (_x > _root.$roomwidth) {
_x = _root.$roomwidth;
}
}
if ((_x < 190) || (_x > 360)) {
if (_y < 0) {
_y = 0;
}
if (_y > _root.$roomheight) {
_y = _root.$roomheight;
}
}
if ($mode == "dying") {
$diecount--;
_alpha = $diecount;
if ($diecount == 0) {
_parent.play();
}
}
}
Symbol 908 MovieClip [blob] Frame 30
_root.$raptorno--;
this.removeMovieClip();
stop();
Symbol 944 MovieClip [mc0] Frame 1
if ($mode == "bite") {
gotoAndPlay (61);
} else {
stop();
}
Symbol 944 MovieClip [mc0] Frame 30
stop();
if ($mode == "bite") {
gotoAndPlay (61);
}
Symbol 944 MovieClip [mc0] Frame 60
if ($mode != "bite") {
gotoAndPlay (1);
}
Symbol 944 MovieClip [mc0] Frame 74
s = new Sound();
if (random(2) == 1) {
s.attachSound("raptor bite");
} else {
s.attachSound("raptor bite 2");
}
s.start();
Instance of Symbol 745 MovieClip in Symbol 944 MovieClip [mc0] Frame 74
onClipEvent (load) {
if (_parent.$bloodshow) {
_visible = true;
s = new Sound();
if (random(2) == 1) {
s.attachSound("raptor bite");
} else {
s.attachSound("raptor bite 2");
}
s.start();
} else {
_visible = false;
}
}
Instance of Symbol 100 MovieClip in Symbol 944 MovieClip [mc0] Frame 74
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.all.man._root.health = _root.all.man._root.health - 1;
_parent.$bloodshow = true;
} else {
_parent.$bloodshow = false;
}
}
Symbol 944 MovieClip [mc0] Frame 80
$bloodshow = false;
Symbol 944 MovieClip [mc0] Frame 82
gotoAndPlay (1);
Symbol 944 MovieClip [mc0] Frame 83
s = new Sound();
if (random(2) == 1) {
s.attachSound("raptor die 1");
} else {
s.attachSound("raptor die 2");
}
s.start();
Symbol 944 MovieClip [mc0] Frame 97
stop();
_root.all.attachMovie("bloodpool", "bloodpool" + $order, $order - 500);
setProperty(_root.all["bloodpool" + $order], _x , _x);
setProperty(_root.all["bloodpool" + $order], _y , _y);
Symbol 944 MovieClip [mc0] Frame 98
prevFrame();
Symbol 945 MovieClip [raptor] Frame 1
stop();
Instance of Symbol 944 MovieClip [mc0] "raptor" in Symbol 945 MovieClip [raptor] Frame 1
onClipEvent (load) {
$dead = false;
$mode = "chase";
$basespeed = 0;
$topspeed = 5 + random(4);
$speed = 0;
$accel = 0.2;
$wait = 0;
$end = 10;
$health = 15;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$diecount = 180;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
if ($mode == "paralysed") {
_root.monsterhurt(this);
if (random(200) == 1) {
s = new Sound();
s.attachSound("paralysis");
s.start();
}
}
if ($mode == "prowl") {
if (random(50) == 1) {
s = new Sound();
s.attachSound("raptor idle");
s.start();
}
}
if ($mode == "watch") {
if (random(50) == 1) {
s = new Sound();
s.attachSound("raptor spot player " + (random(2) + 1));
s.start();
}
}
if (($mode == "hurt") or ($mode == "flee")) {
if (random(20) == 1) {
s = new Sound();
s.attachSound("raptor flinch " + (random(2) + 1));
s.start();
}
}
if (($fear > 100) && ($mode != "hurt")) {
$mode = "flee";
if (random(5) == 1) {
$fear--;
}
}
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($mode == "prowl") {
play();
_y = (_y + ($diry * 2));
_x = (_x + ($dirx * 2));
$wait++;
if ($wait > $end) {
$on = random(2);
$wait = 0;
$end = random(15) + 5;
$turnspeed = random(10);
}
if ($on == 1) {
_rotation = (_rotation + $turnspeed);
} else {
_rotation = (_rotation - $turnspeed);
}
}
if (($mode == "chase") || ($mode == "flee")) {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
if ($mode == "bite") {
play();
}
} else if ($dead != true) {
$mode = "dying";
$dead = true;
if (random(2) == 1) {
_yscale = (-_yscale);
}
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if (($health > 0) && ($mode != "paralysed")) {
if ($mode != "prowl") {
if ($mode != "flee") {
_rotation = (_rotation - 180);
}
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
if ($mode != "flee") {
_rotation = (_rotation + 180);
}
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
if ($mode != "prowl") {
$mode = "watch";
}
} else if ((Math.abs($x) < 80) && (Math.abs($y) < 80)) {
if ((Math.abs($x) < 20) && (Math.abs($y) < 20)) {
$mode = "flee";
} else {
$mode = "bite";
}
} else {
$mode = "chase";
}
}
if (($mode == "watch") && (random(60) == 1)) {
$mode = "prowl";
}
if (($mode == "prowl") && (random(102 - $aggression) == 1)) {
$mode = "chase";
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 945 MovieClip [raptor] Frame 50
_root.$enemyno--;
this.removeMovieClip();
Instance of Symbol 957 MovieClip in Symbol 997 MovieClip Frame 10
onClipEvent (load) {
s = new Sound(this);
if (_parent.$mode == "bite") {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
if ((random(2) == 1) && (_visible == true)) {
s = new Sound(this);
s.attachSound("bat bite " + (random(2) + 1));
s.start();
_root.health = _root.health - 1;
}
}
}
Symbol 997 MovieClip Frame 29
if ($health > 0) {
gotoAndPlay (1);
} else {
s = new Sound(this);
s.attachSound("bat die " + (random(2) + 1));
s.start();
}
Symbol 997 MovieClip Frame 60
stop();
Symbol 998 MovieClip [bat] Frame 1
stop();
Instance of Symbol 997 MovieClip in Symbol 998 MovieClip [bat] Frame 1
onClipEvent (load) {
this.swapDepths(random(1000) + 1000);
$mode = "chase";
$basespeed = 0;
$topspeed = 4 + random(4);
$speed = 0;
$accel = 0.2;
$wait = 0;
$end = 10;
$health = 10;
$aggression = random(100);
$sense = random(100) + 80;
$diecount = 120;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
_x = $x;
_y = $y;
}
onClipEvent (enterFrame) {
if ($mode == "paralysed") {
_root.monsterhurt(this);
if (random(200) == 1) {
s = new Sound();
s.attachSound("paralysis");
s.start();
}
}
if ($health > 0) {
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if ($mode == "prowl") {
play();
_y = (_y + ($diry * 2));
_x = (_x + ($dirx * 2));
$wait++;
if ($wait > $end) {
$on = random(2);
$wait = 0;
$end = random(15) + 5;
$turnspeed = random(10);
}
if ($on == 1) {
_rotation = (_rotation + $turnspeed);
} else {
_rotation = (_rotation - $turnspeed);
}
}
if ($mode == "hurt") {
if (random(10) == 1) {
s = new Sound(this);
s.attachSound("bat flinch " + (random(2) + 1));
s.start();
}
}
if ($mode == "prowl") {
if (random(80) == 1) {
s = new Sound(this);
s.attachSound("bat idle " + (random(2) + 1));
s.start();
}
}
if ($mode == "chase") {
if (random(50) == 1) {
s = new Sound(this);
s.attachSound("bat spot player " + (random(2) + 1));
s.start();
}
}
if (($mode == "chase") || ($mode == "bite")) {
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
if (($mode = "bite" && ($speed >= ($topspeed - 1)))) {
$speed = $topspeed - 1;
}
$speed = $speed + $accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
} else if ($dead != true) {
gotoAndPlay ("dead");
$dead = true;
$mode = "dying";
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if (($health > 0) && ($mode != "paralysed")) {
if ($mode != "prowl") {
_rotation = (_rotation - 180);
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 6));
if ($mode != "flee") {
_rotation = (_rotation + 180);
}
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
$mode = "prowl";
} else if ((Math.abs($x) < 45) && (Math.abs($y) < 45)) {
$mode = "bite";
} else {
$mode = "chase";
}
}
if (($mode == "prowl") && (random(102 - $aggression) == 1)) {
$mode = "chase";
}
if (($mode == "hurt") || ($mode == dying)) {
_y = (_y - ($diry * $recoil));
_x = (_x - ($dirx * $recoil));
$recoil = $recoil * 0.93;
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
}
onClipEvent (enterFrame) {
if (_x < 0) {
_x = 0;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < 0) {
_y = 0;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
if (($health <= 0) && ($dead != true)) {
gotoAndPlay ("dead");
$mode = "dying";
$dead = true;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
}
Symbol 998 MovieClip [bat] Frame 35
_root.$enemyno--;
this.removeMovieClip();
stop();
Symbol 1001 MovieClip [blackfade] Frame 50
removeMovieClip(this);
Symbol 1004 MovieClip [fireball] Frame 1
if ($i < 1) {
$i = 1;
}
Instance of Symbol 100 MovieClip in Symbol 1004 MovieClip [fireball] Frame 1
onClipEvent (load) {
_visible = false;
i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.health--;
i++;
if (i > 3) {
_parent.removeMovieClip();
}
}
}
Symbol 1004 MovieClip [fireball] Frame 4
$i++;
if ($i > 100) {
removeMovieClip(this);
}
Symbol 1009 MovieClip Frame 1
stop();
Symbol 1009 MovieClip Frame 15
stop();
Symbol 1009 MovieClip Frame 16
gotoAndStop (31);
Symbol 1010 MovieClip [king] Frame 1
pawn._x = 175;
pawn._y = 210;
Instance of Symbol 1009 MovieClip "pawn" in Symbol 1010 MovieClip [king] Frame 1
onClipEvent (load) {
$health = 1;
}
onClipEvent (enterFrame) {
if (hitTest(_root.all.dball)) {
_root.all.dball.gotoAndPlay(3);
play();
}
if ($health < 1) {
play();
}
_rotation = (_rotation - 180);
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
_rotation = (_rotation + 180);
}
Symbol 1010 MovieClip [king] Frame 2
stop();
Symbol 1021 MovieClip Frame 1
gotoAndPlay(random(20) + 1);
Symbol 1024 MovieClip Frame 285
_root.all.attachMovie("gas", "gas", i);
_root.all.gas._x = _parent._x;
_root.all.gas._y = _parent._y;
Instance of Symbol 100 MovieClip in Symbol 1024 MovieClip Frame 304
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.health--;
}
}
Symbol 1029 MovieClip Frame 1
if ($health <= 0) {
gotoAndPlay ("die");
}
Symbol 1029 MovieClip Frame 120
i++;
_root.all.attachMovie("swarm2", "mc" + i, i);
_root.all["mc" + i].swarminside._x = _x;
_root.all["mc" + i].swarminside._y = _y;
gotoAndPlay (1);
Symbol 1029 MovieClip Frame 180
stop();
Symbol 1030 MovieClip [bossbrainshell] Frame 1
stop();
Instance of Symbol 1029 MovieClip in Symbol 1030 MovieClip [bossbrainshell] Frame 1
onClipEvent (load) {
i = 100;
$i = _root.all.command1.i + random(1000);
$dead = false;
$mode = "watch";
$basespeed = 0;
$topspeed = 2;
$speed = 0;
$accel = 0.2;
$wait = 0;
$end = 10;
$health = 100;
$aggression = random(100);
$fear = random(100);
$sense = random(200) + 40;
$diecount = 260;
$order = _root.all.command1.i;
$num = random(_root.all.$roomholes) + 1;
_x = _root.all[("$roomhole" + $num) + "x"];
_y = _root.all[("$roomhole" + $num) + "y"];
if (_root.all[("$roomhole" + $num) + "open"] != true) {
_root.all.attachMovie("rubble", "rubble" + $num, 4321 + $num);
_root.all["rubble" + $num]._x = _x;
_root.all["rubble" + $num]._y = _y;
_root.all[("$roomhole" + $num) + "open"] = true;
}
}
onClipEvent (enterFrame) {
if (random(300) == 1) {
s = new Sound(this);
s.attachSound("blob " + (random(2) + 1));
s.start();
}
_rotation = (_rotation - 90);
if (($fear > 100) && ($mode != "hurt")) {
$mode = "flee";
if (random(10) == 1) {
$fear--;
}
}
if ($health > 0) {
if ($mode == "chase") {
if (random(150) == 1) {
$mode = "watch";
}
}
$diry = Math.sin((Math.PI * _rotation) / 180);
$dirx = Math.cos((Math.PI * _rotation) / 180);
if (($mode == "chase") || ($mode == "flee")) {
play();
if ($speed < $basespeed) {
$speed = $basespeed;
}
if ($speed >= $topspeed) {
$speed = $topspeed;
}
$speed = $speed + $accel;
} else {
$speed = $speed * 0.8;
}
_y = (_y + ($diry * $speed));
_x = (_x + ($dirx * $speed));
} else if ($dead != true) {
$mode = "dying";
$dead = true;
_root.conviction = _root.conviction + 2;
gotoAndPlay ("dead");
} else {
$mode = "dying";
}
}
onClipEvent (enterFrame) {
if ($health > 0) {
if ($mode != "flee") {
_rotation = (_rotation - 180);
}
$x = _root.all.man._x - _x;
$y = _root.all.man._y - _y;
$rotation = (Math.atan2($y, $x) * 180) / Math.PI;
$rotationa = $rotation;
$rotationa = $rotationa - _rotation;
if ($rotationa < 0) {
$rotationa = 360 + $rotationa;
}
$rotationa = $rotationa - 180;
_rotation = (_rotation + ($rotationa / 10));
if ($mode != "flee") {
_rotation = (_rotation + 180);
}
if (($mode != "hurt") || ($recoil < 0.2)) {
if ((Math.abs($x) > $sense) && (Math.abs($y) > $sense)) {
$mode = "watch";
} else if ((Math.abs($x) < 80) && (Math.abs($y) < 80)) {
if ((Math.abs($x) < 20) && (Math.abs($y) < 20)) {
$mode = "flee";
$fear++;
} else {
$fear++;
}
} else {
$mode = "chase";
}
}
if (($mode != "hurt") || ($recoil < 0.2)) {
_root.monsterhurt(this);
}
}
if (($mode == "hurt") || ($mode == "dying")) {
ydist = _root.all.man._y - _y;
xdist = _root.all.man._x - _x;
$recrot = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
$diry = Math.sin((Math.PI * $recrot) / 180);
$dirx = Math.cos((Math.PI * $recrot) / 180);
_y = (_y + ($diry * $recoil));
_x = (_x + ($dirx * $recoil));
$recoil = $recoil * 0.8;
}
}
onClipEvent (enterFrame) {
if (_x < 0) {
_x = 0;
}
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_y < 0) {
_y = 0;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if ($mode == "dying") {
_alpha = $diecount;
$diecount--;
if ($diecount < 50) {
_parent.play();
}
}
_rotation = (_rotation + 90);
}
Symbol 1030 MovieClip [bossbrainshell] Frame 30
_root.$enemyno--;
removeMovieClip(this);
Symbol 1040 MovieClip Frame 200
stop();
_root.play();
Symbol 1046 MovieClip Frame 200
stop();
_root.play();
Symbol 1049 MovieClip Frame 200
stop();
_root.play();
Symbol 1052 MovieClip Frame 200
stop();
_root.play();
Symbol 1055 MovieClip Frame 200
stop();
Instance of Symbol 1054 MovieClip in Symbol 1055 MovieClip Frame 200
onClipEvent (enterFrame) {
if (_global.percentloaded == 100) {
_root.play();
}
}
Instance of Symbol 1064 MovieClip in Symbol 1067 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root._xmouse, _root._ymouse)) {
_parent.play();
}
}
Symbol 1087 MovieClip Frame 307
stop();
_root.play();
Symbol 1132 Button
on (press) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 1133 MovieClip Frame 168
_root.play();
stop();
Symbol 1138 MovieClip Frame 105
stop();
Instance of Symbol 1147 MovieClip in Symbol 1148 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i++;
b = _parent.attachMovie("menu sparkle button", "b" + i, i);
b._rotation = random(360);
}
Symbol 1148 MovieClip Frame 36
stop();
Symbol 1152 Button
on (release) {
stopAllSounds();
gotoAndPlay ("menu intro");
}
Symbol 1157 Button
on (press) {
play();
}
Symbol 1162 Button
on (press) {
getURL ("http://dissoluteproductions.com/new_stuff.htm", "_blank");
}
Symbol 1165 Button
on (press) {
getURL ("http://dissoluteproductions.com/about_us.htm", "_blank");
}
Symbol 1169 Button
on (press) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 1171 Button
on (press) {
getURL ("http://dissoluteproductions.com/", "_blank");
}
Instance of Symbol 1172 MovieClip "sparkles" in Symbol 1175 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (random(5) == 1) {
i++;
c = attachMovie("sparkle", "c" + i, i);
c._x = random(240) - 120;
c._y = random(18) - 9;
}
}
Symbol 1186 Button
on (press) {
_parent.play();
}
Symbol 1223 MovieClip Frame 1
_root.health = 79;
_root.rage = 40;
_root.conviction = 68;
_root.$dmana = 100;
_root.$lmana = 100;
_root.lmana = 70;
_root.dmana = 60;
Instance of Symbol 1205 MovieClip in Symbol 1223 MovieClip Frame 1
onClipEvent (enterFrame) {
health = Math.round(_root.health);
gotoAndStop(Math.round(health + 1));
}
Instance of Symbol 1212 MovieClip in Symbol 1223 MovieClip Frame 1
onClipEvent (enterFrame) {
conviction = Math.round(_root.conviction);
gotoAndStop(Math.round(conviction + 1));
}
Instance of Symbol 1218 MovieClip in Symbol 1223 MovieClip Frame 1
onClipEvent (enterFrame) {
rage = Math.round(_root.rage);
gotoAndStop(Math.round(rage + 1));
}
Instance of Symbol 1194 MovieClip in Symbol 1223 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round((_root.lmana / _root.$lmana) * 100) + 1);
}
Instance of Symbol 1197 MovieClip in Symbol 1223 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round((_root.dmana / _root.$dmana) * 100) + 1);
}
Instance of Symbol 1194 MovieClip in Symbol 1226 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round((_root.lmana / _root.$lmana) * 100) + 1);
}
Instance of Symbol 1197 MovieClip in Symbol 1226 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round((_root.dmana / _root.$dmana) * 100) + 1);
}
Symbol 1228 Button
on (press) {
getURL ("http://dissoluteproductions.com/donate.htm", "_blank");
}
Symbol 1254 MovieClip Frame 1
if (!_root.stopped) {
gotoAndPlay(random(4) + 1);
}
Instance of Symbol 1249 MovieClip "wheel3" in Symbol 1254 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
onClipEvent (enterFrame) {
if (_root.stopped == true) {
stop();
}
}
Instance of Symbol 1249 MovieClip "wheel1" in Symbol 1254 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
onClipEvent (enterFrame) {
if (_root.stopped == true) {
stop();
}
}
Instance of Symbol 1249 MovieClip "wheel2" in Symbol 1254 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
onClipEvent (enterFrame) {
if (_root.stopped == true) {
stop();
}
}
Instance of Symbol 1249 MovieClip "wheel4" in Symbol 1254 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
onClipEvent (enterFrame) {
if (_root.stopped == true) {
stop();
}
}
Symbol 1270 MovieClip Frame 2
stop();
Instance of Symbol 1267 MovieClip "sound" in Symbol 1270 MovieClip Frame 2
onClipEvent (enterFrame) {
if (random(100) == 1) {
s = new Sound(this);
if (random(8) > 1) {
s.attachSound("tweet");
} else {
s.attachSound("whinny");
}
s.start();
}
}
Symbol 1270 MovieClip Frame 486
stopAllSounds();
Symbol 1270 MovieClip Frame 487
stop();
_root.gotoAndPlay("level1");
Symbol 1272 Button
on (press) {
_root.skipped = true;
_root.dialog.gotoAndPlay("end");
}
Symbol 1273 Button
on (press) {
play();
}
on (keyPress "<Enter>") {
play();
}
Symbol 1299 MovieClip Frame 2
stop();
Symbol 1299 MovieClip Frame 5
stop();
Symbol 1299 MovieClip Frame 8
stop();
Symbol 1299 MovieClip Frame 11
stop();
Symbol 1299 MovieClip Frame 14
stop();
Symbol 1299 MovieClip Frame 17
stop();
Symbol 1299 MovieClip Frame 20
stop();
Symbol 1299 MovieClip Frame 23
stop();
Symbol 1299 MovieClip Frame 26
stop();
Symbol 1299 MovieClip Frame 29
stop();
Symbol 1299 MovieClip Frame 32
stop();
Symbol 1299 MovieClip Frame 35
stop();
Symbol 1299 MovieClip Frame 38
stop();
Symbol 1299 MovieClip Frame 41
stop();
Symbol 1299 MovieClip Frame 44
stop();
Symbol 1299 MovieClip Frame 47
stop();
Symbol 1299 MovieClip Frame 49
stop();
_root.play();
Symbol 1304 MovieClip Frame 1
if (_parent.stopped == true) {
stop();
}
Symbol 1304 MovieClip Frame 19
if (_parent.stopped == true) {
stop();
}
Symbol 1304 MovieClip Frame 40
if (_parent.stopped == true) {
stop();
}
Symbol 1305 MovieClip Frame 1
stop();
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Instance of Symbol 1304 MovieClip in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(40));
}
Symbol 1305 MovieClip Frame 110
stop();
stopped = true;
Symbol 1312 Button
on (press) {
_root.gotoAndPlay("level1");
}
Symbol 1313 Button
on (press) {
_root.gotoAndPlay("level2");
_root.wgAXE = true;
_root.wgKnives = true;
wgBlades = false;
}
Symbol 1314 Button
on (press) {
_root.gotoAndPlay("level3");
_root.wgAXE = true;
_root.wgKnives = true;
_root.wgLM1 = true;
_root.wgLM2 = true;
_root.wgLM3 = true;
}
Symbol 1315 Button
on (press) {
_root.gotoAndPlay("level4");
_root.wgAXE = true;
_root.wgDM1 = true;
_root.wgDM2 = true;
_root.wgDM3 = true;
_root.wgKnives = true;
_root.wgLM1 = true;
_root.wgLM2 = true;
_root.wgLM3 = true;
}
Symbol 1316 Button
on (press) {
_root.gotoAndPlay("level5");
_root.wgAXE = true;
_root.wgBlades = true;
_root.wgDM1 = true;
_root.wgDM2 = true;
_root.wgDM3 = true;
_root.wgKnives = true;
_root.wgLM1 = true;
_root.wgLM2 = true;
_root.wgLM3 = true;
}
Symbol 1317 Button
on (press) {
_root.gotoAndPlay("level6");
_root.wgAXE = true;
_root.wgBlades = true;
_root.wgDM1 = true;
_root.wgDM2 = true;
_root.wgDM3 = true;
_root.wgKnives = true;
_root.wgLM1 = true;
_root.wgLM2 = true;
_root.wgLM3 = true;
}
Symbol 1318 Button
on (press) {
_root.gotoAndPlay("level7");
_root.wgAXE = true;
_root.wgBlades = true;
_root.wgDM1 = true;
_root.wgDM2 = true;
_root.wgDM3 = true;
_root.wgKnives = true;
_root.wgLM1 = true;
_root.wgLM2 = true;
_root.wgLM3 = true;
}
Symbol 1319 Button
on (press) {
_root.gotoAndPlay("intro");
}
Instance of Symbol 1325 MovieClip in Symbol 1326 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.armourset());
}
onClipEvent (enterFrame) {
gotoAndStop(_root.armourset());
}
Instance of Symbol 1330 MovieClip in Symbol 1331 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.armourset());
}
onClipEvent (enterFrame) {
gotoAndStop(_root.armourset());
}
Instance of Symbol 1333 MovieClip in Symbol 1336 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1335 MovieClip in Symbol 1336 MovieClip Frame 27
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 401 MovieClip "lblade" in Symbol 1343 MovieClip Frame 1
onClipEvent (load) {
if (_root.weapon == "Blades") {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.weapon == "Blades") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 401 MovieClip "rblade" in Symbol 1344 MovieClip Frame 1
onClipEvent (load) {
if (_root.weapon == "Blades") {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.weapon == "Blades") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1342 MovieClip in Symbol 1344 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.armourset());
}
Instance of Symbol 1349 MovieClip in Symbol 1350 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.armourset());
}
onClipEvent (enterFrame) {
gotoAndStop(_root.armourset());
}
Instance of Symbol 1355 MovieClip in Symbol 1357 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round(_root.all.man.pointer));
}
Instance of Symbol 1356 MovieClip "x" in Symbol 1357 MovieClip Frame 1
onClipEvent (enterFrame) {
var point = {x:0, y:0};
localToGlobal(point);
}
Instance of Symbol 1357 MovieClip "seg1" in Symbol 1358 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1356 MovieClip "x" in Symbol 1358 MovieClip Frame 1
onClipEvent (enterFrame) {
var point = {x:0, y:0};
localToGlobal(point);
_root.headx = point.x;
_root.heady = point.y;
_root.headrot = (_root.all.man._rotation + _parent._rotation) - 90;
}
Symbol 1363 MovieClip Frame 1
stop();
Symbol 1363 MovieClip Frame 2
_root.rage = _root.rage + 2;
if (random(2) == 1) {
s = new Sound(this);
s.attachSound("player pain " + (random(8) + 1));
s.start();
}
if (random(2) == 1) {
gotoAndPlay ("1");
} else {
gotoAndPlay ("2");
}
Symbol 1363 MovieClip Frame 9
gotoAndStop (1);
Symbol 1363 MovieClip Frame 16
gotoAndStop (1);
Instance of Symbol 1325 MovieClip in Symbol 1365 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.armourset());
}
onClipEvent (enterFrame) {
gotoAndStop(_root.armourset());
}
Instance of Symbol 408 MovieClip in Symbol 1372 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.charge;
_yscale = _root.charge;
}
Instance of Symbol 449 MovieClip in Symbol 1372 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_yscale = random(_root.charge);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_yscale = random(_root.charge);
}
Instance of Symbol 449 MovieClip in Symbol 1372 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_yscale = random(_root.charge);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_yscale = random(_root.charge);
}
Instance of Symbol 449 MovieClip in Symbol 1372 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_yscale = random(_root.charge);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_yscale = random(_root.charge);
}
Instance of Symbol 449 MovieClip in Symbol 1372 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_yscale = random(_root.charge);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_yscale = random(_root.charge);
}
Instance of Symbol 449 MovieClip in Symbol 1372 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
_yscale = random(_root.charge);
}
onClipEvent (enterFrame) {
_rotation = random(360);
_yscale = random(_root.charge);
}
Symbol 1381 MovieClip Frame 1
_x = random(100);
size = random(100) + 100;
_xscale = size;
_yscale = size;
swirl = (100 - _x) / 10;
Symbol 1382 MovieClip Frame 1
_rotation = random(360);
Instance of Symbol 1381 MovieClip "speck" in Symbol 1382 MovieClip Frame 1
/* no clip actions */
Symbol 1382 MovieClip Frame 2
_rotation = (_rotation + speck.swirl);
Symbol 1382 MovieClip Frame 3
gotoAndPlay (2);
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
/* no clip actions */
Symbol 1415 MovieClip Frame 1
wpos = 0;
_root.normalstat();
if (_root.weapon == "HANDS") {
topspeed = _root.$topspeed;
turn = _root.$turn;
accel = _root.$accel;
evade = _root.$evade;
defense = _root.$defense;
}
if (_root.weapon == "AXE") {
topspeed = _root.$topspeed * 0.95;
turn = _root.$turn * 0.95;
accel = _root.$accel * 0.95;
evade = _root.$evade * 0.9;
defense = _root.$defense * 1.2;
}
if (_root.weapon == "Knives") {
topspeed = _root.$topspeed;
turn = _root.$turn * 1.05;
accel = _root.$accel;
evade = _root.$evade;
defense = _root.$defense;
}
Instance of Symbol 1336 MovieClip "legs" in Symbol 1415 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round(_parent.pointer));
}
Instance of Symbol 1338 MovieClip in Symbol 1415 MovieClip Frame 1
onClipEvent (load) {
if (_root.weapon == "AXE") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1340 MovieClip in Symbol 1415 MovieClip Frame 1
onClipEvent (load) {
if (_root.weapon == "AXE") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 100 MovieClip "hit" in Symbol 1415 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1363 MovieClip in Symbol 1415 MovieClip Frame 1
onClipEvent (load) {
$health = _root.health;
}
onClipEvent (enterFrame) {
if ($health > _root.health) {
play();
}
$health = _root.health;
if (_root.health <= 0) {
_root.health = 0;
_parent.gotoAndPlay("Death");
}
}
Instance of Symbol 1338 MovieClip in Symbol 1415 MovieClip Frame 11
onClipEvent (load) {
if (_root.weapon == "AXE") {
_visible = true;
} else {
_visible = false;
}
}
Symbol 1415 MovieClip Frame 41
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 42
wpos = 1;
_root.topspeed = _root.$topspeed / 3;
Instance of Symbol 1358 MovieClip in Symbol 1415 MovieClip Frame 42
/* no clip actions */
Symbol 1415 MovieClip Frame 54
if (Key.isDown(65)) {
if (_root.chance(1, 0.2, 0.5)) {
gotoAndPlay ("HANDS1-4");
} else {
gotoAndPlay ("HANDS2");
}
}
Symbol 1415 MovieClip Frame 59
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 67
if (Key.isDown(65)) {
if (_root.chance(1, 0.2, 0.5)) {
gotoAndPlay ("HANDS2-3");
} else {
gotoAndPlay ("HANDS1");
}
}
Symbol 1415 MovieClip Frame 72
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 97
if (Key.isDown(65)) {
gotoAndPlay ("HANDS3-2");
}
Symbol 1415 MovieClip Frame 106
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 107
if (Key.isDown(65)) {
gotoAndPlay ("HANDS3-2");
}
Symbol 1415 MovieClip Frame 115
gotoAndPlay ("HANDS2");
Symbol 1415 MovieClip Frame 144
if (Key.isDown(65)) {
gotoAndPlay ("HANDS4-1");
}
Symbol 1415 MovieClip Frame 150
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 158
gotoAndPlay ("HANDS1");
Symbol 1415 MovieClip Frame 159
wpos = 1;
_root.friction = 1;
_root.turn = 0;
Symbol 1415 MovieClip Frame 181
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 182
wpos = 1;
_root.friction = 1;
Symbol 1415 MovieClip Frame 211
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 212
wpos = 1;
_root.friction = 1;
Symbol 1415 MovieClip Frame 241
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 242
wpos = 1;
_root.topspeed = _root.$topspeed * 2;
_root.evade = _root.$evade * 3;
_root.accel = _root.$accel * 4;
Instance of Symbol 1336 MovieClip in Symbol 1415 MovieClip Frame 244
onClipEvent (enterFrame) {
gotoAndStop(Math.round(_parent.pointer));
}
Symbol 1415 MovieClip Frame 264
wpos = 1;
topspeed = _root.$topspeed;
evade = _root.$evade;
accel = _root.$accel;
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 265
wpos = 1;
turn = _root.$turn / 2;
topspeed = _root.$topspeed / 2;
Instance of Symbol 1336 MovieClip in Symbol 1415 MovieClip Frame 267
onClipEvent (enterFrame) {
gotoAndStop(Math.round(_parent.pointer));
}
Symbol 1415 MovieClip Frame 304
if (Key.isDown(65)) {
if (_root.chance(0.5, 0.9, 0.8)) {
gotoAndPlay ("AXE2");
}
}
Symbol 1415 MovieClip Frame 320
turn = _root.$turn;
topspeed = _root.$topspeed;
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 321
if (cont == true) {
gotoAndPlay ("AXE2");
}
Symbol 1415 MovieClip Frame 345
if (Key.isDown(65)) {
switch (random(2)) {
case 0 :
if (_root.chance(0.6, 0.1, 0.6)) {
gotoAndPlay ("AXE3");
}
break;
case 1 :
if (!_root.chance(0.6, 0.2, 0.7)) {
break;
}
gotoAndPlay ("AXE6");
}
}
Symbol 1415 MovieClip Frame 355
turn = _root.$turn;
topspeed = _root.$topspeed;
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 356
wpos = 3;
Symbol 1415 MovieClip Frame 368
if (Key.isDown(65)) {
gotoAndPlay ("AXE4");
}
Symbol 1415 MovieClip Frame 385
turn = _root.$turn;
topspeed = _root.$topspeed;
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 386
wpos = 4;
Instance of Symbol 195 MovieClip "hitstrike" in Symbol 1415 MovieClip Frame 403
onClipEvent (load) {
_global.depthi++;
tmp = _root.all.attachMovie("strike1", "strike", _global.depthi);
var point = {x:0, y:0};
localToGlobal(point);
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp._xscale = 50;
tmp._yscale = 50;
}
Symbol 1415 MovieClip Frame 438
turn = _root.$turn;
topspeed = _root.$topspeed;
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 439
wpos = 6;
Symbol 1415 MovieClip Frame 484
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 485
wpos = 5;
topspeed = _root.$topspeed * 2;
accel = _root.$accel * 2;
turn = _root.$turn / 10;
Symbol 1415 MovieClip Frame 493
play();
Symbol 1415 MovieClip Frame 494
if (Key.isDown(83)) {
prevFrame();
} else {
play();
}
Symbol 1415 MovieClip Frame 509
turn = _root.$turn;
topspeed = _root.$topspeed;
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 510
wpos = 1;
Instance of Symbol 195 MovieClip in Symbol 1415 MovieClip Frame 518
onClipEvent (load) {
_root.knifei++;
tmp = _root.all.attachMovie("knife", "knife" + _root.knifei, _root.knifei + 1010);
var point = {x:0, y:0};
localToGlobal(point);
ydist = _root.all._ymouse - (point.y - _root.all._y);
xdist = _root.all._xmouse - (point.x - _root.all._x);
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotation = rotation - 180;
tmp._rotation = rotation;
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp._xscale = 50;
tmp._yscale = 50;
}
Symbol 1415 MovieClip Frame 526
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 527
wpos = 2;
Instance of Symbol 195 MovieClip in Symbol 1415 MovieClip Frame 539
onClipEvent (load) {
_root.knifei++;
tmp = _root.all.attachMovie("knife", "knife" + _root.knifei, _root.knifei + 1010);
tmp._rotation = _root.all.man._rotation - 180;
var point = {x:0, y:0};
localToGlobal(point);
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp._xscale = 50;
tmp._yscale = 50;
}
Instance of Symbol 195 MovieClip in Symbol 1415 MovieClip Frame 543
onClipEvent (load) {
_root.knifei++;
tmp = _root.all.attachMovie("knife", "knife" + _root.knifei, _root.knifei + 1010);
tmp._rotation = _root.all.man._rotation + 90;
var point = {x:0, y:0};
localToGlobal(point);
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp._xscale = 50;
tmp._yscale = 50;
}
Instance of Symbol 195 MovieClip in Symbol 1415 MovieClip Frame 547
onClipEvent (load) {
_root.knifei++;
tmp = _root.all.attachMovie("knife", "knife" + _root.knifei, _root.knifei + 1010);
tmp._rotation = _root.all.man._rotation;
var point = {x:0, y:0};
localToGlobal(point);
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp._xscale = 50;
tmp._yscale = 50;
}
Instance of Symbol 195 MovieClip in Symbol 1415 MovieClip Frame 551
onClipEvent (load) {
_root.knifei++;
tmp = _root.all.attachMovie("knife", "knife" + _root.knifei, _root.knifei + 1010);
tmp._rotation = _root.all.man._rotation - 90;
var point = {x:0, y:0};
localToGlobal(point);
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp._xscale = 50;
tmp._yscale = 50;
}
Symbol 1415 MovieClip Frame 565
turn = _root.$turn;
topspeed = _root.$topspeed;
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 566
wpos = 2;
Instance of Symbol 195 MovieClip in Symbol 1415 MovieClip Frame 590
onClipEvent (load) {
num = 1;
while (num <= 3) {
_root.knifei++;
tmp = _root.all.attachMovie("knife", "knife" + _root.knifei, _root.knifei + 1010);
tmp._rotation = _root.all.man._rotation + (random(20) - 10);
var point = {x:0, y:0};
localToGlobal(point);
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp._xscale = 50;
tmp._yscale = 50;
num++;
}
}
Symbol 1415 MovieClip Frame 600
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 601
wpos = 1;
_root.charge = 0;
if (_root.lmana >= 10) {
_root.lmana = _root.lmana - 10;
} else {
_root.lmana = 0;
gotoAndPlay ("run");
}
Symbol 1415 MovieClip Frame 608
if (_root.lmana > 0) {
_root.lmana--;
_root.charge++;
} else {
gotoAndPlay (610);
}
play();
Symbol 1415 MovieClip Frame 609
if (_root.charge > 100) {
play();
} else if (Key.isDown(65)) {
prevFrame();
}
Symbol 1415 MovieClip Frame 610
s = new Sound(this);
if (_root.charge < 20) {
s.attachSound("lblast quiet");
} else {
s.attachSound("lblast");
}
s.start();
Symbol 1415 MovieClip Frame 615
_root.charge--;
play();
Instance of Symbol 1374 MovieClip in Symbol 1415 MovieClip Frame 615
onClipEvent (enterFrame) {
_yscale = _root.charge;
}
Symbol 1415 MovieClip Frame 616
if (_root.charge > 0) {
prevFrame();
} else {
play();
}
Symbol 1415 MovieClip Frame 622
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 623
wpos = 1;
_root.charge = 0;
if (_root.lmana >= 10) {
_root.lmana = _root.lmana - 10;
} else {
_root.lmana = 0;
gotoAndPlay ("run");
}
Symbol 1415 MovieClip Frame 629
if (_root.lmana > 0) {
_root.lmana--;
_root.charge++;
}
play();
Symbol 1415 MovieClip Frame 630
if (_root.charge > 100) {
play();
} else if (Key.isDown(83)) {
prevFrame();
}
Symbol 1415 MovieClip Frame 631
s = new Sound(this);
if (_root.charge < 20) {
s.attachSound("lblast quiet");
} else {
s.attachSound("lblast");
}
s.start();
Symbol 1415 MovieClip Frame 650
_root.charge = 0;
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 651
wpos = 1;
Symbol 1415 MovieClip Frame 657
_root.charge = 0;
_root.charge = 10;
_root.knifei++;
if (_root.lmana >= 10) {
_root.lmana = _root.lmana - 10;
} else {
_root.lmana = 0;
gotoAndPlay (668);
}
tmp = _root.all.attachMovie("dart", "dart" + _root.knifei, _root.knifei + 1010);
tmp._x = (_x + random(20)) - 10;
tmp._y = (_y + random(20)) - 10;
tmp._rotation = random(360);
tmp.speed = random(5) + 5;
tmp.turn = 0.1;
Symbol 1415 MovieClip Frame 667
if (Key.isDown(68) && (_root.lmana >= 10)) {
gotoAndPlay ("lDarts1");
}
Symbol 1415 MovieClip Frame 672
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 673
wpos = 1;
Symbol 1415 MovieClip Frame 689
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 690
wpos = 1;
Symbol 1415 MovieClip Frame 708
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 709
wpos = 1;
Symbol 1415 MovieClip Frame 735
if (Key.isDown(65)) {
if (Math.random() < 0.5) {
gotoAndPlay ("Blades4");
} else {
play();
}
} else {
play();
}
Symbol 1415 MovieClip Frame 742
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 754
if (Key.isDown(65)) {
if (Math.random() < 0.3) {
gotoAndPlay ("Blades5");
} else {
play();
}
} else {
play();
}
Symbol 1415 MovieClip Frame 760
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 787
if (Key.isDown(65)) {
gotoAndPlay ("Blades3");
} else {
play();
}
Symbol 1415 MovieClip Frame 794
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 795
wpos = 1;
_root.dcharge = 0;
if (_root.dmana >= 10) {
_root.dmana = _root.dmana - 10;
} else {
_root.dmana = 0;
gotoAndPlay ("run");
}
Symbol 1415 MovieClip Frame 806
if (_root.dmana > 0) {
_root.dmana--;
_root.dcharge++;
} else {
gotoAndPlay (808);
}
play();
Instance of Symbol 1383 MovieClip in Symbol 1415 MovieClip Frame 806
onClipEvent (enterFrame) {
_xscale = _root.dcharge;
_yscale = _root.dcharge;
}
Symbol 1415 MovieClip Frame 807
if (_root.dcharge > 180) {
play();
} else if (Key.isDown(83)) {
prevFrame();
}
Symbol 1415 MovieClip Frame 808
s = new Sound(this);
if (_root.dcharge < 40) {
s.attachSound("dfear stop quiet");
} else {
s.attachSound("dfear stop");
}
s.start();
Symbol 1415 MovieClip Frame 812
_root.knifei++;
_root.activefearcloud = true;
tmp = _root.all.attachMovie("fearcloud", "fearcloud", _root.knifei + 1010);
tmp._x = _x;
tmp._y = _y;
Instance of Symbol 1383 MovieClip in Symbol 1415 MovieClip Frame 812
onClipEvent (load) {
_xscale = _root.dcharge;
_yscale = _root.dcharge;
}
onClipEvent (enterFrame) {
_xscale = (_xscale * 0.9);
_yscale = (_yscale * 0.9);
}
Symbol 1415 MovieClip Frame 824
_root.dcharge = 0;
Symbol 1415 MovieClip Frame 832
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 833
wpos = 1;
_root.dcharge = 0;
if (_root.dmana >= 20) {
_root.dmana = _root.dmana - 20;
} else {
gotoAndPlay ("run");
}
Symbol 1415 MovieClip Frame 838
s = new Sound(this);
s.attachSound("dball " + (random(2) + 1));
s.start();
Instance of Symbol 195 MovieClip in Symbol 1415 MovieClip Frame 838
onClipEvent (load) {
_root.activefireball = true;
_root.knifei++;
tmp = _root.all.attachMovie("darkfireball", "dBall", _root.knifei + 2010);
tmp._rotation = _root.all.man._rotation;
var point = {x:0, y:0};
localToGlobal(point);
tmp._x = point.x - _root.all._x;
tmp._y = point.y - _root.all._y;
tmp.speed = 10;
tmp.turn = 0.05;
tmp.trail = 1;
}
Symbol 1415 MovieClip Frame 846
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 847
wpos = 1;
_root.dcharge = 0;
Symbol 1415 MovieClip Frame 853
play();
if (_root.dmana >= 10) {
_root.dmana = _root.dmana - 10;
} else {
_root.dmana = 0;
gotoAndPlay (887);
}
Symbol 1415 MovieClip Frame 885
if (Key.isDown(68)) {
if (dmana >= 5) {
_root.dmana = _root.dmana - 5;
gotoAndPlay (869);
}
}
Symbol 1415 MovieClip Frame 902
gotoAndPlay ("run");
Symbol 1415 MovieClip Frame 903
wpos = 1;
_root.weapon = "HANDS";
_root.hold = true;
Symbol 1415 MovieClip Frame 1031
_root.gotoAndPlay("dead");
Symbol 1418 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 1431 MovieClip Frame 1
gotoAndStop(_root.$level);
Symbol 1440 MovieClip Frame 6
gotoAndPlay(random(5) + 1);
Symbol 1458 MovieClip Frame 1
if (_root.$levelover) {
}
Instance of Symbol 100 MovieClip "hit" in Symbol 1458 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1458 MovieClip Frame 2
if (_root.$levelover) {
prevFrame();
}
Symbol 1458 MovieClip Frame 9
stop();
Instance of Symbol 100 MovieClip "hit" in Symbol 1458 MovieClip Frame 20
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1433 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1440 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
fire = new Sound(this);
fire.attachSound("fire");
fire.start(0, 999);
}
onClipEvent (unload) {
fire.stop();
}
Instance of Symbol 1458 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelup = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelleft = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Symbol 1461 MovieClip Frame 1
_visible = false;
Instance of Symbol 1433 MovieClip in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelup = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelleft = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1464 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1464 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1464 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1464 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1464 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelup = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1464 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_visible)) {
play();
if ((((_root.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1464 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1464 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelleft = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1466 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.all.scenechange.play();
}
}
Instance of Symbol 1433 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelup = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1467 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelleft = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1471 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1471 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1471 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1471 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1471 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelup = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1471 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover) {
if (_visible) {
play();
if ((((_root.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1471 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1471 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover) {
if (_visible) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelleft = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Symbol 1472 MovieClip Frame 1
stop();
Symbol 1472 MovieClip Frame 50
_root.all.man.removeMovieClip();
_root.gotoAndPlay("gap");
Symbol 1473 MovieClip Frame 1
$roomwidth = 550;
$roomheight = 400;
Instance of Symbol 1415 MovieClip "man" in Symbol 1473 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
pointer = _currentframe;
moving = function () {
if ((($down == true) && (mdist > 50)) && (_root.hold != true)) {
return(true);
}
};
smoving = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
return(true);
}
};
attacking = function () {
if (wpos != 0) {
return(true);
}
};
}
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
_root.$accel = 2;
if (_root.rage > 0) {
_root.rage = _root.rage - 0.05;
} else {
_root.rage = 0;
}
if (_root.conviction > 0) {
_root.conviction = _root.conviction - 0.05;
} else {
_root.conviction = 0;
}
}
onClipEvent (enterFrame) {
if (_root.hold != true) {
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
}
}
onClipEvent (enterFrame) {
mdist = Math.sqrt(Math.pow(ydist, 2) + Math.pow(xdist, 2));
if (moving()) {
if (_root.speed <= _root.topspeed) {
_root.speed = _root.speed + _root.accel;
} else {
_root.speed = _root.topspeed;
}
} else if (_root.speed > 0.1) {
_root.speed = _root.speed * _root.friction;
} else {
_root.speed = 0;
}
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * _root.speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * _root.speed));
if (smoving()) {
if (Key.isDown(90)) {
if (_root.sidespeed <= _root.topspeed) {
if (_root.sidespeed >= -0.5) {
_root.sidespeed = _root.sidespeed + accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = _root.topspeed;
}
}
if (Key.isDown(88)) {
if (_root.sidespeed >= (-_root.topspeed)) {
if (_root.sidespeed <= 0.5) {
_root.sidespeed = _root.sidespeed - accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = -_root.topspeed;
}
}
} else if ((_root.sidespeed > 0.1) || (sidespeed < -0.1)) {
_root.sidespeed = _root.sidespeed * _root.friction;
} else {
_root.sidespeed = 0;
}
_y = (_y + (Math.sin((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
_x = (_x + (Math.cos((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
}
onClipEvent (enterFrame) {
if (moving() == true) {
if ((pointer + (0.25 * _root.speed)) <= 40) {
pointer = pointer + (0.25 * _root.speed);
} else {
pointer = pointer - 40;
}
if (attacking() != true) {
gotoAndStop(Math.round(pointer));
}
} else {
stopping = true;
pointer = Math.round(pointer);
if (((pointer != 20) && (pointer != 1)) && (pointer != 40)) {
pointer++;
if (attacking() != true) {
gotoAndStop(pointer);
}
} else if (attacking() != true) {
gotoAndStop(pointer);
}
}
if ((rotationa > 5) || (rotationa < -5)) {
rotstep = Math.abs(rotationa) / 100;
if ((pointer + rotstep) <= 40) {
pointer = pointer + rotstep;
} else {
pointer = pointer - 40;
}
}
}
onClipEvent (enterFrame) {
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
}
onClipEvent (enterFrame) {
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (_root.$health <= 0) {
_alpha = (_alpha-1);
}
}
}
onClipEvent (enterFrame) {
if ((_root.weapon == "HANDS") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("HANDS0-1");
}
if (Key.isDown(83)) {
if (Math.random() > ((_root.rage + _root.conviction) / 300)) {
gotoAndPlay ("kick1");
} else if ((Math.random() * _root.rage) > (Math.random() * _root.conviction)) {
gotoAndPlay ("kick2");
} else {
gotoAndPlay ("kick3");
}
}
if (Key.isDown(68)) {
gotoAndPlay ("dodge1");
}
}
if ((_root.weapon == "AXE") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("AXE1");
}
if (Key.isDown(83)) {
gotoAndPlay ("AXE5");
}
}
if ((_root.weapon == "Knives") && (wpos == 0)) {
if (Key.isDown(65)) {
if (_root.knives >= 1) {
_root.knives--;
gotoAndPlay ("Knives1");
}
}
if (Key.isDown(83)) {
if (_root.knives >= 4) {
_root.knives = _root.knives - 4;
gotoAndPlay ("Knives2");
}
}
if (Key.isDown(68)) {
if (_root.knives >= 3) {
_root.knives = _root.knives - 3;
gotoAndPlay ("Knives3");
}
}
}
if ((_root.weapon == "Blades") && (wpos == 0)) {
if (Key.isDown(65)) {
switch (random(2)) {
case 0 :
gotoAndPlay ("Blades1");
break;
case 1 :
gotoAndPlay ("Blades2");
}
}
if (Key.isDown(83)) {
gotoAndPlay ("Blades0-3");
}
if (Key.isDown(68)) {
}
}
if (((_root.weapon == "Light Magic") && (wpos == 0)) && (lmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgLM1 == true) {
gotoAndPlay ("lBeam");
}
}
if (Key.isDown(83)) {
if (_root.wgLM2 == true) {
gotoAndPlay ("lBlast");
}
}
if (Key.isDown(68)) {
if (_root.wgLM3 == true) {
gotoAndPlay ("lDarts");
}
}
}
if (((_root.weapon == "Dark Magic") && (wpos == 0)) && (dmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgDM1 == true) {
if (_root.activefireball == false) {
gotoAndPlay ("dBall");
}
}
}
if (Key.isDown(83)) {
if (_root.wgDM2 == true) {
if (_root.activefearcloud == false) {
gotoAndPlay ("dFear");
}
}
}
if (Key.isDown(68)) {
if (_root.wgDM3 == true) {
gotoAndPlay ("dBind");
}
}
}
}
Instance of Symbol 1418 MovieClip in Symbol 1473 MovieClip Frame 1
onClipEvent (load) {
_x = _root.all.man._x;
_y = _root.all.man._y;
}
onClipEvent (enterFrame) {
if (_root.all.man._x < _x) {
_x = (_x + (((_root.all.man._x - _x) - 20) / 20));
}
if (_root.all.man._x > _x) {
_x = (_x + (((_root.all.man._x - _x) + 20) / 20));
}
if (_root.all.man._y < _y) {
_y = (_y + (((_root.all.man._y - _y) - 20) / 20));
}
if (_root.all.man._y > _y) {
_y = (_y + (((_root.all.man._y - _y) + 20) / 20));
}
}
Symbol 1473 MovieClip Frame 2
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$room = true;
_root.$right = false;
_root.$left = false;
_root.$up = false;
_root.$down = true;
_root.$turnframe = 3;
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 2
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1473 MovieClip Frame 2
onClipEvent (load) {
_root.$enemyno = 0;
$on = true;
}
onClipEvent (enterFrame) {
if (_root.$room0) {
_root.$levelover = true;
} else {
if ($on) {
_root.attachMovie("guardbox", "guardbox", 6754);
_root.guardbox._x = 275;
_root.guardbox._y = 64.7;
_root.$enemyno = 1;
$on = false;
_root.all.attachMovie("guard", "guard", 500);
_root.all.guard._x = 75.7;
_root.all.guard._y = 174;
}
if (_root.$enemyno < 1) {
_root.$levelover = true;
_root.$room0 = true;
}
}
}
Symbol 1473 MovieClip Frame 3
stop();
_root.$turnframe = 3;
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 3
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
_alpha = (_alpha - 2);
}
}
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 108) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1473 MovieClip Frame 4
$roomholes = 4;
$roomhole1x = 20;
$roomhole1y = 20;
$roomhole2x = 520;
$roomhole2y = 20;
$roomhole3x = 520;
$roomhole3y = 380;
$roomhole4x = 20;
$roomhole4y = 380;
$leftside = 0;
$upside = 0;
$roomwidth = 550;
$roomheight = 400;
stop();
_root.$right = true;
_root.$left = true;
_root.$up = true;
_root.$down = true;
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 4
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1473 MovieClip Frame 4
onClipEvent (load) {
_root.attack_info.gotoAndPlay("attack");
test = 0;
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else {
if ($round == 4) {
_root.all.attachMovie("raptor", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 6) {
_root.all.attachMovie("bat", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
}
}
if ((_root.$enemyno < 1) && ($round == 6)) {
$round++;
_root.all.attachMovie("rat", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("rat", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("rat", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("rat", "mc" + i, i);
_root.$enemyno++;
i++;
} else if (_root.$enemyno < 1) {
_root.ammochance();
_root.$levelover = true;
_root.$room1 = true;
}
}
}
Symbol 1473 MovieClip Frame 5
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip "room" in Symbol 1473 MovieClip Frame 5
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 139) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(10);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 122) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(2);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 138) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 95) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1473 MovieClip Frame 6
$roomholes = 1;
$roomhole1x = 150;
$roomhole1y = 150;
$roomwidth = 500;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 7;
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 6
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1473 MovieClip Frame 6
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room2) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("bat", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 6) {
_root.all.attachMovie("bat", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
}
} else if (($round == 6) && (_root.$enemyno < 1)) {
_root.all.attachMovie("chest", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
} else if (_root.$enemyno < 1) {
_root.$levelover = true;
_root.$room2 = true;
}
}
Symbol 1473 MovieClip Frame 7
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 7;
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 7
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 2);
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
}
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 145) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1473 MovieClip Frame 8
$roomholes = 1;
$roomhole1x = 150;
$roomhole1y = 150;
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$right = false;
_root.$left = false;
_root.$up = true;
_root.$down = false;
_root.$turnframe = 9;
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 8
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1473 MovieClip Frame 8
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room3) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("raptor", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 6) {
_root.all.attachMovie("raptor", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
}
} else if (_root.$enemyno < 1) {
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room3 = true;
}
}
Symbol 1473 MovieClip Frame 9
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 9;
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 9
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
_alpha = (_alpha - 2);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
}
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 95) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1473 MovieClip Frame 10
$roomholes = 4;
$roomhole1x = random(500) + 20;
$roomhole1y = random(360) + 20;
$roomhole2x = random(500) + 20;
$roomhole2y = random(360) + 20;
$roomhole3x = random(500) + 20;
$roomhole3y = random(360) + 20;
$roomhole4x = random(500) + 20;
$roomhole4y = random(360) + 20;
$leftside = 0;
$upside = 0;
$roomwidth = 550;
$roomheight = 400;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = true;
_root.$turnframe = 11;
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 10
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1473 MovieClip Frame 10
onClipEvent (load) {
i = 500;
$b = 0;
$round = 1;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room4) {
_root.$levelover = true;
} else if (_root.$room4) {
_root.$levelover = true;
} else if ($creation > 0) {
$b++;
if ($b > 20) {
_root.$enemyno++;
$creation = $creation - 1;
i++;
_root.all.attachMovie("raptor", "mc" + i, i);
if (($round > 1) && ($on != true)) {
$on = true;
_root.$enemyno++;
i++;
_root.all.attachMovie("swarm", "mc" + i, i);
}
if ($round > 2) {
_root.$enemyno++;
i++;
_root.all.attachMovie("bat", "mc" + i, i);
}
$b = 0;
}
} else if (_root.$enemyno == 0) {
if ($round < 3) {
$round++;
$creation = $round;
} else {
_root.ammochance();
_root.$levelover = true;
_root.$room4 = true;
}
}
}
Symbol 1473 MovieClip Frame 11
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 11;
Instance of Symbol 1463 MovieClip "room" in Symbol 1473 MovieClip Frame 11
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 143) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1473 MovieClip Frame 11
onClipEvent (load) {
$centre = true;
}
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 115) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(12);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1473 MovieClip Frame 12
$leftside = -90;
$upside = -60;
$roomwidth = 600;
$roomheight = 750;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = true;
_root.$down = false;
_root.$turnframe = 13;
Instance of Symbol 1464 MovieClip in Symbol 1473 MovieClip Frame 12
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1473 MovieClip Frame 12
onClipEvent (load) {
i = 800;
$b = 0;
$round = 0;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room5) {
_root.$levelover = true;
} else {
if ($round == 0) {
_root.attachMovie("tamerbox", "guardbox", 6754);
_root.guardbox._x = 275;
_root.guardbox._y = 64.7;
_root.$enemyno++;
$round++;
}
if (($round == 1) && (_root.$enemyno == 0)) {
_root.all.attachMovie("tamer", "mc" + i, i);
$round++;
_root.$enemyno++;
}
if (($round == 2) && (_root.$enemyno == 0)) {
_root.all.attachMovie("chest2", "mc" + i, i);
$round++;
_root.$enemyno++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room5 = true;
}
}
}
Symbol 1473 MovieClip Frame 13
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 13;
Instance of Symbol 1464 MovieClip in Symbol 1473 MovieClip Frame 13
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 124) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(10);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1473 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 127) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(16);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1473 MovieClip Frame 14
$leftside = -150;
$upside = 0;
$roomwidth = 66;
$roomheight = 810;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = true;
_root.$turnframe = 15;
Instance of Symbol 1471 MovieClip in Symbol 1473 MovieClip Frame 14
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1473 MovieClip Frame 14
onClipEvent (load) {
i = 500;
$b = 0;
$round = 1;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else if ($creation > 0) {
$b++;
if ($b > 20) {
_root.$enemyno = _root.$enemyno + 4;
$creation = $creation - 1;
i++;
_root.all.attachMovie("raptor", "mc" + i, i);
i++;
_root.all.attachMovie("wizard", "mc" + i, i);
i++;
_root.all.attachMovie("bat", "mc" + i, i);
i++;
_root.all.attachMovie("rat", "mc" + i, i);
$b = 0;
}
} else if (_root.$enemyno == 0) {
if ($round < 0) {
$round++;
$creation = $round;
} else {
_root.$levelover = true;
_root.$room1 = true;
}
}
}
Symbol 1473 MovieClip Frame 15
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 15;
Instance of Symbol 1471 MovieClip in Symbol 1473 MovieClip Frame 15
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1473 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 200) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(10);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 1);
}
Instance of Symbol 1459 MovieClip in Symbol 1473 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 100) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(16);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1473 MovieClip Frame 16
$leftside = -28.2;
$upside = 190;
$roomwidth = 391.8;
$roomheight = 540;
stop();
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 17;
_root.$scenegoto = 2;
Instance of Symbol 1467 MovieClip in Symbol 1473 MovieClip Frame 16
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1473 MovieClip Frame 16
onClipEvent (load) {
_root.$levelover = true;
}
Symbol 1473 MovieClip Frame 17
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 17;
Instance of Symbol 1464 MovieClip in Symbol 1473 MovieClip Frame 17
onClipEvent (load) {
$centre = true;
}
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 127) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(12);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1473 MovieClip Frame 17
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1356 MovieClip "x" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
var point = {x:0, y:0};
localToGlobal(point);
}
Instance of Symbol 1356 MovieClip "x" in Symbol 1476 MovieClip Frame 1
onClipEvent (enterFrame) {
var point = {x:0, y:0};
localToGlobal(point);
}
Instance of Symbol 1356 MovieClip "x" in Symbol 1477 MovieClip Frame 1
onClipEvent (enterFrame) {
var point = {x:0, y:0};
localToGlobal(point);
}
Symbol 1478 MovieClip Frame 1
turn = 0.1;
hlmax = 80;
Instance of Symbol 1475 MovieClip "seg3" in Symbol 1478 MovieClip Frame 1
onClipEvent (load) {
n = 3;
}
onClipEvent (enterFrame) {
_x = (_parent["seg" + (n - 1)].x.point.x - _parent._x);
_y = (_parent["seg" + (n - 1)].x.point.y - _parent._y);
ydist = _parent["seg" + (n - 1)]._y - _y;
xdist = _parent["seg" + (n - 1)]._x - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * _parent.turn));
if ((Math.abs(rotationa) + 10) < _parent.hlmax) {
_xscale = (Math.abs(rotationa) + 10);
} else {
_xscale = _parent.hlmax;
}
}
Instance of Symbol 1476 MovieClip "seg2" in Symbol 1478 MovieClip Frame 1
onClipEvent (load) {
n = 2;
_x = 0;
_y = 0;
}
onClipEvent (enterFrame) {
rotation = _root.headrot;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * _parent.turn));
if ((Math.abs(rotationa) + 10) < _parent.hlmax) {
_xscale = (Math.abs(rotationa) + 10);
} else {
_xscale = _parent.hlmax;
}
}
Instance of Symbol 1477 MovieClip "seg4" in Symbol 1478 MovieClip Frame 1
onClipEvent (load) {
n = 4;
}
onClipEvent (enterFrame) {
_x = (_parent["seg" + (n - 1)].x.point.x - _parent._x);
_y = (_parent["seg" + (n - 1)].x.point.y - _parent._y);
ydist = _parent["seg" + (n - 1)]._y - _y;
xdist = _parent["seg" + (n - 1)]._x - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * _parent.turn));
if ((Math.abs(rotationa) + 10) < _parent.hlmax) {
_xscale = (Math.abs(rotationa) + 10);
} else {
_xscale = _parent.hlmax;
}
}
Symbol 1500 Button
on (release) {
_root.$scenegoto = _root.$level;
_root.gotoAndPlay("gap");
}
Symbol 1505 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 1509 Button
on (press) {
getURL ("http://dissoluteproductions.com/", "_blank");
}
Instance of Symbol 1483 MovieClip in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
health = Math.round(_root.health);
gotoAndStop(Math.round(health + 1));
}
Instance of Symbol 1486 MovieClip in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
conviction = Math.round(_root.conviction);
gotoAndStop(Math.round(conviction + 1));
}
Instance of Symbol 1489 MovieClip in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
rage = Math.round(_root.rage);
gotoAndStop(Math.round(rage + 1));
}
Instance of Symbol 1194 MovieClip in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round((_root.lmana / _root.$lmana) * 100) + 1);
}
Instance of Symbol 1197 MovieClip in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.round((_root.dmana / _root.$dmana) * 100) + 1);
}
Instance of Symbol 1495 MovieClip in Symbol 1510 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Symbol 1516 MovieClip Frame 1
stop();
Symbol 1516 MovieClip Frame 200
stop();
Symbol 1516 MovieClip Frame 400
this.unloadMovie();
Symbol 1522 MovieClip Frame 1
stop();
Instance of Symbol 1522 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 2) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 4) {
play();
}
} else if (_root.$room1) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 6) {
play();
}
} else if (_root.$room2) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 8) {
play();
}
} else if (_root.$room3) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 10) {
play();
}
} else if (_root.$room4) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 12) {
play();
}
} else if (_root.$room5) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 14) {
play();
}
}
Instance of Symbol 1433 MovieClip in Symbol 1525 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1525 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1525 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1525 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1525 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelup = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1525 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1525 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1525 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.$levelup != true) && (_root.$levelleft != true)) && (_root.$levelright != true)) && (_root.$leveldown != true)) {
if (this.hit.hitTest(_root.man.hit)) {
_root.$levelleft = true;
_root.gotoAndStop(_root._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1528 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1528 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1528 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1528 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_visible)) {
play();
if ((((_root.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1528 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1528 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelleft = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1532 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.all.scenechange.play();
_root.wgLM1 = true;
_root.wgLM2 = true;
_root.wgLM3 = true;
_root.attachMovie("waanim", "waanim", 4991);
_root.waanim._x = 275;
_root.waanim._y = 200;
_root.waanim.item = "lmagic";
}
}
Instance of Symbol 1433 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelup = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.$levelup != true) && (_root.$levelleft != true)) && (_root.$levelright != true)) && (_root.$leveldown != true)) {
if (this.hit.hitTest(_root.man.hit)) {
_root.$levelleft = true;
_root.gotoAndStop(_root._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1537 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.all.man.hit)) {
_root.all.scenechange.play();
_root.wgDM1 = true;
_root.wgDM2 = true;
_root.wgDM3 = true;
_root.attachMovie("waanim", "waanim", 4991);
_root.waanim._x = 275;
_root.waanim._y = 200;
_root.waanim.item = "dmagic";
}
}
Instance of Symbol 1433 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1433 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$up) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelup = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$right) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$levelright = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$down) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.$levelover && (_root.$down)) {
play();
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (this.hit.hitTest(_root.all.man.hit)) {
_root.all.$leveldown = true;
_root.all.gotoAndStop(_root.all._root.$turnframe);
}
}
}
}
Instance of Symbol 1458 MovieClip in Symbol 1538 MovieClip Frame 1
onClipEvent (load) {
if (_parent.$centre) {
if (_root.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_parent.$centre != true) {
gotoAndPlay (1);
if (_parent.$left) {
_visible = true;
} else {
_visible = false;
}
}
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.$levelover) {
play();
if ((((_root.$levelup != true) && (_root.$levelleft != true)) && (_root.$levelright != true)) && (_root.$leveldown != true)) {
if (this.hit.hitTest(_root.man.hit)) {
_root.$levelleft = true;
_root.gotoAndStop(_root._root.$turnframe);
}
}
}
}
}
Symbol 1539 MovieClip Frame 1
$roomwidth = 550;
$roomheight = 400;
i = 10;
while (i != 0) {
_root["$room" + i] = false;
i--;
}
Instance of Symbol 1415 MovieClip "man" in Symbol 1539 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
pointer = _currentframe;
moving = function () {
if ((($down == true) && (mdist > 50)) && (_root.hold != true)) {
return(true);
}
};
smoving = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
return(true);
}
};
attacking = function () {
if (wpos != 0) {
return(true);
}
};
}
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
_root.$accel = 2;
if (_root.rage > 0) {
_root.rage = _root.rage - 0.05;
} else {
_root.rage = 0;
}
if (_root.conviction > 0) {
_root.conviction = _root.conviction - 0.05;
} else {
_root.conviction = 0;
}
}
onClipEvent (enterFrame) {
if (_root.hold != true) {
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
}
}
onClipEvent (enterFrame) {
mdist = Math.sqrt(Math.pow(ydist, 2) + Math.pow(xdist, 2));
if (moving()) {
if (_root.speed <= _root.topspeed) {
_root.speed = _root.speed + _root.accel;
} else {
_root.speed = _root.topspeed;
}
} else if (_root.speed > 0.1) {
_root.speed = _root.speed * _root.friction;
} else {
_root.speed = 0;
}
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * _root.speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * _root.speed));
if (smoving()) {
if (Key.isDown(90)) {
if (_root.sidespeed <= _root.topspeed) {
if (_root.sidespeed >= -0.5) {
_root.sidespeed = _root.sidespeed + accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = _root.topspeed;
}
}
if (Key.isDown(88)) {
if (_root.sidespeed >= (-_root.topspeed)) {
if (_root.sidespeed <= 0.5) {
_root.sidespeed = _root.sidespeed - accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = -_root.topspeed;
}
}
} else if ((_root.sidespeed > 0.1) || (sidespeed < -0.1)) {
_root.sidespeed = _root.sidespeed * _root.friction;
} else {
_root.sidespeed = 0;
}
_y = (_y + (Math.sin((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
_x = (_x + (Math.cos((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
}
onClipEvent (enterFrame) {
if (moving() == true) {
if ((pointer + (0.25 * _root.speed)) <= 40) {
pointer = pointer + (0.25 * _root.speed);
} else {
pointer = pointer - 40;
}
if (attacking() != true) {
gotoAndStop(Math.round(pointer));
}
} else {
stopping = true;
pointer = Math.round(pointer);
if (((pointer != 20) && (pointer != 1)) && (pointer != 40)) {
pointer++;
if (attacking() != true) {
gotoAndStop(pointer);
}
} else if (attacking() != true) {
gotoAndStop(pointer);
}
}
if ((rotationa > 5) || (rotationa < -5)) {
rotstep = Math.abs(rotationa) / 100;
if ((pointer + rotstep) <= 40) {
pointer = pointer + rotstep;
} else {
pointer = pointer - 40;
}
}
}
onClipEvent (enterFrame) {
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
}
onClipEvent (enterFrame) {
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (_root.$health <= 0) {
_alpha = (_alpha-1);
}
}
}
onClipEvent (enterFrame) {
if ((_root.weapon == "HANDS") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("HANDS0-1");
}
if (Key.isDown(83)) {
if (Math.random() > ((_root.rage + _root.conviction) / 300)) {
gotoAndPlay ("kick1");
} else if ((Math.random() * _root.rage) > (Math.random() * _root.conviction)) {
gotoAndPlay ("kick2");
} else {
gotoAndPlay ("kick3");
}
}
if (Key.isDown(68)) {
gotoAndPlay ("dodge1");
}
}
if ((_root.weapon == "AXE") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("AXE1");
}
if (Key.isDown(83)) {
gotoAndPlay ("AXE5");
}
}
if ((_root.weapon == "Knives") && (wpos == 0)) {
if (Key.isDown(65)) {
if (_root.knives >= 1) {
_root.knives--;
gotoAndPlay ("Knives1");
}
}
if (Key.isDown(83)) {
if (_root.knives >= 4) {
_root.knives = _root.knives - 4;
gotoAndPlay ("Knives2");
}
}
if (Key.isDown(68)) {
if (_root.knives >= 3) {
_root.knives = _root.knives - 3;
gotoAndPlay ("Knives3");
}
}
}
if ((_root.weapon == "Blades") && (wpos == 0)) {
if (Key.isDown(65)) {
switch (random(2)) {
case 0 :
gotoAndPlay ("Blades1");
break;
case 1 :
gotoAndPlay ("Blades2");
}
}
if (Key.isDown(83)) {
gotoAndPlay ("Blades0-3");
}
if (Key.isDown(68)) {
}
}
if (((_root.weapon == "Light Magic") && (wpos == 0)) && (lmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgLM1 == true) {
gotoAndPlay ("lBeam");
}
}
if (Key.isDown(83)) {
if (_root.wgLM2 == true) {
gotoAndPlay ("lBlast");
}
}
if (Key.isDown(68)) {
if (_root.wgLM3 == true) {
gotoAndPlay ("lDarts");
}
}
}
if (((_root.weapon == "Dark Magic") && (wpos == 0)) && (dmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgDM1 == true) {
if (_root.activefireball == false) {
gotoAndPlay ("dBall");
}
}
}
if (Key.isDown(83)) {
if (_root.wgDM2 == true) {
if (_root.activefearcloud == false) {
gotoAndPlay ("dFear");
}
}
}
if (Key.isDown(68)) {
if (_root.wgDM3 == true) {
gotoAndPlay ("dBind");
}
}
}
}
Instance of Symbol 1418 MovieClip in Symbol 1539 MovieClip Frame 1
onClipEvent (load) {
_x = _root.all.man._x;
_y = _root.all.man._y;
}
onClipEvent (enterFrame) {
if (_root.all.man._x < _x) {
_x = (_x + (((_root.all.man._x - _x) - 20) / 20));
}
if (_root.all.man._x > _x) {
_x = (_x + (((_root.all.man._x - _x) + 20) / 20));
}
if (_root.all.man._y < _y) {
_y = (_y + (((_root.all.man._y - _y) - 20) / 20));
}
if (_root.all.man._y > _y) {
_y = (_y + (((_root.all.man._y - _y) + 20) / 20));
}
}
Symbol 1539 MovieClip Frame 2
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$room = true;
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 3;
Instance of Symbol 1461 MovieClip "command1" in Symbol 1539 MovieClip Frame 2
onClipEvent (load) {
_root.$levelover = true;
}
Instance of Symbol 1525 MovieClip in Symbol 1539 MovieClip Frame 2
onClipEvent (load) {
$centre = true;
}
Symbol 1539 MovieClip Frame 3
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 3;
Instance of Symbol 1463 MovieClip in Symbol 1539 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 130) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1539 MovieClip Frame 3
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
_alpha = (_alpha - 2);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
}
Symbol 1539 MovieClip Frame 4
$roomholes = 4;
$leftside = 0;
$upside = 20;
$roomwidth = 550;
$roomheight = 430;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip in Symbol 1539 MovieClip Frame 4
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1539 MovieClip Frame 4
onClipEvent (load) {
test = 0;
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else {
if ($round == 4) {
_root.all.attachMovie("wizard", "mc" + i, i);
_root.$enemyno++;
i++;
$round = 6;
}
if ((_root.$enemyno < 1) && ($round == 6)) {
$round++;
_root.all.attachMovie("raptor", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
} else if (_root.$enemyno < 1) {
_root.$levelover = true;
_root.$room1 = true;
}
}
}
Symbol 1539 MovieClip Frame 5
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip "room" in Symbol 1539 MovieClip Frame 5
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1539 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1539 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 130) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(2);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1539 MovieClip Frame 6
$roomholes = 4;
$roomhole1x = 50;
$roomhole1y = 50;
$roomhole2x = 500;
$roomhole2y = 50;
$roomhole3x = 500;
$roomhole3y = 360;
$roomhole4x = 50;
$roomhole4y = 360;
$leftside = 0;
$upside = 20;
$roomwidth = 550;
$roomheight = 430;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = true;
_root.$down = false;
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip in Symbol 1539 MovieClip Frame 6
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1539 MovieClip Frame 6
onClipEvent (load) {
test = 0;
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room2) {
_root.$levelover = true;
} else {
if ($round == 4) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 6) {
_root.all.attachMovie("swarm", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
}
}
if (((_root.$enemyno < 1) && ($round > 5)) && ($round < 12)) {
while ($round < 12) {
$round++;
_root.all.attachMovie("swarm", "mc" + i, i);
_root.$enemyno++;
i++;
}
}
if (((_root.$enemyno < 1) && ($round > 11)) && ($round < 15)) {
while ($round < 16) {
$round++;
_root.all.attachMovie("swarm", "mc" + i, i);
_root.$enemyno++;
i++;
}
}
if (((_root.$enemyno < 1) && ($round > 15)) && ($round < 23)) {
while ($round < 23) {
$round++;
_root.all.attachMovie("swarm", "mc" + i, i);
_root.$enemyno++;
i++;
}
}
if (((_root.$enemyno < 1) && ($round > 22)) && ($round < 30)) {
while ($round < 30) {
$round++;
_root.all.attachMovie("swarm", "mc" + i, i);
_root.$enemyno++;
i++;
}
} else if (_root.$enemyno < 1) {
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room2 = true;
}
}
}
Symbol 1539 MovieClip Frame 7
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip "room" in Symbol 1539 MovieClip Frame 7
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1539 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1528 MovieClip in Symbol 1539 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 136) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1539 MovieClip Frame 8
$roomholes = 4;
$roomhole1x = 200;
$roomhole1y = 200;
$roomhole2x = 360;
$roomhole2y = 200;
$roomhole3x = 360;
$roomhole3y = 300;
$roomhole4x = 200;
$roomhole4y = 300;
$leftside = -50;
$upside = -240;
$roomwidth = 600;
$roomheight = 570;
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = true;
_root.$turnframe = 9;
Instance of Symbol 1528 MovieClip in Symbol 1539 MovieClip Frame 8
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1539 MovieClip Frame 8
onClipEvent (load) {
test = 0;
i = 500;
$b = 0;
$round = 3;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room3) {
_root.$levelover = true;
} else {
if ($round == 3) {
_root.attachMovie("mystery1box", "guardbox", 6754);
_root.guardbox._x = 275;
_root.guardbox._y = 64.7;
_root.$enemyno++;
$round++;
}
if (($round == 4) && (_root.$enemyno < 1)) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 6) {
_root.all.attachMovie("redwizard", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
}
$round = 10;
}
if (((_root.$enemyno < 1) && ($round > 5)) && ($round < 10)) {
$round++;
_root.all.attachMovie("redwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 10) {
$round++;
_root.all.attachMovie("wizard", "mc" + i, i);
_root.$enemyno++;
i++;
}
}
if (((_root.$enemyno < 1) && ($round > 9)) && ($round < 13)) {
$round++;
_root.all.attachMovie("redwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 13) {
$round++;
_root.all.attachMovie("wizard", "mc" + i, i);
_root.$enemyno++;
i++;
}
} else if (_root.$enemyno < 1) {
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room3 = true;
}
}
}
Symbol 1539 MovieClip Frame 9
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 9;
Instance of Symbol 1528 MovieClip in Symbol 1539 MovieClip Frame 9
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1539 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 136) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1533 MovieClip in Symbol 1539 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 130) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(10);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1538 MovieClip in Symbol 1539 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 136) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(11);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1539 MovieClip Frame 10
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 9;
_root.$scenegoto = 3;
Instance of Symbol 1533 MovieClip in Symbol 1539 MovieClip Frame 10
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1539 MovieClip Frame 10
onClipEvent (enterFrame) {
_root.$levelover = false;
}
Symbol 1539 MovieClip Frame 11
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$scenegoto = 3;
Instance of Symbol 1538 MovieClip in Symbol 1539 MovieClip Frame 11
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1522 MovieClip in Symbol 1541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 2) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1541 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 4) {
play();
}
} else if (_root.$room1) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 10) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1541 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 6) {
play();
}
} else if (_root.$room2) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 8) {
play();
}
} else if (_root.$room3) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 11) {
play();
}
}
}
Symbol 1542 MovieClip Frame 1
i = 10;
while (i != 0) {
_root["$room" + i] = false;
i--;
}
Instance of Symbol 1415 MovieClip "man" in Symbol 1542 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
pointer = _currentframe;
moving = function () {
if ((($down == true) && (mdist > 50)) && (_root.hold != true)) {
return(true);
}
};
smoving = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
return(true);
}
};
attacking = function () {
if (wpos != 0) {
return(true);
}
};
}
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
_root.$accel = 2;
if (_root.rage > 0) {
_root.rage = _root.rage - 0.05;
} else {
_root.rage = 0;
}
if (_root.conviction > 0) {
_root.conviction = _root.conviction - 0.05;
} else {
_root.conviction = 0;
}
}
onClipEvent (enterFrame) {
if (_root.hold != true) {
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
}
}
onClipEvent (enterFrame) {
mdist = Math.sqrt(Math.pow(ydist, 2) + Math.pow(xdist, 2));
if (moving()) {
if (_root.speed <= _root.topspeed) {
_root.speed = _root.speed + _root.accel;
} else {
_root.speed = _root.topspeed;
}
} else if (_root.speed > 0.1) {
_root.speed = _root.speed * _root.friction;
} else {
_root.speed = 0;
}
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * _root.speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * _root.speed));
if (smoving()) {
if (Key.isDown(90)) {
if (_root.sidespeed <= _root.topspeed) {
if (_root.sidespeed >= -0.5) {
_root.sidespeed = _root.sidespeed + accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = _root.topspeed;
}
}
if (Key.isDown(88)) {
if (_root.sidespeed >= (-_root.topspeed)) {
if (_root.sidespeed <= 0.5) {
_root.sidespeed = _root.sidespeed - accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = -_root.topspeed;
}
}
} else if ((_root.sidespeed > 0.1) || (sidespeed < -0.1)) {
_root.sidespeed = _root.sidespeed * _root.friction;
} else {
_root.sidespeed = 0;
}
_y = (_y + (Math.sin((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
_x = (_x + (Math.cos((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
}
onClipEvent (enterFrame) {
if (moving() == true) {
if ((pointer + (0.25 * _root.speed)) <= 40) {
pointer = pointer + (0.25 * _root.speed);
} else {
pointer = pointer - 40;
}
if (attacking() != true) {
gotoAndStop(Math.round(pointer));
}
} else {
stopping = true;
pointer = Math.round(pointer);
if (((pointer != 20) && (pointer != 1)) && (pointer != 40)) {
pointer++;
if (attacking() != true) {
gotoAndStop(pointer);
}
} else if (attacking() != true) {
gotoAndStop(pointer);
}
}
if ((rotationa > 5) || (rotationa < -5)) {
rotstep = Math.abs(rotationa) / 100;
if ((pointer + rotstep) <= 40) {
pointer = pointer + rotstep;
} else {
pointer = pointer - 40;
}
}
}
onClipEvent (enterFrame) {
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
}
onClipEvent (enterFrame) {
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (_root.$health <= 0) {
_alpha = (_alpha-1);
}
}
}
onClipEvent (enterFrame) {
if ((_root.weapon == "HANDS") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("HANDS0-1");
}
if (Key.isDown(83)) {
if (Math.random() > ((_root.rage + _root.conviction) / 300)) {
gotoAndPlay ("kick1");
} else if ((Math.random() * _root.rage) > (Math.random() * _root.conviction)) {
gotoAndPlay ("kick2");
} else {
gotoAndPlay ("kick3");
}
}
if (Key.isDown(68)) {
gotoAndPlay ("dodge1");
}
}
if ((_root.weapon == "AXE") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("AXE1");
}
if (Key.isDown(83)) {
gotoAndPlay ("AXE5");
}
}
if ((_root.weapon == "Knives") && (wpos == 0)) {
if (Key.isDown(65)) {
if (_root.knives >= 1) {
_root.knives--;
gotoAndPlay ("Knives1");
}
}
if (Key.isDown(83)) {
if (_root.knives >= 4) {
_root.knives = _root.knives - 4;
gotoAndPlay ("Knives2");
}
}
if (Key.isDown(68)) {
if (_root.knives >= 3) {
_root.knives = _root.knives - 3;
gotoAndPlay ("Knives3");
}
}
}
if ((_root.weapon == "Blades") && (wpos == 0)) {
if (Key.isDown(65)) {
switch (random(2)) {
case 0 :
gotoAndPlay ("Blades1");
break;
case 1 :
gotoAndPlay ("Blades2");
}
}
if (Key.isDown(83)) {
gotoAndPlay ("Blades0-3");
}
if (Key.isDown(68)) {
}
}
if (((_root.weapon == "Light Magic") && (wpos == 0)) && (lmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgLM1 == true) {
gotoAndPlay ("lBeam");
}
}
if (Key.isDown(83)) {
if (_root.wgLM2 == true) {
gotoAndPlay ("lBlast");
}
}
if (Key.isDown(68)) {
if (_root.wgLM3 == true) {
gotoAndPlay ("lDarts");
}
}
}
if (((_root.weapon == "Dark Magic") && (wpos == 0)) && (dmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgDM1 == true) {
if (_root.activefireball == false) {
gotoAndPlay ("dBall");
}
}
}
if (Key.isDown(83)) {
if (_root.wgDM2 == true) {
if (_root.activefearcloud == false) {
gotoAndPlay ("dFear");
}
}
}
if (Key.isDown(68)) {
if (_root.wgDM3 == true) {
gotoAndPlay ("dBind");
}
}
}
}
Instance of Symbol 1418 MovieClip in Symbol 1542 MovieClip Frame 1
onClipEvent (load) {
_x = _root.all.man._x;
_y = _root.all.man._y;
}
onClipEvent (enterFrame) {
if (_root.all.man._x < _x) {
_x = (_x + (((_root.all.man._x - _x) - 20) / 20));
}
if (_root.all.man._x > _x) {
_x = (_x + (((_root.all.man._x - _x) + 20) / 20));
}
if (_root.all.man._y < _y) {
_y = (_y + (((_root.all.man._y - _y) - 20) / 20));
}
if (_root.all.man._y > _y) {
_y = (_y + (((_root.all.man._y - _y) + 20) / 20));
}
}
Symbol 1542 MovieClip Frame 2
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$room = true;
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 3;
Instance of Symbol 1461 MovieClip "command1" in Symbol 1542 MovieClip Frame 2
onClipEvent (load) {
_root.$levelover = true;
}
Instance of Symbol 1525 MovieClip in Symbol 1542 MovieClip Frame 2
onClipEvent (load) {
$centre = true;
}
Symbol 1542 MovieClip Frame 3
$screencount = 0;
stop();
_root.$turnframe = 3;
Instance of Symbol 1463 MovieClip in Symbol 1542 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 130) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1542 MovieClip Frame 3
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
_alpha = (_alpha - 2);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
}
Symbol 1542 MovieClip Frame 4
$roomholes = 4;
if ($screencount < 5) {
$roomhole1x = random(480) + 30;
$roomhole1y = random(350) + 30;
$roomhole2x = random(480) + 30;
$roomhole2y = random(350) + 30;
$roomhole3x = random(480) + 30;
$roomhole3y = random(350) + 30;
$roomhole4x = random(480) + 30;
$roomhole4y = random(350) + 30;
} else {
$roomhole1x = 471;
$roomhole1y = 245;
$roomhole2x = 462;
$roomhole2y = 251;
$roomhole3x = 486;
$roomhole3y = 260;
$roomhole4x = 480;
$roomhole4y = 230;
}
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
stop();
_root.$right = true;
_root.$left = true;
_root.$up = true;
_root.$down = true;
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip in Symbol 1542 MovieClip Frame 4
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1542 MovieClip Frame 4
onClipEvent (load) {
i = 500;
b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_parent.$screencount == 0) {
if ($round == 4) {
_root.attachMovie("mystery2box", "m2box", 6755);
_root.m2box._x = 275;
_root.m2box._y = 64.7;
_root.$enemyno++;
$round++;
}
if (($round == 5) && (_root.$enemyno < 1)) {
_root.all.attachMovie("ogre", "mc" + i, i);
i++;
$round++;
_root.$enemyno++;
}
if ((_root.$enemyno == 0) && ($round == 6)) {
$round++;
_root.all.attachMovie("octo", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("raptor", "mc" + i, i);
i++;
_root.$enemyno++;
}
if (_root.$enemyno == 0) {
_root.$levelover = true;
}
} else if (_parent.$screencount == 1) {
if (($round < 8) && (_root.$enemyno == 0)) {
while (b < $round) {
b++;
_root.all.attachMovie("swarm", "mc" + i, i);
i++;
_root.$enemyno++;
}
$round++;
b = 0;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
}
} else if (_parent.$screencount == 2) {
b++;
if ((b > 140) && ($round < 12)) {
_root.all.attachMovie("raptor", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
b = 0;
} else if (($round == 12) && (_root.$enemyno == 0)) {
_root.$levelover = true;
}
}
if (_parent.$screencount == 3) {
if ($round == 4) {
_root.all.attachMovie("ogre", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("archer", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
if ((_root.$enemyno == 0) && ($round == 5)) {
_root.all.attachMovie("ogre", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("wizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
if ((_root.$enemyno == 0) && ($round == 6)) {
_root.all.attachMovie("archer", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
if (_root.$enemyno == 0) {
_root.$levelover = true;
}
}
if (_parent.$screencount == 4) {
b++;
if ((b > 100) && ($round < 9)) {
_root.all.attachMovie("octo", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
b = 0;
}
if (($round == 9) && (_root.$enemyno == 0)) {
_root.all.attachMovie("rat", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("bat", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("rat", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("bat", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
if (($round == 10) && (_root.$enemyno == 0)) {
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
}
}
if (_parent.$screencount > 4) {
if (($round < 6) && (_root.$enemyno == 0)) {
while (b < $round) {
b++;
_root.all.attachMovie("swarm", "mc" + i, i);
i++;
_root.$enemyno++;
}
$round++;
b = 0;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
}
}
}
Symbol 1542 MovieClip Frame 5
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 5;
$screencount++;
Instance of Symbol 1463 MovieClip "room" in Symbol 1542 MovieClip Frame 5
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1542 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
if (_parent.$screencount < 6) {
_root.all.gotoAndStop(4);
} else {
_root.all.gotoAndStop(6);
}
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
if (_parent.$screencount < 6) {
$left = true;
$right = true;
$up = true;
$down = true;
} else {
$left = true;
$right = false;
$up = false;
$down = false;
}
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1542 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1542 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 110) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1542 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 110) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1542 MovieClip Frame 6
$roomholes = 4;
$roomhole1x = 20;
$roomhole1y = 50;
$roomhole2x = 520;
$roomhole2y = 50;
$roomhole3x = 520;
$roomhole3y = 380;
$roomhole4x = 20;
$roomhole4y = 380;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip in Symbol 1542 MovieClip Frame 6
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1542 MovieClip Frame 6
onClipEvent (load) {
i = 500;
b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room2) {
_root.$levelover = true;
} else {
b++;
if ((b > 25) && ($round < 25)) {
if (random(2) == 1) {
_root.all.attachMovie("swarm", "mc" + i, i);
} else {
_root.all.attachMovie("redswarm", "mc" + i, i);
}
i++;
_root.$enemyno++;
$round++;
b = 0;
} else if (($round == 25) && (_root.$enemyno == 0)) {
_root.$levelover = true;
_root.$room2 = true;
}
}
}
Symbol 1542 MovieClip Frame 7
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip "room" in Symbol 1542 MovieClip Frame 7
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1542 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 125) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1542 MovieClip Frame 8
$roomholes = 4;
$roomhole1x = 20;
$roomhole1y = 20;
$roomhole2x = 520;
$roomhole2y = 20;
$roomhole3x = 520;
$roomhole3y = 380;
$roomhole4x = 20;
$roomhole4y = 380;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
stop();
_root.$scenegoto = "getmagic";
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 9;
Instance of Symbol 1467 MovieClip in Symbol 1542 MovieClip Frame 8
onClipEvent (load) {
$centre = true;
}
Symbol 1542 MovieClip Frame 9
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 9;
Instance of Symbol 1463 MovieClip in Symbol 1542 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1542 MovieClip Frame 9
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1522 MovieClip in Symbol 1544 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 2) {
_visible = true;
play();
} else {
_visible = false;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1544 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_root.all._currentframe > 2) && (_root.all._currentframe < 6)) {
_visible = true;
} else {
_visible = false;
}
play();
}
Instance of Symbol 1522 MovieClip in Symbol 1544 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_root.all.$screencount < 5) or (_root.all._currentframe >= 6)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1544 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 8) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1544 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 6) {
play();
}
} else if (_root.all._currentframe >= 6) {
_visible = true;
}
}
Symbol 1545 MovieClip Frame 1
$roomwidth = 550;
$roomheight = 400;
Instance of Symbol 1415 MovieClip "man" in Symbol 1545 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
pointer = _currentframe;
moving = function () {
if ((($down == true) && (mdist > 50)) && (_root.hold != true)) {
return(true);
}
};
smoving = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
return(true);
}
};
attacking = function () {
if (wpos != 0) {
return(true);
}
};
}
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
if (_root.rage > 0) {
_root.rage = _root.rage - 0.05;
} else {
_root.rage = 0;
}
if (_root.conviction > 0) {
_root.conviction = _root.conviction - 0.05;
} else {
_root.conviction = 0;
}
}
onClipEvent (enterFrame) {
if (_root.hold != true) {
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
}
}
onClipEvent (enterFrame) {
mdist = Math.sqrt(Math.pow(ydist, 2) + Math.pow(xdist, 2));
if (moving()) {
if (_root.speed <= _root.topspeed) {
_root.speed = _root.speed + _root.accel;
} else {
_root.speed = _root.topspeed;
}
} else if (_root.speed > 0.1) {
_root.speed = _root.speed * _root.friction;
} else {
_root.speed = 0;
}
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * _root.speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * _root.speed));
if (smoving()) {
if (Key.isDown(90)) {
if (_root.sidespeed <= _root.topspeed) {
if (_root.sidespeed >= -0.5) {
_root.sidespeed = _root.sidespeed + accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = _root.topspeed;
}
}
if (Key.isDown(88)) {
if (_root.sidespeed >= (-_root.topspeed)) {
if (_root.sidespeed <= 0.5) {
_root.sidespeed = _root.sidespeed - accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = -_root.topspeed;
}
}
} else if ((_root.sidespeed > 0.1) || (sidespeed < -0.1)) {
_root.sidespeed = _root.sidespeed * _root.friction;
} else {
_root.sidespeed = 0;
}
_y = (_y + (Math.sin((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
_x = (_x + (Math.cos((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
}
onClipEvent (enterFrame) {
if (moving() == true) {
if ((pointer + (0.25 * _root.speed)) <= 40) {
pointer = pointer + (0.25 * _root.speed);
} else {
pointer = pointer - 40;
}
if (attacking() != true) {
gotoAndStop(Math.round(pointer));
}
} else {
stopping = true;
pointer = Math.round(pointer);
if (((pointer != 20) && (pointer != 1)) && (pointer != 40)) {
pointer++;
if (attacking() != true) {
gotoAndStop(pointer);
}
} else if (attacking() != true) {
gotoAndStop(pointer);
}
}
if ((rotationa > 5) || (rotationa < -5)) {
rotstep = Math.abs(rotationa) / 100;
if ((pointer + rotstep) <= 40) {
pointer = pointer + rotstep;
} else {
pointer = pointer - 40;
}
}
}
onClipEvent (enterFrame) {
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
}
onClipEvent (enterFrame) {
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (_root.$health <= 0) {
_alpha = (_alpha-1);
}
}
}
onClipEvent (enterFrame) {
if ((_root.weapon == "HANDS") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("HANDS0-1");
}
if (Key.isDown(83)) {
if (Math.random() > ((_root.rage + _root.conviction) / 300)) {
gotoAndPlay ("kick1");
} else if ((Math.random() * _root.rage) > (Math.random() * _root.conviction)) {
gotoAndPlay ("kick2");
} else {
gotoAndPlay ("kick3");
}
}
if (Key.isDown(68)) {
gotoAndPlay ("dodge1");
}
}
if ((_root.weapon == "AXE") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("AXE1");
}
if (Key.isDown(83)) {
gotoAndPlay ("AXE5");
}
}
if ((_root.weapon == "Knives") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("Knives1");
}
if (Key.isDown(83)) {
gotoAndPlay ("Knives2");
}
if (Key.isDown(68)) {
gotoAndPlay ("Knives3");
}
}
if ((_root.weapon == "Blades") && (wpos == 0)) {
if (Key.isDown(65)) {
switch (random(2)) {
case 0 :
gotoAndPlay ("Blades1");
break;
case 1 :
gotoAndPlay ("Blades2");
}
}
if (Key.isDown(83)) {
gotoAndPlay ("Blades0-3");
}
if (Key.isDown(68)) {
}
}
if (((_root.weapon == "Light Magic") && (wpos == 0)) && (lmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgLM1 == true) {
gotoAndPlay ("lBeam");
}
}
if (Key.isDown(83)) {
if (_root.wgLM2 == true) {
gotoAndPlay ("lBlast");
}
}
if (Key.isDown(68)) {
if (_root.wgLM3 == true) {
gotoAndPlay ("lDarts");
}
}
}
if (((_root.weapon == "Dark Magic") && (wpos == 0)) && (dmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgDM1 == true) {
if (_root.activefireball == false) {
gotoAndPlay ("dBall");
}
}
}
if (Key.isDown(83)) {
if (_root.wgDM2 == true) {
if (_root.activefearcloud == false) {
gotoAndPlay ("dFear");
}
}
}
if (Key.isDown(68)) {
if (_root.wgDM3 == true) {
gotoAndPlay ("dBind");
}
}
}
}
Instance of Symbol 1418 MovieClip in Symbol 1545 MovieClip Frame 1
onClipEvent (load) {
_x = _root.all.man._x;
_y = _root.all.man._y;
}
onClipEvent (enterFrame) {
if (_root.all.man._x < _x) {
_x = (_x + (((_root.all.man._x - _x) - 20) / 20));
}
if (_root.all.man._x > _x) {
_x = (_x + (((_root.all.man._x - _x) + 20) / 20));
}
if (_root.all.man._y < _y) {
_y = (_y + (((_root.all.man._y - _y) - 20) / 20));
}
if (_root.all.man._y > _y) {
_y = (_y + (((_root.all.man._y - _y) + 20) / 20));
}
}
Symbol 1545 MovieClip Frame 2
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$room = true;
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
if (_root.wgDM1 == true) {
_root.$turnframe = 4;
} else {
_root.$turnframe = 3;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1545 MovieClip Frame 2
onClipEvent (load) {
_root.$levelover = true;
}
Instance of Symbol 1525 MovieClip in Symbol 1545 MovieClip Frame 2
onClipEvent (load) {
$centre = true;
}
Symbol 1545 MovieClip Frame 3
stop();
if (_root.wgDM1 == true) {
_root.$turnframe = 4;
} else {
_root.$turnframe = 3;
}
Instance of Symbol 1525 MovieClip in Symbol 1545 MovieClip Frame 3
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
_alpha = (_alpha - 2);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
}
Instance of Symbol 1538 MovieClip in Symbol 1545 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 110) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1545 MovieClip Frame 4
stop();
if (_root.wgDM1 == true) {
_root.$turnframe = 4;
} else {
_root.$turnframe = 3;
}
Instance of Symbol 1533 MovieClip in Symbol 1545 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 110) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(5);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1545 MovieClip Frame 5
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$scenegoto = 4;
Instance of Symbol 1533 MovieClip in Symbol 1545 MovieClip Frame 5
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1545 MovieClip Frame 5
onClipEvent (enterFrame) {
_root.$levelover = false;
}
Symbol 1545 MovieClip Frame 6
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$scenegoto = 4;
Instance of Symbol 1538 MovieClip in Symbol 1545 MovieClip Frame 6
onClipEvent (load) {
$centre = true;
}
Symbol 1546 MovieClip Frame 1
i = 10;
while (i != 0) {
_root["$room" + i] = false;
i--;
}
Instance of Symbol 1415 MovieClip "man" in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
pointer = _currentframe;
moving = function () {
if ((($down == true) && (mdist > 50)) && (_root.hold != true)) {
return(true);
}
};
smoving = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
return(true);
}
};
attacking = function () {
if (wpos != 0) {
return(true);
}
};
}
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
_root.$accel = 2;
if (_root.rage > 0) {
_root.rage = _root.rage - 0.05;
} else {
_root.rage = 0;
}
if (_root.conviction > 0) {
_root.conviction = _root.conviction - 0.05;
} else {
_root.conviction = 0;
}
}
onClipEvent (enterFrame) {
if (_root.hold != true) {
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
}
}
onClipEvent (enterFrame) {
mdist = Math.sqrt(Math.pow(ydist, 2) + Math.pow(xdist, 2));
if (moving()) {
if (_root.speed <= _root.topspeed) {
_root.speed = _root.speed + _root.accel;
} else {
_root.speed = _root.topspeed;
}
} else if (_root.speed > 0.1) {
_root.speed = _root.speed * _root.friction;
} else {
_root.speed = 0;
}
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * _root.speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * _root.speed));
if (smoving()) {
if (Key.isDown(90)) {
if (_root.sidespeed <= _root.topspeed) {
if (_root.sidespeed >= -0.5) {
_root.sidespeed = _root.sidespeed + accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = _root.topspeed;
}
}
if (Key.isDown(88)) {
if (_root.sidespeed >= (-_root.topspeed)) {
if (_root.sidespeed <= 0.5) {
_root.sidespeed = _root.sidespeed - accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = -_root.topspeed;
}
}
} else if ((_root.sidespeed > 0.1) || (sidespeed < -0.1)) {
_root.sidespeed = _root.sidespeed * _root.friction;
} else {
_root.sidespeed = 0;
}
_y = (_y + (Math.sin((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
_x = (_x + (Math.cos((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
}
onClipEvent (enterFrame) {
if (moving() == true) {
if ((pointer + (0.25 * _root.speed)) <= 40) {
pointer = pointer + (0.25 * _root.speed);
} else {
pointer = pointer - 40;
}
if (attacking() != true) {
gotoAndStop(Math.round(pointer));
}
} else {
stopping = true;
pointer = Math.round(pointer);
if (((pointer != 20) && (pointer != 1)) && (pointer != 40)) {
pointer++;
if (attacking() != true) {
gotoAndStop(pointer);
}
} else if (attacking() != true) {
gotoAndStop(pointer);
}
}
if ((rotationa > 5) || (rotationa < -5)) {
rotstep = Math.abs(rotationa) / 100;
if ((pointer + rotstep) <= 40) {
pointer = pointer + rotstep;
} else {
pointer = pointer - 40;
}
}
}
onClipEvent (enterFrame) {
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
}
onClipEvent (enterFrame) {
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (_root.$health <= 0) {
_alpha = (_alpha-1);
}
}
}
onClipEvent (enterFrame) {
if ((_root.weapon == "HANDS") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("HANDS0-1");
}
if (Key.isDown(83)) {
if (Math.random() > ((_root.rage + _root.conviction) / 300)) {
gotoAndPlay ("kick1");
} else if ((Math.random() * _root.rage) > (Math.random() * _root.conviction)) {
gotoAndPlay ("kick2");
} else {
gotoAndPlay ("kick3");
}
}
if (Key.isDown(68)) {
gotoAndPlay ("dodge1");
}
}
if ((_root.weapon == "AXE") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("AXE1");
}
if (Key.isDown(83)) {
gotoAndPlay ("AXE5");
}
}
if ((_root.weapon == "Knives") && (wpos == 0)) {
if (Key.isDown(65)) {
if (_root.knives >= 1) {
_root.knives--;
gotoAndPlay ("Knives1");
}
}
if (Key.isDown(83)) {
if (_root.knives >= 4) {
_root.knives = _root.knives - 4;
gotoAndPlay ("Knives2");
}
}
if (Key.isDown(68)) {
if (_root.knives >= 3) {
_root.knives = _root.knives - 3;
gotoAndPlay ("Knives3");
}
}
}
if ((_root.weapon == "Blades") && (wpos == 0)) {
if (Key.isDown(65)) {
switch (random(2)) {
case 0 :
gotoAndPlay ("Blades1");
break;
case 1 :
gotoAndPlay ("Blades2");
}
}
if (Key.isDown(83)) {
gotoAndPlay ("Blades0-3");
}
if (Key.isDown(68)) {
}
}
if (((_root.weapon == "Light Magic") && (wpos == 0)) && (lmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgLM1 == true) {
gotoAndPlay ("lBeam");
}
}
if (Key.isDown(83)) {
if (_root.wgLM2 == true) {
gotoAndPlay ("lBlast");
}
}
if (Key.isDown(68)) {
if (_root.wgLM3 == true) {
gotoAndPlay ("lDarts");
}
}
}
if (((_root.weapon == "Dark Magic") && (wpos == 0)) && (dmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgDM1 == true) {
if (_root.activefireball == false) {
gotoAndPlay ("dBall");
}
}
}
if (Key.isDown(83)) {
if (_root.wgDM2 == true) {
if (_root.activefearcloud == false) {
gotoAndPlay ("dFear");
}
}
}
if (Key.isDown(68)) {
if (_root.wgDM3 == true) {
gotoAndPlay ("dBind");
}
}
}
}
Instance of Symbol 1418 MovieClip in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
_x = _root.all.man._x;
_y = _root.all.man._y;
}
onClipEvent (enterFrame) {
if (_root.all.man._x < _x) {
_x = (_x + (((_root.all.man._x - _x) - 20) / 20));
}
if (_root.all.man._x > _x) {
_x = (_x + (((_root.all.man._x - _x) + 20) / 20));
}
if (_root.all.man._y < _y) {
_y = (_y + (((_root.all.man._y - _y) - 20) / 20));
}
if (_root.all.man._y > _y) {
_y = (_y + (((_root.all.man._y - _y) + 20) / 20));
}
}
Symbol 1546 MovieClip Frame 2
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$room = true;
_root.$right = false;
_root.$left = false;
_root.$up = true;
_root.$down = false;
_root.$turnframe = 3;
Instance of Symbol 1461 MovieClip "command1" in Symbol 1546 MovieClip Frame 2
onClipEvent (load) {
_root.$levelover = true;
}
Instance of Symbol 1525 MovieClip in Symbol 1546 MovieClip Frame 2
onClipEvent (load) {
$centre = true;
}
Symbol 1546 MovieClip Frame 3
stop();
_root.$turnframe = 3;
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 110) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1546 MovieClip Frame 3
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_alpha = (_alpha - 2);
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
}
Symbol 1546 MovieClip Frame 4
$roomholes = 6;
$roomhole1x = 150;
$roomhole1y = 380;
$roomhole2x = 200;
$roomhole2y = 380;
$roomhole3x = 250;
$roomhole3y = 380;
$roomhole4x = 300;
$roomhole4y = 380;
$roomhole5x = 350;
$roomhole5y = 380;
$roomhole6x = 400;
$roomhole6y = 380;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
stop();
_root.$right = false;
_root.$left = false;
_root.$up = true;
_root.$down = true;
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 4
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1546 MovieClip Frame 4
onClipEvent (load) {
i = 500;
b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else if (($round < 7) && (_root.$enemyno == 0)) {
while (b < $round) {
b++;
if (random(2) == 1) {
_root.all.attachMovie("raptor", "mc" + i, i);
} else {
_root.all.attachMovie("redraptor", "mc" + i, i);
}
i++;
_root.$enemyno++;
}
$round++;
b = 0;
} else if (_root.$enemyno == 0) {
_root.ammochance();
_root.$levelover = true;
_root.$room1 = true;
}
}
Symbol 1546 MovieClip Frame 5
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip "room" in Symbol 1546 MovieClip Frame 5
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1546 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 145) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1546 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 115) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(2);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1546 MovieClip Frame 6
$roomholes = 4;
$roomhole1x = 20;
$roomhole1y = 20;
$roomhole2x = 520;
$roomhole2y = 20;
$roomhole3x = 520;
$roomhole3y = 380;
$roomhole4x = 20;
$roomhole4y = 380;
$leftside = -140;
$upside = -240;
$roomwidth = 600;
$roomheight = 600;
stop();
_root.$right = true;
_root.$left = true;
_root.$up = true;
_root.$down = true;
_root.$turnframe = 7;
Instance of Symbol 1464 MovieClip in Symbol 1546 MovieClip Frame 6
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1546 MovieClip Frame 6
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room2) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("bossbrainshell", "mc" + i, i);
$round++;
_root.$enemyno++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room2 = true;
}
}
Symbol 1546 MovieClip Frame 7
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 165) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1546 MovieClip Frame 7
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 155) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(10);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 145) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 155) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(12);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1546 MovieClip Frame 8
$roomholes = 4;
$roomhole1x = 20;
$roomhole1y = 20;
$roomhole2x = 520;
$roomhole2y = 20;
$roomhole3x = 520;
$roomhole3y = 380;
$roomhole4x = 20;
$roomhole4y = 380;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
stop();
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 9;
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 8
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1546 MovieClip Frame 8
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room4) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if (_root.$enemyno == 0) {
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room4 = true;
}
}
Symbol 1546 MovieClip Frame 9
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 9;
Instance of Symbol 1463 MovieClip "room" in Symbol 1546 MovieClip Frame 9
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1546 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1546 MovieClip Frame 10
$roomholes = 1;
$roomhole1x = 275;
$roomhole1y = 220;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 11;
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 10
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1546 MovieClip Frame 10
onClipEvent (load) {
i = 500;
b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room3) {
_root.$levelover = true;
} else {
b++;
if ((b > 100) && ($round < 10)) {
_root.all.attachMovie("redraptor", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
b = 0;
} else if (($round == 10) && (_root.$enemyno == 0)) {
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room3 = true;
}
}
}
Symbol 1546 MovieClip Frame 11
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 11;
Instance of Symbol 1463 MovieClip "room" in Symbol 1546 MovieClip Frame 11
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1546 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1546 MovieClip Frame 12
$roomholes = 4;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
i = 0;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = false;
_root.$left = false;
_root.$up = true;
_root.$down = true;
_root.$turnframe = 13;
Instance of Symbol 1463 MovieClip in Symbol 1546 MovieClip Frame 12
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1546 MovieClip Frame 12
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room5) {
_root.$levelover = true;
} else {
if ($round == 4) {
while ($b < 5) {
_root.all.attachMovie("bat", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
if (($round == 5) && (_root.$enemyno == 0)) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("greenwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
if (($round == 6) && (_root.$enemyno == 0)) {
_root.all.attachMovie("chest3", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room5 = true;
}
}
}
Symbol 1546 MovieClip Frame 13
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 13;
Instance of Symbol 1463 MovieClip "room" in Symbol 1546 MovieClip Frame 13
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1546 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 150) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1546 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 120) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(14);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1546 MovieClip Frame 14
$roomholes = 4;
$roomhole1x = 20;
$roomhole1y = 20;
$roomhole2x = 520;
$roomhole2y = 20;
$roomhole3x = 520;
$roomhole3y = 380;
$roomhole4x = 20;
$roomhole4y = 380;
$leftside = 40;
$upside = 100;
$roomwidth = 480;
$roomheight = 700;
stop();
_root.$right = false;
_root.$left = false;
_root.$up = false;
_root.$down = true;
_root.$turnframe = 15;
_root.$scenegoto = 5;
Instance of Symbol 1467 MovieClip in Symbol 1546 MovieClip Frame 14
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1546 MovieClip Frame 14
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("raptor", "mc" + i, i);
$round++;
_root.$enemyno++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room1 = true;
}
}
Symbol 1546 MovieClip Frame 15
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 15;
Instance of Symbol 1463 MovieClip "room" in Symbol 1546 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 120) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(12);
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1546 MovieClip Frame 15
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1522 MovieClip in Symbol 1548 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 2) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1548 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 4) {
play();
}
} else if (_root.$room1) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1548 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 8) {
play();
}
} else if (_root.$room3) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1548 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 10) {
play();
}
} else if (_root.$room4) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1548 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 12) {
play();
}
} else if (_root.$room5) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1548 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 6) {
play();
}
} else if (_root.$room2) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1548 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 14) {
play();
}
}
Symbol 1549 MovieClip Frame 1
i = 10;
while (i != 0) {
_root["$room" + i] = false;
i--;
}
Instance of Symbol 1415 MovieClip "man" in Symbol 1549 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
pointer = _currentframe;
moving = function () {
if ((($down == true) && (mdist > 50)) && (_root.hold != true)) {
return(true);
}
};
smoving = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
return(true);
}
};
attacking = function () {
if (wpos != 0) {
return(true);
}
};
}
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
if (_root.rage > 0) {
_root.rage = _root.rage - 0.05;
} else {
_root.rage = 0;
}
if (_root.conviction > 0) {
_root.conviction = _root.conviction - 0.05;
} else {
_root.conviction = 0;
}
}
onClipEvent (enterFrame) {
if (_root.hold != true) {
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
}
}
onClipEvent (enterFrame) {
mdist = Math.sqrt(Math.pow(ydist, 2) + Math.pow(xdist, 2));
if (moving()) {
if (_root.speed <= _root.topspeed) {
_root.speed = _root.speed + _root.accel;
} else {
_root.speed = _root.topspeed;
}
} else if (_root.speed > 0.1) {
_root.speed = _root.speed * _root.friction;
} else {
_root.speed = 0;
}
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * _root.speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * _root.speed));
if (smoving()) {
if (Key.isDown(90)) {
if (_root.sidespeed <= _root.topspeed) {
if (_root.sidespeed >= -0.5) {
_root.sidespeed = _root.sidespeed + accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = _root.topspeed;
}
}
if (Key.isDown(88)) {
if (_root.sidespeed >= (-_root.topspeed)) {
if (_root.sidespeed <= 0.5) {
_root.sidespeed = _root.sidespeed - accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = -_root.topspeed;
}
}
} else if ((_root.sidespeed > 0.1) || (sidespeed < -0.1)) {
_root.sidespeed = _root.sidespeed * _root.friction;
} else {
_root.sidespeed = 0;
}
_y = (_y + (Math.sin((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
_x = (_x + (Math.cos((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
}
onClipEvent (enterFrame) {
if (moving() == true) {
if ((pointer + (0.25 * _root.speed)) <= 40) {
pointer = pointer + (0.25 * _root.speed);
} else {
pointer = pointer - 40;
}
if (attacking() != true) {
gotoAndStop(Math.round(pointer));
}
} else {
stopping = true;
pointer = Math.round(pointer);
if (((pointer != 20) && (pointer != 1)) && (pointer != 40)) {
pointer++;
if (attacking() != true) {
gotoAndStop(pointer);
}
} else if (attacking() != true) {
gotoAndStop(pointer);
}
}
if ((rotationa > 5) || (rotationa < -5)) {
rotstep = Math.abs(rotationa) / 100;
if ((pointer + rotstep) <= 40) {
pointer = pointer + rotstep;
} else {
pointer = pointer - 40;
}
}
}
onClipEvent (enterFrame) {
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
}
onClipEvent (enterFrame) {
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (_root.$health <= 0) {
_alpha = (_alpha-1);
}
}
}
onClipEvent (enterFrame) {
if ((_root.weapon == "HANDS") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("HANDS0-1");
}
if (Key.isDown(83)) {
if (Math.random() > ((_root.rage + _root.conviction) / 300)) {
gotoAndPlay ("kick1");
} else if ((Math.random() * _root.rage) > (Math.random() * _root.conviction)) {
gotoAndPlay ("kick2");
} else {
gotoAndPlay ("kick3");
}
}
if (Key.isDown(68)) {
gotoAndPlay ("dodge1");
}
}
if ((_root.weapon == "AXE") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("AXE1");
}
if (Key.isDown(83)) {
gotoAndPlay ("AXE5");
}
}
if ((_root.weapon == "Knives") && (wpos == 0)) {
if (Key.isDown(65)) {
if (_root.knives >= 1) {
_root.knives--;
gotoAndPlay ("Knives1");
}
}
if (Key.isDown(83)) {
if (_root.knives >= 4) {
_root.knives = _root.knives - 4;
gotoAndPlay ("Knives2");
}
}
if (Key.isDown(68)) {
if (_root.knives >= 3) {
_root.knives = _root.knives - 3;
gotoAndPlay ("Knives3");
}
}
}
if ((_root.weapon == "Blades") && (wpos == 0)) {
if (Key.isDown(65)) {
switch (random(2)) {
case 0 :
gotoAndPlay ("Blades1");
break;
case 1 :
gotoAndPlay ("Blades2");
}
}
if (Key.isDown(83)) {
gotoAndPlay ("Blades0-3");
}
if (Key.isDown(68)) {
}
}
if (((_root.weapon == "Light Magic") && (wpos == 0)) && (lmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgLM1 == true) {
gotoAndPlay ("lBeam");
}
}
if (Key.isDown(83)) {
if (_root.wgLM2 == true) {
gotoAndPlay ("lBlast");
}
}
if (Key.isDown(68)) {
if (_root.wgLM3 == true) {
gotoAndPlay ("lDarts");
}
}
}
if (((_root.weapon == "Dark Magic") && (wpos == 0)) && (dmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgDM1 == true) {
if (_root.activefireball == false) {
gotoAndPlay ("dBall");
}
}
}
if (Key.isDown(83)) {
if (_root.wgDM2 == true) {
if (_root.activefearcloud == false) {
gotoAndPlay ("dFear");
}
}
}
if (Key.isDown(68)) {
if (_root.wgDM3 == true) {
gotoAndPlay ("dBind");
}
}
}
}
Instance of Symbol 1418 MovieClip in Symbol 1549 MovieClip Frame 1
onClipEvent (load) {
_x = _root.all.man._x;
_y = _root.all.man._y;
}
onClipEvent (enterFrame) {
if (_root.all.man._x < _x) {
_x = (_x + (((_root.all.man._x - _x) - 20) / 20));
}
if (_root.all.man._x > _x) {
_x = (_x + (((_root.all.man._x - _x) + 20) / 20));
}
if (_root.all.man._y < _y) {
_y = (_y + (((_root.all.man._y - _y) - 20) / 20));
}
if (_root.all.man._y > _y) {
_y = (_y + (((_root.all.man._y - _y) + 20) / 20));
}
}
Symbol 1549 MovieClip Frame 2
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$room = true;
_root.$right = false;
_root.$left = false;
_root.$up = false;
_root.$down = true;
_root.$turnframe = 3;
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 2
onClipEvent (load) {
_root.$levelover = true;
}
Instance of Symbol 1525 MovieClip in Symbol 1549 MovieClip Frame 2
onClipEvent (load) {
$centre = true;
}
Symbol 1549 MovieClip Frame 3
stop();
_root.$turnframe = 3;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 100) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1549 MovieClip Frame 3
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Symbol 1549 MovieClip Frame 4
$roomholes = 6;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = false;
_root.$left = false;
_root.$up = true;
_root.$down = true;
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 4
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 4
onClipEvent (load) {
i = 500;
$b = 0;
$round = 2;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else if ($creation > 0) {
$b++;
if ($b > 50) {
_root.$enemyno++;
$creation = $creation - 1;
i++;
_root.all.attachMovie("redraptor", "mc" + i, i);
if ($round == 4) {
_root.$enemyno++;
i++;
_root.all.attachMovie("bat", "mc" + i, i);
}
$b = 0;
}
} else if (_root.$enemyno == 0) {
if ($round < 5) {
$round++;
$creation = $round;
} else {
_root.$levelover = true;
_root.$room1 = true;
}
}
}
Symbol 1549 MovieClip Frame 5
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip "room" in Symbol 1549 MovieClip Frame 5
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 110) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1549 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 105) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(2);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1549 MovieClip Frame 6
$roomholes = 5;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = false;
_root.$up = true;
_root.$down = false;
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 6
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 6
onClipEvent (load) {
i = 500;
b = 0;
$round = 1;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room2) {
_root.$levelover = true;
} else {
b++;
if ((b > 60) && ($round < 16)) {
if ($round < 4) {
_root.all.attachMovie("ogre", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 4) {
_root.all.attachMovie("archer", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 5) {
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 6) {
_root.all.attachMovie("wizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 7) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 8) {
_root.all.attachMovie("ogre", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round > 8) {
_root.all.attachMovie("bat", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
b = 0;
}
if (($round > 15) && (_root.$enemyno == 0)) {
_root.$levelover = true;
_root.$room2 = true;
}
}
}
Symbol 1549 MovieClip Frame 7
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip "room" in Symbol 1549 MovieClip Frame 7
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 110) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1549 MovieClip Frame 8
$roomholes = 9;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = true;
_root.$down = true;
_root.$turnframe = 9;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 8
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 8
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room3) {
_root.$levelover = true;
} else if ($round < 30) {
if ($b > 15) {
_root.$enemyno++;
i++;
if (random(2) == 1) {
_root.all.attachMovie("swarm", "mc" + i, i);
} else {
_root.all.attachMovie("redswarm", "mc" + i, i);
}
$round++;
$b = 0;
}
$b++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room3 = true;
}
}
Symbol 1549 MovieClip Frame 9
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 9;
Instance of Symbol 1463 MovieClip "room" in Symbol 1549 MovieClip Frame 9
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(14);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 110) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(12);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 110) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(10);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1549 MovieClip Frame 10
$roomholes = 6;
$roomhole1x = 40;
$roomhole1y = 70;
$roomhole2x = 40;
$roomhole2y = 240;
$roomhole3x = 40;
$roomhole3y = 410;
$roomhole4x = 510;
$roomhole4y = 70;
$roomhole5x = 510;
$roomhole5y = 240;
$roomhole6x = 510;
$roomhole6y = 410;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
stop();
_root.$right = false;
_root.$left = false;
_root.$up = true;
_root.$down = false;
_root.$turnframe = 11;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 10
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 10
onClipEvent (load) {
i = 500;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room4) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("ogre", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
} else if (_root.$enemyno == 0) {
_root.ammochance();
_root.$levelover = true;
_root.$room4 = true;
}
}
Symbol 1549 MovieClip Frame 11
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 11;
Instance of Symbol 1463 MovieClip "room" in Symbol 1549 MovieClip Frame 11
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 110) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1549 MovieClip Frame 12
$roomholes = 6;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 300) + $leftside) + 150;
this[("$roomhole" + i) + "y"] = (random($roomheight - 300) + $upside) + 150;
i++;
}
stop();
_root.$right = false;
_root.$left = false;
_root.$up = true;
_root.$down = true;
_root.$turnframe = 13;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 12
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 12
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room5) {
_root.$levelover = true;
} else {
$b++;
if ($b > 80) {
$b = 0;
if ($round < 25) {
$random = random(3);
if ($random == 1) {
_root.all.attachMovie("redraptor", "mc" + i, i);
} else if ($random == 2) {
_root.all.attachMovie("bat", "mc" + i, i);
} else {
_root.all.attachMovie("rat", "mc" + i, i);
}
i++;
_root.$enemyno++;
$round++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room5 = true;
}
}
}
}
Symbol 1549 MovieClip Frame 13
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 13;
Instance of Symbol 1463 MovieClip "room" in Symbol 1549 MovieClip Frame 13
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 110) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1459 MovieClip in Symbol 1549 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 110) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(20);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1549 MovieClip Frame 14
$roomholes = 5;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 300) + $leftside) + 150;
this[("$roomhole" + i) + "y"] = (random($roomheight - 300) + $upside) + 150;
i++;
}
stop();
_root.$right = false;
_root.$left = true;
_root.$up = true;
_root.$down = false;
_root.$turnframe = 15;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 14
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 14
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room6) {
_root.$levelover = true;
} else {
$b++;
if ($b > 140) {
$b = 0;
if ($round < 25) {
$random = random(3);
if ($random == 1) {
_root.all.attachMovie("wizard", "mc" + i, i);
} else if ($random == 2) {
_root.all.attachMovie("redwizard", "mc" + i, i);
} else {
_root.all.attachMovie("greenwizard", "mc" + i, i);
}
i++;
_root.$enemyno++;
$round++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room6 = true;
}
}
}
}
Symbol 1549 MovieClip Frame 15
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 15;
Instance of Symbol 1463 MovieClip "room" in Symbol 1549 MovieClip Frame 15
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelup) {
_visible = true;
_root.all.man._y = _root.all.man._y + 3;
_y = (_y + 5);
i++;
if (i > 110) {
_root.all.$levelup = false;
_root.$levelover = false;
_root.all.gotoAndStop(16);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1549 MovieClip Frame 16
$roomholes = 9;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = true;
_root.$turnframe = 17;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 16
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 16
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room7) {
_root.$levelover = true;
} else if ($round == 4) {
while ($b < 9) {
$b++;
_root.all.attachMovie("redraptor", "mc" + i, i);
i++;
$round++;
_root.$enemyno++;
}
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room7 = true;
}
}
Symbol 1549 MovieClip Frame 17
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 17;
Instance of Symbol 1463 MovieClip "room" in Symbol 1549 MovieClip Frame 17
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(18);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 110) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(14);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = true;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1549 MovieClip Frame 18
$roomholes = 4;
$leftside = 0;
$upside = 40;
$roomwidth = 550;
$roomheight = 440;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 19;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 18
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 18
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room8) {
_root.$levelover = true;
} else {
if ($round == 4) {
_root.all.attachMovie("octo", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
if ($round == 5) {
while ($b < 4) {
$b++;
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
}
$b = 0;
$round = 6;
}
if ($round == 6) {
$b++;
if ($b > 500) {
_root.all.attachMovie("swarm", "mc" + i, i);
i++;
_root.$enemyno++;
$b = 0;
}
if (_root.$enemyno == 0) {
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room8 = true;
}
}
}
}
Symbol 1549 MovieClip Frame 19
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 19;
Instance of Symbol 1463 MovieClip "room" in Symbol 1549 MovieClip Frame 19
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(16);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1549 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 130) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(22);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1549 MovieClip Frame 20
$roomholes = 9;
$leftside = 50;
$upside = 50;
$roomwidth = 500;
$roomheight = 440;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 80) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 80) + $upside) + 15;
i++;
}
stop();
_root.$right = false;
_root.$left = false;
_root.$up = false;
_root.$down = true;
_root.$turnframe = 21;
Instance of Symbol 1459 MovieClip in Symbol 1549 MovieClip Frame 20
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 20
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room9) {
_root.$levelover = true;
} else if ($round == 4) {
$round++;
} else if (_root.$enemyno == 0) {
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room9 = true;
}
}
Symbol 1549 MovieClip Frame 21
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 21;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 21
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$leveldown) {
_visible = true;
_root.all.man._y = _root.all.man._y - 3;
_y = (_y - 5);
i++;
if (i > 110) {
_root.all.$leveldown = false;
_root.$levelover = false;
_root.all.gotoAndStop(12);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = false;
$up = true;
$down = true;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1459 MovieClip in Symbol 1549 MovieClip Frame 21
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Symbol 1549 MovieClip Frame 22
$roomholes = 4;
$roomhole1x = 20;
$roomhole1y = 20;
$roomhole2x = 520;
$roomhole2y = 20;
$roomhole3x = 520;
$roomhole3y = 380;
$roomhole4x = 20;
$roomhole4y = 380;
$leftside = 50;
$upside = 50;
$roomwidth = 500;
$roomheight = 400;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 23;
_root.$scenegoto = 6;
Instance of Symbol 1467 MovieClip in Symbol 1549 MovieClip Frame 22
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1549 MovieClip Frame 22
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("raptor", "mc" + i, i);
$round++;
_root.$enemyno++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room1 = true;
}
}
Symbol 1549 MovieClip Frame 23
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 23;
Instance of Symbol 1463 MovieClip in Symbol 1549 MovieClip Frame 23
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(18);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1549 MovieClip Frame 23
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 2) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 4) {
play();
}
} else if (_root.$room1) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 22) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 6) {
play();
}
} else if (_root.$room2) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 8) {
play();
}
} else if (_root.$room3) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 10) {
play();
}
} else if (_root.$room4) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 16) {
play();
}
} else if (_root.$room7) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 14) {
play();
}
} else if (_root.$room6) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 18) {
play();
}
} else if (_root.$room8) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 12) {
play();
}
} else if (_root.$room5) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1551 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 20) {
play();
}
} else if (_root.$room9) {
_visible = true;
}
}
Symbol 1552 MovieClip Frame 1
i = 14;
while (i != 0) {
_root["$room" + i] = false;
i--;
}
Instance of Symbol 1415 MovieClip "man" in Symbol 1552 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
pointer = _currentframe;
moving = function () {
if ((($down == true) && (mdist > 50)) && (_root.hold != true)) {
return(true);
}
};
smoving = function () {
if (Key.isDown(90) || (Key.isDown(88))) {
return(true);
}
};
attacking = function () {
if (wpos != 0) {
return(true);
}
};
}
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
_root.$accel = 2;
if (_root.rage > 0) {
_root.rage = _root.rage - 0.05;
} else {
_root.rage = 0;
}
if (_root.conviction > 0) {
_root.conviction = _root.conviction - 0.05;
} else {
_root.conviction = 0;
}
}
onClipEvent (enterFrame) {
if (_root.hold != true) {
ydist = _root.all._ymouse - _y;
xdist = _root.all._xmouse - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
}
}
onClipEvent (enterFrame) {
mdist = Math.sqrt(Math.pow(ydist, 2) + Math.pow(xdist, 2));
if (moving()) {
if (_root.speed <= _root.topspeed) {
_root.speed = _root.speed + _root.accel;
} else {
_root.speed = _root.topspeed;
}
} else if (_root.speed > 0.1) {
_root.speed = _root.speed * _root.friction;
} else {
_root.speed = 0;
}
_y = (_y + (Math.sin((Math.PI * _rotation) / 180) * _root.speed));
_x = (_x + (Math.cos((Math.PI * _rotation) / 180) * _root.speed));
if (smoving()) {
if (Key.isDown(90)) {
if (_root.sidespeed <= _root.topspeed) {
if (_root.sidespeed >= -0.5) {
_root.sidespeed = _root.sidespeed + accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = _root.topspeed;
}
}
if (Key.isDown(88)) {
if (_root.sidespeed >= (-_root.topspeed)) {
if (_root.sidespeed <= 0.5) {
_root.sidespeed = _root.sidespeed - accel;
} else {
_root.sidespeed = _root.sidespeed * _root.friction;
}
} else {
_root.sidespeed = -_root.topspeed;
}
}
} else if ((_root.sidespeed > 0.1) || (sidespeed < -0.1)) {
_root.sidespeed = _root.sidespeed * _root.friction;
} else {
_root.sidespeed = 0;
}
_y = (_y + (Math.sin((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
_x = (_x + (Math.cos((Math.PI * (_rotation - 90)) / 180) * _root.sidespeed));
}
onClipEvent (enterFrame) {
if (moving() == true) {
if ((pointer + (0.25 * _root.speed)) <= 40) {
pointer = pointer + (0.25 * _root.speed);
} else {
pointer = pointer - 40;
}
if (attacking() != true) {
gotoAndStop(Math.round(pointer));
}
} else {
stopping = true;
pointer = Math.round(pointer);
if (((pointer != 20) && (pointer != 1)) && (pointer != 40)) {
pointer++;
if (attacking() != true) {
gotoAndStop(pointer);
}
} else if (attacking() != true) {
gotoAndStop(pointer);
}
}
if ((rotationa > 5) || (rotationa < -5)) {
rotstep = Math.abs(rotationa) / 100;
if ((pointer + rotstep) <= 40) {
pointer = pointer + rotstep;
} else {
pointer = pointer - 40;
}
}
}
onClipEvent (enterFrame) {
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
}
onClipEvent (enterFrame) {
if ((((_root.all.$levelup != true) && (_root.all.$levelleft != true)) && (_root.all.$levelright != true)) && (_root.all.$leveldown != true)) {
if (_root.$health <= 0) {
_alpha = (_alpha-1);
}
}
}
onClipEvent (enterFrame) {
if ((_root.weapon == "HANDS") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("HANDS0-1");
}
if (Key.isDown(83)) {
if (Math.random() > ((_root.rage + _root.conviction) / 300)) {
gotoAndPlay ("kick1");
} else if ((Math.random() * _root.rage) > (Math.random() * _root.conviction)) {
gotoAndPlay ("kick2");
} else {
gotoAndPlay ("kick3");
}
}
if (Key.isDown(68)) {
gotoAndPlay ("dodge1");
}
}
if ((_root.weapon == "AXE") && (wpos == 0)) {
if (Key.isDown(65)) {
gotoAndPlay ("AXE1");
}
if (Key.isDown(83)) {
gotoAndPlay ("AXE5");
}
}
if ((_root.weapon == "Knives") && (wpos == 0)) {
if (Key.isDown(65)) {
if (_root.knives >= 1) {
_root.knives--;
gotoAndPlay ("Knives1");
}
}
if (Key.isDown(83)) {
if (_root.knives >= 4) {
_root.knives = _root.knives - 4;
gotoAndPlay ("Knives2");
}
}
if (Key.isDown(68)) {
if (_root.knives >= 3) {
_root.knives = _root.knives - 3;
gotoAndPlay ("Knives3");
}
}
}
if ((_root.weapon == "Blades") && (wpos == 0)) {
if (Key.isDown(65)) {
switch (random(2)) {
case 0 :
gotoAndPlay ("Blades1");
break;
case 1 :
gotoAndPlay ("Blades2");
}
}
if (Key.isDown(83)) {
gotoAndPlay ("Blades0-3");
}
if (Key.isDown(68)) {
}
}
if (((_root.weapon == "Light Magic") && (wpos == 0)) && (lmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgLM1 == true) {
gotoAndPlay ("lBeam");
}
}
if (Key.isDown(83)) {
if (_root.wgLM2 == true) {
gotoAndPlay ("lBlast");
}
}
if (Key.isDown(68)) {
if (_root.wgLM3 == true) {
gotoAndPlay ("lDarts");
}
}
}
if (((_root.weapon == "Dark Magic") && (wpos == 0)) && (dmana >= 10)) {
if (Key.isDown(65)) {
if (_root.wgDM1 == true) {
if (_root.activefireball == false) {
gotoAndPlay ("dBall");
}
}
}
if (Key.isDown(83)) {
if (_root.wgDM2 == true) {
if (_root.activefearcloud == false) {
gotoAndPlay ("dFear");
}
}
}
if (Key.isDown(68)) {
if (_root.wgDM3 == true) {
gotoAndPlay ("dBind");
}
}
}
}
Instance of Symbol 1418 MovieClip in Symbol 1552 MovieClip Frame 1
onClipEvent (load) {
_x = _root.all.man._x;
_y = _root.all.man._y;
}
onClipEvent (enterFrame) {
if (_root.all.man._x < _x) {
_x = (_x + (((_root.all.man._x - _x) - 20) / 20));
}
if (_root.all.man._x > _x) {
_x = (_x + (((_root.all.man._x - _x) + 20) / 20));
}
if (_root.all.man._y < _y) {
_y = (_y + (((_root.all.man._y - _y) - 20) / 20));
}
if (_root.all.man._y > _y) {
_y = (_y + (((_root.all.man._y - _y) + 20) / 20));
}
}
Symbol 1552 MovieClip Frame 2
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$room = true;
_root.$right = true;
_root.$left = false;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 3;
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 2
onClipEvent (load) {
_root.$levelover = true;
}
Instance of Symbol 1525 MovieClip in Symbol 1552 MovieClip Frame 2
onClipEvent (load) {
$centre = true;
}
Symbol 1552 MovieClip Frame 3
stop();
_root.$turnframe = 3;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 3
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 130) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1552 MovieClip Frame 3
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
_alpha = (_alpha - 2);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
}
Symbol 1552 MovieClip Frame 4
$roomholes = 4;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 4
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 4
onClipEvent (load) {
test = 0;
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else {
if ($round == 4) {
_root.all.attachMovie("raptor", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 6) {
_root.all.attachMovie("bat", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
}
}
if ((_root.$enemyno < 1) && ($round == 6)) {
$round++;
_root.all.attachMovie("rat", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("rat", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("rat", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("rat", "mc" + i, i);
_root.$enemyno++;
i++;
} else if (_root.$enemyno < 1) {
_root.$levelover = true;
_root.$room1 = true;
}
}
}
Symbol 1552 MovieClip Frame 5
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 5;
Instance of Symbol 1463 MovieClip "room" in Symbol 1552 MovieClip Frame 5
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1525 MovieClip in Symbol 1552 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 120) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(2);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = false;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 6
$roomholes = 4;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 6
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 6
onClipEvent (load) {
test = 0;
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room2) {
_root.$levelover = true;
} else {
if ($round == 4) {
_root.all.attachMovie("wizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 6) {
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
}
}
if ((_root.$enemyno < 1) && ($round == 6)) {
$round++;
_root.all.attachMovie("redwizard", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("archer", "mc" + i, i);
_root.$enemyno++;
i++;
_root.all.attachMovie("wizard", "mc" + i, i);
_root.$enemyno++;
i++;
} else if (_root.$enemyno < 1) {
_root.$levelover = true;
_root.$room2 = true;
}
}
}
Symbol 1552 MovieClip Frame 7
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 7;
Instance of Symbol 1463 MovieClip "room" in Symbol 1552 MovieClip Frame 7
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(4);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 156) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 8
$roomholes = 10;
$leftside = -200;
$upside = -200;
$roomwidth = 720;
$roomheight = 600;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 9;
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 8
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 8
onClipEvent (load) {
i = 500;
$b = 0;
$c = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room3) {
_root.$levelover = true;
} else {
$b++;
if ($b > $c) {
if ($c < 200) {
$c = $c + 10;
}
$b = 0;
if ($round < 22) {
$random = random(8);
if ($random == 1) {
_root.all.attachMovie("wizard", "mc" + i, i);
} else if ($random == 2) {
_root.all.attachMovie("redwizard", "mc" + i, i);
} else if ($random == 3) {
_root.all.attachMovie("octo", "mc" + i, i);
} else if ($random == 4) {
_root.all.attachMovie("ogre", "mc" + i, i);
} else if ($random == 5) {
_root.all.attachMovie("archer", "mc" + i, i);
} else if ($random == 6) {
_root.all.attachMovie("swarm", "mc" + i, i);
} else if ($random == 7) {
_root.all.attachMovie("redswarm", "mc" + i, i);
} else if ($random == 8) {
_root.all.attachMovie("redraptor", "mc" + i, i);
} else {
_root.all.attachMovie("rat", "mc" + i, i);
}
i++;
_root.$enemyno++;
$round++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room3 = true;
}
}
}
}
Symbol 1552 MovieClip Frame 9
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 9;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(10);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 9
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 159) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(6);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 10
$roomholes = 10;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 11;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 10
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 10
onClipEvent (load) {
i = 500;
b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room4) {
_root.$levelover = true;
} else {
b++;
if ((b > 25) && ($round < 25)) {
if (random(2) == 1) {
_root.all.attachMovie("swarm", "mc" + i, i);
} else {
_root.all.attachMovie("redswarm", "mc" + i, i);
}
i++;
_root.$enemyno++;
$round++;
b = 0;
} else if (($round == 25) && (_root.$enemyno == 0)) {
_root.$levelover = true;
_root.$room4 = true;
}
}
}
Symbol 1552 MovieClip Frame 11
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 11;
Instance of Symbol 1463 MovieClip "room" in Symbol 1552 MovieClip Frame 11
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(8);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1459 MovieClip in Symbol 1552 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 140) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(12);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 12
$roomholes = 4;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 13;
Instance of Symbol 1459 MovieClip in Symbol 1552 MovieClip Frame 12
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 12
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room5) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("raptor", "mc" + i, i);
$round++;
_root.$enemyno++;
} else if (_root.$enemyno == 0) {
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room5 = true;
}
}
Symbol 1552 MovieClip Frame 13
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 13;
Instance of Symbol 1463 MovieClip "room" in Symbol 1552 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 135) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(10);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 13
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 135) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(14);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1459 MovieClip in Symbol 1552 MovieClip Frame 13
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Symbol 1552 MovieClip Frame 14
$roomholes = 4;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 15;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 14
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 14
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room6) {
_root.$levelover = true;
} else {
if ($round == 4) {
while ($b < 5) {
_root.all.attachMovie("bat", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
if (($round == 5) && (_root.$enemyno == 0)) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
i++;
_root.$enemyno++;
_root.all.attachMovie("greenwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room6 = true;
}
}
}
Symbol 1552 MovieClip Frame 15
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 15;
Instance of Symbol 1463 MovieClip "room" in Symbol 1552 MovieClip Frame 15
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1459 MovieClip in Symbol 1552 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 135) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(12);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 135) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(16);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 16
$roomholes = 9;
$leftside = -200;
$upside = -200;
$roomwidth = 750;
$roomheight = 600;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 17;
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 16
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 16
onClipEvent (load) {
i = 500;
b = 0;
$round = 1;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room7) {
_root.$levelover = true;
} else {
b++;
if ((b > 60) && ($round < 16)) {
if ($round < 4) {
_root.all.attachMovie("ogre", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 4) {
_root.all.attachMovie("archer", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 5) {
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 6) {
_root.all.attachMovie("wizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 7) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round == 8) {
_root.all.attachMovie("ogre", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
} else if ($round > 8) {
_root.all.attachMovie("bat", "mc" + i, i);
i++;
_root.$enemyno++;
$round++;
}
b = 0;
}
if (($round > 15) && (_root.$enemyno == 0)) {
_root.$levelover = true;
_root.$room7 = true;
}
}
}
Symbol 1552 MovieClip Frame 17
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 17;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 140) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(18);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 17
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(14);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 18
$roomholes = 8;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 19;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 18
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 18
onClipEvent (load) {
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room8) {
_root.$levelover = true;
} else if ($round == 4) {
while ($b < 8) {
_root.all.attachMovie("bat", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
$b = 0;
$round++;
} else if (($round == 5) && (_root.$enemyno == 0)) {
while ($b < 8) {
_root.all.attachMovie("rat", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
$b = 0;
$round++;
} else if (($round == 6) && (_root.$enemyno == 0)) {
while ($b < 9) {
_root.all.attachMovie("raptor", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
$b = 0;
$round++;
} else if (($round == 7) && (_root.$enemyno == 0)) {
while ($b < 4) {
_root.all.attachMovie("redraptor", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
$b = 0;
$round++;
} else if (($round == 8) && (_root.$enemyno == 0)) {
while ($b < 16) {
_root.all.attachMovie("redswarm", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
$b = 0;
$round++;
} else if (($round == 9) && (_root.$enemyno == 0)) {
while ($b < 4) {
_root.all.attachMovie("redwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
$b = 0;
$round++;
} else if (($round == 10) && (_root.$enemyno == 0)) {
while ($b < 3) {
_root.all.attachMovie("ogre", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
$b = 0;
$round++;
} else if (($round == 11) && (_root.$enemyno == 0)) {
while ($b < 10) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
i++;
_root.$enemyno++;
$b++;
}
$b = 0;
$round++;
} else if (($round == 12) && (_root.$enemyno == 0)) {
_root.$levelover = true;
_root.$room8 = true;
}
}
Symbol 1552 MovieClip Frame 19
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 19;
Instance of Symbol 1463 MovieClip "room" in Symbol 1552 MovieClip Frame 19
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 160) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(16);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1463 MovieClip "room" in Symbol 1552 MovieClip Frame 19
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(20);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 20
$roomholes = 4;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 21;
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 20
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 20
onClipEvent (load) {
test = 0;
i = 500;
$b = 0;
$round = 4;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room9) {
_root.$levelover = true;
} else {
if ($round == 4) {
_root.all.attachMovie("greenwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 6) {
_root.all.attachMovie("redwizard", "mc" + i, i);
_root.$enemyno++;
i++;
$round++;
}
}
if (((_root.$enemyno < 1) && ($round > 5)) && ($round < 10)) {
$round++;
_root.all.attachMovie("redwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 10) {
$round++;
_root.all.attachMovie("wizard", "mc" + i, i);
_root.$enemyno++;
i++;
}
}
if (((_root.$enemyno < 1) && ($round > 9)) && ($round < 13)) {
$round++;
_root.all.attachMovie("greenwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 13) {
$round++;
_root.all.attachMovie("redwizard", "mc" + i, i);
_root.$enemyno++;
i++;
}
}
if (((_root.$enemyno < 1) && ($round > 12)) && ($round < 18)) {
$round++;
_root.all.attachMovie("greenwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round < 18) {
$round++;
_root.all.attachMovie("wizard", "mc" + i, i);
_root.$enemyno++;
i++;
}
}
if (((_root.$enemyno < 1) && ($round > 16)) && ($round < 20)) {
$round++;
_root.all.attachMovie("redwizard", "mc" + i, i);
_root.$enemyno++;
i++;
while ($round20) {
$round++;
_root.all.attachMovie("greenwizard", "mc" + i, i);
_root.$enemyno++;
i++;
}
} else if (_root.$enemyno < 1) {
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.ammochance();
_root.$levelover = true;
_root.$room9 = true;
}
}
}
Symbol 1552 MovieClip Frame 21
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 21;
Instance of Symbol 1463 MovieClip "room" in Symbol 1552 MovieClip Frame 21
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 21
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 140) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(18);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 21
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(22);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 22
$roomholes = 10;
$leftside = -200;
$upside = -200;
$roomwidth = 750;
$roomheight = 600;
i = 1;
while (i <= $roomholes) {
this[("$roomhole" + i) + "x"] = (random($roomwidth - 30) + $leftside) + 15;
this[("$roomhole" + i) + "y"] = (random($roomheight - 30) + $upside) + 15;
i++;
}
stop();
_root.$right = true;
_root.$left = true;
_root.$up = false;
_root.$down = false;
_root.$turnframe = 23;
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 22
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 22
onClipEvent (load) {
i = 800;
$round = 0;
_root.$enemyno = 0;
}
onClipEvent (enterFrame) {
if (_root.$room10) {
_root.$levelover = true;
} else {
if ($round == 0) {
_root.attachMovie("bossbox", "guardbox", 6754);
_root.guardbox._x = 275;
_root.guardbox._y = 64.7;
_root.$enemyno++;
$round++;
}
if ($round == 1) {
_root.all.attachMovie("boss", boss, i);
$round++;
_root.$enemyno++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room10 = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.$room1) {
_root.$levelover = true;
} else if ($round == 4) {
_root.all.attachMovie("raptor", "mc" + i, i);
$round++;
_root.$enemyno++;
} else if (_root.$enemyno == 0) {
_root.$levelover = true;
_root.$room1 = true;
}
}
Symbol 1552 MovieClip Frame 23
$roomholes++;
while ($roomholes > 0) {
this["rubble" + $roomholes].play();
_root.all["rubblelight" + _root.overi].play();
this[("$roomhole" + $roomholes) + "open"] = false;
$roomholes--;
_root.overi--;
}
_root.overi = 0;
stop();
_root.$turnframe = 23;
Instance of Symbol 1464 MovieClip in Symbol 1552 MovieClip Frame 23
onClipEvent (load) {
$centre = true;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_x = (_x + 5);
}
if (_root.all.$levelup) {
_y = (_y + 5);
}
if (_root.all.$levelright) {
_x = (_x - 5);
}
if (_root.all.$leveldown) {
_y = (_y - 5);
}
_alpha = (_alpha - 2);
}
Instance of Symbol 1463 MovieClip in Symbol 1552 MovieClip Frame 23
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelleft) {
_visible = true;
_root.all.man._x = _root.all.man._x + 3;
_x = (_x + 5);
i++;
if (i > 150) {
_root.all.$levelleft = false;
_root.$levelover = false;
_root.all.gotoAndStop(20);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = true;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Instance of Symbol 1467 MovieClip in Symbol 1552 MovieClip Frame 23
onClipEvent (load) {
_visible = false;
i = 0;
$centre = false;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.all.$levelright) {
_visible = true;
_root.all.man._x = _root.all.man._x - 3;
_x = (_x - 5);
i++;
if (i > 150) {
_root.all.$levelright = false;
_root.$levelover = false;
_root.all.gotoAndStop(24);
_root.all.black._alpha = 0;
}
}
}
onClipEvent (enterFrame) {
if (_visible == true) {
$left = true;
$right = false;
$up = false;
$down = false;
}
}
onClipEvent (enterFrame) {
_alpha = (_alpha + 2);
}
Symbol 1552 MovieClip Frame 24
_root.$scenegoto = 7;
$roomholes = 4;
$roomhole1x = 20;
$roomhole1y = 20;
$roomhole2x = 520;
$roomhole2y = 20;
$roomhole3x = 520;
$roomhole3y = 380;
$roomhole4x = 20;
$roomhole4y = 380;
$leftside = 0;
$upside = 30;
$roomwidth = 550;
$roomheight = 430;
stop();
_root.$right = false;
_root.$left = true;
_root.$up = false;
_root.$down = false;
Instance of Symbol 1467 MovieClip in Symbol 1552 MovieClip Frame 24
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1552 MovieClip Frame 24
onClipEvent (enterFrame) {
_root.$levelover = false;
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 2) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 4) {
play();
}
} else if (_root.$room1) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.all._currentframe == 24) {
play();
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 6) {
play();
}
} else if (_root.$room2) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 10) {
play();
}
} else if (_root.$room4) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 14) {
play();
}
} else if (_root.$room6) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 18) {
play();
}
} else if (_root.$room8) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 12) {
play();
}
} else if (_root.$room5) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 8) {
play();
}
} else if (_root.$room3) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 16) {
play();
}
} else if (_root.$room7) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 20) {
play();
}
} else if (_root.$room9) {
_visible = true;
}
}
Instance of Symbol 1522 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
if (_root.all._currentframe == 22) {
play();
}
} else if (_root.$room10) {
_visible = true;
}
}
Symbol 1556 MovieClip Frame 1
$roomwidth = 550;
$roomheight = 400;
Instance of Symbol 1415 MovieClip "man" in Symbol 1556 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
pointer = _currentframe;
}
onClipEvent (enterFrame) {
if (_root.rage > 100) {
_root.rage = 100;
}
if (_root.conviction > 100) {
_root.conviction = 100;
}
if (_root.rage > 0) {
_root.rage = _root.rage - 0.02;
} else {
_root.rage = 0;
}
if (_root.conviction > 0) {
_root.conviction = _root.conviction - 0.02;
} else {
_root.conviction = 0;
}
}
onClipEvent (enterFrame) {
ydist = _root.all.king.pawn._y - _y;
xdist = _root.all.king.pawn._x - _x;
rotation = (Math.atan2(-ydist, -xdist) * 180) / Math.PI;
rotationa = rotation;
rotationa = rotationa - _rotation;
if (rotationa < 0) {
rotationa = 360 + rotationa;
}
rotationa = rotationa - 180;
_rotation = (_rotation + (rotationa * turn));
}
onClipEvent (enterFrame) {
if (moving() == true) {
if ((pointer + (0.25 * _root.speed)) <= 40) {
pointer = pointer + (0.25 * _root.speed);
} else {
pointer = pointer - 40;
}
if (attacking() != true) {
gotoAndStop(Math.round(pointer));
}
} else {
stopping = true;
pointer = Math.round(pointer);
if (((pointer != 20) && (pointer != 1)) && (pointer != 40)) {
pointer++;
if (attacking() != true) {
gotoAndStop(pointer);
}
} else if (attacking() != true) {
gotoAndStop(pointer);
}
}
if ((rotationa > 5) || (rotationa < -5)) {
rotstep = Math.abs(rotationa) / 100;
if ((pointer + rotstep) <= 40) {
pointer = pointer + rotstep;
} else {
pointer = pointer - 40;
}
}
}
onClipEvent (enterFrame) {
if (_x > _root.all.$roomwidth) {
_x = _root.all.$roomwidth;
}
if (_x < _root.all.$leftside) {
_x = _root.all.$leftside;
}
if (_y > _root.all.$roomheight) {
_y = _root.all.$roomheight;
}
if (_y < _root.all.$upside) {
_y = _root.all.$upside;
}
}
Instance of Symbol 1418 MovieClip in Symbol 1556 MovieClip Frame 1
onClipEvent (load) {
_x = _root.all.man._x;
_y = _root.all.man._y;
}
onClipEvent (enterFrame) {
if (_root.all.man._x < _x) {
_x = (_x + (((_root.all.man._x - _x) - 20) / 20));
}
if (_root.all.man._x > _x) {
_x = (_x + (((_root.all.man._x - _x) + 20) / 20));
}
if (_root.all.man._y < _y) {
_y = (_y + (((_root.all.man._y - _y) - 20) / 20));
}
if (_root.all.man._y > _y) {
_y = (_y + (((_root.all.man._y - _y) + 20) / 20));
}
}
Symbol 1556 MovieClip Frame 2
$roomwidth = 470;
$roomheight = 370;
$upside = 35;
$leftside = 95;
stop();
_root.$right = false;
_root.$left = false;
_root.$up = false;
_root.$down = false;
Instance of Symbol 1525 MovieClip in Symbol 1556 MovieClip Frame 2
onClipEvent (load) {
$centre = true;
}
Instance of Symbol 1461 MovieClip "command1" in Symbol 1556 MovieClip Frame 2
onClipEvent (load) {
_root.$enemyno = 0;
$on = true;
}
onClipEvent (enterFrame) {
if (_root.$room0) {
_root.$levelover = true;
} else {
if ($on) {
if (_root.$firstlight == false) {
_root.attachMovie("kingbox dark", "kingbox", 6754);
} else {
_root.attachMovie("kingbox light", "kingbox", 6754);
}
_root.kingbox._x = 275;
_root.kingbox._y = 64.7;
_root.$enemyno = 1;
$on = false;
_root.all.attachMovie("king", "king", 500);
}
if (_root.$enemyno < 1) {
_root.$levelover = true;
_root.$room0 = true;
}
}
}
Symbol 1557 MovieClip Frame 1
stop();
Symbol 1557 MovieClip Frame 50
_root.gotoAndPlay("credits");
Symbol 1560 Button
on (press) {
_root.play();
}
Symbol 1563 Button
on (press) {
_root.gotoAndPlay("menu");
}
Instance of Symbol 1569 MovieClip in Symbol 1574 MovieClip Frame 1
onClipEvent (load) {
if (_root.$firstlight) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 1574 MovieClip Frame 436
_root.play();
Symbol 1579 MovieClip Frame 1
stop();
Symbol 1579 MovieClip Frame 305
stop();
_root.play();
Symbol 1587 MovieClip Frame 201
stop();
_root.play();
Symbol 1591 MovieClip Frame 200
stop();
_root.play();
Symbol 1594 MovieClip Frame 200
stop();
_root.play();
Symbol 1596 MovieClip Frame 200
stop();
_root.play();
Symbol 1600 Button
on (press) {
getURL ("http://dissoluteproductions.com/", "_blank");
}
Symbol 1606 Button
on (press) {
_root.gotoAndPlay("menu");
}
Symbol 1607 MovieClip Frame 144
stop();