Frame 1
_quality = "medium";
menuquality = "medium";
Mouse.hide();
this.createEmptyMovieClip("drawing_mc", this.getNextHighestDepth());
this.onMouseDown = function () {
drawing_mc.lineStyle(3, 0);
drawing_mc.moveTo(_xmouse, _ymouse);
onMouseMove = function () {
drawing_mc.lineTo(_xmouse, _ymouse);
};
};
this.onMouseUp = function () {
onMouseMove = noLine;
};
onEnterFrame = function () {
if (Key.isDown(32)) {
drawing_mc.clear();
}
};
onEnterFrame = function () {
if (Key.isDown(49)) {
_quality = "low";
menuquality = "low";
}
if (Key.isDown(50)) {
_quality = "medium";
menuquality = "medium";
}
if (Key.isDown(51)) {
_quality = "high";
menuquality = "high";
}
if (Key.isDown(52)) {
_quality = "autohigh";
menuquality = "low";
}
};
Instance of Symbol 295 MovieClip "cursor" in Frame 1
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 2
stop();
story = 0;
swish = new Sound();
swishX = new Sound();
swishXX = new Sound();
enmswish = new Sound();
enmswishX = new Sound();
enmhurt = new Sound();
growl = new Sound();
hurt = new Sound();
battlemusic = new Sound();
footstep = new Sound();
pageturn = new Sound();
weathersound = new Sound();
drink = new Sound();
error = new Sound();
item = new Sound();
buttonover = new Sound();
buttonclickz = new Sound();
error.attachSound("error");
drink.attachSound("gulp");
item.attachSound("hit2");
buttonover.attachSound("kong");
buttonclickz.attachSound("buttonclick");
drawing_mc.removeMovieClip();
bg.gotoAndStop(2);
Frame 3
stop();
_quality = menuquality;
if ((corename == undefined) or ((corehealth > 0) or (calebhealth > 0))) {
save_BT._visible = false;
} else {
weathersound.stop();
}
player1SO = SharedObject.getLocal("playerInfo1");
player1 = new Object();
if (player1SO.data.playerDat.corename == undefined) {
name1.text = "Available";
} else {
name1.text = player1SO.data.playerDat.corename;
if (player1SO.data.playerDat.area == 1) {
location1.text = "Forest";
}
if (player1SO.data.playerDat.area == 2) {
location1.text = "Burnt forest";
}
strength1.text = player1SO.data.playerDat.corestrength;
time1.text = (((player1SO.data.playerDat.counterhour + " : ") + player1SO.data.playerDat.counterminute) + " : ") + player1SO.data.playerDat.counter;
}
player2SO = SharedObject.getLocal("playerInfo2");
player2 = new Object();
if (player2SO.data.playerDat.corename == undefined) {
name2.text = "Available";
} else {
name2.text = player2SO.data.playerDat.corename;
if (player2SO.data.playerDat.area == 1) {
location2.text = "Forest";
}
if (player2SO.data.playerDat.area == 2) {
location2.text = "Burnt forest";
}
strength2.text = player2SO.data.playerDat.corestrength;
time2.text = (((player2SO.data.playerDat.counterhour + " : ") + player2SO.data.playerDat.counterminute) + " : ") + player2SO.data.playerDat.counter;
}
loadPlayer1 = function () {
player1SO = SharedObject.getLocal("playerInfo1");
player1 = new Object();
player1.corename = player1SO.data.playerDat.corename;
player1.playerX = player1SO.data.playerDat.playerX;
player1.playerY = player1SO.data.playerDat.playerY;
player1.stand = player1SO.data.playerDat.stand;
player1.story = player1SO.data.playerDat.story;
player1.gold = player1SO.data.playerDat.gold;
player1.corehealth = player1SO.data.playerDat.corehealth;
player1.coremaxhealth = player1SO.data.playerDat.coremaxhealth;
player1.coremana = player1SO.data.playerDat.coremana;
player1.coremaxmana = player1SO.data.playerDat.coremaxmana;
player1.coremaxfatigue = player1SO.data.playerDat.coremaxfatigue;
player1.calebhealth = player1SO.data.playerDat.calebhealth;
player1.calebmaxhealth = player1SO.data.playerDat.calebmaxhealth;
player1.calebmana = player1SO.data.playerDat.calebmana;
player1.calebmaxmana = player1SO.data.playerDat.calebmaxmana;
player1.calebmaxfatigue = player1SO.data.playerDat.calebmaxfatigue;
player1.corelimit = player1SO.data.playerDat.corelimit;
player1.coremaxlimit = player1SO.data.playerDat.coremaxlimit;
player1.caleblimit = player1SO.data.playerDat.caleblimit;
player1.calebmaxlimit = player1SO.data.playerDat.calebmaxlimit;
player1.weapon1 = player1SO.data.playerDat.weapon1;
player1.weapon2 = player1SO.data.playerDat.weapon2;
player1.weapon3 = player1SO.data.playerDat.weapon3;
player1.weapon4 = player1SO.data.playerDat.weapon4;
player1.weapon5 = player1SO.data.playerDat.weapon5;
player1.weapon6 = player1SO.data.playerDat.weapon6;
player1.corelimit2 = player1SO.data.playerDat.corelimit2;
player1.corelimit3 = player1SO.data.playerDat.corelimit3;
player1.corelimit4 = player1SO.data.playerDat.corelimit4;
player1.caleblimit2 = player1SO.data.playerDat.caleblimit2;
player1.caleblimit3 = player1SO.data.playerDat.caleblimit3;
player1.caleblimit4 = player1SO.data.playerDat.caleblimit4;
player1.getsword2 = player1SO.data.playerDat.getsword2;
player1.getsword3 = player1SO.data.playerDat.getsword3;
player1.getsword4 = player1SO.data.playerDat.getsword4;
player1.getsword5 = player1SO.data.playerDat.getsword5;
player1.getsword6 = player1SO.data.playerDat.getsword6;
player1.coremagicdamage = player1SO.data.playerDat.coremagicdamage;
player1.corestrength = player1SO.data.playerDat.corestrength;
player1.coredefense = player1SO.data.playerDat.coredefense;
player1.coremagicdefense = player1SO.data.playerDat.coremagicdefense;
player1.coreluck = player1SO.data.playerDat.coreluck;
player1.coreagility = player1SO.data.playerDat.coreagility;
player1.coremagicdamageX = player1SO.data.playerDat.coremagicdamageX;
player1.corestrengthX = player1SO.data.playerDat.corestrengthX;
player1.coredefenseX = player1SO.data.playerDat.coredefenseX;
player1.coreluckX = player1SO.data.playerDat.coreluckX;
player1.coreagilityX = player1SO.data.playerDat.coreagilityX;
player1.corefireElement = player1SO.data.playerDat.corefireElement;
player1.coredarkElement = player1SO.data.playerDat.coredarkElement;
player1.coreiceElement = player1SO.data.playerDat.coreiceElement;
player1.corethunderElement = player1SO.data.playerDat.corethunderElement;
player1.calebmagicdamage = player1SO.data.playerDat.calebmagicdamage;
player1.calebstrength = player1SO.data.playerDat.calebstrength;
player1.calebdefense = player1SO.data.playerDat.calebdefense;
player1.calebmagicdefense = player1SO.data.playerDat.calebmagicdefense;
player1.calebluck = player1SO.data.playerDat.calebluck;
player1.calebagility = player1SO.data.playerDat.calebagility;
player1.calebmagicdamageX = player1SO.data.playerDat.calebmagicdamageX;
player1.calebstrengthX = player1SO.data.playerDat.calebstrengthX;
player1.calebdefenseX = player1SO.data.playerDat.calebdefenseX;
player1.calebluckX = player1SO.data.playerDat.calebluckX;
player1.calebagilityX = player1SO.data.playerDat.calebagilityX;
player1.calebfireElement = player1SO.data.playerDat.calebfireElement;
player1.calebdarkElement = player1SO.data.playerDat.calebdarkElement;
player1.calebiceElement = player1SO.data.playerDat.calebiceElement;
player1.calebthunderElement = player1SO.data.playerDat.calebthunderElement;
player1.sword = player1SO.data.playerDat.sword;
player1.corecounterchance = player1SO.data.playerDat.corecounterchance;
player1.calebcounterchance = player1SO.data.playerDat.calebcounterchance;
player1.corereg1 = player1SO.data.playerDat.corereg1;
player1.corereg2 = player1SO.data.playerDat.corereg2;
player1.corereg3 = player1SO.data.playerDat.corereg3;
player1.calebreg1 = player1SO.data.playerDat.calebreg1;
player1.calebreg2 = player1SO.data.playerDat.calebreg2;
player1.calebreg3 = player1SO.data.playerDat.calebreg3;
player1.speed = player1SO.data.playerDat.speed;
player1.curentspeed = player1SO.data.playerDat.currentspeed;
player1.potion = player1SO.data.playerDat.potion;
player1.elixir = player1SO.data.playerDat.elixir;
player1.remedy = player1SO.data.playerDat.remedy;
player1.ether = player1SO.data.playerDat.ether;
player1.area = player1SO.data.playerDat.area;
player1.mute = player1SO.data.playerDat.mute;
player1.night = player1SO.data.playerDat.night;
player1.camera = player1SO.data.playerDat.camera;
player1.menuvisible = player1SO.data.playerDat.menuvisible;
player1.quality = player1SO.data.playerDat.quality;
player1.battlequality = player1SO.data.playerDat.battlequality;
player1.counter = player1SO.data.playerDat.counter;
player1.counter2 = player1SO.data.playerDat.counter2;
player1.counter3 = player1SO.data.playerDat.counter3;
player1.counterminute = player1SO.data.playerDat.counterminute;
player1.counterhour = player1SO.data.playerDat.counterhour;
player1.map = player1SO.data.playerDat.map;
player1.item1 = player1SO.data.playerDat.item1;
player1.item2 = player1SO.data.playerDat.item2;
player1.item3 = player1SO.data.playerDat.item3;
player1.item4 = player1SO.data.playerDat.item4;
};
loadButton1.onRelease = function () {
if (!(player1SO.data.playerDat.corestrength === undefined)) {
loadPlayer1();
corename = player1.corename;
playerX = player1.playerX;
playerY = player1.playerY;
stand = player1.stand;
story = player1.story;
gold = player1.gold;
corehealth = player1.corehealth;
coremaxhealth = player1.coremaxhealth;
coremana = player1.coremana;
coremaxmana = player1.coremaxmana;
coremaxfatigue = player1.coremaxfatigue;
calebhealth = player1.calebhealth;
calebmaxhealth = player1.calebmaxhealth;
calebmana = player1.calebmana;
calebmaxmana = player1.calebmaxmana;
calebmaxfatigue = player1.calebmaxfatigue;
corelimit = player1.corelimit;
coremaxlimit = player1.coremaxlimit;
caleblimit = player1.caleblimit;
calebmaxlimit = player1.calebmaxlimit;
weapon1 = player1.weapon1;
weapon2 = player1.weapon3;
weapon3 = player1.weapon3;
weapon4 = player1.weapon4;
weapon5 = player1.weapon5;
weapon6 = player1.weapon6;
corelimit2 = player1.corelimit2;
corelimit3 = player1.corelimit3;
corelimit4 = player1.corelimit4;
caleblimit2 = player1.caleblimit2;
caleblimit3 = player1.caleblimit3;
caleblimit4 = player1.caleblimit4;
getsword2 = player1.getsword2;
getsword3 = player1.getsword3;
getsword4 = player1.getsword4;
getsword5 = player1.getsword5;
getsword6 = player1.getsword6;
coremagicdamage = player1.coremagicdamage;
corestrength = player1.corestrength;
coredefense = player1.coredefense;
coremagicdefense = player1.coremagicdefense;
coreluck = player1.coreluck;
coreagility = player1.coreagility;
coremagicdamageX = player1.coremagicdamageX;
corestrengthX = player1.corestrengthX;
coredefenseX = player1.coredefenseX;
coreluckX = player1.coreluckX;
coreagilityX = player1.coreagilityX;
corefireElement = player1.corefireElement;
coredarkElement = player1.coredarkElement;
coreiceElement = player1.coreiceElement;
corethunderElement = player1.corethunderElement;
calebmagicdamage = player1.calebmagicdamage;
calebstrength = player1.calebstrength;
calebdefense = player1.calebdefense;
calebmagicdefense = player1.calebmagicdefense;
calebluck = player1.calebluck;
calebagility = player1.calebagility;
calebmagicdamageX = player1.calebmagicdamageX;
calebstrengthX = player1.calebstrengthX;
calebdefenseX = player1.calebdefenseX;
calebluckX = player1.calebluckX;
calebagilityX = player1.calebagilityX;
calebfireElement = player1.calebfireElement;
calebdarkElement = player1.calebdarkElement;
calebiceElement = player1.calebiceElement;
calebthunderElement = player1.calebthunderElement;
sword = player1.sword;
corecounterchance = player1.corecounterchance;
calebcounterchance = player1.calebcounterchance;
corereg1 = player1.corereg1;
corereg2 = player1.corereg2;
corereg3 = player1.corereg3;
calebreg1 = player1.calebreg1;
calebreg2 = player1.calebreg2;
calebreg3 = player1.calebreg3;
speed = player1.speed;
currentspeed = player1.currentspeed;
potion = player1.potion;
ether = player1.ether;
elixir = player1.elixir;
remedy = player1.remedy;
area = player1.area;
mute = player1.mute;
night = player1.night;
camera = player1.camera;
menuvisible = player1.menuvisible;
quality = player1.quality;
battlequality = player1.battlequality;
counter = player1.counter;
counter2 = player1.counter2;
counter3 = player1.counter3;
counterminute = player1.counterminute;
counterhour = player1.counterhour;
map = player1.map;
item1 = player1.item1;
item2 = player1.item2;
item3 = player1.item3;
item4 = player1.item4;
gotoAndPlay ("Continue");
}
};
loadPlayer2 = function () {
player2SO = SharedObject.getLocal("playerInfo2");
player2 = new Object();
player2.corename = player2SO.data.playerDat.corename;
player2.playerX = player2SO.data.playerDat.playerX;
player2.playerY = player2SO.data.playerDat.playerY;
player2.stand = player2SO.data.playerDat.stand;
player2.story = player2SO.data.playerDat.story;
player2.gold = player2SO.data.playerDat.gold;
player2.corehealth = player2SO.data.playerDat.corehealth;
player2.coremaxhealth = player2SO.data.playerDat.coremaxhealth;
player2.coremana = player2SO.data.playerDat.coremana;
player2.coremaxmana = player2SO.data.playerDat.coremaxmana;
player2.coremaxfatigue = player2SO.data.playerDat.coremaxfatigue;
player2.calebhealth = player2SO.data.playerDat.calebhealth;
player2.calebmaxhealth = player2SO.data.playerDat.calebmaxhealth;
player2.calebmana = player2SO.data.playerDat.calebmana;
player2.calebmaxmana = player2SO.data.playerDat.calebmaxmana;
player2.calebmaxfatigue = player2SO.data.playerDat.calebmaxfatigue;
player2.corelimit = player2SO.data.playerDat.corelimit;
player2.coremaxlimit = player2SO.data.playerDat.coremaxlimit;
player2.caleblimit = player2SO.data.playerDat.caleblimit;
player2.calebmaxlimit = player2SO.data.playerDat.calebmaxlimit;
player2.weapon1 = player2SO.data.playerDat.weapon1;
player2.weapon2 = player2SO.data.playerDat.weapon2;
player2.weapon3 = player2SO.data.playerDat.weapon3;
player2.weapon4 = player2SO.data.playerDat.weapon4;
player2.weapon5 = player2SO.data.playerDat.weapon5;
player2.weapon6 = player2SO.data.playerDat.weapon6;
player2.corelimit2 = player2SO.data.playerDat.corelimit2;
player2.corelimit3 = player2SO.data.playerDat.corelimit3;
player2.corelimit4 = player2SO.data.playerDat.corelimit4;
player2.caleblimit2 = player2SO.data.playerDat.caleblimit2;
player2.caleblimit3 = player2SO.data.playerDat.caleblimit3;
player2.caleblimit4 = player2SO.data.playerDat.caleblimit4;
player2.getsword2 = player2SO.data.playerDat.getsword2;
player2.getsword3 = player2SO.data.playerDat.getsword3;
player2.getsword4 = player2SO.data.playerDat.getsword4;
player2.getsword5 = player2SO.data.playerDat.getsword5;
player2.getsword6 = player2SO.data.playerDat.getsword6;
player2.coremagicdamage = player2SO.data.playerDat.coremagicdamage;
player2.corestrength = player2SO.data.playerDat.corestrength;
player2.coredefense = player2SO.data.playerDat.coredefense;
player2.coremagicdefense = player2SO.data.playerDat.coremagicdefense;
player2.coreluck = player2SO.data.playerDat.coreluck;
player2.coreagility = player2SO.data.playerDat.coreagility;
player2.coremagicdamageX = player2SO.data.playerDat.coremagicdamageX;
player2.corestrengthX = player2SO.data.playerDat.corestrengthX;
player2.coredefenseX = player2SO.data.playerDat.coredefenseX;
player2.coreluckX = player2SO.data.playerDat.coreluckX;
player2.coreagilityX = player2SO.data.playerDat.coreagilityX;
player2.corefireElement = player2SO.data.playerDat.corefireElement;
player2.coredarkElement = player2SO.data.playerDat.coredarkElement;
player2.coreiceElement = player2SO.data.playerDat.coreiceElement;
player2.corethunderElement = player2SO.data.playerDat.corethunderElement;
player2.calebmagicdamage = player2SO.data.playerDat.calebmagicdamage;
player2.calebstrength = player2SO.data.playerDat.calebstrength;
player2.calebdefense = player2SO.data.playerDat.calebdefense;
player2.calebmagicdefense = player2SO.data.playerDat.calebmagicdefense;
player2.calebluck = player2SO.data.playerDat.calebluck;
player2.calebagility = player2SO.data.playerDat.calebagility;
player2.calebmagicdamageX = player2SO.data.playerDat.calebmagicdamageX;
player2.calebstrengthX = player2SO.data.playerDat.calebstrengthX;
player2.calebdefenseX = player2SO.data.playerDat.calebdefenseX;
player2.calebluckX = player2SO.data.playerDat.calebluckX;
player2.calebagilityX = player2SO.data.playerDat.calebagilityX;
player2.calebfireElement = player2SO.data.playerDat.calebfireElement;
player2.calebdarkElement = player2SO.data.playerDat.calebdarkElement;
player2.calebiceElement = player2SO.data.playerDat.calebiceElement;
player2.calebthunderElement = player2SO.data.playerDat.calebthunderElement;
player2.sword = player2SO.data.playerDat.sword;
player2.corecounterchance = player2SO.data.playerDat.corecounterchance;
player2.calebcounterchance = player2SO.data.playerDat.calebcounterchance;
player2.corereg1 = player2SO.data.playerDat.corereg1;
player2.corereg2 = player2SO.data.playerDat.corereg2;
player2.corereg3 = player2SO.data.playerDat.corereg3;
player2.calebreg1 = player2SO.data.playerDat.calebreg1;
player2.calebreg2 = player2SO.data.playerDat.calebreg2;
player2.calebreg3 = player2SO.data.playerDat.calebreg3;
player2.speed = player2SO.data.playerDat.speed;
player2.curentspeed = player2SO.data.playerDat.currentspeed;
player2.potion = player2SO.data.playerDat.potion;
player2.elixir = player2SO.data.playerDat.elixir;
player2.remedy = player2SO.data.playerDat.remedy;
player2.ether = player2SO.data.playerDat.ether;
player2.area = player2SO.data.playerDat.area;
player2.mute = player2SO.data.playerDat.mute;
player2.night = player2SO.data.playerDat.night;
player2.camera = player2SO.data.playerDat.camera;
player2.menuvisible = player2SO.data.playerDat.menuvisible;
player2.quality = player2SO.data.playerDat.quality;
player2.battlequality = player2SO.data.playerDat.battlequality;
player2.counter = player2SO.data.playerDat.counter;
player2.counter2 = player2SO.data.playerDat.counter2;
player2.counter3 = player2SO.data.playerDat.counter3;
player2.counterminute = player2SO.data.playerDat.counterminute;
player2.counterhour = player2SO.data.playerDat.counterhour;
player2.map = player2SO.data.playerDat.map;
player2.item1 = player2SO.data.playerDat.item1;
player2.item2 = player2SO.data.playerDat.item2;
player2.item3 = player2SO.data.playerDat.item3;
player2.item4 = player2SO.data.playerDat.item4;
};
loadButton2.onRelease = function () {
if (!(player2SO.data.playerDat.corestrength === undefined)) {
loadPlayer2();
corename = player2.corename;
playerX = player2.playerX;
playerY = player2.playerY;
stand = player2.stand;
story = player2.story;
gold = player2.gold;
corehealth = player2.corehealth;
coremaxhealth = player2.coremaxhealth;
coremana = player2.coremana;
coremaxmana = player2.coremaxmana;
coremaxfatigue = player2.coremaxfatigue;
calebhealth = player2.calebhealth;
calebmaxhealth = player2.calebmaxhealth;
calebmana = player2.calebmana;
calebmaxmana = player2.calebmaxmana;
calebmaxfatigue = player2.calebmaxfatigue;
corelimit = player2.corelimit;
coremaxlimit = player2.coremaxlimit;
caleblimit = player2.caleblimit;
calebmaxlimit = player2.calebmaxlimit;
weapon1 = player2.weapon1;
weapon2 = player2.weapon3;
weapon3 = player2.weapon3;
weapon4 = player2.weapon4;
weapon5 = player2.weapon5;
weapon6 = player2.weapon6;
corelimit2 = player2.corelimit2;
corelimit3 = player2.corelimit3;
corelimit4 = player2.corelimit4;
caleblimit2 = player2.caleblimit2;
caleblimit3 = player2.caleblimit3;
caleblimit4 = player2.caleblimit4;
getsword2 = player2.getsword2;
getsword3 = player2.getsword3;
getsword4 = player2.getsword4;
getsword5 = player2.getsword5;
getsword6 = player2.getsword6;
coremagicdamage = player2.coremagicdamage;
corestrength = player2.corestrength;
coredefense = player2.coredefense;
coremagicdefense = player2.coremagicdefense;
coreluck = player2.coreluck;
coreagility = player2.coreagility;
coremagicdamageX = player2.coremagicdamageX;
corestrengthX = player2.corestrengthX;
coredefenseX = player2.coredefenseX;
coreluckX = player2.coreluckX;
coreagilityX = player2.coreagilityX;
corefireElement = player2.corefireElement;
coredarkElement = player2.coredarkElement;
coreiceElement = player2.coreiceElement;
corethunderElement = player2.corethunderElement;
calebmagicdamage = player2.calebmagicdamage;
calebstrength = player2.calebstrength;
calebdefense = player2.calebdefense;
calebmagicdefense = player2.calebmagicdefense;
calebluck = player2.calebluck;
calebagility = player2.calebagility;
calebmagicdamageX = player2.calebmagicdamageX;
calebstrengthX = player2.calebstrengthX;
calebdefenseX = player2.calebdefenseX;
calebluckX = player2.calebluckX;
calebagilityX = player2.calebagilityX;
calebfireElement = player2.calebfireElement;
calebdarkElement = player2.calebdarkElement;
calebiceElement = player2.calebiceElement;
calebthunderElement = player2.calebthunderElement;
sword = player2.sword;
corecounterchance = player2.corecounterchance;
calebcounterchance = player2.calebcounterchance;
corereg1 = player2.corereg1;
corereg2 = player2.corereg2;
corereg3 = player2.corereg3;
calebreg1 = player2.calebreg1;
calebreg2 = player2.calebreg2;
calebreg3 = player2.calebreg3;
speed = player2.speed;
currentspeed = player2.currentspeed;
potion = player2.potion;
ether = player2.ether;
elixir = player2.elixir;
remedy = player2.remedy;
area = player2.area;
mute = player2.mute;
night = player2.night;
camera = player2.camera;
menuvisible = player2.menuvisible;
quality = player2.quality;
battlequality = player2.battlequality;
counter = player2.counter;
counter2 = player2.counter2;
counter3 = player2.counter3;
counterminute = player2.counterminute;
counterhour = player2.counterhour;
map = player2.map;
item2 = player2.item2;
item2 = player2.item2;
item3 = player2.item3;
item4 = player2.item4;
gotoAndPlay ("Continue");
}
};
onEnterFrame = function () {
if (Key.isDown(49)) {
_quality = "low";
menuquality = "low";
}
if (Key.isDown(50)) {
_quality = "medium";
menuquality = "medium";
}
if (Key.isDown(51)) {
_quality = "high";
menuquality = "high";
}
if (Key.isDown(52)) {
_quality = "autohigh";
menuquality = _quality;
}
};
Instance of Symbol 333 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.gotoAndPlay(35);
}
Frame 4
stop();
_quality = menuquality;
player1SO = SharedObject.getLocal("playerInfo1");
player1 = new Object();
if (player1SO.data.playerDat.corename == undefined) {
name1.text = "Available";
} else {
name1.text = player1SO.data.playerDat.corename;
if (player1SO.data.playerDat.area == 1) {
location1.text = "Forest";
}
if (player1SO.data.playerDat.area == 2) {
location1.text = "Burnt Forest";
}
strength1.text = player1SO.data.playerDat.corestrength;
time1.text = (((player1SO.data.playerDat.counterhour + " : ") + player1SO.data.playerDat.counterminute) + " : ") + player1SO.data.playerDat.counter;
}
player2SO = SharedObject.getLocal("playerInfo2");
player2 = new Object();
if (player2SO.data.playerDat.corename == undefined) {
name2.text = "Available";
} else {
name2.text = player2SO.data.playerDat.corename;
if (player2SO.data.playerDat.area == 1) {
location2.text = "Forest";
}
if (player1SO.data.playerDat.area == 2) {
location2.text = "Burnt Forest";
}
strength2.text = player2SO.data.playerDat.corestrength;
time2.text = (((player2SO.data.playerDat.counterhour + " : ") + player2SO.data.playerDat.counterminute) + " : ") + player2SO.data.playerDat.counter;
}
setPlayerInfo1 = function () {
player1 = new Object();
player1.corename = corename;
player1.playerX = playerX;
player1.playerY = playerY;
player1.stand = stand;
player1.story = story;
player1.gold = gold;
player1.corehealth = corehealth;
player1.coremaxhealth = coremaxhealth;
player1.coremana = coremana;
player1.coremaxmana = coremaxmana;
player1.coremaxfatigue = coremaxfatigue;
player1.calebhealth = calebhealth;
player1.calebmaxhealth = calebmaxhealth;
player1.calebmana = calebmana;
player1.calebmaxmana = calebmaxmana;
player1.calebmaxfatigue = calebmaxfatigue;
player1.corelimit = corelimit;
player1.coremaxlimit = coremaxlimit;
player1.caleblimit = caleblimit;
player1.calebmaxlimit = calebmaxlimit;
player1.weapon1 = weapon1;
player1.weapon2 = weapon2;
player1.weapon3 = weapon3;
player1.weapon4 = weapon4;
player1.weapon5 = weapon5;
player1.weapon6 = weapon6;
player1.corelimit2 = corelimit2;
player1.corelimit3 = corelimit3;
player1.corelimit4 = corelimit4;
player1.caleblimit2 = caleblimit2;
player1.caleblimit3 = caleblimit3;
player1.caleblimit4 = caleblimit4;
player1.getsword2 = getsword2;
player1.getsword3 = getsword3;
player1.getsword4 = getsword4;
player1.getsword5 = getsword5;
player1.getsword6 = getsword6;
player1.coremagicdamage = coremagicdamage;
player1.corestrength = corestrength;
player1.coredefense = coredefense;
player1.coremagicdefense = coremagicdefense;
player1.coreluck = coreluck;
player1.coreagility = coreagility;
player1.coremagicdamageX = coremagicdamageX;
player1.corestrengthX = corestrengthX;
player1.coredefenseX = coredefenseX;
player1.coreluckX = coreluckX;
player1.coreagilityX = coreagilityX;
player1.corefireElement = corefireElement;
player1.coredarkElement = coredarkElement;
player1.coreiceElement = coreiceElement;
player1.corethunderElement = corethunderElement;
player1.calebmagicdamage = magicdamage;
player1.calebstrength = calebstrength;
player1.calebdefense = calebdefense;
player1.calebmagicdefense = calebmagicdefense;
player1.calebluck = calebluck;
player1.calebagility = calebagility;
player1.calebmagicdamageX = calebmagicdamageX;
player1.calebstrengthX = calebstrengthX;
player1.calebdefenseX = calebdefenseX;
player1.calebluckX = calebluckX;
player1.calebagilityX = calebagilityX;
player1.calebfireElement = calebfireElement;
player1.calebdarkElement = calebdarkElement;
player1.calebiceElement = calebiceElement;
player1.calebthunderElement = calebthunderElement;
player1.sword = sword;
player1.corecounterchance = corecounterchance;
player1.calebcounterchance = calebcounterchance;
player1.corereg1 = corereg1;
player1.corereg2 = corereg2;
player1.corereg3 = corereg3;
player1.calebreg1 = calebreg1;
player1.calebreg2 = calebreg2;
player1.calebreg3 = calebreg3;
player1.speed = speed;
player1.currentspeed = currentspeed;
player1.potion = potion;
player1.ether = ether;
player1.elixir = elixir;
player1.remedy = remedy;
player1.area = area;
player1.mute = mute;
player1.night = night;
player1.camera = camera;
player1.menuvisible = menuvisible;
player1.quality = quality;
player1.battlequality = battlequality;
player1.counter = counter;
player1.counter2 = counter2;
player1.counter3 = counter3;
player1.counterminute = counterminute;
player1.counterhour = counterhour;
player1.map = map;
player1.item1 = item1;
player1.item2 = item2;
player1.item3 = item3;
player1.item4 = item4;
};
savePlayer1 = function () {
player1SO = SharedObject.getLocal("playerInfo1");
player1SO.data.playerDat = player1;
plater1SO.flush();
};
saveButton1.onRelease = function () {
setPlayerInfo1();
savePlayer1();
corename = player1.corename;
playerX = player1.playerX;
playerY = player1.playerY;
stand = player1.stand;
story = player1.story;
gold = player1.gold;
corehealth = player1.corehealth;
coremaxhealth = player1.coremaxhealth;
coremana = player1.coremana;
coremaxmana = player1.coremaxmana;
coremaxfatigue = player1.coremaxfatigue;
calebhealth = player1.calebhealth;
calebmaxhealth = player1.calebmaxhealth;
calebmana = player1.calebmana;
calebmaxmana = player1.calebmaxmana;
calebmaxfatigue = player1.calebmaxfatigue;
corelimit = player1.corelimit;
coremaxlimit = player1.coremaxlimit;
caleblimit = player1.caleblimit;
calebmaxlimit = player1.calebmaxlimit;
weapon1 = player1.weapon1;
weapon2 = player1.weapon2;
weapon3 = player1.weapon3;
weapon4 = player1.weapon4;
weapon5 = player1.weapon5;
weapon6 = player1.weapon6;
corelimit2 = player1.corelimit2;
corelimit3 = player1.corelimit3;
corelimit4 = player1.corelimit4;
caleblimit2 = player1.caleblimit2;
caleblimit3 = player1.caleblimit3;
caleblimit4 = player1.caleblimit4;
getsword2 = player1.getsword2;
getsword3 = player1.getsword3;
getsword4 = player1.getsword4;
getsword5 = player1.getsword5;
getsword6 = player1.getsword6;
coremagicdamage = player1.coremagicdamage;
corestrength = player1.corestrength;
coredefense = player1.coredefense;
coremagicdefense = player1.coremagicdefense;
coreluck = player1.coreluck;
coreagility = player1.coreagility;
coremagicdamageX = player1.coremagicdamageX;
corestrengthX = player1.corestrengthX;
coredefenseX = player1.coredefenseX;
coreluckX = player1.coreluckX;
coreagilityX = player1.coreagilityX;
corefireElement = player1.corefireElement;
coredarkElement = player1.coredarkElement;
coreiceElement = player1.coreiceElement;
corethunderElement = player1.corethunderElement;
calebmagicdamage = player1.calebmagicdamage;
calebstrength = player1.calebstrength;
calebdefense = player1.calebdefense;
calebmagicdefense = player1.calebmagicdefense;
calebluck = player1.calebluck;
calebagility = player1.calebagility;
calebmagicdamageX = player1.calebmagicdamageX;
calebstrengthX = player1.calebstrengthX;
calebdefenseX = player1.calebdefenseX;
calebluckX = player1.calebluckX;
calebagilityX = player1.calebagilityX;
calebfireElement = player1.calebfireElement;
calebdarkElement = player1.calebdarkElement;
calebiceElement = player1.calebiceElement;
calebthunderElement = player1.calebthunderElement;
sword = player1.sword;
corecounterchance = player1.corecounterchance;
calebcounterchance = player1.calebcounterchance;
corereg1 = player1.corereg1;
corereg2 = player1.corereg2;
corereg3 = player1.corereg3;
calebreg1 = player1.calebreg1;
calebreg2 = player1.calebreg2;
calebreg3 = player1.calebreg3;
speed = player1.speed;
currentspeed = player1.currentspeed;
potion = player1.potion;
ether = player1.ether;
elixir = player1.elixir;
remedy = player1.remedy;
area = player1.area;
mute = player1.mute;
night = player1.night;
camera = player1.camera;
menuvisible = player1.menuvisible;
quality = player1.quality;
battlequality = player1.battlequality;
counter = player1.counter;
counter2 = player1.counter2;
counter3 = player1.counter3;
counterminute = player1.counterminute;
counterhour = player1.counterhour;
map = player1.map;
item1 = player1.item1;
item2 = player1.item2;
item3 = player1.item3;
item4 = player1.item4;
name1.text = corename;
if (area == 1) {
location1.text = "Forest";
}
if (area == 2) {
location1.text = "Burnt Forest";
}
strength.text = corestrength;
time1.text = (((counterhour + " : ") + counterminute) + " : ") + counter;
swordz1.gotoAndStop(player1.sword);
};
setPlayerInfo2 = function () {
player2 = new Object();
player2.corename = corename;
player2.playerX = playerX;
player2.playerY = playerY;
player2.stand = stand;
player2.story = story;
player2.gold = gold;
player2.corehealth = corehealth;
player2.coremaxhealth = coremaxhealth;
player2.coremana = coremana;
player2.coremaxmana = coremaxmana;
player2.coremaxfatigue = coremaxfatigue;
player2.calebhealth = calebhealth;
player2.calebmaxhealth = calebmaxhealth;
player2.calebmana = calebmana;
player2.calebmaxmana = calebmaxmana;
player2.calebmaxfatigue = calebmaxfatigue;
player2.corelimit = corelimit;
player2.coremaxlimit = coremaxlimit;
player2.caleblimit = caleblimit;
player2.calebmaxlimit = calebmaxlimit;
player2.weapon1 = weapon1;
player2.weapon2 = weapon2;
player2.weapon3 = weapon3;
player2.weapon4 = weapon4;
player2.weapon5 = weapon5;
player2.weapon6 = weapon6;
player2.corelimit2 = corelimit2;
player2.corelimit3 = corelimit3;
player2.corelimit4 = corelimit4;
player2.caleblimit2 = caleblimit2;
player2.caleblimit3 = caleblimit3;
player2.caleblimit4 = caleblimit4;
player2.getsword2 = getsword2;
player2.getsword3 = getsword3;
player2.getsword4 = getsword4;
player2.getsword5 = getsword5;
player2.getsword6 = getsword6;
player2.coremagicdamage = magicdamage;
player2.corestrength = corestrength;
player2.coredefense = coredefense;
player2.corebmagicdefense = coremagicdefense;
player2.coreluck = coreluck;
player2.coreagility = coreagility;
player2.coremagicdamageX = coremagicdamageX;
player2.corestrengthX = corestrengthX;
player2.coredefenseX = coredefenseX;
player2.coreluckX = coreluckX;
player2.coreagilityX = coreagilityX;
player2.corefireElement = corefireElement;
player2.coredarkElement = coredarkElement;
player2.coreiceElement = coreiceElement;
player2.corethunderElement = corethunderElement;
player2.calebmagicdamage = magicdamage;
player2.calebstrength = calebstrength;
player2.calebdefense = calebdefense;
player2.calebmagicdefense = calebmagicdefense;
player2.calebluck = calebluck;
player2.calebagility = calebagility;
player2.calebmagicdamageX = calebmagicdamageX;
player2.calebstrengthX = calebstrengthX;
player2.calebdefenseX = calebdefenseX;
player2.calebluckX = calebluckX;
player2.calebagilityX = calebagilityX;
player2.calebfireElement = calebfireElement;
player2.calebdarkElement = calebdarkElement;
player2.calebiceElement = calebiceElement;
player2.calebthunderElement = calebthunderElement;
player2.sword = sword;
player2.corecounterchance = corecounterchance;
player2.calebcounterchance = calebcounterchance;
player2.corereg1 = corereg1;
player2.corereg2 = corereg2;
player2.corereg3 = corereg3;
player2.calebreg1 = calebreg1;
player2.calebreg2 = calebreg2;
player2.calebreg3 = calebreg3;
player2.speed = speed;
player2.currentspeed = currentspeed;
player2.potion = potion;
player2.ether = ether;
player2.elixir = elixir;
player2.remedy = remedy;
player2.area = area;
player2.mute = mute;
player2.night = night;
player2.camera = camera;
player2.menuvisible = menuvisible;
player2.quality = quality;
player2.battlequality = battlequality;
player2.counter = counter;
player2.counter2 = counter2;
player2.counter3 = counter3;
player2.counterminute = counterminute;
player2.counterhour = counterhour;
player2.map = map;
player2.item1 = item1;
player2.item2 = item2;
player2.item3 = item3;
player2.item4 = item4;
};
savePlayer2 = function () {
player2SO = SharedObject.getLocal("playerInfo2");
player2SO.data.playerDat = player2;
plater2SO.flush();
};
saveButton2.onRelease = function () {
setPlayerInfo2();
savePlayer2();
corename = player2.corename;
playerX = player2.playerX;
playerY = player2.playerY;
stand = player2.stand;
story = player2.story;
gold = player2.gold;
corehealth = player2.corehealth;
coremaxhealth = player2.coremaxhealth;
coremana = player2.coremana;
coremaxmana = player2.coremaxmana;
coremaxfatigue = player2.coremaxfatigue;
calebhealth = player2.calebhealth;
calebmaxhealth = player2.calebmaxhealth;
calebmana = player2.calebmana;
calebmaxmana = player2.calebmaxmana;
calebmaxfatigue = player2.calebmaxfatigue;
corelimit = player2.corelimit;
coremaxlimit = player2.coremaxlimit;
caleblimit = player2.caleblimit;
calebmaxlimit = player2.calebmaxlimit;
weapon1 = player2.weapon1;
weapon2 = player2.weapon2;
weapon3 = player2.weapon3;
weapon4 = player2.weapon4;
weapon5 = player2.weapon5;
weapon6 = player2.weapon6;
corelimit2 = player2.corelimit2;
corelimit3 = player2.corelimit3;
corelimit4 = player2.corelimit4;
caleblimit2 = player2.caleblimit2;
caleblimit3 = player2.caleblimit3;
caleblimit4 = player2.caleblimit4;
getsword2 = player2.getsword2;
getsword3 = player2.getsword3;
getsword4 = player2.getsword4;
getsword5 = player2.getsword5;
getsword6 = player2.getsword6;
coremagicdamage = player2.coremagicdamage;
corestrength = player2.corestrength;
coredefense = player2.coredefense;
coremagicdefense = player2.coremagicdefense;
coreluck = player2.coreluck;
coreagility = player2.coreagility;
coremagicdamageX = player2.coremagicdamageX;
corestrengthX = player2.corestrengthX;
coredefenseX = player2.coredefenseX;
coreluckX = player2.coreluckX;
coreagilityX = player2.coreagilityX;
corefireElement = player2.corefireElement;
coredarkElement = player2.coredarkElement;
coreiceElement = player2.coreiceElement;
corethunderElement = player2.corethunderElement;
calebmagicdamage = player2.calebmagicdamage;
calebstrength = player2.calebstrength;
calebdefense = player2.calebdefense;
calebmagicdefense = player2.calebmagicdefense;
calebluck = player2.calebluck;
calebagility = player2.calebagility;
calebmagicdamageX = player2.calebmagicdamageX;
calebstrengthX = player2.calebstrengthX;
calebdefenseX = player2.calebdefenseX;
calebluckX = player2.calebluckX;
calebagilityX = player2.calebagilityX;
calebfireElement = player2.calebfireElement;
calebdarkElement = player2.calebdarkElement;
calebiceElement = player2.calebiceElement;
calebthunderElement = player2.calebthunderElement;
sword = player2.sword;
corecounterchance = player2.corecounterchance;
calebcounterchance = player2.calebcounterchance;
corereg1 = player2.corereg1;
corereg2 = player2.corereg2;
corereg3 = player2.corereg3;
calebreg1 = player2.calebreg1;
calebreg2 = player2.calebreg2;
calebreg3 = player2.calebreg3;
speed = player2.speed;
currentspeed = player2.currentspeed;
potion = player2.potion;
ether = player2.ether;
elixir = player2.elixir;
remedy = player2.remedy;
area = player2.area;
mute = player2.mute;
night = player2.night;
camera = player2.camera;
menuvisible = player2.menuvisible;
quality = player2.quality;
battlequality = player2.battlequality;
counter = player2.counter;
counter2 = player2.counter2;
counter3 = player2.counter3;
counterminute = player2.counterminute;
counterhour = player2.counterhour;
map = player2.map;
item1 = player2.item1;
item2 = player2.item2;
item3 = player2.item3;
item4 = player2.item4;
name2.text = corename;
if (area == 1) {
location2.text = "Forest";
}
if (area == 2) {
location2.text = "Burnt Forest";
}
strength.text = corestrength;
time2.text = (((counterhour + " : ") + counterminute) + " : ") + counter;
swordz2.gotoAndStop(sword);
};
onEnterFrame = function () {
if (Key.isDown(49)) {
_quality = "low";
menuquality = "low";
}
if (Key.isDown(50)) {
_quality = "medium";
menuquality = "medium";
}
if (Key.isDown(51)) {
_quality = "high";
menuquality = "high";
}
if (Key.isDown(52)) {
_quality = "autohigh";
menuquality = _quality;
}
};
Frame 5
stop();
_quality = menuquality;
if ((corename == undefined) or ((corehealth > 0) or (calebhealth > 0))) {
back_BT._visible = false;
} else {
weathersound.stop();
}
onEnterFrame = function () {
if (Key.isDown(49)) {
_quality = "low";
menuquality = "low";
}
if (Key.isDown(50)) {
_quality = "medium";
menuquality = "medium";
}
if (Key.isDown(51)) {
_quality = "high";
menuquality = "high";
}
if (Key.isDown(52)) {
_quality = "autohigh";
menuquality = _quality;
}
};
Frame 12
stopAllSounds();
bg.gotoAndStop(1);
corename = "Core";
calebname = "Caleb";
core = true;
caleb = false;
playerX = 35;
playerY = 40;
stand = 4;
story = 0;
gold = 0;
corehealth = 110;
coremaxhealth = 110;
coremana = 60;
coremaxmana = 60;
coremaxfatigue = 130;
calebhealth = 110;
calebmaxhealth = 110;
calebmana = 60;
calebmaxmana = 60;
calebmaxfatigue = 130;
corelimit = 0;
coremaxlimit = 100;
caleblimit = 0;
calebmaxlimit = 80;
weapon1 = 3;
weapon2 = 10;
weapon3 = 15;
weapon4 = 22;
weapon5 = 35;
weapon6 = 55;
corelimit2 = true;
corelimit3 = true;
corelimit4 = true;
caleblimit2 = false;
caleblimit3 = false;
caleblimit4 = false;
getsword2 = true;
getsword3 = false;
getsword4 = false;
getsword5 = false;
getsword6 = false;
getsword6 = false;
coremagicdamage = 2;
coremagicdamageX = 0;
corestrength = 5;
corestrengthX = 0;
coredefense = 2;
coredefenseX = 0;
coremagicdefense = 1;
coreluck = 4;
coreluckX = 0;
coreagility = 3;
coreagilityX = 0;
corefireElement = 0;
coredarkElement = 0;
coreiceElement = 0;
corethunderElement = 0;
calebmagicdamage = 5;
calebmagicdamageX = 0;
calebstrength = 2;
calebstrengthX = 0;
calebdefense = 2;
calebdefenseX = 0;
calebmagicdefense = 3;
calebluck = 5;
calebluckX = 0;
calebagility = 2;
calebagilityX = 0;
calebfireElement = 0;
calebdarkElement = 0;
calebiceElement = 0;
calebthunderElement = 0;
sword = 1;
corecounterchance = 2;
calebcounterchance = 2;
corereg1 = 3;
corereg2 = 3;
corereg3 = 1.5;
calebreg1 = 3;
calebreg2 = 3;
calebreg3 = 1.2;
speed = 1.4;
currentspeed = 1.4;
potion = 0;
elixir = 0;
ether = 0;
remedy = 0;
area = 1;
mute = false;
night = false;
camera = true;
menuvisible = true;
quality = "low";
battlequality = "medium";
counter = 0;
counter2 = 0;
counter3 = 0;
counterminute = 0;
counterhour = 0;
treedown = false;
map = false;
i = 0;
while (i < 4) {
this["item" + i] = false;
i++;
}
doCounter = function () {
counter++;
if (counter > 59) {
counterminute++;
counter = 0;
if (counterminute > 59) {
counterhour++;
counterminute = 0;
night = false;
}
}
};
countID = setInterval(doCounter, 1000);
doCounter2 = function () {
counter2++;
if (((counter2 >= corereg1) && (corehealth < coremaxhealth)) && (corehealth > 0)) {
corehealth++;
counter2 = 0;
}
};
count2ID = setInterval(doCounter2, 1000);
doCounter3 = function () {
counter3++;
if ((counter3 >= corereg2) && (coremana < coremaxmana)) {
coremana++;
counter3 = 0;
}
};
count3ID = setInterval(doCounter3, 1000);
doCounter4 = function () {
counter2++;
if (((counter2 >= calebreg1) && (calebhealth < calebmaxhealth)) && (calebhealth > 0)) {
calebhealth++;
counter2 = 0;
}
};
count2ID = setInterval(doCounter4, 1000);
doCounter5 = function () {
counter3++;
if ((counter3 >= calebreg2) && (calebmana < calebmaxmana)) {
calebmana++;
counter3 = 0;
}
};
count3ID = setInterval(doCounter5, 1000);
doCounter4 = function () {
counter4++;
if ((counter4 >= reg1) && (enemymana < enemymaxmana)) {
enemymana++;
counter4 = 0;
}
};
doCounter5 = function () {
counter5++;
if (((counter5 >= reg2) && (enemyhealth < enemymaxhealth)) && (enemyhealth > 0)) {
enemyhealth++;
counter5 = 0;
}
};
doCounter6 = function () {
counter6++;
if (((core == true) && (counter6 >= 1)) && (corefatigue < coremaxfatigue)) {
corefatigue++;
counter6 = 0;
}
if (((caleb == true) && (counter6 >= 1)) && (calebfatigue < calebmaxfatigue)) {
calebfatigue++;
counter6 = 0;
}
};
doCounter7 = function () {
counter7++;
if ((counter7 >= 1) && (corecount < coremaxcount)) {
corecount = corecount + corereg3;
counter7 = 0;
}
};
doCounter8 = function () {
counter8++;
if ((counter8 >= 1) && (enmcount < maxenmcount)) {
enmcount = enmcount + reg3;
counter8 = 0;
if (enmcount >= countmaximum) {
enemiez.enemy.play();
}
}
};
doCounter9 = function () {
counter9++;
if ((counter9 >= 1) && (calebcount < calebmaxcount)) {
calebcount = calebcount + calebreg3;
counter9 = 0;
}
};
doCounterHeal = function () {
counterHeal++;
if (((core == true) && (counterHeal >= 1)) && (corehealth < coremaxhealth)) {
corehealth = corehealth + Math.ceil(coremagicdamage / 2);
coremana--;
counterHeal = 0;
}
if (((caleb == true) && (counterHeal >= 1)) && (calebhealth < calebmaxhealth)) {
calebhealth = calebhealth + Math.ceil(calebmagicdamage / 2);
calebmana--;
counterHeal = 0;
}
};
onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay (148);
}
if (Key.isDown(49)) {
_quality = "low";
}
if (Key.isDown(50)) {
_quality = "medium";
}
if (Key.isDown(51)) {
_quality = "high";
}
if (Key.isDown(52)) {
_quality = "autohigh";
}
};
Instance of Symbol 479 MovieClip "cam" in Frame 12
onClipEvent (enterFrame) {
this.destx = _root.player._x + 10;
this.desty = _root.player._y + 30;
var diffx = ((this.destx - this._x) + 0);
var diffy = ((this.desty - this._y) + 0);
this._x = this._x + (diffx * 0.1);
this._y = this._y + (diffy * 0.1);
}
Frame 86
_quality = "high";
stop();
Mouse.hide();
Frame 87
_quality = "low";
stop();
Instance of Symbol 479 MovieClip "cam" in Frame 88
onClipEvent (enterFrame) {
this.destx = _root.player._x + 10;
this.desty = _root.player._y + 30;
var diffx = ((this.destx - this._x) + 0);
var diffy = ((this.desty - this._y) + 0);
this._x = this._x + (diffx * 0.1);
this._y = this._y + (diffy * 0.1);
}
Frame 89
bg.gotoAndStop(1);
clearInterval(countID);
clearInterval(count2ID);
clearInterval(count3ID);
clearInterval(count4ID);
clearInterval(count5ID);
clearInterval(count6ID);
clearInterval(count7ID);
clearInterval(count8ID);
clearInterval(count9ID);
doCounter = function () {
counter++;
if (counter > 59) {
counterminute++;
counter = 0;
if (counterminute > 59) {
counterhour++;
counterminute = 0;
night = false;
}
}
};
countID = setInterval(doCounter, 1000);
doCounter2 = function () {
counter2++;
if (((counter2 >= reg1) && (health < maxhealth)) && (health > 0)) {
health++;
counter2 = 0;
}
};
count2ID = setInterval(doCounter2, 1000);
doCounter3 = function () {
counter3++;
if ((counter3 >= reg2) && (mana < maxmana)) {
mana++;
counter3 = 0;
}
};
count3ID = setInterval(doCounter3, 1000);
Instance of Symbol 295 MovieClip "cursor" in Frame 89
onClipEvent (enterFrame) {
startDrag (this, true);
}
Frame 147
gotoAndStop (148);
Frame 148
stop();
stopAllSounds();
player._x = playerX;
player._y = playerY;
Mouse.hide();
_quality = quality;
cangoright = true;
cangoleft = true;
cangoup = true;
cangodown = true;
diagonal = false;
inventory._visible = false;
inventoryon = false;
inventoryplay = false;
mapon = false;
cam._x = player._x + 10;
cam._y = player._y + 30;
cam._xscale = 56;
cam._yscale = 48;
inventory._x = player._x - 100;
inventory._y = player._y + 95;
help._x = player._x - 130;
help._y = player._y + 50;
textz._x = player._x - 52;
textz._y = player._y - 70;
if (_root.mute == false) {
if (counterminute > 30) {
_root.weathersound.attachSound("night");
} else {
_root.weathersound.attachSound("day");
}
_root.weathersound.start(0, 99);
}
doSwordSwap = function () {
if (sword == 1) {
maxfatigue = maxfatigue + 40;
}
if (sword == 3) {
reg5 = reg5 - 0.3;
}
if (sword == 4) {
maxlimit = maxlimit + 40;
}
if (sword == 5) {
counterchance = counterchance - 1;
}
if (sword == 6) {
maxlimit = maxlimit + 40;
reg5 = reg5 - 0.3;
}
};
counter10 = 0;
doCounter10 = function () {
if ((counter10 <= 7) && (walking == true)) {
counter10++;
}
};
count9ID = setInterval(doCounter10, 1500);
onEnterFrame = function () {
walking = false;
if (Key.isDown(27)) {
help.play();
}
if (((Key.isDown(37) or Key.isDown(65)) && (cangoleft == true)) && (mapon == false)) {
player._x = player._x - currentspeed;
walking = true;
if (((!Key.isDown(38)) && (!Key.isDown(40))) && ((!Key.isDown(83)) && (!Key.isDown(87)))) {
player.gotoAndStop(1);
treeblock.gotoAndStop(1);
stand = 1;
currentspeed = speed;
diagonal = false;
}
}
if (((Key.isDown(39) or Key.isDown(68)) && (cangoright == true)) && (mapon == false)) {
player._x = player._x + currentspeed;
walking = true;
if (((!Key.isDown(38)) && (!Key.isDown(40))) && ((!Key.isDown(83)) && (!Key.isDown(87)))) {
player.gotoAndStop(2);
treeblock.gotoAndStop(2);
stand = 2;
currentspeed = speed;
diagonal = false;
}
}
if (((Key.isDown(38) or Key.isDown(87)) && (cangoup == true)) && (mapon == false)) {
player._y = player._y - currentspeed;
walking = true;
if (((!Key.isDown(39)) && (!Key.isDown(37))) && ((!Key.isDown(65)) && (!Key.isDown(68)))) {
player.gotoAndStop(3);
treeblock.gotoAndStop(3);
stand = 3;
currentspeed = speed;
diagonal = false;
}
}
if (((Key.isDown(40) or Key.isDown(83)) && (cangodown == true)) && (mapon == false)) {
player._y = player._y + currentspeed;
walking = true;
if (((!Key.isDown(39)) && (!Key.isDown(37))) && ((!Key.isDown(65)) && (!Key.isDown(68)))) {
player.gotoAndStop(4);
treeblock.gotoAndStop(4);
stand = 4;
currentspeed = speed;
diagonal = false;
}
}
if (((Key.isDown(40) && (Key.isDown(37))) or (Key.isDown(83) && (Key.isDown(65)))) && (mapon == false)) {
player.gotoAndStop(5);
treeblock.gotoAndStop(5);
stand = 5;
if (diagonal == false) {
currentspeed = currentspeed - 0.4;
diagonal = true;
}
}
if (((Key.isDown(40) && (Key.isDown(39))) or (Key.isDown(83) && (Key.isDown(68)))) && (mapon == false)) {
player.gotoAndStop(6);
treeblock.gotoAndStop(6);
stand = 6;
if (diagonal == false) {
currentspeed = currentspeed - 0.4;
diagonal = true;
}
}
if (((Key.isDown(38) && (Key.isDown(37))) or (Key.isDown(87) && (Key.isDown(65)))) && (mapon == false)) {
player.gotoAndStop(7);
treeblock.gotoAndStop(7);
stand = 7;
if (diagonal == false) {
currentspeed = currentspeed - 0.4;
diagonal = true;
}
}
if (((Key.isDown(38) && (Key.isDown(39))) or (Key.isDown(87) && (Key.isDown(68)))) && (mapon == false)) {
player.gotoAndStop(8);
treeblock.gotoAndStop(8);
stand = 8;
if (diagonal == false) {
currentspeed = currentspeed - 0.4;
diagonal = true;
}
} else if (walking == false) {
if (stand == 1) {
player.gotoAndStop(9);
treeblock.gotoAndStop(1);
}
if (stand == 2) {
player.gotoAndStop(10);
treeblock.gotoAndStop(2);
}
if (stand == 3) {
player.gotoAndStop(11);
treeblock.gotoAndStop(3);
}
if (stand == 4) {
player.gotoAndStop(12);
treeblock.gotoAndStop(4);
}
if (stand == 5) {
player.gotoAndStop(13);
treeblock.gotoAndStop(5);
}
if (stand == 6) {
player.gotoAndStop(14);
treeblock.gotoAndStop(6);
}
if (stand == 7) {
player.gotoAndStop(15);
treeblock.gotoAndStop(7);
}
if (stand == 8) {
player.gotoAndStop(16);
treeblock.gotoAndStop(8);
}
}
if (((((cangoright == false) && (cangodown == false)) or ((cangoright == false) && (cangoup == false))) or ((cangoleft == false) && (cangodown == false))) or ((cangoleft == false) && (cangoup == false))) {
stuck = true;
} else {
stuck = false;
}
if (((Key.isDown(32) && (inventoryplay == false)) && (mapon == false)) && (story > 0)) {
inventory.play();
}
if ((Key.isDown(17) && (map == true)) && (mapon == false)) {
cam._xscale = 150;
cam._yscale = 120;
cam._x = player._x + 10;
cam._y = player._y + 30;
mapon = true;
cursor._visible = false;
black._visible = false;
healthbarz._visible = false;
manabarz._visible = false;
inventory._visible = false;
}
if (Key.isDown(16) && (mapon == true)) {
cam._xscale = 56;
cam._yscale = 48;
cam._x = player._x + 10;
cam._y = player._y + 30;
mapon = false;
cursor._visible = true;
black._visible = true;
healthbarz._visible = true;
manabarz._visible = true;
if (inventoryon == true) {
inventory._visible = true;
}
}
if (Key.isDown(45)) {
b1._visible = true;
}
if (Key.isDown(46)) {
b1._visible = false;
}
if ((Key.isDown(37) or Key.isDown(65)) && (mapon == true)) {
cam._x = cam._x - 4;
}
if ((Key.isDown(39) or Key.isDown(68)) && (mapon == true)) {
cam._x = cam._x + 4;
}
if ((Key.isDown(38) or Key.isDown(87)) && (mapon == true)) {
cam._y = cam._y - 4;
}
if ((Key.isDown(40) or Key.isDown(83)) && (mapon == true)) {
cam._y = cam._y + 4;
}
if ((Key.isDown(90) && (mapon == true)) && (cam._xscale > 80)) {
cam._height = cam._height - 4;
cam._width = cam._width - 7.5;
}
if ((Key.isDown(88) && (mapon == true)) && (cam._xscale < 170)) {
cam._height = cam._height + 4;
cam._width = cam._width + 7.5;
}
if (Key.isDown(77)) {
mute = true;
stopAllSounds();
}
if (Key.isDown(78) && (mute == true)) {
mute = false;
if (counterminute > 30) {
_root.weathersound.attachSound("night");
} else {
_root.weathersound.attachSound("day");
}
_root.weathersound.start(0, 99);
}
if (b1.hitTest(_root.playerblock._x - (playerblock._width / 2), _root.playerblock._y, true)) {
_root.cangoleft = false;
} else {
_root.cangoleft = true;
}
if (b1.hitTest(_root.playerblock._x + (playerblock._width / 2), _root.playerblock._y, true)) {
_root.cangoright = false;
} else {
_root.cangoright = true;
}
if (b1.hitTest(_root.playerblock._x, _root.playerblock._y - (playerblock._height / 2), true)) {
_root.cangoup = false;
} else {
_root.cangoup = true;
}
if (b1.hitTest(_root.playerblock._x, _root.playerblock._y + (playerblock._height / 2), true)) {
_root.cangodown = false;
} else {
_root.cangodown = true;
}
if (((b2.hitTest(_root.playerblock._x - (playerblock._width / 2), _root.playerblock._y, true or (_root.playerblock._x + (playerblock._width / 2)), _root.playerblock._y, true or _root.playerblock._x, _root.playerblock._y - (playerblock._height / 2), true or _root.playerblock._x, _root.playerblock._y + (playerblock._height / 2), true) && (walking == true)) && (stuck == false)) && (counter10 >= 7)) {
chance = random(200);
if (chance == 1) {
playerX = player._x;
playerY = player._y;
gotoAndPlay (149);
}
}
if (counterminute > 59) {
nightover.play();
night = false;
}
if (counterminute > 30) {
nightover.play();
night = true;
_root.weathersound.attachSound("night");
}
if (area1.hitTest(_root.playerblock)) {
area = 1;
}
if (area2.hitTest(_root.playerblock)) {
area = 2;
}
if (area3.hitTest(_root.playerblock)) {
area = 3;
}
if (area4.hitTest(_root.playerblock)) {
area = 4;
}
if (area5.hitTest(_root.playerblock)) {
area = 5;
}
if (Key.isDown(49)) {
_quality = "low";
quality = "low";
}
if (Key.isDown(50)) {
_quality = "medium";
quality = "medium";
}
if (Key.isDown(51)) {
_quality = "high";
quality = "high";
}
if (Key.isDown(52)) {
_quality = "autohigh";
quality = _quality;
}
if (story >= 1) {
A._visible = false;
A._y = A._y - 100;
}
if (A.hitTest(_root.playerblock)) {
playerX = player._x;
playerY = player._y;
story = 1;
gotoAndPlay (149);
}
};
Instance of Symbol 595 MovieClip "pshadow" in Frame 148
onClipEvent (enterFrame) {
this._x = _root.player._x - 10;
this._y = _root.player._y + 27;
}
Instance of Symbol 600 MovieClip in Frame 148
onClipEvent (enterFrame) {
if (this.hitTest(_root.soundblock) && (_root.mute == false)) {
_root.footstep.attachSound("grass1");
}
}
Instance of Symbol 605 MovieClip in Frame 148
onClipEvent (enterFrame) {
if (_root.item2 == true) {
this._visible = false;
this._y = -100;
}
if (this.hitTest(_root.playerblock)) {
_root.elixir++;
_root.item2 = true;
if (_root.mute == false) {
_root.item.start(0, 1);
}
_root.textz.txt.txtz.text = "Found Elixir";
_root.textz.gotoAndPlay(2);
}
}
Instance of Symbol 607 MovieClip in Frame 148
onClipEvent (enterFrame) {
if (_root.item3 == true) {
this._visible = false;
this._y = -100;
}
if (this.hitTest(_root.playerblock)) {
_root.ether++;
_root.item3 = true;
if (_root.mute == false) {
_root.item.start(0, 1);
}
_root.textz.txt.txtz.text = "Found Ether";
_root.textz.gotoAndPlay(2);
}
}
Instance of Symbol 609 MovieClip in Frame 148
onClipEvent (enterFrame) {
if (_root.item1 == true) {
this._visible = false;
this._y = -100;
}
if (this.hitTest(_root.playerblock)) {
_root.potion++;
_root.item1 = true;
if (_root.mute == false) {
_root.item.start(0, 1);
}
_root.textz.txt.txtz.text = "Found Potion";
_root.textz.gotoAndPlay(2);
}
}
Instance of Symbol 611 MovieClip in Frame 148
onClipEvent (enterFrame) {
if (_root.map == true) {
this._visible = false;
this._y = -100;
}
if (this.hitTest(_root.playerblock)) {
_root.map = true;
if (_root.mute == false) {
_root.item.start(0, 1);
}
_root.textz.txt.txtz.text = "Found Map\rPress Ctrl to use it, and ALT to turn it off. Press Z to zoom in and X to zoom out while in the map screen";
_root.textz.gotoAndPlay(1);
}
}
Instance of Symbol 609 MovieClip in Frame 148
onClipEvent (enterFrame) {
if (_root.item4 == true) {
this._visible = false;
this._y = -100;
}
if (this.hitTest(_root.playerblock)) {
_root.potion++;
_root.item4 = true;
if (_root.mute == false) {
_root.item.start(0, 1);
}
_root.textz.txt.txtz.text = "Found Potion";
_root.textz.gotoAndPlay(2);
}
}
Instance of Symbol 613 MovieClip "playerblock" in Frame 148
onClipEvent (enterFrame) {
(this._x = _root.player._x + 8);
this._y = _root.player._y + 36;
}
Instance of Symbol 613 MovieClip "soundblock" in Frame 148
onClipEvent (enterFrame) {
(this._x = _root.player._x + 8);
this._y = _root.player._y + 37;
}
Instance of Symbol 614 MovieClip "treeblock" in Frame 148
onClipEvent (enterFrame) {
(this._x = _root.player._x + 7);
this._y = _root.player._y + 22;
}
Instance of Symbol 801 MovieClip "inventory" in Frame 148
onClipEvent (enterFrame) {
this.destx = _root.player._x - 100;
this.desty = _root.player._y + 95;
var diffx = ((this.destx - this._x) + 0);
var diffy = ((this.desty - this._y) + 0);
this._x = this._x + (diffx * 0.1);
this._y = this._y + (diffy * 0.1);
}
Instance of Symbol 807 MovieClip "nightover" in Frame 148
onClipEvent (enterFrame) {
this._x = _root.cam._x - 225;
this._y = _root.cam._y - 115;
}
Instance of Symbol 684 MovieClip "help" in Frame 148
onClipEvent (enterFrame) {
this.destx = _root.player._x - 130;
this.desty = _root.player._y + 50;
var diffx = ((this.destx - this._x) + 0);
var diffy = ((this.desty - this._y) + 0);
this._x = this._x + (diffx * 0.1);
this._y = this._y + (diffy * 0.1);
}
Instance of Symbol 813 MovieClip "textz" in Frame 148
onClipEvent (enterFrame) {
this.destx = _root.player._x - 52;
this.desty = _root.player._y - 70;
var diffx = ((this.destx - this._x) + 0);
var diffy = ((this.desty - this._y) + 0);
this._x = this._x + (diffx * 0.1);
this._y = this._y + (diffy * 0.1);
}
Instance of Symbol 295 MovieClip "cursor" in Frame 148
onClipEvent (enterFrame) {
startDrag (this, true);
}
Instance of Symbol 479 MovieClip "cam" in Frame 148
onClipEvent (enterFrame) {
if (_root.mapon == false) {
this.destx = _root.player._x + 10;
this.desty = _root.player._y + 30;
var diffx = ((this.destx - this._x) + 0);
var diffy = ((this.desty - this._y) + 0);
this._x = this._x + (diffx * 0.1);
this._y = this._y + (diffy * 0.1);
}
}
Frame 149
weathersound.stop();
Mouse.hide();
_quality = battlequality;
currentmusic = "african";
if (mute == false) {
battlemusic.attachSound(currentmusic);
battlemusic.start(0, 99);
}
if (night == false) {
nightcover._visible = false;
}
battlestart = true;
stopz = false;
goto2 = false;
goto3 = false;
dodgeattack = false;
diamondattack = false;
magic = false;
stun = false;
slow = false;
corestun = false;
coreslow = false;
corepoison = false;
calebstun = false;
calebslow = false;
calebpoison = false;
multislash = false;
goldX = 0;
enmmaxlimit = 50;
enmlimit = 0;
coremagicdamageXX = 0;
coredefenseXX = 0;
corestrengthXX = 0;
coreagilityXX = 0;
coreluckXX = 0;
calebcalebmagicdamageXX = 0;
calebdefenseXX = 0;
calebstrengthXX = 0;
calebagilityXX = 0;
calebluckXX = 0;
attacking = false;
enmattacking = false;
tryparalyze = false;
gamepause = false;
dodge = false;
dodgeattack = false;
battlecounter = false;
scan = false;
enemybarz._visible = false;
if (battlequality == "low") {
info.quality_txt.text = "Low";
}
if (battlequality == "medium") {
info.quality_txt.text = "Medium";
}
if (battlequality == "high") {
info.quality_txt.text = "High";
}
if (camera == true) {
info.cam_txt.text = "On";
}
if (camera == false) {
info.cam_txt.text = "Off";
}
if (mute == false) {
info.audio_txt.text = "On";
}
if (mute == true) {
info.audio_txt.text = "Off";
}
chance = 0;
chanceX = 0;
corefatigue = coremaxfatigue;
calebfatigue = calebmaxfatigue;
enmcount = 0;
corecount = 0;
maxenmcount = 200;
coremaxcount = 200 - coreagility;
calebcount = 0;
calebmaxcount = 200 - calebagility;
counter4 = 0;
counter5 = 0;
counter6 = 0;
counterHeal = 0;
count4ID = setInterval(doCounter4, 1000);
count5ID = setInterval(doCounter5, 1000);
count6ID = setInterval(doCounter6, 500);
count7ID = setInterval(doCounter7, 40);
count8ID = setInterval(doCounter8, 40);
count9ID = setInterval(doCounter9, 40);
doparalyze = function () {
chance = Math.ceil((Math.random() * 3) + 1);
if (((chance == 3) && (stun == false)) && (enemiez.enemy.currentframe <= 2)) {
clearInterval(count8ID);
stun = true;
chanceX = 90;
enmstat.stat.stattxt.text = enmstat.stat.stattxt.text + "Paralyzed ";
enmstat.play();
}
};
if (menuzvisible == false) {
menuz._visible = false;
}
docoreAttack = function () {
if (sword == 1) {
attack = weapon1 + corestrength;
}
if (sword == 2) {
attack = weapon2 + corestrength;
}
if (sword == 3) {
attack = weapon3 + corestrength;
}
if (sword == 4) {
attack = weapon4 + corestrength;
}
if (sword == 5) {
attack = weapon5 + corestrength;
}
if (sword == 6) {
attack = weapon6 + corestrength;
}
};
doenemyhurt = function () {
if (ice == true) {
magicAttack = Math.ceil(magicAttack / icedefense);
}
if (fire == true) {
magicAttack = Math.ceil(magicAttack / firedefense);
}
if (thunder == true) {
magicAttack = Math.ceil(magicAttack / thunderdefense);
}
if (dark == true) {
magicAttack = Math.ceil(magicAttack / darkdefense);
}
if (core == true) {
damageX = Math.ceil((attack + magicAttack) + random(coreluck));
damage = (damageX + Math.ceil((damageX / 5) * (corefatigue / 30))) - enemydefense;
}
if (caleb == true) {
damageX = Math.ceil((attack + magicAttack) + random(calebluck));
damage = (damageX + Math.ceil((damageX / 5) * (calebfatigue / 30))) - enemydefense;
}
enemyhealth = enemyhealth - damage;
if (enemyhealth <= 0) {
enemyhealth = 0;
}
if (enemyhealth >= 0) {
_root.enmhealth_txt.text = _root.enemyhealth;
}
enmcount = enmcount - 20;
if (enmcount < 0) {
enmcount = 0;
}
enemybarz.countbar.countbar.play();
if ((limitbreak == false) && (core == true)) {
corelimit = corelimit + 2;
}
if ((limitbreak == false) && (caleb == true)) {
caleblimit = caleblimit + 2;
}
};
domagic = function () {
magic = true;
black.gotoAndPlay(2);
docoremagicdamage();
clearInterval(count7ID);
clearInterval(count8ID);
enemiez.enemy.gotoAndPlay(1);
stopz = true;
menuon = true;
};
domagicend = function () {
magic = false;
if (enemyhealth > 0) {
if (core == true) {
count7ID = setInterval(doCounter7, 40);
}
if (caleb == true) {
count9ID = setInterval(doCounter9, 40);
}
count8ID = setInterval(doCounter8, 40);
}
stopz = false;
};
dolimitbreak = function () {
limitbreak = true;
if (core == true) {
corelimit = 0;
}
if (caleb == true) {
caleblimit = 0;
}
clearInterval(count7ID);
clearInterval(count8ID);
clearInterval(count9ID);
enemiez.enemy.gotoAndPlay(1);
stopz = true;
menuz.limit_BT.gotoAndStop(1);
menuz.limit_BT.bg.gotoAndPlay(12);
};
doendlimitbreak = function () {
if (core == true) {
if (enemyhealth > 0) {
count7ID = setInterval(doCounter7, 40);
count8ID = setInterval(doCounter8, 40);
}
Core.gotoAndStop(1);
}
if (caleb == true) {
if (enemyhealth > 0) {
count9ID = setInterval(doCounter9, 40);
count8ID = setInterval(doCounter8, 40);
}
Caleb.gotoAndStop(1);
}
stopz = false;
};
doflash = function () {
lucky.play();
if (core == true) {
corefatigue = corefatigue - 3;
}
if (caleb == true) {
calebfatigue = calebfatigue - 3;
}
};
domenuon1 = function () {
menuz.magic_BT.gotoAndStop(1);
menuz.magic_BT.bg.gotoAndPlay(12);
};
domenuon2 = function () {
menuz.limit_BT.gotoAndStop(1);
menuz.limit_BT.bg.gotoAndPlay(12);
};
docoremagicdamage = function () {
coremagicdamageX++;
if (coremagicdamageX == (6 + magicdamage)) {
coremagicdamageX = 0;
coremagicdamageXX++;
coremagicdamage++;
}
};
docoredefense = function () {
coredefenseX++;
if (coredefenseX == (10 + coredefense)) {
coredefenseX = 0;
coredefenseXX++;
coredefense++;
coremagicdefense++;
}
};
docorestrength = function () {
corestrengthX++;
if (corestrengthX == (15 + corestrength)) {
corestrengthX = 0;
corestrengthXX++;
corestrength++;
}
};
docoreluck = function () {
coreluckX++;
if (coreluckX == ((corestrength + coreagility) + coreluck)) {
coreluckX = 0;
coreluckXX++;
coreluck++;
}
};
docoreagility = function () {
coreagilityX++;
if (coreagilityX == (6 + coreagility)) {
coreagilityX = 0;
coreagilityXX++;
coreagility++;
}
};
docalebmagicdamage = function () {
calebmagicdamageX++;
if (calebmagicdamageX == (6 + magicdamage)) {
calebmagicdamageX = 0;
calebmagicdamageXX++;
calebmagicdamage++;
}
};
docalebdefense = function () {
calebdefenseX++;
if (calebdefenseX == (10 + calebdefense)) {
calebdefenseX = 0;
calebdefenseXX++;
calebdefense++;
calebmagicdefense++;
}
};
docalebstrength = function () {
calebstrengthX++;
if (calebstrengthX == (15 + calebstrength)) {
calebstrengthX = 0;
calebstrengthXX++;
calebstrength++;
}
};
docalebluck = function () {
calebluckX++;
if (calebluckX == ((calebstrength + calebagility) + calebluck)) {
calebluckX = 0;
calebluckXX++;
calebluck++;
}
};
docalebagility = function () {
calebagilityX++;
if (calebagilityX == (6 + calebagility)) {
calebagilityX = 0;
calebagilityXX++;
calebagility++;
}
};
doBattleAttack = function () {
if ((((core == true) && (gamepause == false)) && ((dodge == true) or (Core._currentframe == 1))) && (dodgeattack == false)) {
if (corefatigue < 5) {
enough.energymc.energy.text = "Not enough energy";
}
if (corecount < 80) {
enough.staminamc.stamina.text = "Not enough stamina";
}
enough.gotoAndPlay(2);
if (((Core._currentframe == 1) && (corefatigue >= 5)) && (corecount >= 80)) {
Rattack = Math.floor((Math.random() * 3) + 1);
Core.gotoAndPlay("attack" + Rattack);
corecount = corecount - 80;
docorestrength();
if (camera == true) {
chance = Math.floor((Math.random() * 5) + 1);
if (chance == 1) {
gotoAndPlay ("cameraA1");
}
if (chance == 2) {
gotoAndPlay ("cameraA2");
}
if (chance == 3) {
gotoAndPlay ("cameraA3");
}
}
if ((((enemiez.enemy._currentframe <= nrattacks) && (stun == false)) && (enmcount >= 20)) && (Core._currentframe > 1)) {
chance = Math.floor((Math.random() * enmdodge) + 1);
if (chance == 1) {
enemiez.enemy.gotoAndPlay("dodge");
enmcount = enmcount - 20;
}
}
}
if (((dodge == true) && (corefatigue >= 5)) && (corecount >= 80)) {
Core.gotoAndPlay("dodgeAttack");
corecount = corecount - 80;
}
}
if ((((caleb == true) && (gamepause == false)) && (enmattacking == false)) && (Caleb._currentframe == 1)) {
if (calebfatigue < 5) {
enough.energymc.energy.text = "Not enough energy";
}
if (calebcount < 80) {
enough.staminamc.stamina.text = "Not enough stamina";
}
enough.gotoAndPlay(2);
if (((Caleb._currentframe == 1) && (calebfatigue >= 5)) && (calebcount >= 80)) {
Caleb.gotoAndPlay("attack");
calebcount = calebcount - 80;
docalebstrength();
}
}
};
doBattleDodge = function () {
if (((melee == true) && (gamepause == false)) && (Key.isDown(68) or Key.isDown(39))) {
if ((core == true) && (Core._currentframe == 1)) {
if (corefatigue < 2) {
enough.energymc.energy.text = "Not enough energy";
}
if (corecount < 40) {
enough.staminamc.stamina.text = "Not enough stamina";
}
enough.gotoAndPlay(2);
if ((corefatigue >= 2) && (corecount >= 40)) {
Core.gotoAndPlay("dodge");
corecount = corecount - 40;
dodge == true;
if (camera == true) {
chance = Math.floor((Math.random() * 3) + 1);
if (chance == 1) {
gotoAndPlay ("cameraD1");
}
}
}
} else if ((diamondattack == true) && (Key.isDown(68) or Key.isDown(39))) {
if ((corefatigue >= 2) && (corecount >= 40)) {
Core.gotoAndPlay("magicdodge");
corecount = corecount - 40;
dodge == true;
if (camera == true) {
chance = Math.floor((Math.random() * 3) + 1);
if (chance == 1) {
gotoAndPlay ("cameraD1");
}
}
}
}
}
if ((caleb == true) && (Caleb._currentframe == 1)) {
if (calebfatigue < 2) {
enough.energymc.energy.text = "Not enough energy";
}
if (calebcount < 40) {
enough.staminamc.stamina.text = "Not enough stamina";
}
enough.gotoAndPlay(2);
if ((calebfatigue >= 2) && (calebcount >= 40)) {
Caleb.gotoAndPlay("dodge");
calebcount = calebcount - 40;
dodge == true;
if (camera == true) {
chance = Math.floor((Math.random() * 3) + 1);
if (chance == 1) {
gotoAndPlay ("cameraD1");
}
}
}
}
};
doBattleCounter = function () {
if ((((core == true) && (gamepause == false)) && (Core._currentframe == 1)) && (melee == true)) {
if (corefatigue < 3) {
enough.energymc.energy.text = "Not enough energy";
}
if (corecount < 60) {
enough.staminamc.stamina.text = "Not enough stamina";
}
enough.gotoAndPlay(2);
if ((corefatigue >= 3) && (corecount >= 60)) {
corecount = corecount - 60;
Core.gotoAndPlay("counter");
}
}
if ((((caleb == true) && (gamepause == false)) && (Caleb._currentframe == 1)) && (melee == true)) {
if (calebfatigue < 3) {
enough.energymc.energy.text = "Not enough energy";
}
if (calebcount < 60) {
enough.staminamc.stamina.text = "Not enough stamina";
}
enough.gotoAndPlay(2);
if ((calebfatigue >= 3) && (calebcount >= 60)) {
calebcount = calebcount - 60;
Caleb.gotoAndPlay("counter");
}
}
};
doBattleFlee = function () {
if (core == true) {
if ((gamepause == false) && (Core._currentframe == 1)) {
if (corecount < coremaxcount) {
enough.staminamc.stamina.text = "Not enough stamina";
}
enough.gotoAndPlay(2);
if ((boss == false) && (corecount >= coremaxcount)) {
Core.gotoAndPlay("flee");
}
}
}
if (caleb == true) {
if ((gamepause == false) && (Caleb._currentframe == 1)) {
if (calebcount < calebmaxcount) {
enough.staminamc.stamina.text = "Not enough stamina";
}
enough.gotoAndPlay(2);
if ((boss == false) && (calebcount >= calebmaxcount)) {
Caleb.gotoAndPlay("flee");
}
}
}
};
Instance of Symbol 295 MovieClip "cursor" in Frame 149
onClipEvent (enterFrame) {
startDrag (this, true);
}
Instance of Symbol 1662 MovieClip "Core" in Frame 151
onClipEvent (enterFrame) {
if (this.Target.hitTest(_root.enemiez.enemy.hit) && (_root.battlecounter == true)) {
chance = Math.floor((Math.random() * _root.corecounterchance) + 1);
if (chance == 1) {
this.gotoAndPlay("counterhurt");
_root.countbarX.countbar.play();
_root.healthbarz.healthbar.gotoAndPlay(2);
}
if (chance > 1) {
this.gotoAndPlay("counterattack");
}
} else if (this.Target.hitTest(_root.enemiez.enemy.hit) && (_root.corehealth > 0)) {
this.gotoAndPlay("hurt");
_root.countbarX.countbar.play();
_root.healthbarz.healthbar.gotoAndPlay(2);
} else if (this.Target.hitTest(_root.enemiez.enemy.hit) && (_root.corehealth <= 0)) {
this.gotoAndPlay("Dead");
_root.gotoAndPlay("Lose");
}
}
Instance of Symbol 1768 MovieClip "Caleb" in Frame 151
onClipEvent (enterFrame) {
if (this.Target.hitTest(_root.enemiez.enemy.hit) && (_root.battlecounter == true)) {
chance = Math.floor((Math.random() * _root.calebcounterchance) + 1);
if (chance == 1) {
this.gotoAndPlay("counterhurt");
_root.countbarX.countbar.play();
_root.healthbarz.healthbar.gotoAndPlay(2);
}
if (chance > 1) {
this.gotoAndPlay("counterattack");
}
} else if (this.Target.hitTest(_root.enemiez.enemy.hit) && (_root.calebhealth > 0)) {
this.gotoAndPlay("hurt");
_root.countbarX.countbar.play();
_root.healthbarz.healthbar.gotoAndPlay(2);
} else if (this.Target.hitTest(_root.enemiez.enemy.hit) && (_root.calebhealth <= 0)) {
this.gotoAndPlay("Dead");
_root.gotoAndPlay("Lose");
}
}
Frame 153
if (battlestart == false) {
stop();
}
if (core == true) {
Caleb.gotoAndStop("stopz");
clearInterval(count9ID);
}
if (caleb == true) {
Core.gotoAndStop("stopz");
clearInterval(count7ID);
}
onEnterFrame = function () {
if (cursor.spot.hitTest(menuz.limit_BT.BT)) {
if (core == true) {
if (((gamepause == false) && (corelimit == coremaxlimit)) && (menuon == false)) {
menuz.limit_BT.gotoAndStop(2);
menuon = true;
}
}
if (caleb == true) {
if (((gamepause == false) && (caleblimit == calebmaxlimit)) && (menuon == false)) {
menuz.limit_BT.gotoAndStop(3);
menuon = true;
}
}
}
if (cursor.spot.hitTest(menuz.magic_BT.BT)) {
if (core == true) {
if ((gamepause == false) && (menuon == false)) {
menuz.magic_BT.gotoAndStop(2);
menuon = true;
}
}
if (caleb == true) {
if ((gamepause == false) && (menuon == false)) {
menuz.magic_BT.gotoAndStop(5);
menuon = true;
}
}
}
if (Key.isDown(27)) {
help.play();
}
if (Key.isDown(45)) {
menuz._visible = true;
menuvisible = true;
}
if (Key.isDown(46)) {
menuz._visible = false;
menuvisible = false;
}
if (core == true) {
health_txt.text = corehealth;
maxhealth_txt.text = coremaxhealth;
mana_txt.text = coremana;
maxmana_txt.text = coremaxmana;
}
if (caleb == true) {
health_txt.text = calebhealth;
maxhealth_txt.text = calebmaxhealth;
mana_txt.text = calebmana;
maxmana_txt.text = calebmaxmana;
}
if ((attacking == true) && (enmattacking == true)) {
Core.gotoAndPlay("hit");
enemiez.enemy.gotoAndPlay("hit");
attacking = false;
enmattacking = false;
if (camera == true) {
chance = Math.floor((Math.random() * 2) + 1);
if (chance == 1) {
gotoAndStop ("battle");
}
if (chance == 2) {
gotoAndPlay ("hit");
}
} else {
gotoAndStop ("battle");
}
}
if (enemyhealth < 0) {
enemyhealth = 0;
}
if ((enemiez.enemy.Target.hitTest(Core.hit) && (dodge == true)) or (enemiez.enemy.Target.hitTest(Core.hit) && (battlecounter == true))) {
enemiez.enemy.gotoAndPlay("dodgeHurt");
enmcountbarX.countbar.play();
}
if ((enemiez.enemy.Target.hitTest(Core.hit) or enemiez.enemy.Target.hitTest(Caleb.hit)) && (dodge == false)) {
enemiez.enemy.gotoAndPlay("hurt");
enmcountbarX.countbar.play();
enemyhealthbarz.healthbar.gotoAndPlay(2);
}
if (scan == true) {
enemybarz._visible = true;
enemybarz.mana_txt.text = enemymana;
enemybarz.maxmana_txt.text = enemymaxmana;
}
if ((((Core._currentframe > 1) && (corehealth > 0)) && ((Core._currentframe < 497) or (Core._currentframe > 497))) && (Core._currentframe <= 1755)) {
Core.play();
}
if (((Caleb._currentframe > 1) && (calebhealth > 0)) && (Caleb._currentframe <= 365)) {
Caleb.play();
}
if (((Key.isDown(65) or Key.isDown(37)) && (gamepause == false)) && (dodgeattack == false)) {
if (core == true) {
if ((dodge == true) or (Core._currentframe == 1)) {
doBattleAttack();
}
} else {
doBattleAttack();
}
}
if (((melee == true) && (gamepause == false)) && (Key.isDown(68) or Key.isDown(39))) {
doBattleDodge();
}
if ((gamepause == false) && (Key.isDown(83) or Key.isDown(40))) {
doBattleCounter();
}
if (((gamepause == false) && (boss == false)) && (Key.isDown(87) or Key.isDown(38))) {
doBattleFlee();
}
if ((stun == true) && (chanceX > 0)) {
chance++;
if ((chance >= chanceX) && (enemyhealth > 0)) {
count8ID = setInterval(doCounter8, 40);
stun = false;
enemiez.enemy.play();
enemiez.enemy.mc.gotoAndStop(1);
chanceX = 0;
}
}
if ((((Key.isDown(32) && (gamepause == false)) && (limitbreak == false)) && (corefatigue > 0)) && (corestun == false)) {
corefatigue = corefatigue - 1;
crit = true;
critical.play();
} else {
crit = false;
}
if (((Core._currentframe == 1) or (Caleb._currentframe == 1)) && (Key.isDown(80))) {
pauseX.play();
}
if (Key.isDown(17) && (camera == false)) {
camera = true;
info.cam_txt.text = "On";
}
if (Key.isDown(16) && (camera == true)) {
camera = false;
info.cam_txt.text = "Off";
}
if (Key.isDown(49)) {
_quality = "low";
battlequality = "low";
info.quality_txt.text = "Low";
}
if (Key.isDown(50)) {
_quality = "medium";
battlequality = "medium";
info.quality_txt.text = "Medium";
}
if (Key.isDown(51)) {
_quality = "high";
battlequality = "high";
info.quality_txt.text = "High";
}
if (Key.isDown(52)) {
_quality = "autohigh";
battlequality = _quality;
info.quality_txt.text = _quality;
}
if (Key.isDown(77)) {
mute = true;
stopAllSounds();
info.audio_txt.text = "Off";
}
if (Key.isDown(78) && (mute == true)) {
mute = false;
battlemusic.attachSound(currentmusic);
battlemusic.start(0, 99);
info.audio_txt.text = "On";
}
if (Key.isDown(48)) {
info._visible = false;
}
if (Key.isDown(57)) {
info._visible = true;
}
if ((Key.isDown(13) && (gamepause == false)) && (enemiez.enemy._currentframe <= nrattacks)) {
if ((core == true) && (Core._currentframe == 1)) {
Core.gotoAndPlay("switch");
Caleb.gotoAndPlay("enter");
core = false;
caleb = true;
clearInterval(count7ID);
count9ID = setInterval(doCounter9, 40);
if (menuz.magic_BT._currentframe > 1) {
domenuon1();
}
if (menuz.limit_BT._currentframe > 1) {
domenuon2();
}
}
if ((caleb == true) && (Caleb._currentframe == 1)) {
Caleb.gotoAndPlay("switch");
Core.gotoAndPlay("enter");
core = true;
caleb = false;
clearInterval(count9ID);
count7ID = setInterval(doCounter7, 40);
if (menuz.magic_BT._currentframe > 1) {
domenuon1();
}
if (menuz.limit_BT._currentframe > 1) {
domenuon2();
}
}
}
};
Frame 155
if (battlestart == true) {
battlestart = false;
}
if (camera == true) {
chance = Math.floor((Math.random() * 2) + 1);
if (chance == 1) {
gotoAndPlay ("intro1");
}
if (chance == 2) {
gotoAndPlay ("intro2");
}
} else if (camera == false) {
gotoAndStop ("battle");
}
Frame 246
gotoAndStop ("battle");
Frame 301
gotoAndStop ("battle");
Frame 302
menuon = true;
Frame 337
gotoAndStop ("battle");
Frame 338
menuon = true;
Frame 389
gotoAndStop ("battle");
Frame 390
menuon = true;
Frame 428
gotoAndStop ("battle");
Frame 429
menuon = true;
Frame 460
gotoAndStop ("battle");
Frame 461
menuon = true;
Frame 548
gotoAndStop ("battle");
Frame 549
menuon = true;
Frame 631
gotoAndStop ("battle");
Frame 632
menuon = true;
Frame 714
gotoAndStop ("battle");
Frame 715
menuon = true;
Frame 842
gotoAndStop ("battle");
Frame 843
menuon = true;
Frame 1318
gotoAndStop ("battle");
Frame 1319
menuon = true;
Frame 1350
gotoAndStop ("battle");
Frame 1351
cursor.gotoAndStop(1);
battlemusic.stop();
menuon = true;
Frame 1429
stop();
Frame 1430
cursor.gotoAndStop(1);
battlemusic.stop();
menuon = true;
goldX = level + Math.ceil(Math.random() * level);
gold_txt.text = goldX + " gold";
gold = gold + goldX;
if (coremagicdamageXX > 0) {
magicdamage_txt.text = ("Gained " + coremagicdamageXX) + " Magic";
}
if (coredefenseXX > 0) {
defense_txt.text = ("Gained " + coredefenseXX) + " Defense";
}
if (corestrengthXX > 0) {
strength_txt.text = ("Gained " + corestrengthXX) + " Strength";
}
if (coreagilityXX > 0) {
agility_txt.text = ("Gained " + coreagilityXX) + " Agility";
}
if (coreluckXX > 0) {
luck_txt.text = ("Gained " + coreluckXX) + " coreluck";
}
if (calebmagicdamageXX > 0) {
magicdamageX_txt.text = ("Gained " + calebmagicdamageXX) + " Magic";
}
if (calebdefenseXX > 0) {
defenseX_txt.text = ("Gained " + calebdefenseXX) + " Defense";
}
if (calebstrengthXX > 0) {
strengthX_txt.text = ("Gained " + calebstrengthXX) + " Strength";
}
if (calebagilityXX > 0) {
agilityX_txt.text = ("Gained " + calebagilityXX) + " Agility";
}
if (calebluckXX > 0) {
luckX_txt.text = ("Gained " + calebluckXX) + " calebluck";
}
Frame 1494
stop();
Frame 1495
gold_txt.text = goldX + " gold";
Frame 1519
gotoAndStop (148);
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 6
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 74 MovieClip Frame 20
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 74 MovieClip Frame 28
gotoAndStop (1);
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 6
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 90 MovieClip Frame 20
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 90 MovieClip Frame 28
gotoAndStop (1);
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 6
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 108 MovieClip Frame 20
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 108 MovieClip Frame 28
gotoAndStop (1);
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 6
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 131 MovieClip Frame 20
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 131 MovieClip Frame 28
gotoAndStop (1);
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 6
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 155 MovieClip Frame 20
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 155 MovieClip Frame 28
gotoAndStop (1);
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 6
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 175 MovieClip Frame 20
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 175 MovieClip Frame 28
gotoAndStop (1);
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 6
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 183 MovieClip Frame 20
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 183 MovieClip Frame 28
gotoAndStop (1);
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 6
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 185 MovieClip Frame 20
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 185 MovieClip Frame 28
gotoAndStop (1);
Symbol 213 MovieClip [core] Frame 1
stop();
Instance of Symbol 74 MovieClip in Symbol 213 MovieClip [core] Frame 1
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Instance of Symbol 90 MovieClip in Symbol 213 MovieClip [core] Frame 2
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Instance of Symbol 108 MovieClip in Symbol 213 MovieClip [core] Frame 3
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Instance of Symbol 131 MovieClip in Symbol 213 MovieClip [core] Frame 4
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Instance of Symbol 155 MovieClip in Symbol 213 MovieClip [core] Frame 5
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Instance of Symbol 175 MovieClip in Symbol 213 MovieClip [core] Frame 6
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Instance of Symbol 183 MovieClip in Symbol 213 MovieClip [core] Frame 7
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Instance of Symbol 185 MovieClip in Symbol 213 MovieClip [core] Frame 8
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Symbol 213 MovieClip [core] Frame 9
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 213 MovieClip [core] Frame 10
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 213 MovieClip [core] Frame 11
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 213 MovieClip [core] Frame 12
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 213 MovieClip [core] Frame 13
if ((_root.stuck == false) && (_root.mute == false)) {
_root.footstep.start(0, 1);
}
Instance of Symbol 155 MovieClip in Symbol 213 MovieClip [core] Frame 13
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Symbol 213 MovieClip [core] Frame 14
if ((_root.stuck == false) && (_root.mute == false)) {
_root.footstep.start(0, 1);
}
Instance of Symbol 175 MovieClip in Symbol 213 MovieClip [core] Frame 14
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Symbol 213 MovieClip [core] Frame 15
if ((_root.stuck == false) && (_root.mute == false)) {
_root.footstep.start(0, 1);
}
Instance of Symbol 183 MovieClip in Symbol 213 MovieClip [core] Frame 15
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Symbol 213 MovieClip [core] Frame 16
if ((_root.stuck == false) && (_root.mute == false)) {
_root.footstep.start(0, 1);
}
Instance of Symbol 185 MovieClip in Symbol 213 MovieClip [core] Frame 16
onClipEvent (enterFrame) {
if (_root.walking == true) {
this.play();
}
}
Symbol 218 MovieClip Frame 1506
gotoAndPlay ("breakpoint");
Symbol 236 MovieClip Frame 316
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 61
stop();
Symbol 280 Button
on (release) {
_root.gotoAndStop("Title");
}
on (rollOver) {
_root.light.play();
}
Symbol 281 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay (3);
}
Symbol 281 MovieClip Frame 2
gotoAndPlay (1);
Symbol 281 MovieClip Frame 28
_root.light2.play();
Symbol 281 MovieClip Frame 55
stop();
Symbol 284 MovieClip Frame 11
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 2
stop();
Symbol 298 MovieClip Frame 100
stop();
Symbol 304 Button
on (release) {
_root.gotoAndPlay("Start");
}
Symbol 310 Button
on (rollOver) {
if ((_root.mute == false) or (_root.mute == undefined)) {
_root.buttonover.start(0, 1);
}
}
on (release) {
getURL ("http://rocklou.newgrounds.com/", "_blank");
}
Symbol 315 Button
on (rollOver) {
if ((_root.mute == false) or (_root.mute == undefined)) {
_root.buttonover.start(0, 1);
}
}
on (release) {
getURL ("http://newgrounds.com/", "_blank");
}
Symbol 321 Button
on (release) {
_root.gotoAndStop("Load");
}
Symbol 326 Button
on (release) {
_root.gotoAndStop("Special");
}
Symbol 331 MovieClip Frame 56
stop();
Symbol 334 MovieClip Frame 93
stop();
Symbol 341 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
if (player1SO.data.playerDat.corename == undefined) {
error.start(0, 1);
} else if ((mute == false) or (mute == undefined)) {
growl.attachSound("buttonclick");
growl.start(0, 1);
}
}
Symbol 346 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
if (((story >= 1) && (corehealth > 0)) && (calebhealth > 0)) {
gotoAndStop (148);
} else {
gotoAndPlay ("Title_back");
}
}
Symbol 356 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
if (player2SO.data.playerDat.corename == undefined) {
error.start(0, 1);
} else if ((mute == false) or (mute == undefined)) {
growl.attachSound("buttonclick");
growl.start(0, 1);
}
}
Symbol 363 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop ("Save");
}
Symbol 370 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
if ((mute == false) or (mute == undefined)) {
growl.attachSound("buttonclick");
growl.start(0, 1);
}
}
Symbol 371 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
if (story >= 1) {
gotoAndStop (148);
} else {
gotoAndPlay ("Title_back");
}
}
Symbol 377 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
if ((mute == false) or (mute == undefined)) {
growl.attachSound("buttonclick");
growl.start(0, 1);
}
}
Symbol 384 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop ("Load");
}
Symbol 388 Button
on (release) {
gotoAndStop ("Special");
}
Symbol 389 Button
on (release) {
gotoAndStop ("Load");
}
Symbol 390 Button
on (release) {
gotoAndPlay ("Start");
}
Symbol 391 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop (148);
}
Symbol 395 MovieClip Frame 30
stop();
Symbol 396 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop ("Title_back");
}
Symbol 401 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop (9);
}
Symbol 405 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop (8);
}
Symbol 409 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop (7);
}
Symbol 413 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop (10);
}
Symbol 417 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop (11);
}
Symbol 423 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop (6);
}
Symbol 430 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
getURL ("http://rocklou.deviantart.com/", "_blank");
}
Symbol 438 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
getURL ("http://rocklou.deviantart.com/art/The-Awakening-in-game-Preview-110340804", "_blank");
}
Symbol 443 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
getURL ("http://rocklou.deviantart.com/gallery/#The-Awakening", "_blank");
}
Symbol 467 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
getURL ("http://rocklou.blogspot.com/", "_blank");
}
Symbol 471 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
getURL ("http://rocklou.deviantart.com/art/The-Awakening-desktop2-109569064", "_blank");
}
Symbol 475 Button
on (rollOver) {
if ((mute == false) or (mute == undefined)) {
buttonover.start(0, 1);
}
}
on (release) {
getURL ("http://rocklou.deviantart.com/art/The-Awakening-Desktop-104787640", "_blank");
}
Symbol 479 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 526 MovieClip Frame 86
stop();
Symbol 529 MovieClip Frame 246
_quality = "medium";
Symbol 529 MovieClip Frame 615
_root.gotoAndStop(87);
Instance of Symbol 479 MovieClip "cam" in Symbol 592 MovieClip Frame 29
onClipEvent (enterFrame) {
this.destx = _root.player._x + 10;
this.desty = _root.player._y + 30;
var diffx = ((this.destx - this._x) + 0);
var diffy = ((this.desty - this._y) + 0);
this._x = this._x + (diffx * 0.1);
this._y = this._y + (diffy * 0.1);
}
Symbol 592 MovieClip Frame 408
_quality = "high";
Symbol 592 MovieClip Frame 780
_root.gotoAndPlay(145);
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 613 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 617 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 621 MovieClip in Symbol 622 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 625 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (5);
}
}
}
Symbol 629 MovieClip Frame 1
stop();
Symbol 629 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 629 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 633 MovieClip in Symbol 634 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 637 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 641 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 641 MovieClip in Symbol 642 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 644 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 644 MovieClip in Symbol 645 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 647 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 647 MovieClip in Symbol 648 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 652 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 652 MovieClip in Symbol 653 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 656 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 9
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
gotoAndPlay (8);
}
Instance of Symbol 656 MovieClip in Symbol 657 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 656 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 637 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 637 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 656 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 633 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.treeblock) or (_root.treedown == true)) {
this.play();
if (this._currentframe > 9) {
gotoAndPlay (1);
}
}
}
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 10
stop();
Symbol 690 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
_root.playerX = _root.player._x;
_root.playerY = _root.player._y;
_root.gotoAndStop(3);
stopAllSounds();
}
Symbol 694 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
_root.playerX = _root.player._x;
_root.playerY = _root.player._y;
_root.gotoAndStop(5);
stopAllSounds();
}
Symbol 698 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
_root.playerX = _root.player._x;
_root.playerY = _root.player._y;
_root.gotoAndStop(4);
stopAllSounds();
}
Symbol 707 Button
on (release) {
if ((_root.potion > 0) && (_root.health < _root.maxhealth)) {
_root.potion--;
_root.health = _root.health + 90;
if (_root.health > _root.maxhealth) {
_root.health = _root.maxhealth;
}
if (_root.mute == false) {
_root.drink.start(0, 1);
}
} else if (_root.mute == false) {
_root.error.start(0, 1);
}
}
Symbol 715 Button
on (release) {
if ((_root.elixir > 0) && (_root.mana < _root.maxmana)) {
_root.elixir--;
_root.mana = _root.mana + 60;
if (_root.mana > _root.maxmana) {
_root.mana = _root.maxmana;
}
if (_root.mute == false) {
_root.drink.start(0, 1);
}
} else if (_root.mute == false) {
_root.error.start(0, 1);
}
}
Symbol 728 Button
on (release) {
if (_root.treedown == false) {
_root.treedown = true;
} else {
_root.treedown = false;
}
}
Symbol 737 Button
on (rollOver) {
gotoAndStop (2);
bg.play();
}
Symbol 741 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 8
stop();
Symbol 748 MovieClip Frame 1
gotoAndStop(_root.sword);
Symbol 750 Button
on (rollOver) {
gotoAndStop (1);
bg.gotoAndPlay(9);
}
Symbol 753 MovieClip Frame 1
damage_txt.text = _root.weapon1;
Symbol 755 Button
on (release) {
_root.doSwordSwap();
if (_root.getsword2 == true) {
Sword2_BT._visible = true;
}
if (_root.getsword3 == true) {
Sword3_BT._visible = true;
}
if (_root.getsword4 == true) {
Sword4_BT._visible = true;
}
if (_root.getsword5 == true) {
Sword5_BT._visible = true;
}
if (_root.getsword6 == true) {
Sword6_BT._visible = true;
}
Sword1_BT._visible = false;
if (_root.mute == false) {
_root.item.start(0, 1);
}
if (_root.sword > 1) {
_root.fatigue = _root.fatigue - 40;
_root.maxfatigue = _root.maxfatigue - 40;
if (_root.fatigue > _root.maxfatigue) {
_root.fatigue = _root.maxfatigue;
}
_root.sword = 1;
swordz.gotoAndStop(_root.sword);
}
}
Symbol 758 MovieClip Frame 1
damage_txt.text = _root.weapon2;
Symbol 759 Button
on (release) {
_root.doSwordSwap();
Sword1_BT._visible = true;
if (_root.getsword3 == true) {
Sword3_BT._visible = true;
}
if (_root.getsword4 == true) {
Sword4_BT._visible = true;
}
if (_root.getsword5 == true) {
Sword5_BT._visible = true;
}
if (_root.getsword6 == true) {
Sword6_BT._visible = true;
}
Sword2_BT._visible = false;
if (_root.mute == false) {
_root.item.start(0, 1);
}
_root.sword = 2;
swordz.gotoAndStop(_root.sword);
}
Symbol 762 MovieClip Frame 1
damage_txt.text = _root.weapon3;
Symbol 763 Button
on (release) {
_root.doSwordSwap();
Sword1_BT._visible = true;
if (_root.getsword2 == true) {
Sword2_BT._visible = true;
}
if (_root.getsword4 == true) {
Sword4_BT._visible = true;
}
if (_root.getsword5 == true) {
Sword5_BT._visible = true;
}
if (_root.getsword6 == true) {
Sword6_BT._visible = true;
}
Sword3_BT._visible = false;
if (_root.mute == false) {
_root.item.start(0, 1);
}
if ((_root.sword < 3) or (_root.sword > 3)) {
_root.reg5 = _root.reg5 + 0.3;
_root.sword = 3;
swordz.gotoAndStop(_root.sword);
}
}
Symbol 766 MovieClip Frame 1
damage_txt.text = _root.weapon4;
Symbol 767 Button
on (release) {
_root.doSwordSwap();
Sword1_BT._visible = true;
if (_root.getsword2 == true) {
Sword2_BT._visible = true;
}
if (_root.getsword3 == true) {
Sword3_BT._visible = true;
}
if (_root.getsword5 == true) {
Sword5_BT._visible = true;
}
if (_root.getsword6 == true) {
Sword6_BT._visible = true;
}
Sword4_BT._visible = false;
if (_root.mute == false) {
_root.item.start(0, 1);
}
if ((_root.sword < 4) or (_root.sword > 4)) {
_root.maxlimit = _root.maxlimit - 40;
if (_root.limit > _root.maxlimit) {
_root.limit = _root.maxlimit;
}
_root.sword = 4;
swordz.gotoAndStop(_root.sword);
}
}
Symbol 770 MovieClip Frame 1
damage_txt.text = _root.weapon5;
Symbol 771 Button
on (release) {
_root.doSwordSwap();
Sword1_BT._visible = true;
if (_root.getsword2 == true) {
Sword2_BT._visible = true;
}
if (_root.getsword3 == true) {
Sword3_BT._visible = true;
}
if (_root.getsword4 == true) {
Sword4_BT._visible = true;
}
if (_root.getsword6 == true) {
Sword6_BT._visible = true;
}
Sword5_BT._visible = false;
if (_root.mute == false) {
_root.item.start(0, 1);
}
if ((_root.sword < 5) or (_root.sword > 5)) {
_root.counterchance = _root.counterchance + 1;
_root.sword = 5;
swordz.gotoAndStop(_root.sword);
}
}
Symbol 774 MovieClip Frame 1
damage_txt.text = _root.weapon6;
Symbol 775 Button
on (release) {
_root.doSwordSwap();
Sword1_BT._visible = true;
if (_root.getsword2 == true) {
Sword2_BT._visible = true;
}
if (_root.getsword3 == true) {
Sword3_BT._visible = true;
}
if (_root.getsword4 == true) {
Sword4_BT._visible = true;
}
if (_root.getsword5 == true) {
Sword5_BT._visible = true;
}
Sword6_BT._visible = false;
if (_root.mute == false) {
_root.item.start(0, 1);
}
if (_root.sword < 6) {
_root.maxlimit = _root.maxlimit - 40;
if (_root.limit > _root.maxlimit) {
_root.limit = _root.maxlimit;
}
_root.reg5 = _root.reg5 + 0.3;
_root.sword = 6;
swordz.gotoAndStop(_root.sword);
}
}
Symbol 776 MovieClip Frame 1
stop();
Symbol 776 MovieClip Frame 2
stop();
if (_root.sword == 1) {
Sword1_BT._visible = false;
}
if ((_root.getsword2 == false) or (_root.sword == 2)) {
Sword2_BT._visible = false;
}
if ((_root.getsword3 == false) or (_root.sword == 3)) {
Sword3_BT._visible = false;
}
if ((_root.getsword4 == false) or (_root.sword == 4)) {
Sword4_BT._visible = false;
}
if ((_root.getsword5 == false) or (_root.sword == 5)) {
Sword5_BT._visible = false;
}
if ((_root.getsword6 == false) or (_root.sword == 6)) {
Sword6_BT._visible = false;
}
Symbol 782 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 1
onEnterFrame = function () {
if (_root.core == true) {
if (_root.corehealth > _root.coremaxhealth) {
_root.corehealth = _root.coremaxhealth;
}
if (_root.corehealth < 0) {
_root.corehealth = 0;
}
healthbar._width = (_root.corehealth / _root.coremaxhealth) * 50;
}
if (_root.caleb == true) {
if (_root.calebhealth > _root.calebmaxhealth) {
_root.calebhealth = _root.calebmaxhealth;
}
if (_root.calebhealth < 0) {
_root.calebhealth = 0;
}
healthbar._width = (_root.calebhealth / _root.calebmaxhealth) * 50;
}
};
Symbol 786 MovieClip Frame 1
onEnterFrame = function () {
if (_root.core == true) {
if (_root.coremana > _root.coremaxmana) {
_root.coremana = _root.coremaxmana;
}
if (_root.coremana < 0) {
_root.coremana = 0;
}
manabar._width = (_root.coremana / _root.coremaxmana) * 50;
}
if (_root.caleb == true) {
if (_root.calebmana > _root.calebmaxmana) {
_root.calebmana = _root.calebmaxmana;
}
if (_root.calebmana < 0) {
_root.calebmana = 0;
}
manabar._width = (_root.calebmana / _root.calebmaxmana) * 50;
}
};
Symbol 798 MovieClip Frame 1
onEnterFrame = function () {
time.text = (((_root.counterhour + " : ") + _root.counterminute) + " : ") + _root.counter;
potion.text = _root.potion;
elixir.text = _root.elixir;
ether.text = _root.ether;
remedy.text = _root.remedy;
defense.text = _root.coredefense;
strength.text = _root.corestrength;
luck.text = _root.coreluck;
agility.text = _root.coreagility;
magic.text = _root.coremagicdamage;
gold.text = _root.gold;
if (_root.sword == 1) {
weapon_txt.text = _root.weapon1;
sword_txt.text = "Naga Sword";
}
if (_root.sword == 2) {
weapon_txt.text = _root.weapon2;
sword_txt.text = "Cleaver Sword";
}
if (_root.sword == 3) {
weapon_txt.text = _root.weapon3;
sword_txt.text = "Namako";
}
if (_root.sword == 4) {
weapon_txt.text = _root.weapon4;
sword_txt.text = "0mega Blade";
}
if (_root.sword == 5) {
weapon_txt.text = _root.weapon5;
sword_txt.text = "Megiddon";
}
if (_root.sword == 6) {
weapon_txt.text = _root.weapon6;
sword_txt.text = "4rmageddon";
}
};
Symbol 801 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 2
_root.inventoryplay = true;
this._visible = true;
if (_root.mute == false) {
_root.pageturn.attachSound("page");
_root.pageturn.start(0, 1);
}
Symbol 801 MovieClip Frame 16
_root.item._visible = true;
_root.item._x = this._x + 55;
_root.item._y = this._y - 15;
Symbol 801 MovieClip Frame 26
stop();
_root.inventoryplay = false;
_root.inventoryon = true;
Symbol 801 MovieClip Frame 27
_root.inventoryplay = true;
_root.inventoryon = false;
symbol.removeMovieClip();
Symbol 801 MovieClip Frame 33
_root.itemn._visible = false;
Symbol 801 MovieClip Frame 38
stop();
_root.inventoryplay = false;
this._visible = false;
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 64
_root.weathersound.stop();
_root.weathersound.attachSound("night");
_root.weathersound.start(0, 99);
Symbol 807 MovieClip Frame 250
stop();
Symbol 809 MovieClip Frame 11
stop();
Symbol 812 MovieClip Frame 15
stop();
Symbol 813 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 55
txt.txtz.text = "";
Symbol 820 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 10
stop();
Symbol 825 MovieClip Frame 19
gotoAndStop (1);
Symbol 825 MovieClip Frame 53
stop();
Symbol 825 MovieClip Frame 99
gotoAndStop (1);
Symbol 850 MovieClip Frame 1
stop();
if ((_root.slow == true) or (_root.goto2 == true)) {
gotoAndStop (2);
}
if ((_root.stun == true) or (_root.goto3 == true)) {
gotoAndStop (3);
}
Symbol 850 MovieClip Frame 2
stop();
Symbol 850 MovieClip Frame 3
stop();
Symbol 857 MovieClip Frame 30
_parent.gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 860 MovieClip Frame 7
stop();
Symbol 861 MovieClip Frame 1
if ((_root.goto2 == true) or (_root.goto3 == true)) {
gotoAndPlay ("slow");
}
Symbol 861 MovieClip Frame 24
_parent.gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 861 MovieClip Frame 75
_parent.gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 868 MovieClip Frame 1
if ((_root.Rattack == 2) or (_root.dodge == true)) {
gotoAndPlay ("short");
}
Symbol 868 MovieClip Frame 24
if (_root.mute == false) {
_root.enmhurt.attachSound("fall");
_root.enmhurt.start(0, 1);
_root.footstep.start(0, 1);
}
Symbol 868 MovieClip Frame 37
stop();
Symbol 871 MovieClip Frame 1
if (_root.battlestart == true) {
_root.level = 1;
_root.boss = false;
_root.enemyattk = 5;
_root.enemymagicattk = 5;
_root.enemyhealth = 60;
_root.enmhealth_txt.text = _root.enemyhealth;
_root.enemymaxhealth = 60;
_root.enmmaxhealth_txt.text = _root.enemymaxhealth;
_root.enemymaxmana = 0;
_root.enemymana = _root.enemymaxmana;
_root.enemydefense = 1;
_root.enmdodge = 2;
_root.melee = true;
_root.firedefense = 1;
_root.icedefense = 1;
_root.thunderdefense = 1;
_root.darkdefense = 1;
_root.nrattacks = 2;
_root.reg1 = 3;
_root.reg2 = 4;
_root.reg3 = 1.6;
_root.countmaximum = 150;
}
if (((((_root.enmcount >= 80) && (_root.corehealth > 0)) && (_root.calebhealth > 0)) && (_root.stopz == false)) && (_root.stun == false)) {
gotoAndPlay ("bite");
} else {
this.stop();
}
_root.stats = "";
Symbol 871 MovieClip Frame 2
if (((((_root.enmcount >= 120) && (_root.corehealth > 0)) && (_root.calebhealth > 0)) && (_root.stopz == false)) && (_root.stun == false)) {
gotoAndPlay ("sneak");
} else {
this.stop();
}
_root.stats = "";
Symbol 871 MovieClip Frame 3
_root.enmcount = _root.enmcount - 80;
Symbol 871 MovieClip Frame 20
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 871 MovieClip Frame 23
_root.enmattacking = true;
Symbol 871 MovieClip Frame 33
_root.enmattacking = false;
Symbol 871 MovieClip Frame 50
gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 871 MovieClip Frame 51
_root.enmattacking = true;
_root.enmcount = _root.enmcount - 120;
Symbol 871 MovieClip Frame 60
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 871 MovieClip Frame 75
_root.enmattacking = false;
Symbol 871 MovieClip Frame 91
gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 871 MovieClip Frame 92
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 871 MovieClip Frame 138
gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 871 MovieClip Frame 139
_root.doenemyhurt();
_root.enmdamage2.damage2.damagetxt.text = _root.damage;
_root.enmdamage2.gotoAndPlay(2);
if (_root.core == true) {
chance = Math.floor((Math.random() * 30) + _root.coreluck);
}
if (_root.caleb == true) {
chance = Math.floor((Math.random() * 30) + _root.calebluck);
}
if ((chance == 30) && (_root.magic == false)) {
_root.damage = _root.damage + _root.damage;
_root.lucky.gotoAndPlay(1);
_root.enmstat2.stat.stattxt.text = _root.enmstat2.stat.stattxt.text + "Lucky Hit ";
_root.enmstat2.gotoAndPlay(2);
}
if ((_root.crit == true) && (_root.magic == false)) {
_root.damage = _root.damage + _root.damage;
_root.enmstat2.stat.stattxt.text = _root.enmstat2.stat.stattxt.text + "Critical Hit ";
_root.enmstat2.gotoAndPlay(2);
}
if (_root.enemyhealth <= 0) {
gotoAndPlay ("dodgeDead");
}
if (_root.mute == false) {
_root.chance = Math.floor((Math.random() * 2) + 1);
if (_root.chance == 2) {
_root.growl.attachSound("asay11");
_root.growl.start(0, 1);
}
if (_root.magic == false) {
_root.enmhurt.attachSound("metalchop3");
_root.enmhurt.start(0, 1);
}
}
Symbol 871 MovieClip Frame 168
gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 871 MovieClip Frame 169
_root.doenemyhurt();
_root.enmdamage.damage2.damagetxt.text = _root.damage;
_root.enmdamage.gotoAndPlay(2);
if (_root.core == true) {
chance = Math.floor((Math.random() * 30) + _root.coreluck);
}
if (_root.caleb == true) {
chance = Math.floor((Math.random() * 30) + _root.calebluck);
}
if ((chance == 30) && (_root.magic == false)) {
_root.damage = _root.damage + _root.damage;
_root.lucky.gotoAndPlay(1);
_root.enmstat.stat.stattxt.text = _root.enmstat.stat.stattxt.text + "Lucky Hit ";
_root.enmstat.gotoAndPlay(2);
}
if ((_root.crit == true) && (_root.magic == false)) {
_root.damage = _root.damage + _root.damage;
_root.enmstat.stat.stattxt.text = _root.enmstat.stat.stattxt.text + "Critical Hit ";
_root.enmstat.gotoAndPlay(2);
}
if ((_root.enemyhealth <= 0) && (_root.multislash == false)) {
gotoAndPlay ("dead");
}
if (_root.mute == false) {
_root.chance = Math.floor((Math.random() * 2) + 1);
if (_root.chance == 2) {
_root.growl.attachSound("asay11");
_root.growl.start(0, 1);
}
if (_root.magic == false) {
_root.enmhurt.attachSound("metalchop3");
_root.enmhurt.start(0, 1);
}
}
Symbol 871 MovieClip Frame 221
gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 871 MovieClip Frame 222
clearInterval(_root.count4ID);
clearInterval(_root.count5ID);
clearInterval(_root.count6ID);
clearInterval(_root.count7ID);
clearInterval(_root.count8ID);
clearInterval(_root.count9ID);
Symbol 871 MovieClip Frame 231
stop();
Symbol 871 MovieClip Frame 232
clearInterval(_root.count4ID);
clearInterval(_root.count5ID);
clearInterval(_root.count6ID);
clearInterval(_root.count7ID);
clearInterval(_root.count8ID);
clearInterval(_root.count9ID);
Symbol 871 MovieClip Frame 241
if (_root.story == 1) {
_root.story = 2;
}
stop();
Symbol 871 MovieClip Frame 268
gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 880 MovieClip Frame 1
if (_root.enmpass == false) {
_root.level = 5;
_root.boss = false;
_root.enemyattk = 17;
_root.enemyhealth = 60;
_root.enemymaxhealth = 60;
_root.enemymana = 20;
_root.enemymaxmana = 20;
_root.enemydefense = 2;
_root.enmdodge = 4;
_root.enmpass = true;
_root.reg3 = 3;
_root.reg4 = 2;
_root.reg6 = 1.6;
_root.countmaximum = 150;
}
if (((_root.enmcount >= 80) && (_root.health > 0)) && (_root.stun == false)) {
gotoAndPlay ("bite");
} else {
this.stop();
}
_root.stats = "";
Symbol 880 MovieClip Frame 2
if (((_root.enmcount >= 120) && (_root.health > 0)) && (_root.stun == false)) {
gotoAndPlay ("sneak");
} else {
this.stop();
}
_root.stats = "";
Symbol 880 MovieClip Frame 3
if ((_root.enmcount >= 120) && (_root.stun == false)) {
gotoAndPlay ("sneak");
} else {
this.stop();
}
_root.stats = "";
Symbol 880 MovieClip Frame 5
_root.enmcount = _root.enmcount - 80;
Symbol 880 MovieClip Frame 20
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 880 MovieClip Frame 50
gotoAndPlay(Math.floor((Math.random() * 2) + 1));
Symbol 880 MovieClip Frame 51
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 880 MovieClip Frame 97
gotoAndPlay(Math.floor((Math.random() * 3) + 1));
Symbol 880 MovieClip Frame 98
damage = Math.floor(((((((((_root.weaponA + _root.magicdamageA) + _root.strength) + random(_root.fatigue / 10)) + _root.fireElement) + _root.thunderElement) + _root.waterElement) + _root.darkElement) + random(_root.luck * 2)) - _root.enemydefense);
chance = Math.floor((Math.random() * 30) + _root.luck);
if ((chance == 30) && (_root.magic == false)) {
damage = damage + damage;
_root.lucky.play();
_root.enmstat2.stat.stattxt.text = _root.enmstat2.stat.stattxt.text + "Lucky Hit ";
_root.enmstat2.play();
}
if ((_root.crit == true) && (_root.magic == false)) {
damage = damage + (_root.strength + random(_root.weapon));
}
_root.enemyhealth = _root.enemyhealth - damage;
_root.enmcount = _root.enmcount - 20;
if (_root.enmcount < 0) {
_root.enmcount = 0;
}
if (Key.isDown(32) && (_root.magic == false)) {
_root.enmstat2.stat.stattxt.text = _root.enmstat2.stat.stattxt.text + "Critical Hit ";
_root.enmstat2.play();
}
_root.enmdamage2.damage2.damagetxt.text = damage;
_root.enmdamage2.play();
_root.enemybarz.countbar.countbar.play();
if (_root.enemyhealth <= 0) {
gotoAndPlay ("dodgeDead");
}
if (_root.mute == false) {
_root.chance = Math.floor((Math.random() * 2) + 1);
if (_root.chance == 2) {
_root.growl.attachSound("asay11");
_root.growl.start(0, 1);
}
if ((_root.mute == false) && (_root.magic == false)) {
_root.enmhurt.attachSound("metalchop3");
_root.enmhurt.start(0, 1);
}
}
Symbol 880 MovieClip Frame 127
gotoAndPlay(Math.floor((Math.random() * 3) + 1));
Symbol 880 MovieClip Frame 128
clearInterval(_root.count4ID);
clearInterval(_root.count5ID);
clearInterval(_root.count6ID);
clearInterval(_root.count7ID);
clearInterval(_root.count8ID);
Symbol 880 MovieClip Frame 137
stop();
Symbol 880 MovieClip Frame 138
damage = Math.floor(((((((((_root.weaponA + _root.magicdamageA) + _root.strength) + random(_root.fatigue / 10)) + _root.fireElement) + _root.thunderElement) + _root.waterElement) + _root.darkElement) + random(_root.luck * 2)) - _root.enemydefense);
chance = Math.floor((Math.random() * 30) + _root.luck);
if ((chance == 30) && (_root.magic == false)) {
damage = damage + damage;
_root.lucky.play();
_root.enmstat.stat.stattxt.text = _root.enmstat.stat.stattxt.text + "Lucky Hit ";
_root.enmstat.play();
}
if ((_root.crit == true) && (_root.magic == false)) {
damage = damage + (_root.strength + random(_root.weapon));
}
_root.enemyhealth = _root.enemyhealth - damage;
_root.enmcount = _root.enmcount - 20;
if (_root.enmcount < 0) {
_root.enmcount = 0;
}
if (Key.isDown(32) && (_root.magic == false)) {
_root.enmstat.stat.stattxt.text = _root.enmstat.stat.stattxt.text + "Critical Hit ";
_root.enmstat.play();
}
_root.enmdamage.damage2.damagetxt.text = damage;
_root.enmdamage.play();
_root.enemybarz.countbar.countbar.play();
if (_root.enemyhealth <= 0) {
gotoAndPlay ("dead");
}
if (_root.mute == false) {
_root.chance = Math.floor((Math.random() * 2) + 1);
if (_root.chance == 2) {
_root.growl.attachSound("asay11");
_root.growl.start(0, 1);
}
if ((_root.mute == false) && (_root.magic == false)) {
_root.enmhurt.attachSound("metalchop3");
_root.enmhurt.start(0, 1);
}
}
Symbol 880 MovieClip Frame 162
gotoAndPlay(Math.floor((Math.random() * 3) + 1));
Symbol 880 MovieClip Frame 163
clearInterval(_root.count4ID);
clearInterval(_root.count5ID);
clearInterval(_root.count6ID);
clearInterval(_root.count7ID);
clearInterval(_root.count8ID);
Symbol 880 MovieClip Frame 172
stop();
Symbol 881 MovieClip Frame 1
stop();
if (_root.area == 1) {
gotoAndStop ("timberwolf");
}
if (_root.area == 2) {
gotoAndStop ("bandit");
}
Symbol 898 MovieClip Frame 1
onEnterFrame = function () {
healthbar._width = (_root.enemyhealth / _root.enemymaxhealth) * 50;
};
Symbol 901 MovieClip Frame 1
onEnterFrame = function () {
if (_root.core == true) {
if (_root.corefatigue > _root.coremaxfatigue) {
_root.corefatigue = _root.coremaxfatigue;
}
if (_root.corefatigue < 0) {
_root.corefatigue = 0;
}
fatiguebar._width = (_root.corefatigue / _root.coremaxfatigue) * 50;
}
if (_root.caleb == true) {
if (_root.calebfatigue > _root.calebmaxfatigue) {
_root.calebfatigue = _root.calebmaxfatigue;
}
if (_root.calebfatigue < 0) {
_root.calebfatigue = 0;
}
fatiguebar._width = (_root.calebfatigue / _root.calebmaxfatigue) * 50;
}
};
Symbol 904 MovieClip Frame 1
stop();
Symbol 905 MovieClip Frame 1
onEnterFrame = function () {
if (_root.core == true) {
if ((_root.gamepause == false) && (_root.corecount >= _root.coremaxcount)) {
countbar.play();
}
if (_root.corecount < 0) {
_root.corecount = 0;
}
countbar._width = (_root.corecount / _root.coremaxcount) * 50;
}
if (_root.caleb == true) {
if ((_root.gamepause == false) && (_root.calebcount >= _root.calebmaxcount)) {
countbar.play();
}
if (_root.calebcount < 0) {
_root.calebcount = 0;
}
countbar._width = (_root.calebcount / _root.calebmaxcount) * 50;
}
};
Symbol 908 MovieClip Frame 1
stop();
Symbol 909 MovieClip Frame 1
onEnterFrame = function () {
if (_root.core == true) {
if (_root.corelimit > _root.coremaxlimit) {
_root.corelimit = _root.coremaxlimit;
}
if ((_root.gamepause == false) && (_root.corelimit >= _root.coremaxlimit)) {
limitbar.play();
}
limitbar._width = (_root.corelimit / _root.coremaxlimit) * 50;
}
if (_root.caleb == true) {
if (_root.caleblimit > _root.calebmaxlimit) {
_root.caleblimit = _root.calebmaxlimit;
}
if ((_root.gamepause == false) && (_root.caleblimit >= _root.calebmaxlimit)) {
limitbar.play();
}
limitbar._width = (_root.caleblimit / _root.calebmaxlimit) * 50;
}
};
Symbol 923 MovieClip Frame 1
onEnterFrame = function () {
manabar._width = (_root.enemymana / _root.enemymaxmana) * 50;
};
Symbol 924 MovieClip Frame 1
onEnterFrame = function () {
countbar._width = (_root.enmcount / _root.maxenmcount) * 50;
if ((_root.gamepause == false) && (_root.enmcount >= _root.maxenmcount)) {
countbar.play();
}
};
Symbol 930 MovieClip Frame 1
stop();
Symbol 930 MovieClip Frame 10
stop();
Symbol 933 Button
on (rollOver) {
if ((_root.gamepause == false) && (_root.menuon == false)) {
gotoAndStop (2);
_root.menuon = true;
}
}
Symbol 936 MovieClip Frame 1
stop();
Symbol 936 MovieClip Frame 11
stop();
Symbol 938 Button
on (rollOver) {
gotoAndPlay (1);
bg.gotoAndPlay(12);
_root.menuon = false;
}
Symbol 943 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.core == true) && (_root.gamepause == false)) && (_root.Core._currentframe == 1)) {
if ((_root.corefatigue < _root.coremaxfatigue) && (_root.elixir > 0)) {
_root.corefatigue = _root.corefatigue + 30;
_root.elixir--;
} else if (((_root.caleb == true) && (_root.gamepause == false)) && (_root.Caleb._currentframe == 1)) {
if ((_root.calebfatigue < _root.calebmaxfatigue) && (_root.elixir > 0)) {
_root.calebfatigue = _root.calebfatigue + 30;
_root.elixir--;
}
}
if (_root.mute == false) {
_root.drink.start(0, 1);
} else if (_root.mute == false) {
_root.error.start(0, 1);
}
}
}
Symbol 948 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.core == true) && (_root.gamepause == false)) && (_root.Core._currentframe == 1)) {
if ((_root.coremana < _root.coremaxmana) && (_root.ether > 0)) {
_root.coremana = _root.coremana + 60;
_root.ether--;
} else if (((_root.caleb == true) && (_root.gamepause == false)) && (_root.Caleb._currentframe == 1)) {
if ((_root.calebmana < _root.calebmaxmana) && (_root.ether > 0)) {
_root.calebmana = _root.calebmana + 60;
_root.ether--;
}
}
if (_root.mute == false) {
_root.drink.start(0, 1);
} else if (_root.mute == false) {
_root.error.start(0, 1);
}
}
}
Symbol 953 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.core == true) && (_root.gamepause == false)) && (_root.Core._currentframe == 1)) {
if ((_root.corehealth < _root.coremaxhealth) && (_root.potion > 0)) {
_root.corehealth = _root.corehealth + 90;
_root.potion--;
} else if (((_root.caleb == true) && (_root.gamepause == false)) && (_root.Caleb._currentframe == 1)) {
if ((_root.calebhealth < _root.calebmaxhealth) && (_root.potion > 0)) {
_root.calebhealth = _root.calebhealth + 90;
_root.potion--;
}
}
if (_root.mute == false) {
_root.drink.start(0, 1);
} else if (_root.mute == false) {
_root.error.start(0, 1);
}
}
}
Symbol 962 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.core == true) && (_root.gamepause == false)) && (_root.Core._currentframe == 1)) {
if ((_root.corehealth < _root.coremaxhealth) && (_root.potion > 0)) {
_root.corehealth = _root.corehealth + 90;
_root.potion--;
} else if (((_root.caleb == true) && (_root.gamepause == false)) && (_root.Caleb._currentframe == 1)) {
if ((_root.calebhealth < _root.calebmaxhealth) && (_root.potion > 0)) {
_root.calebhealth = _root.calebhealth + 90;
_root.potion--;
}
}
if (_root.mute == false) {
_root.drink.start(0, 1);
} else if (_root.mute == false) {
_root.error.start(0, 1);
}
}
}
Symbol 963 MovieClip Frame 1
onEnterFrame = function () {
elixirtxt.text = _root.elixir;
potiontxt.text = _root.potion;
ethertxt.text = _root.ether;
remedytxt.text = _root.remedy;
};
stop();
Symbol 963 MovieClip Frame 2
stop();
bg.gotoAndPlay(2);
Symbol 969 Button
on (rollOver) {
if ((_root.mute == false) && (_root.menuon == false)) {
_root.buttonover.start(0, 1);
}
}
on (release) {
_root.doBattleAttack();
if ((_root.story = _root.tut._currentframe == 50)) {
_root.tut.play();
}
}
Symbol 972 MovieClip Frame 1
if (_root.melee == false) {
gotoAndStop (2);
} else {
stop();
}
Symbol 972 MovieClip Frame 2
stop();
Symbol 976 Button
on (rollOver) {
if (((_root.mute == false) && (_root.menuon == false)) && (_root.melee == true)) {
_root.buttonover.start(0, 1);
}
}
on (release) {
_root.doBattleDodge();
}
Symbol 979 MovieClip Frame 1
if (_root.melee == false) {
gotoAndStop (2);
} else {
stop();
}
Symbol 979 MovieClip Frame 2
stop();
Symbol 983 Button
on (rollOver) {
if (((_root.mute == false) && (_root.menuon == false)) && (_root.melee == true)) {
_root.buttonover.start(0, 1);
}
}
on (release) {
_root.doBattleCounter();
}
Symbol 988 Button
on (rollOver) {
if ((_root.mute == false) && (_root.menuon == false)) {
_root.buttonover.start(0, 1);
}
}
on (release) {
_root.doBattleFlee();
}
Symbol 992 Button
on (rollOver) {
gotoAndStop (1);
bg.gotoAndPlay(12);
_root.menuon = false;
}
Symbol 996 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (_root.gamepause == false) {
if ((_root.diamondattack == true) && (_root.corefatigue < 4)) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if ((_root.diamondattack == true) && (_root.corecount < 40)) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if ((_root.diamondattack == true) && (_root.coremana < 7)) {
_root.enough.manamc.mana.text = "Not enough mana";
}
if ((_root.Core._currentframe == 1) && (_root.corefatigue < 2)) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if ((_root.Core._currentframe == 1) && (_root.corecount < 60)) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if ((_root.Core._currentframe == 1) && (_root.coremana < 5)) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((((_root.Core._currentframe == 1) && (_root.enmattacking == false)) && (_root.corefatigue >= 2)) && (_root.corecount >= 60)) && (_root.coremana >= 5)) {
_root.Core.gotoAndPlay("diamond");
_root.cursor.gotoAndPlay(2);
_root.corecount = _root.corecount - 60;
_root.corelimit = _root.corelimit + 2;
_root.magic = true;
_root.coremana = _root.coremana - 5;
_root.domagicdamage();
_root.domenuon1();
}
if (_root.diamondattack == true) {
_root.Core.gotoAndPlay("diamondEnd");
_root.cursor.gotoAndPlay(1);
_root.diamondattack = false;
_root.domenuon1();
}
}
}
Symbol 1000 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if ((_root.gamepause == false) && (_root.Core._currentframe == 1)) {
if (_root.corefatigue < 2) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 50) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 10) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 2) && (_root.corecount >= 50)) && (_root.coremana >= 10)) {
_root.corecount = _root.corecount - 50;
_root.Core.gotoAndPlay("heal");
_root.corelimit = _root.corelimit + 1;
_root.domagicdamage();
_root.domenuon1();
_root.menuon = true;
}
}
}
Symbol 1004 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.scan == false)) {
if (_root.corefatigue < 3) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 50) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 25) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 3) && (_root.corecount >= 50)) && (_root.coremana >= 25)) {
_root.corecount = _root.corecount - 50;
_root.Core.gotoAndPlay("scan");
_root.corelimit = _root.corelimit + 1;
_root.domagicdamage();
_root.domenuon1();
_root.menuon = true;
}
}
}
Symbol 1008 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 6) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 80) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 35) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 6) && (_root.corecount >= 80)) && (_root.coremana >= 35)) {
_root.corecount = _root.corecount - 80;
_root.Core.gotoAndPlay("blaze");
_root.corelimit = _root.corelimit + 2;
_root.domagicdamage();
_root.domagic();
_root.enemiez.enemy.gotoAndPlay(1);
_root.domenuon1();
}
}
}
Symbol 1012 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 4) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 90) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 40) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 6) && (_root.corecount >= 90)) && (_root.coremana >= 40)) {
_root.corecount = _root.corecount - 90;
_root.Core.gotoAndPlay("storm");
_root.corelimit = _root.corelimit + 2;
_root.domagicdamage();
_root.domagic();
_root.domenuon1();
}
}
}
Symbol 1016 Button
on (release) {
gotoAndStop (3);
}
Symbol 1020 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 10) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 150) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 95) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 10) && (_root.corecount >= 150)) && (_root.coremana >= 95)) {
_root.corecount = _root.corecount - 150;
_root.Core.gotoAndPlay("hellfire");
_root.corelimit = _root.corelimit + 4;
_root.domagic();
_root.domagicdamage();
_root.domenuon1();
}
}
}
Symbol 1024 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 6) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 130) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 95) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 6) && (_root.corecount >= 130)) && (_root.coremana >= 95)) {
_root.corecount = _root.corecount - 80;
_root.Core.gotoAndPlay("blizzard");
_root.corelimit = _root.corelimit + 4;
_root.domagic();
_root.domagicdamage();
_root.domenuon1();
}
}
}
Symbol 1028 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if ((_root.gamepause == false) && (_root.Core._currentframe == 1)) {
if (_root.corefatigue < 6) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 130) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 55) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 6) && (_root.corecount >= 130)) && (_root.coremana >= 55)) {
_root.corecount = _root.corecount - 130;
_root.Core.gotoAndPlay("haste");
_root.corelimit = _root.corelimit + 3;
_root.domagicdamage();
_root.domenuon1();
}
}
}
Symbol 1032 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 6) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 130) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 95) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 6) && (_root.corecount >= 130)) && (_root.coremana >= 95)) {
_root.corecount = _root.corecount - 130;
_root.Core.gotoAndPlay("thunder");
_root.corelimit = _root.corelimit + 4;
_root.domagic();
_root.domagicdamage();
_root.domenuon1();
}
}
}
Symbol 1036 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if ((_root.gamepause == false) && (_root.Core._currentframe == 1)) {
if (_root.corefatigue < 8) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 110) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 100) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 8) && (_root.corecount >= 110)) && (_root.coremana >= 100)) {
_root.corecount = _root.corecount - 110;
_root.Core.gotoAndPlay("dimension");
_root.black.gotoAndPlay(2);
_root.corelimit = _root.corelimit + 5;
_root.domagicdamage();
_root.domagicdamage();
_root.domenuon1();
}
}
}
Symbol 1040 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if ((_root.gamepause == false) && (_root.Core._currentframe == 1)) {
if (_root.corefatigue < 6) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.corecount < 90) {
_root.enough.staminamc.stamina.text = "Not enough stamina";
}
if (_root.coremana < 85) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 6) && (_root.corecount >= 90)) && (_root.coremana >= 85)) {
_root.corecount = _root.corecount - 90;
_root.Core.gotoAndPlay("inner");
_root.corelimit = _root.corelimit + 3;
_root.domagicdamage();
_root.domagicdamage();
_root.domenuon1();
}
}
}
Symbol 1041 MovieClip Frame 1
stop();
Symbol 1041 MovieClip Frame 2
stop();
bg.gotoAndPlay(2);
Symbol 1041 MovieClip Frame 4
stop();
Symbol 1041 MovieClip Frame 5
stop();
bg.gotoAndPlay(2);
Symbol 1044 MovieClip Frame 3
if (_root.gamepause == true) {
gotoAndPlay (1);
}
Symbol 1046 MovieClip Frame 1
onEnterFrame = function () {
if (_root.core == true) {
if (_root.corelimit < _root.coremaxlimit) {
stop();
} else if (_root.corelimit >= _root.coremaxlimit) {
gotoAndStop (2);
}
}
if (_root.caleb == true) {
if (_root.caleblimit < _root.calebmaxlimit) {
stop();
} else if (_root.caleblimit >= _root.calebmaxlimit) {
gotoAndStop (2);
}
}
};
Symbol 1046 MovieClip Frame 2
onEnterFrame = function () {
if (_root.core == true) {
if (_root.corelimit < _root.coremaxlimit) {
gotoAndStop (1);
} else if (_root.corelimit >= _root.coremaxlimit) {
stop();
}
}
if (_root.caleb == true) {
if (_root.caleblimit < _root.calebmaxlimit) {
gotoAndStop (1);
} else if (_root.caleblimit >= _root.calebmaxlimit) {
stop();
}
}
};
Symbol 1049 Button
on (rollOver) {
gotoAndStop (1);
bg.gotoAndPlay(12);
_root.menuon = false;
}
Symbol 1053 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 25) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.coremana < 20) {
_root.enough.manamc.mana.text = "Not enough mana";
}
if (_root.corehealth < (_root.corestrength * 3)) {
_root.enough.healthmc.health.text = "Not enough health";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 25) && (_root.coremana >= 20)) && (_root.corehealth >= ((_root.corestrength * 3) + 1))) {
_root.Core.gotoAndPlay("pheonix");
_root.dolimitbreak();
_root.docoremagicdamage();
_root.docorestrength();
_root.docorestrength();
_root.black.gotoAndPlay(2);
_root.domenuon2();
if (_root.camera == true) {
_root.chance = Math.floor((Math.random() * 2) + 1);
if (_root.chance == 1) {
_root.gotoAndPlay("pheonix");
}
}
}
}
}
Symbol 1057 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 97) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.coremana < 70) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if ((_root.corefatigue >= 97) && (_root.coremana >= 70)) {
_root.Core.gotoAndPlay("omniflash");
_root.dolimitbreak();
_root.docorestrength();
_root.docorestrength();
_root.docoreagility();
_root.docoreagility();
_root.docoreluck();
_root.multislash = true;
_root.black.gotoAndPlay(20);
_root.domenuon2();
if (_root.camera == true) {
_root.chance = Math.floor((Math.random() * 3) + 1);
if (_root.chance <= 2) {
_root.gotoAndPlay("omniflash");
}
}
}
}
}
Symbol 1061 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 20) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.coremana < 10) {
_root.enough.manamc.mana.text = "Not enough mana";
}
if (_root.corehealth < (_root.corestrength * 2)) {
_root.enough.healthmc.health.text = "Not enough health";
}
_root.enough.gotoAndPlay(2);
if (((_root.corefatigue >= 20) && (_root.coremana >= 10)) && (_root.corehealth >= ((_root.corestrength * 2) + 1))) {
_root.Core.gotoAndPlay("fury");
_root.dolimitbreak();
_root.docoremagicdamage();
_root.docorestrength();
_root.black.gotoAndPlay(2);
_root.domenuon2();
if (_root.camera == true) {
_root.chance = Math.floor((Math.random() * 3) + 1);
if (_root.chance == 1) {
_root.gotoAndPlay("fury");
}
}
}
}
}
Symbol 1065 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Core._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.corefatigue < 27) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.coremana < 40) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if ((_root.corefatigue >= 27) && (_root.coremana >= 40)) {
_root.Core.gotoAndPlay("flash");
_root.dolimitbreak();
_root.docorestrength();
_root.docoreagility();
_root.multislash = true;
_root.black.gotoAndPlay(20);
_root.domenuon2();
if (_root.camera == true) {
_root.chance = Math.floor((Math.random() * 2) + 1);
if (_root.chance == 1) {
_root.gotoAndPlay("flash");
}
}
}
}
}
Symbol 1069 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Caleb._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.calebfatigue < 20) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.calebmana < 10) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if ((_root.calebfatigue >= 20) && (_root.calebmana >= 10)) {
_root.Caleb.gotoAndPlay("slash");
_root.dolimitbreak();
_root.docalebmagicdamage();
_root.docalebstrength();
_root.black.gotoAndPlay(2);
_root.domenuon2();
_root.multislash = true;
if (_root.camera == true) {
_root.chance = Math.floor((Math.random() * 3) + 1);
if (_root.chance == 1) {
_root.gotoAndPlay("slash");
}
}
}
}
}
Symbol 1073 Button
on (rollOver) {
if (_root.mute == false) {
_root.buttonover.start(0, 1);
}
}
on (release) {
if (((_root.gamepause == false) && (_root.Caleb._currentframe == 1)) && (_root.enmattacking == false)) {
if (_root.calebfatigue < 5) {
_root.enough.energymc.energy.text = "Not enough energy";
}
if (_root.calebmana < 30) {
_root.enough.manamc.mana.text = "Not enough mana";
}
_root.enough.gotoAndPlay(2);
if ((_root.calebfatigue >= 5) && (_root.calebmana >= 30)) {
_root.Caleb.gotoAndPlay("earthquake");
_root.dolimitbreak();
_root.docalebmagicdamage();
_root.docalebstrength();
_root.black.gotoAndPlay(2);
_root.domenuon2();
if (_root.camera == true) {
_root.chance = Math.floor((Math.random() * 3) + 1);
if (_root.chance == 1) {
_root.gotoAndPlay("earthquake");
}
}
}
}
}
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1074 MovieClip Frame 2
stop();
bg.gotoAndPlay(2);
if (_root.corelimit2 == false) {
pheonix_BT._visible = false;
}
if (_root.corelimit3 == false) {
flash_BT._visible = false;
}
if (_root.corelimit3 == false) {
omni_BT._visible = false;
}
Symbol 1074 MovieClip Frame 3
stop();
bg.gotoAndPlay(2);
if (_root.caleblimit2 == false) {
pheonix_BT._visible = false;
}
if (_root.caleblimit3 == false) {
flash_BT._visible = false;
}
if (_root.caleblimit3 == false) {
omni_BT._visible = false;
}
Symbol 1075 MovieClip Frame 1
stop();
Symbol 1095 MovieClip Frame 77
stop();
Symbol 1098 MovieClip Frame 1
stop();
Symbol 1098 MovieClip Frame 35
damage2.damagetxt.text = "";
Symbol 1101 MovieClip Frame 1
stop();
Symbol 1101 MovieClip Frame 35
stat.stattxt.text = "";
Symbol 1112 MovieClip Frame 1
stop();
Symbol 1112 MovieClip Frame 2
_root.gamepause = true;
clearInterval(_root.count2ID);
clearInterval(_root.count3ID);
clearInterval(_root.count3XID);
clearInterval(_root.count4XID);
clearInterval(_root.count4ID);
clearInterval(_root.count5ID);
clearInterval(_root.count6ID);
clearInterval(_root.count7ID);
clearInterval(_root.count8ID);
clearInterval(_root.count9ID);
_root.battlemusic.stop();
Symbol 1112 MovieClip Frame 25
stop();
Symbol 1112 MovieClip Frame 54
_root.gamepause = false;
_root.count2ID = setInterval(_root.doCounter2, 1000);
_root.count3ID = setInterval(_root.doCounter3, 1000);
_root.count3XID = setInterval(_root.doCounter3X, 1000);
_root.count4XID = setInterval(_root.doCounter4X, 1000);
_root.count4ID = setInterval(_root.doCounter4, 1000);
_root.count5ID = setInterval(_root.doCounter5, 1000);
_root.count6ID = setInterval(_root.doCounter6, 500);
if (_root.core == true) {
_root.count7ID = setInterval(_root.doCounter7, 40);
}
_root.count8ID = setInterval(_root.doCounter8, 40);
if (_root.caleb == true) {
_root.count9ID = setInterval(_root.doCounter9, 40);
}
if (_root.mute == false) {
_root.battlemusic.start(0, 99);
}
Symbol 1114 MovieClip Frame 1
stop();
Symbol 1164 MovieClip Frame 1
if (_root.corefatigue < 40) {
tired._visible = true;
} else {
tired._visible = false;
}
Symbol 1168 MovieClip Frame 1
if (_root.corehealth < (_root.coremaxhealth / 5)) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1168 MovieClip Frame 2
stop();
Symbol 1169 MovieClip Frame 1
stop();
Symbol 1169 MovieClip Frame 2
if ((_root.corehealth >= (_root.coremaxhealth / 5)) && (_root.corefatigue >= 30)) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Symbol 1169 MovieClip Frame 4
if ((_root.corehealth < (_root.coremaxhealth / 5)) or (_root.corefatigue < 30)) {
gotoAndPlay (2);
}
Symbol 1169 MovieClip Frame 12
gotoAndStop (1);
Symbol 1172 MovieClip Frame 1
stop();
Symbol 1180 MovieClip Frame 1
gotoAndStop(_root.sword);
Symbol 1223 MovieClip Frame 1
gotoAndStop(_root.sword);
Symbol 1245 MovieClip Frame 1
if (_root.health < (_root.maxhealth / 5)) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1245 MovieClip Frame 2
stop();
Symbol 1333 MovieClip Frame 1
gotoAndPlay(Math.floor((Math.random() * 5) + 1));
Symbol 1336 MovieClip Frame 24
if (_root.coremana >= 1) {
_root.coremana = _root.coremana - 1;
}
if ((_root.coremana <= 0) or (_root.enemyhealth <= 0)) {
_parent.gotoAndPlay("diamondEnd");
}
if (_root.mute == false) {
_root.swish.attachSound("ancestral");
_root.swish.start(0, 1);
}
Symbol 1336 MovieClip Frame 38
if (_root.coremana >= 1) {
_root.coremana = _root.coremana - 1;
}
if ((_root.coremana <= 0) or (_root.enemyhealth <= 0)) {
_parent.gotoAndPlay("diamondEnd");
}
Symbol 1336 MovieClip Frame 52
gotoAndPlay ("loop");
Symbol 1345 MovieClip Frame 1
gotoAndPlay(Math.floor((Math.random() * 7) + 1));
Symbol 1362 MovieClip Frame 44
stop();
Symbol 1365 MovieClip Frame 1
if (_root.diamondattack == true) {
gotoAndPlay ("X");
}
if ((_root.coremana <= 0) or (_root.enemyhealth <= 0)) {
_parent.gotoAndPlay("diamondEnd");
}
Symbol 1365 MovieClip Frame 14
stop();
_root.diamondattack = true;
_root.enemiez.enemy.onMouseDown = function () {
if (_root.cursor.hitTest(_root.enemiez.enemy.Target) && (_root.coremana >= 4)) {
if ((((_root.enemiez.enemy._currentframe <= _root.nrattacks) && (_root.stun == false)) && (_root.enmcount >= 20)) && (_root.Core._currentframe > 1)) {
chance = Math.floor((Math.random() * _root.enmdodge) + 1);
if (chance == 1) {
_root.enemiez.enemy.gotoAndPlay("dodge");
_root.enmcount = _root.enmcount - 20;
}
}
_parent.gotoAndPlay("diamondX");
}
};
_parent.cloud.onRollOver = function () {
_parent.gotoAndPlay("diamondend");
};
Symbol 1408 MovieClip Frame 79
stop();
Symbol 1417 MovieClip Frame 1
gotoAndStop(_root.sword);
Symbol 1424 MovieClip Frame 8
gotoAndPlay (5);
Symbol 1428 MovieClip Frame 26
stop();
Symbol 1431 MovieClip Frame 1
if (_root.mute == false) {
_root.swish.attachSound("flaretarget1");
_root.swish.start(0, 1);
}
Symbol 1437 MovieClip Frame 28
stop();
Symbol 1482 MovieClip Frame 18
stop();
Symbol 1504 MovieClip Frame 1
gotoAndPlay(random(7));
Symbol 1504 MovieClip Frame 48
stop();
Symbol 1570 MovieClip Frame 39
stop();
Symbol 1577 MovieClip Frame 1
gotoAndPlay(random(7));
Symbol 1577 MovieClip Frame 49
stop();
Symbol 1597 MovieClip Frame 6
stop();
Symbol 1603 MovieClip Frame 1
gotoAndPlay(random(7));
Symbol 1603 MovieClip Frame 48
stop();
Symbol 1606 MovieClip Frame 10
stop();
Symbol 1634 MovieClip Frame 78
stop();
Symbol 1650 MovieClip Frame 1
if (_root.health < (_root.maxhealth / 5)) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1650 MovieClip Frame 2
stop();
Symbol 1651 MovieClip Frame 15
stop();
Symbol 1651 MovieClip Frame 31
stop();
Symbol 1654 MovieClip Frame 33
stop();
Symbol 1655 MovieClip Frame 37
stop();
Symbol 1662 MovieClip Frame 1
stop();
_root.limitbreak = false;
_root.Rattack = 0;
_root.attack = 0;
_root.dodgeattack = false;
_root.magicAttack = 0;
_root.fire = false;
_root.ice = false;
_root.thunder = false;
_root.dark = false;
_root.menuon = false;
if (_root.enemyhealth <= 0) {
_root.gotoAndPlay("win");
gotoAndPlay ("Win");
}
if ((_root.corehealth < (_root.coremaxhealth / 5)) or (_root.corefatigue < 30)) {
stand.gotoAndPlay(2);
} else {
stand.stop();
}
Symbol 1662 MovieClip Frame 2
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 6
smoke1.play();
Symbol 1662 MovieClip Frame 7
_root.attacking = true;
Symbol 1662 MovieClip Frame 8
smoke2.play();
Symbol 1662 MovieClip Frame 9
_root.corefatigue = _root.corefatigue - 5;
_root.docoreAttack();
Symbol 1662 MovieClip Frame 10
if (_root.mute == false) {
_root.swishX.attachSound("slowwoosh2");
_root.swishX.start(0, 1);
}
smoke3.play();
Symbol 1662 MovieClip Frame 12
smoke4.play();
Symbol 1662 MovieClip Frame 14
smoke5.play();
Symbol 1662 MovieClip Frame 17
_root.attacking = false;
Symbol 1662 MovieClip Frame 35
if (_root.mute == false) {
_root.swish.attachSound("woosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 40
_root.menuon = false;
Symbol 1662 MovieClip Frame 53
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 58
_root.Rattack = 1;
gotoAndStop (1);
Symbol 1662 MovieClip Frame 61
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 67
_root.attacking = true;
smoke1.play();
Symbol 1662 MovieClip Frame 68
_root.corefatigue = _root.corefatigue - 5;
_root.docoreAttack();
Symbol 1662 MovieClip Frame 69
smoke2.play();
Symbol 1662 MovieClip Frame 71
smoke3.play();
Symbol 1662 MovieClip Frame 73
smoke4.play();
Symbol 1662 MovieClip Frame 75
smoke5.play();
Symbol 1662 MovieClip Frame 79
if (_root.mute == false) {
_root.swish.attachSound("swing32");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 82
_root.attacking = false;
Symbol 1662 MovieClip Frame 103
if (_root.mute == false) {
_root.swish.attachSound("woosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 110
_root.menuon = false;
Symbol 1662 MovieClip Frame 121
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 126
_root.Rattack = 1;
gotoAndStop (1);
Symbol 1662 MovieClip Frame 127
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 132
smoke1.play();
Symbol 1662 MovieClip Frame 133
_root.attacking = true;
Symbol 1662 MovieClip Frame 134
smoke2.play();
Symbol 1662 MovieClip Frame 135
_root.corefatigue = _root.corefatigue - 5;
_root.docoreAttack();
Symbol 1662 MovieClip Frame 136
if (_root.mute == false) {
_root.swishX.attachSound("slowwoosh2");
_root.swishX.start(0, 1);
}
smoke3.play();
Symbol 1662 MovieClip Frame 138
smoke4.play();
Symbol 1662 MovieClip Frame 140
smoke5.play();
Symbol 1662 MovieClip Frame 144
_root.attacking = false;
Symbol 1662 MovieClip Frame 161
if (_root.mute == false) {
_root.swish.attachSound("woosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 169
_root.menuon = false;
Symbol 1662 MovieClip Frame 179
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 184
_root.Rattack = 1;
gotoAndStop (1);
Symbol 1662 MovieClip Frame 185
if (_root.mute == false) {
_root.swish.attachSound("loudwoosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 190
_root.corefatigue = _root.corefatigue - 2;
if (_root.enemiez.enemy._currentframe > 2) {
_root.docoreagility();
}
Symbol 1662 MovieClip Frame 193
_root.dodge = true;
Symbol 1662 MovieClip Frame 195
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke6.play();
Symbol 1662 MovieClip Frame 210
_root.dodge = false;
Symbol 1662 MovieClip Frame 214
gotoAndStop (1);
smoke1.play();
Symbol 1662 MovieClip Frame 215
_root.dodgeattack = true;
Symbol 1662 MovieClip Frame 217
if (_root.mute == false) {
_root.swish.attachSound("swing32");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 218
_root.corefatigue = _root.corefatigue - 5;
_root.docoreAttack();
Symbol 1662 MovieClip Frame 247
gotoAndPlay ("return");
_root.dodge = false;
_root.dodgeattack = false;
Symbol 1662 MovieClip Frame 252
if (_root.mute == false) {
_root.swish.attachSound("swing32");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 257
_root.battlecounter = true;
Symbol 1662 MovieClip Frame 281
_root.battlecounter = false;
Symbol 1662 MovieClip Frame 297
gotoAndPlay (1);
Symbol 1662 MovieClip Frame 298
_root.corefatigue = _root.corefatigue - 2;
_root.corelimit = _root.corelimit + 1;
_root.docoreAttack();
_root.docorestrength();
_root.docoreagility();
if (_root.mute == false) {
_root.swish.attachSound("fall");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 330
if (_root.mute == false) {
_root.swish.attachSound("swing32");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 345
gotoAndPlay (1);
_root.battlecounter = false;
Symbol 1662 MovieClip Frame 346
if (_root.mute == false) {
_root.swish.attachSound("loudwoosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 350
_root.corefatigue = _root.corefatigue - 2;
if (_root.enemiez.enemy._currentframe > 2) {
_root.docoreagility();
}
Symbol 1662 MovieClip Frame 355
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke6.play();
Symbol 1662 MovieClip Frame 371
_root.dodge = false;
Symbol 1662 MovieClip Frame 374
gotoAndPlay ("diamond");
smoke6.play();
Symbol 1662 MovieClip Frame 396
_root.countHealID = setInterval(_root.doCounterHeal, 100);
Symbol 1662 MovieClip Frame 398
if (_root.mute == false) {
_root.swish.attachSound("manashield");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 414
clearInterval(_root.countHealID);
Symbol 1662 MovieClip Frame 418
_root.menuon = false;
Symbol 1662 MovieClip Frame 432
gotoAndPlay (1);
Symbol 1662 MovieClip Frame 449
_root.coremana = _root.coremana - 25;
_root.corefatigue = _root.corefatigue - 3;
Symbol 1662 MovieClip Frame 456
if (_root.mute == false) {
_root.swish.attachSound("scan");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 477
_root.scan = true;
_root.menuon = false;
Symbol 1662 MovieClip Frame 490
gotoAndPlay (1);
Instance of Symbol 1369 MovieClip "cloud" in Symbol 1662 MovieClip Frame 491
on (rollOver) {
if (_root.gamepause == false) {
gotoAndPlay ("diamondEnd");
_root.cursor.gotoAndStop(1);
_root.magic = false;
}
}
Symbol 1662 MovieClip Frame 493
stop();
_root.thunder = true;
_root.magicAttack = _root.coremagicdamage + _root.corethunderElement;
if (_root.mute == false) {
_root.swish.attachSound("flaretarget3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 513
if (_root.mute == false) {
_root.swish.attachSound("lightning");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 521
_root.coremana = _root.coremana - 17;
_root.corefatigue = _root.corefatigue - 4;
_root.corecount = _root.corecount - 40;
_root.tryparalyze = true;
Symbol 1662 MovieClip Frame 527
if ((_root.corecount <= 0) or (_root.enemyhealth <= 0)) {
gotoAndPlay ("diamondEnd");
}
_root.tryparalyze = false;
Symbol 1662 MovieClip Frame 537
gotoAndPlay ("diamond");
DD.play();
Symbol 1662 MovieClip Frame 544
_root.diamondattack = false;
_root.cursor.gotoAndStop(1);
Symbol 1662 MovieClip Frame 551
gotoAndStop (1);
Symbol 1662 MovieClip Frame 561
_root.enemiez.enemy.gotoAndPlay(1);
Symbol 1662 MovieClip Frame 574
_root.coremana = _root.coremana - 40;
if (_root.mute == false) {
_root.swish.attachSound("073");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 581
if (_root.mute == false) {
_root.swishX.attachSound("064");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 585
if (_root.mute == false) {
_root.swishXX.attachSound("064");
_root.swishXX.start(0, 1);
}
Symbol 1662 MovieClip Frame 589
if (_root.mute == false) {
_root.swishX.attachSound("064");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 596
if (_root.mute == false) {
_root.swishXX.attachSound("064");
_root.swishXX.start(0, 1);
}
Symbol 1662 MovieClip Frame 601
if (_root.mute == false) {
_root.swishX.attachSound("065");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 625
_root.ice = true;
_root.magicAttack = (_root.coremagicdamage + _root.coreiceElement) * 5;
Symbol 1662 MovieClip Frame 628
_root.lucky.play();
Symbol 1662 MovieClip Frame 630
if (_root.mute == false) {
_root.swish.attachSound("066");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 656
_root.menuon = false;
Symbol 1662 MovieClip Frame 663
_root.black.play();
Symbol 1662 MovieClip Frame 677
_root.domagicend();
gotoAndStop (1);
Symbol 1662 MovieClip Frame 689
if (_root.mute == false) {
_root.swish.attachSound("swing3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 692
_root.enemiez.enemy.gotoAndPlay(1);
Symbol 1662 MovieClip Frame 696
if (_root.mute == false) {
_root.swish.attachSound("sworddown");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 698
smoke2.play();
Symbol 1662 MovieClip Frame 723
if (_root.mute == false) {
_root.swish.attachSound("flaretarget3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 730
_root.coremana = _root.coremana - 95;
_root.corefatigue = _root.corefatigue - 13;
_root.multislash = true;
_root.fire = false;
magicAttackX = _root.coremagicdamage + _root.corefireElement;
_root.magicAttack = magicAttackX + Math.ceil(magicAttackX / 6);
Symbol 1662 MovieClip Frame 762
_root.multislash = false;
Symbol 1662 MovieClip Frame 817
_root.black.play();
Symbol 1662 MovieClip Frame 820
if (_root.mute == false) {
_root.swishX.attachSound("sworddown");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 822
_root.menuon = false;
Symbol 1662 MovieClip Frame 825
if (_root.mute == false) {
_root.swish.attachSound("swing3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 850
_root.domagicend();
gotoAndStop (1);
Symbol 1662 MovieClip Frame 862
gotoAndStop (1);
Symbol 1662 MovieClip Frame 863
if (_root.mute == false) {
_root.swishXX.attachSound("slowwoosh2");
_root.swishXX.start(0, 1);
}
Symbol 1662 MovieClip Frame 868
_root.enemiez.enemy.gotoAndPlay(1);
Symbol 1662 MovieClip Frame 870
if (_root.mute == false) {
_root.swish.attachSound("sworddown");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 876
smoke6.play();
Symbol 1662 MovieClip Frame 878
if (_root.mute == false) {
_root.swishX.attachSound("deathpact");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 892
if (_root.mute == false) {
_root.swishXX.attachSound("woosh2");
_root.swishXX.start(0, 1);
}
Symbol 1662 MovieClip Frame 897
_root.coremana = _root.coremana - 20;
Symbol 1662 MovieClip Frame 898
smoke1.play();
Symbol 1662 MovieClip Frame 900
smoke2.play();
Symbol 1662 MovieClip Frame 901
_root.corefatigue = _root.corefatigue - 15;
_root.corehealth = _root.corehealth - (_root.corestrength * 3);
_root.healthbarz.healthbar.play();
if (_root.sword == 1) {
_root.attack = (_root.weapon1 + _root.corestrength) + (_root.coremagicdamage * 2);
}
if (_root.sword == 2) {
_root.attack = (_root.weapon2 + _root.corestrength) + (_root.coremagicdamage * 2);
}
if (_root.sword == 3) {
_root.attack = (_root.weapon3 + _root.corestrength) + (_root.coremagicdamage * 2);
}
if (_root.sword == 4) {
_root.attack = (_root.weapon4 + _root.corestrength) + (_root.coremagicdamage * 2);
}
if (_root.sword == 5) {
_root.attack = (_root.weapon5 + _root.corestrength) + (_root.coremagicdamage * 2);
}
if (_root.sword == 6) {
_root.attack = (_root.weapon6 + _root.corestrength) + (_root.coremagicdamage * 2);
}
if (_root.mute == false) {
_root.swish.attachSound("slowwoosh2");
_root.swish.start(0, 1);
}
smoke3.play();
Symbol 1662 MovieClip Frame 902
smoke4.play();
Symbol 1662 MovieClip Frame 904
smoke5.play();
Symbol 1662 MovieClip Frame 924
if (_root.mute == false) {
_root.swish.attachSound("woosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 925
_root.black.play();
Symbol 1662 MovieClip Frame 931
_root.menuon = false;
Symbol 1662 MovieClip Frame 943
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 948
_root.doendlimitbreak();
Symbol 1662 MovieClip Frame 962
_root.enemiez.enemy.gotoAndPlay(1);
Symbol 1662 MovieClip Frame 964
if (_root.mute == false) {
_root.swish.attachSound("deathpact");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 971
if (_root.sword == 1) {
_root.attack = (_root.weapon1 + _root.corestrength) + (_root.coremagicdamage * 4);
}
if (_root.sword == 2) {
_root.attack = (_root.weapon2 + _root.corestrength) + (_root.coremagicdamage * 4);
}
if (_root.sword == 3) {
_root.attack = (_root.weapon3 + _root.corestrength) + (_root.coremagicdamage * 4);
}
if (_root.sword == 4) {
_root.attack = (_root.weapon4 + _root.corestrength) + (_root.coremagicdamage * 4);
}
if (_root.sword == 5) {
_root.attack = (_root.weapon5 + _root.corestrength) + (_root.coremagicdamage * 4);
}
if (_root.sword == 6) {
_root.attack = (_root.weapon6 + _root.corestrength) + (_root.coremagicdamage * 4);
}
Symbol 1662 MovieClip Frame 978
if (_root.mute == false) {
_root.swishXX.attachSound("eagle");
_root.swishXX.start(0, 1);
}
Symbol 1662 MovieClip Frame 980
if (_root.mute == false) {
_root.swishX.attachSound("067");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 983
if (_root.mute == false) {
_root.swish.attachSound("woosh1");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 986
smoke1.play();
Symbol 1662 MovieClip Frame 988
_root.coremana = _root.coremana - 40;
smoke2.play();
Symbol 1662 MovieClip Frame 990
smoke3.play();
Symbol 1662 MovieClip Frame 991
smoke4.play();
Symbol 1662 MovieClip Frame 992
_root.corefatigue = _root.corefatigue - 25;
if (_root.mute == false) {
_root.swish.attachSound("005");
_root.swish.start(0, 1);
}
smoke5.play();
Symbol 1662 MovieClip Frame 1011
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
Symbol 1662 MovieClip Frame 1013
_root.black.play();
Symbol 1662 MovieClip Frame 1019
_root.menuon = false;
Symbol 1662 MovieClip Frame 1020
if (_root.mute == false) {
_root.swish.attachSound("woosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1034
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 1039
_root.doendlimitbreak();
Symbol 1662 MovieClip Frame 1040
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1042
smoke1.play();
Symbol 1662 MovieClip Frame 1044
if (_root.sword == 1) {
_root.attack = _root.weapon1 + _root.corestrength;
}
if (_root.sword == 2) {
_root.attack = _root.weapon2 + _root.corestrength;
}
if (_root.sword == 3) {
_root.attack = _root.weapon3 + _root.corestrength;
}
if (_root.sword == 4) {
_root.attack = _root.weapon4 + _root.corestrength;
}
if (_root.sword == 5) {
_root.attack = _root.weapon5 + _root.corestrength;
}
if (_root.sword == 6) {
_root.attack = _root.weapon6 + _root.corestrength;
}
_root.coremana = _root.coremana - 40;
_root.corefatigue = _root.corefatigue - 2;
_root.multislash = true;
Symbol 1662 MovieClip Frame 1047
_root.doflash();
Symbol 1662 MovieClip Frame 1054
_root.doflash();
Symbol 1662 MovieClip Frame 1055
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1064
_root.doflash();
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1071
_root.doflash();
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1079
_root.doflash();
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1085
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1086
_root.doflash();
Symbol 1662 MovieClip Frame 1093
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1094
_root.doflash();
Symbol 1662 MovieClip Frame 1101
_root.doflash();
Symbol 1662 MovieClip Frame 1102
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1108
_root.doflash();
Symbol 1662 MovieClip Frame 1110
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1116
_root.doflash();
_root.multislash = false;
Symbol 1662 MovieClip Frame 1117
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1157
_root.black.play();
Symbol 1662 MovieClip Frame 1162
_root.menuon = false;
Symbol 1662 MovieClip Frame 1166
if (_root.mute == false) {
_root.swish.attachSound("loudwoosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1172
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 1179
_root.doendlimitbreak();
Symbol 1662 MovieClip Frame 1180
_root.goto2 = true;
_root.enemiez.enemy.mc.gotoAndStop(2);
Symbol 1662 MovieClip Frame 1189
_root.enemiez.enemy.gotoAndPlay(1);
_root.enemiez.enemy.mc.gotoAndStop(2);
Symbol 1662 MovieClip Frame 1207
if (_root.mute == false) {
_root.swishX.attachSound("FlameStrikeTarget");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1228
if (_root.mute == false) {
_root.swish.attachSound("deathpact");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1258
if (_root.sword == 1) {
_root.attack = _root.weapon1 + _root.corestrength;
}
if (_root.sword == 2) {
_root.attack = _root.weapon2 + _root.corestrength;
}
if (_root.sword == 3) {
_root.attack = _root.weapon3 + _root.corestrength;
}
if (_root.sword == 4) {
_root.attack = _root.weapon4 + _root.corestrength;
}
if (_root.sword == 5) {
_root.attack = _root.weapon5 + _root.corestrength;
}
if (_root.sword == 6) {
_root.attack = _root.weapon6 + _root.corestrength;
}
if (_root.mute == false) {
_root.swishXX.attachSound("Undead");
_root.swishXX.start(0, 5);
}
Symbol 1662 MovieClip Frame 1264
_root.doflash();
Symbol 1662 MovieClip Frame 1266
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1267
_root.coremana = _root.coremana - 70;
_root.corefatigue = _root.corefatigue - 4;
Symbol 1662 MovieClip Frame 1270
_root.doflash();
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1280
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1281
_root.doflash();
Symbol 1662 MovieClip Frame 1289
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1290
_root.doflash();
Symbol 1662 MovieClip Frame 1296
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1298
_root.doflash();
Symbol 1662 MovieClip Frame 1304
_root.doflash();
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1309
_root.doflash();
Symbol 1662 MovieClip Frame 1310
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1317
_root.doflash();
Symbol 1662 MovieClip Frame 1318
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1327
_root.doflash();
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1335
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1336
_root.doflash();
Symbol 1662 MovieClip Frame 1341
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1342
_root.doflash();
Symbol 1662 MovieClip Frame 1349
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1351
_root.doflash();
Symbol 1662 MovieClip Frame 1356
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1360
_root.doflash();
Symbol 1662 MovieClip Frame 1367
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1368
_root.doflash();
Symbol 1662 MovieClip Frame 1374
_root.doflash();
Symbol 1662 MovieClip Frame 1377
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1379
_root.doflash();
Symbol 1662 MovieClip Frame 1380
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1386
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1387
_root.doflash();
Symbol 1662 MovieClip Frame 1394
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1397
_root.doflash();
Symbol 1662 MovieClip Frame 1398
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1405
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1406
_root.doflash();
Symbol 1662 MovieClip Frame 1415
_root.doflash();
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1423
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1424
_root.doflash();
Symbol 1662 MovieClip Frame 1432
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1433
_root.doflash();
Symbol 1662 MovieClip Frame 1439
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1441
_root.doflash();
Symbol 1662 MovieClip Frame 1447
_root.doflash();
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1452
_root.doflash();
Symbol 1662 MovieClip Frame 1458
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1460
_root.doflash();
Symbol 1662 MovieClip Frame 1470
_root.doflash();
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1478
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1479
_root.doflash();
Symbol 1662 MovieClip Frame 1485
_root.doflash();
Symbol 1662 MovieClip Frame 1492
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1494
_root.doflash();
Symbol 1662 MovieClip Frame 1500
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1503
_root.doflash();
Symbol 1662 MovieClip Frame 1510
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1511
_root.doflash();
Symbol 1662 MovieClip Frame 1517
_root.doflash();
Symbol 1662 MovieClip Frame 1521
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1522
_root.doflash();
Symbol 1662 MovieClip Frame 1529
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1530
_root.doflash();
Symbol 1662 MovieClip Frame 1537
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1540
_root.doflash();
Symbol 1662 MovieClip Frame 1542
if (_root.mute == false) {
_root.swish.attachSound("Ethereal3");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1581
_root.multislash = false;
Symbol 1662 MovieClip Frame 1598
if (_root.mute == false) {
_root.swishX.attachSound("Ethereal2");
_root.swishX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1602
_root.doflash();
Symbol 1662 MovieClip Frame 1606
_root.lucky.play();
Symbol 1662 MovieClip Frame 1609
_root.lucky.play();
Symbol 1662 MovieClip Frame 1610
if (_root.mute == false) {
_root.swishXX.attachSound("deathpact");
_root.swishXX.start(0, 1);
}
Symbol 1662 MovieClip Frame 1612
_root.lucky.play();
Symbol 1662 MovieClip Frame 1615
_root.lucky.play();
Symbol 1662 MovieClip Frame 1682
_root.black.play();
_root.goto2 = false;
_root.enemiez.enemy.mc.gotoAndStop(1);
_root.menuon = false;
Symbol 1662 MovieClip Frame 1685
if (_root.mute == false) {
_root.swish.attachSound("loudwoosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1691
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 1699
_root.doendlimitbreak();
Symbol 1662 MovieClip Frame 1700
damage = ((_root.enemyattk + (_root.enemymagicattk - Math.ceil(_root.coremagicdefense / 3))) - Math.ceil(_root.coredefense / 2)) - random(_root.coreluck * 2);
if (damage <= 0) {
damage = 1;
}
_root.corehealth = _root.corehealth - damage;
_root.battlecounter = false;
_root.magic = false;
_root.corelimit = _root.corelimit + 4;
_root.corefatigue = _root.corefatigue - 10;
_root.corecount = _root.corecount - 20;
_root.damage1.damage2.damagetxt.text = damage;
_root.stat1.stat.stattxt.text = _root.stats;
_root.damage1.gotoAndPlay(2);
_root.stat1.gotoAndPlay(2);
_root.tryparalyze = false;
_root.diamondattack = false;
_root.cursor.gotoAndStop(1);
_root.gotoAndStop("battle");
clearInterval(_root.countHealID);
_root.docoredefense();
if (_root.corehealth <= 0) {
this.gotoAndPlay("Dead");
_root.gotoAndPlay("lose");
}
if (_root.corehealth <= (_root.coremaxhealth / 5)) {
hurt.gotoAndPlay(16);
}
if (_root.mute == false) {
_root.hurt.attachSound("metalchop1");
_root.hurt.start(0, 1);
}
Symbol 1662 MovieClip Frame 1714
gotoAndStop (1);
if (_root.sword == 5) {
chance = Math.ceil((Math.random() * 4) + 1);
if (chance == 1) {
_root.Rattack = Math.ceil((Math.random() * 3) + 1);
this.gotoAndPlay("attack" + _root.Rattack);
if (_root.camera == true) {
chance = Math.ceil((Math.random() * 4) + 1);
if (chance == 1) {
_root.gotoAndPlay("cameraA1");
}
if (chance == 2) {
_root.gotoAndPlay("cameraA2");
}
if (chance == 3) {
_root.gotoAndPlay("cameraA3");
}
}
}
}
Symbol 1662 MovieClip Frame 1715
damage = ((_root.enemyattk + (_root.enemymagicattk - Math.ceil(_root.coremagicdefense / 3))) - Math.ceil(_root.coredefense / 2)) - random(_root.coreluck * 2);
if (damage <= 0) {
damage = 1;
}
_root.corehealth = _root.corehealth - damage;
_root.battlecounter = false;
_root.corelimit = _root.corelimit + 4;
_root.corefatigue = _root.corefatigue - 10;
_root.corecount = _root.corecount - 20;
_root.damage1.damage2.damagetxt.text = damage;
_root.stat1.stat.stattxt.text = _root.stats;
_root.damage1.gotoAndPlay(2);
_root.stat1.gotoAndPlay(2);
_root.battlecounter = false;
_root.cursor.gotoAndStop(1);
_root.docoredefense();
if (_root.corehealth <= 0) {
this.gotoAndPlay("Dead");
_root.gotoAndPlay("Lose");
}
if (_root.mute == false) {
_root.hurt.attachSound("metalchop1");
_root.hurt.start(0, 1);
}
Symbol 1662 MovieClip Frame 1735
if (_root.corehealth <= 0) {
gotoAndPlay ("Dead");
_root.gotoAndPlay("Lose");
}
Symbol 1662 MovieClip Frame 1743
gotoAndStop (1);
if (_root.sword == 5) {
chance = Math.ceil((Math.random() * 4) + 1);
if (chance == 1) {
_root.Rattack = Math.ceil((Math.random() * 3) + 1);
this.gotoAndPlay("attack" + _root.Rattack);
if (_root.camera == true) {
chance = Math.ceil((Math.random() * 4) + 1);
if (chance == 1) {
_root.gotoAndPlay("cameraA1");
}
if (chance == 2) {
_root.gotoAndPlay("cameraA2");
}
if (chance == 3) {
_root.gotoAndPlay("cameraA3");
}
}
}
}
Symbol 1662 MovieClip Frame 1757
stop();
Symbol 1662 MovieClip Frame 1772
gotoAndStop (1);
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 1773
clearInterval(_root.count4ID);
clearInterval(_root.count5ID);
clearInterval(_root.count6ID);
clearInterval(_root.count7ID);
clearInterval(_root.count8ID);
clearInterval(_root.count9ID);
Symbol 1662 MovieClip Frame 1777
stop();
Symbol 1662 MovieClip Frame 1786
if (_root.mute == false) {
_root.swish.attachSound("swing32");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1789
if (_root.mute == false) {
_root.swish.attachSound("swing32");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1791
stop();
Symbol 1662 MovieClip Frame 1792
_root.lucky.play();
_root.fatigue = _root.fatigue - 5;
if (_root.mute == false) {
_root.swish.attachSound("ImpaleLand");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1807
if (_root.mute == false) {
_root.swish.attachSound("loudwoosh2");
_root.swish.start(0, 1);
}
Symbol 1662 MovieClip Frame 1814
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1662 MovieClip Frame 1818
gotoAndPlay (1);
Symbol 1662 MovieClip Frame 1819
clearInterval(_root.count4ID);
clearInterval(_root.count5ID);
clearInterval(_root.count6ID);
clearInterval(_root.count7ID);
clearInterval(_root.count8ID);
clearInterval(_root.count9ID);
Symbol 1662 MovieClip Frame 1831
_root.gotoAndPlay("Game", 1);
Symbol 1685 MovieClip Frame 1
if (_root.calebhealth < (_root.calebmaxhealth / 5)) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1685 MovieClip Frame 2
stop();
Symbol 1686 MovieClip Frame 1
stop();
Symbol 1686 MovieClip Frame 2
if ((_root.calebhealth >= (_root.calebmaxhealth / 5)) && (_root.calebfatigue >= 30)) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Symbol 1686 MovieClip Frame 4
if ((_root.calebhealth < (_root.calebmaxhealth / 5)) or (_root.calebfatigue < 30)) {
gotoAndPlay (2);
}
Symbol 1686 MovieClip Frame 12
gotoAndStop (1);
Symbol 1690 MovieClip Frame 1
stop();
Symbol 1694 MovieClip Frame 1
stop();
Symbol 1698 MovieClip Frame 1
stop();
Symbol 1702 MovieClip Frame 1
stop();
Symbol 1705 MovieClip Frame 1
stop();
Symbol 1708 MovieClip Frame 1
stop();
Symbol 1711 MovieClip Frame 2
_parent.light2.gotoAndPlay(2);
Symbol 1711 MovieClip Frame 13
_parent.light1.gotoAndPlay(2);
Symbol 1711 MovieClip Frame 24
_parent.light3.gotoAndPlay(2);
Symbol 1711 MovieClip Frame 39
_parent.flashX.gotoAndPlay(2);
_parent.light5.gotoAndPlay(2);
_parent.light4.gotoAndPlay(2);
Symbol 1764 MovieClip Frame 15
stop();
Symbol 1766 MovieClip Frame 30
stop();
Symbol 1767 MovieClip Frame 30
stop();
Symbol 1768 MovieClip Frame 1
stop();
_root.limitbreak = false;
_root.attack = 0;
_root.magicAttack = 0;
_root.fire = false;
_root.ice = false;
_root.thunder = false;
_root.dark = false;
_root.menuon = false;
if (_root.enemyhealth <= 0) {
_root.gotoAndPlay("win");
gotoAndPlay ("Win");
}
if ((_root.calebhealth < (_root.calebmaxhealth / 5)) or (_root.calebfatigue < 30)) {
stand.gotoAndPlay(2);
} else {
stand.stop();
}
Symbol 1768 MovieClip Frame 37
_root.calebfatigue = _root.calebfatigue - 5;
_root.attack = _root.calebstrength + _root.calebmagicdamage;
Symbol 1768 MovieClip Frame 64
_root.menuon = false;
Symbol 1768 MovieClip Frame 75
gotoAndStop (1);
Symbol 1768 MovieClip Frame 76
if (_root.mute == false) {
_root.swish.attachSound("loudwoosh2");
_root.swish.start(0, 1);
}
Symbol 1768 MovieClip Frame 81
_root.corefatigue = _root.corefatigue - 2;
if (_root.enemiez.enemy._currentframe > 2) {
_root.docoreagility();
}
Symbol 1768 MovieClip Frame 84
_root.dodge = true;
Symbol 1768 MovieClip Frame 85
smoke6.play();
Symbol 1768 MovieClip Frame 86
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke6.play();
Symbol 1768 MovieClip Frame 101
_root.dodge = false;
Symbol 1768 MovieClip Frame 105
gotoAndStop (1);
smoke1.play();
Symbol 1768 MovieClip Frame 136
gotoAndStop (1);
Symbol 1768 MovieClip Frame 145
_root.enemiez.enemy.gotoAndPlay(1);
_root.black.play();
Symbol 1768 MovieClip Frame 180
_root.calebmana = _root.calebmana - 20;
Symbol 1768 MovieClip Frame 196
_root.calebfatigue = _root.calebfatigue - 10;
_root.attack = _root.calebstrength + (_root.calebmagicdamage * 2);
_root.doflash();
Symbol 1768 MovieClip Frame 201
_root.doflash();
_root.multislash = false;
Symbol 1768 MovieClip Frame 208
_root.doflash();
Symbol 1768 MovieClip Frame 220
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1768 MovieClip Frame 224
_root.menuon = false;
_root.black.play();
Symbol 1768 MovieClip Frame 236
_root.doendlimitbreak();
Symbol 1768 MovieClip Frame 274
_root.calebfatigue = _root.calebfatigue - 5;
_root.calebmana = _root.calebmana - 30;
_root.attack = _root.calebstrength + (_root.calebmagicdamage * 5);
Symbol 1768 MovieClip Frame 319
_root.menuon = false;
_root.black.play();
Symbol 1768 MovieClip Frame 342
_root.doendlimitbreak();
Symbol 1768 MovieClip Frame 343
damage = ((_root.enemyattk + (_root.enemymagicattk - Math.ceil(_root.calebmagicdefense / 3))) - Math.ceil(_root.calebdefense / 2)) - random(_root.calebluck * 2);
if (damage <= 0) {
damage = 1;
}
_root.calebhealth = _root.calebhealth - damage;
_root.battlecounter = false;
_root.caleblimit = _root.caleblimit + 4;
_root.calebfatigue = _root.calebfatigue - 10;
_root.calebcount = _root.calebcount - 20;
_root.damage1.damage2.damagetxt.text = damage;
_root.stat1.stat.stattxt.text = _root.stats;
_root.damage1.gotoAndPlay(2);
_root.stat1.gotoAndPlay(2);
_root.diamondattack = false;
_root.cursor.gotoAndStop(1);
_root.gotoAndStop("battle");
clearInterval(_root.countHealID);
_root.docalebdefense();
if (_root.calebhealth <= 0) {
this.gotoAndPlay("Dead");
_root.gotoAndPlay("lose");
}
if (_root.calebhealth <= (_root.calebmaxhealth / 5)) {
hurt.gotoAndPlay(16);
}
Symbol 1768 MovieClip Frame 357
gotoAndStop (1);
Symbol 1768 MovieClip Frame 373
stop();
Symbol 1768 MovieClip Frame 390
gotoAndStop (1);
if (_root.mute == false) {
_root.footstep.start(0, 1);
}
smoke1.play();
Symbol 1768 MovieClip Frame 403
stop();
Symbol 1768 MovieClip Frame 422
stop();
Symbol 1768 MovieClip Frame 423
clearInterval(_root.count4ID);
clearInterval(_root.count5ID);
clearInterval(_root.count6ID);
clearInterval(_root.count7ID);
clearInterval(_root.count8ID);
clearInterval(_root.count9ID);
Symbol 1768 MovieClip Frame 437
_root.gotoAndStop("Game", 1);
Symbol 1780 MovieClip Frame 1
if (_root.story > 1) {
stop();
}
Symbol 1780 MovieClip Frame 50
stop();
onEnterFrame = function () {
if ((((Key.isDown(65) or Key.isDown(37)) && (_root.gamepause == false)) && (_root.Core._currentframe == 1)) && (this._currentframe == 50)) {
this.play();
}
};
Symbol 1780 MovieClip Frame 125
stop();
Symbol 1794 MovieClip Frame 1
stop();
Symbol 1795 MovieClip Frame 1
stop();
staminamc.stamina.text = "";
manamc.mana.text = "";
energymc.energy.text = "";
healthmc.health.text = "";
Symbol 1798 MovieClip Frame 69
stop();
Symbol 1802 MovieClip Frame 35
stop();
Symbol 1807 Button
on (rollOver) {
if (mute == false) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndStop ("Load");
}
Symbol 1811 Button
on (rollOver) {
if (mute == false) {
buttonover.start(0, 1);
}
}
on (release) {
gotoAndPlay ("back");
}