Frame 1392
stopAllSounds();
gotoAndPlay (1393);
Frame 1412
stop();
Frame 1422
stop();
Frame 1442
stop();
Frame 1462
stop();
Frame 1482
stop();
Frame 1502
stop();
Frame 1522
stop();
Frame 1532
stopAllSounds();
gotoAndPlay (1393);
Frame 1533
function Encode100(Num) {
if (Num >= 100) {
return("zR");
}
return(chr(97 + parseInt(Num / 10)) + chr(74 + (Num % 10)));
}
function Encode26(Num) {
return(chr((65 + Num) - 1));
}
function Encode10(Num) {
return(chr(90 - Num));
}
function EncodeStr(Str) {
var temp;
temp = "";
i = 0;
while (i < Str.length) {
temp = temp + chr(Str.charCodeAt(i) + 5);
i++;
}
return(Encode26(Str.length) + temp);
}
function Decode100(Code, Point) {
return(((Code.charCodeAt(Point) - 97) * 10) + (Code.charCodeAt(Point + 1) - 74));
}
function Decode26(Code, Point) {
return((Code.charCodeAt(Point) - 65) + 1);
}
function Decode10(Code, Point) {
return(90 - Code.charCodeAt(Point));
}
function DecodeStr(Code, Point) {
var temp;
temp = "";
i = 0;
while (i < Decode26(Code, Point)) {
temp = temp + chr(Code.charCodeAt((i + Point) + 1) - 5);
i++;
}
return(temp);
}
function EncodeAttributes() {
return(((((((EncodeStr(PassName) + "a") + Encode10(Thief.ThiefStr)) + Encode26(Thief.ThiefDex)) + "y") + Encode10(Thief.ThiefCon)) + Encode26(Thief.ThiefWis)) + "b");
}
function ThiefTotal() {
return(((Thief.ThiefStr + Thief.ThiefDex) + Thief.ThiefWis) + Thief.ThiefCon);
}
StaticWidth = _width;
StaticHeight = _height;
UIR = new Array();
UVR = new Array();
Instance of Symbol 512 MovieClip "Background" in Frame 1533
onClipEvent (load) {
ClipName = "StarMap";
}
Frame 1534
Dialog._visible = false;
Frame 1537
Background.StartClip();
Thief.KeyMode = "Disabled";
Thief.gotoAndPlay("Death");
Instance of Symbol 514 MovieClip "Dialog1" in Frame 1537
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
Prerequsite["7"] = "None";
Prerequsite["8"] = "None";
Prerequsite["9"] = "None";
Prerequsite["10"] = "None";
Prerequsite["11"] = "None";
Prerequsite["12"] = "None";
Prerequsite["13"] = "None";
Prerequsite["14"] = "None";
Prerequsite["15"] = "None";
Prerequsite["16"] = "None";
Prerequsite["17"] = "None";
Prerequsite["18"] = "None";
Prerequsite["19"] = "None";
Prerequsite["20"] = "None";
Prerequsite["21"] = "None";
Prerequsite["22"] = "None";
Prerequsite["23"] = "None";
Prerequsite["24"] = "None";
Prerequsite["25"] = "None";
Prerequsite["26"] = "None";
Prerequsite["27"] = "None";
Prerequsite["28"] = "None";
Prerequsite["29"] = "None";
Prerequsite["30"] = "None";
Prerequsite["31"] = "None";
Prerequsite["32"] = "None";
Prerequsite["33"] = "None";
Prerequsite["34"] = "None";
Prerequsite["35"] = "None";
Prerequsite["36"] = "None";
Prerequsite["37"] = "None";
Prerequsite["38"] = "None";
Prerequsite["39"] = "None";
Prerequsite["40"] = "None";
Prerequsite["41"] = "None";
Prerequsite["42"] = "None";
Prerequsite["43"] = "None";
Prerequsite["44"] = "None";
Prerequsite["45"] = "None";
Prerequsite["46"] = "None";
Prerequsite["47"] = "None";
Prerequsite["48"] = "None";
Prerequsite["49"] = "None";
Prerequsite["50"] = "None";
Prerequsite["51"] = "None";
Prerequsite["52"] = "Str";
Prerequsite["53"] = "Dex";
Prerequsite["54"] = "Wis";
Prerequsite["55"] = "Con";
Prerequsite["56"] = "None";
Prerequsite["57"] = "None";
Prerequsite["58"] = "None";
Prerequsite["59"] = "None";
Prerequsite["60"] = "None";
Prerequsite["61"] = "None";
Prerequsite["62"] = "None";
Prerequsite["63"] = "None";
Prerequsite["64"] = "None";
Prerequsite["65"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar1["7"] = 0;
PreVar1["8"] = 0;
PreVar1["9"] = 0;
PreVar1["10"] = 0;
PreVar1["11"] = 0;
PreVar1["12"] = 0;
PreVar1["13"] = 0;
PreVar1["14"] = 0;
PreVar1["15"] = 0;
PreVar1["16"] = 0;
PreVar1["17"] = 0;
PreVar1["18"] = 0;
PreVar1["19"] = 0;
PreVar1["20"] = 0;
PreVar1["21"] = 0;
PreVar1["22"] = 0;
PreVar1["23"] = 0;
PreVar1["24"] = 0;
PreVar1["25"] = 0;
PreVar1["26"] = 0;
PreVar1["27"] = 0;
PreVar1["28"] = 0;
PreVar1["29"] = 0;
PreVar1["30"] = 0;
PreVar1["31"] = 0;
PreVar1["32"] = 0;
PreVar1["33"] = 0;
PreVar1["34"] = 0;
PreVar1["35"] = 0;
PreVar1["36"] = 0;
PreVar1["37"] = 0;
PreVar1["38"] = 0;
PreVar1["39"] = 0;
PreVar1["40"] = 0;
PreVar1["41"] = 0;
PreVar1["42"] = 0;
PreVar1["43"] = 0;
PreVar1["44"] = 0;
PreVar1["45"] = 0;
PreVar1["46"] = 0;
PreVar1["47"] = 0;
PreVar1["48"] = 0;
PreVar1["49"] = 0;
PreVar1["50"] = 0;
PreVar1["51"] = 0;
PreVar1["52"] = "Grt";
PreVar1["53"] = "Grt";
PreVar1["54"] = "Grt";
PreVar1["55"] = "Grt";
PreVar1["56"] = 0;
PreVar1["57"] = 0;
PreVar1["58"] = 0;
PreVar1["59"] = 0;
PreVar1["60"] = 0;
PreVar1["61"] = 0;
PreVar1["62"] = 0;
PreVar1["63"] = 0;
PreVar1["64"] = 0;
PreVar1["65"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
PreVar2["7"] = 0;
PreVar2["8"] = 0;
PreVar2["9"] = 0;
PreVar2["10"] = 0;
PreVar2["11"] = 0;
PreVar2["12"] = 0;
PreVar2["13"] = 0;
PreVar2["14"] = 0;
PreVar2["15"] = 0;
PreVar2["16"] = 0;
PreVar2["17"] = 0;
PreVar2["18"] = 0;
PreVar2["19"] = 0;
PreVar2["20"] = 0;
PreVar2["21"] = 0;
PreVar2["22"] = 0;
PreVar2["23"] = 0;
PreVar2["24"] = 0;
PreVar2["25"] = 0;
PreVar2["26"] = 0;
PreVar2["27"] = 0;
PreVar2["28"] = 0;
PreVar2["29"] = 0;
PreVar2["30"] = 0;
PreVar2["31"] = 0;
PreVar2["32"] = 0;
PreVar2["33"] = 0;
PreVar2["34"] = 0;
PreVar2["35"] = 0;
PreVar2["36"] = 0;
PreVar2["37"] = 0;
PreVar2["38"] = 0;
PreVar2["39"] = 0;
PreVar2["40"] = 0;
PreVar2["41"] = 0;
PreVar2["42"] = 0;
PreVar2["43"] = 0;
PreVar2["44"] = 0;
PreVar2["45"] = 0;
PreVar2["46"] = 0;
PreVar2["47"] = 0;
PreVar2["48"] = 0;
PreVar2["49"] = 0;
PreVar2["50"] = 0;
PreVar2["51"] = 0;
PreVar2["52"] = 3;
PreVar2["53"] = 3;
PreVar2["54"] = 3;
PreVar2["55"] = 3;
PreVar2["56"] = 0;
PreVar2["57"] = 0;
PreVar2["58"] = 0;
PreVar2["59"] = 0;
PreVar2["60"] = 0;
PreVar2["61"] = 0;
PreVar2["62"] = 0;
PreVar2["63"] = 0;
PreVar2["64"] = 0;
PreVar2["65"] = 0;
Portrait = new array();
Portrait["0"] = "None";
Portrait["1"] = "None";
Portrait["2"] = "None";
Portrait["3"] = "None";
Portrait["4"] = "None";
Portrait["5"] = "None";
Portrait["6"] = "None";
Portrait["7"] = "None";
Portrait["8"] = "None";
Portrait["9"] = "None";
Portrait["10"] = "None";
Portrait["11"] = "None";
Portrait["12"] = "None";
Portrait["13"] = "None";
Portrait["14"] = "None";
Portrait["15"] = "None";
Portrait["16"] = "None";
Portrait["17"] = "None";
Portrait["18"] = "None";
Portrait["19"] = "None";
Portrait["20"] = "None";
Portrait["21"] = "None";
Portrait["22"] = "None";
Portrait["23"] = "None";
Portrait["24"] = "None";
Portrait["25"] = "None";
Portrait["26"] = "None";
Portrait["27"] = "None";
Portrait["28"] = "None";
Portrait["29"] = "None";
Portrait["30"] = "None";
Portrait["31"] = "None";
Portrait["32"] = "None";
Portrait["33"] = "None";
Portrait["34"] = "None";
Portrait["35"] = "None";
Portrait["36"] = "None";
Portrait["37"] = "None";
Portrait["38"] = "None";
Portrait["39"] = "None";
Portrait["40"] = "None";
Portrait["41"] = "None";
Portrait["42"] = "None";
Portrait["43"] = "None";
Portrait["44"] = "None";
Portrait["45"] = "None";
Portrait["46"] = "None";
Portrait["47"] = "None";
Portrait["48"] = "None";
Portrait["49"] = "None";
Portrait["50"] = "None";
Portrait["51"] = "None";
Portrait["52"] = "None";
Portrait["53"] = "None";
Portrait["54"] = "None";
Portrait["55"] = "None";
Portrait["56"] = "None";
Portrait["57"] = "None";
Portrait["58"] = "None";
Portrait["59"] = "None";
Portrait["60"] = "None";
Portrait["61"] = "None";
Portrait["62"] = "None";
Portrait["63"] = "None";
Portrait["64"] = "None";
Portrait["65"] = "None";
Name = new array();
Name["0"] = "None";
Name["1"] = "None";
Name["2"] = "None";
Name["3"] = "None";
Name["4"] = "Aries";
Name["5"] = "None";
Name["6"] = "None";
Name["7"] = "Taurus";
Name["8"] = "Taurus";
Name["9"] = "None";
Name["10"] = "None";
Name["11"] = "None";
Name["12"] = "Gemini";
Name["13"] = "None";
Name["14"] = "None";
Name["15"] = "None";
Name["16"] = "Cancer";
Name["17"] = "None";
Name["18"] = "None";
Name["19"] = "None";
Name["20"] = "Leo";
Name["21"] = "None";
Name["22"] = "None";
Name["23"] = "None";
Name["24"] = "Virgo";
Name["25"] = "None";
Name["26"] = "None";
Name["27"] = "None";
Name["28"] = "Libra";
Name["29"] = "None";
Name["30"] = "None";
Name["31"] = "None";
Name["32"] = "Scorpio";
Name["33"] = "None";
Name["34"] = "None";
Name["35"] = "None";
Name["36"] = "Sagittarius";
Name["37"] = "None";
Name["38"] = "None";
Name["39"] = "None";
Name["40"] = "Capricorn";
Name["41"] = "None";
Name["42"] = "None";
Name["43"] = "None";
Name["44"] = "Aquarius";
Name["45"] = "None";
Name["46"] = "None";
Name["47"] = "None";
Name["48"] = "Pisces";
Name["49"] = "None";
Name["50"] = "None";
Name["51"] = "None";
Name["52"] = "None";
Name["53"] = "None";
Name["54"] = "None";
Name["55"] = "None";
Name["56"] = "None";
Name["57"] = "None";
Name["58"] = "NoDialog";
Name["59"] = "NoDialog";
Name["60"] = "NoDialog";
Name["61"] = "NoDialog";
Name["62"] = "NoDialog";
Name["63"] = "None";
Name["64"] = "None";
Name["65"] = "None";
Dialog = new array();
Dialog["0"] = "... Chosen one. I have come to you in dreams ... by stepping into the forsaken forest, you have opened the path to break the seal of the Curse of the Dark Prophecy...";
Dialog["1"] = "Fear, for your destiny has been chosen for you. All paths will lead to the same end, and you might be surprised that you know very well what your end is...";
Dialog["2"] = "However, there are different paths even as they all reaches the same end. Look, the heaven is holding a council to decide your future. Choose wisely, for once a choice is made, there will be no return...";
Dialog["3"] = "The soul of Aries speaks...";
Dialog["4"] = "You are a fallen prince whose uncle had claimed your father`s life in secret. Burning with a desire for revenge, you are certain that you will have a chance to assassinate your uncle during his coronation ceremony. However, a trusted friend had found evidence that will eventually prove your uncle guilty, given that you must step down and investigate for years to come. What will you do?";
Dialog["5"] = "Revenge must be swift or my uncle will secure his throne, and all will be too late!";
Dialog["6"] = "Revenge will be sweeter if one has the patience to wait for a better plan.";
Dialog["7"] = "The soul of Taurus speaks...";
Dialog["8"] = "You are a poor farmer whose wife is gravely sick and needs the help of a healer. However, you cannot afford a cure; you are merely able to keep the family fed. One day, a travelling salesman offers you a chance to bet your farmland for a half and half chance to double your wealth or lose everything. Will you take this gamble?";
Dialog["9"] = "This will be my only chance to cure my wife. I must at least try!";
Dialog["10"] = "Of course not. If I keep the land, I might eventually be able to save up money for a cure.";
Dialog["11"] = "The soul of Gemini speaks...";
Dialog["12"] = "You are a soldier in the midst of a war. Your commander had been making foolish moves and is driving you and your men to your graves. There are rumors that the opposing camp has a valiant leader and that he is willing to accept anyone who swears loyalty to him. Your friends are already planning to flee and change sides. What would you decide?";
Dialog["13"] = "Honor my loyalty to my master and die as a hero, not as a filthy coward.";
Dialog["14"] = "There is no glory in being a fool. In order to live, any change is welcome.";
Dialog["15"] = "The soul of Cancer speaks...";
Dialog["16"] = "You are the son of a priest who longs to become a bard. As you grow up, your father prepares you for preisthood while you train in secret with a friend of yours. The time for the initation of priesthood is approaching. What will you do?";
Dialog["17"] = "Run away with my friend and persue my dream.";
Dialog["18"] = "Reason with my father. If all else fails, leave priesthood when my father dies.";
Dialog["19"] = "The soul of Leo speaks...";
Dialog["20"] = "You are an adventurer who accepted a quest to deal with a certain magistrate who taxes heavily on the local townsmen. You had the desire to slay the man, but his skill with the sword is remarkable and you will only have an even chance if engaged in a duel. Your decision will be:";
Dialog["21"] = "Challenge the magistrate to a duel of skill and courage, to the death.";
Dialog["22"] = "Convince the magistrate that starving townsmen does not make good tax subjects.";
Dialog["23"] = "The soul of Virgo speaks...";
Dialog["24"] = "You have met and become deeply in love with a young maiden. However, she was arranged by her father to marry an old but wealthy man. You know that this maiden would be willing to wait for you whatever your choice will be. What will you do?";
Dialog["25"] = "Paiently wait until the arranged marriage ends, then marry my love.";
Dialog["26"] = "I will threaten her father that I will run away with his daughter, and fulfill it if needed be.";
Dialog["27"] = "The soul of Libra speaks...";
Dialog["28"] = "You and your partner are both outlaws to the kingdom. Unfortunately, your partner had been captured by the guards. Even though he is a trustworthy person, he is not prone to torture. How would you rescue him before he reveals your presence?";
Dialog["29"] = "Drug the meal reserved for the guards and then attempt to break into jail.";
Dialog["30"] = "Bribe the guards with enough money to release my partner and seal their mouths.";
Dialog["31"] = "The soul of Scorpio speaks...";
Dialog["32"] = "You are one of the two advisors to the king. You had been trying to call for better fortification of the castle but the other advisor always disagrees with you, and the court would follow suit to your opponent. Eventually, the debated heated up and the other advisor ridicued you in the presence of the court and the king. In response, what would you do?";
Dialog["33"] = "Take the opportunity to win trust by claiming that the other advisor is an arrogant fool.";
Dialog["34"] = "Back down from the debate and hire an assassin to rid myself a nuisance.";
Dialog["35"] = "The soul of Sagittarius speaks...";
Dialog["36"] = "You are the general of a skirmishing force, ready to invade the camp of the opposing army. There are two paths to the camp. One is by the great plain where you anticipate a bloody battle with losses on both sides. There is another route through the forest to surprise the enemy; however, the forest is rumored to be infested with strange and terrifying monsters. What path will you take your men to?";
Dialog["37"] = "Take the route through the plain and believe in the strength of your men to win.";
Dialog["38"] = "Take the route through the forest and win by surprise, disbelieving the rumors.";
Dialog["39"] = "The soul of Capricorn speaks...";
Dialog["40"] = "You and your friend are adventurers, and both of you are captured by a dragon. Out of anger the dragon had decided that your friend must die, but you, who found favor in the dragon`s eyes, has a choice to die with your friend or escape and live on. The dragon then swears to his own word. What will you choose?";
Dialog["41"] = "Escape, and seek revenge for your friend afterwards.";
Dialog["42"] = "Stay and die with your friend so that he may die in peace.";
Dialog["43"] = "The soul of Aquarius speaks...";
Dialog["44"] = "You are a blacksmith by trade who lives in a small village. The village is quite peaceful and has no need for a blacksmith, but you enjoy the country life. Now, the kingdom is in turmoil and there may be new opportunities in the capital city, where weapons would be valuable to the king`s army. But to leave means that you must leave your peaceful life behind. What will you do?";
Dialog["45"] = "Where opportunities arise one must grasp it in time. Onward to the capital!";
Dialog["46"] = "Peace is something that is hard to seek, and one should not forsake it for anything else.";
Dialog["47"] = "The soul of Pisces speaks...";
Dialog["48"] = "You are a merchant who frequents between country roads for business. You were stopped by a group of bandits who wanted your merchandise in exchange for your life. Out of experience you know that the road you traveled on is under the patrol of knights from a castle of moderate distance. What would you do?";
Dialog["49"] = "Give in to the demands. Money is easy to earn back, but life is not.";
Dialog["50"] = "Risk irritating the bandit`s patience to procrastinate until calvary arrives.";
Dialog["51"] = "Thus your path is chosen. But before this dream ends, I must give you some final advices...";
Dialog["52"] = "You have a tremendous amount of courage and sense of honor. Do not be afraid to confront issues with your mighty strength.";
Dialog["53"] = "You are an energetic risk taker. Take advantage of your dexterity and agility to avoid confrontation and achieve your goal.";
Dialog["54"] = "You are cautious and observant. You can outwit others if you put your mind into work on your every move.";
Dialog["55"] = "You are patient and tolerant in suffering. For this you are blessed with a pain resistant body. But even then,do not be too careless.";
Dialog["56"] = "Consider this above all... remember that you are not a hero one way or another. There is no wrong in obeying your very instinct... and not some foolish ideals you used to believe.";
Dialog["57"] = "Remember, Embrace Darkness. For in it you were born and to it you will die.";
Dialog["58"] = "Testing. Still needs to implement (no dialog) event.";
Dialog["59"] = "Str Minus 1";
Dialog["60"] = "Dex Minus 1";
Dialog["61"] = "Con Minus 1";
Dialog["62"] = "Wis Minus 1";
Dialog["63"] = "";
Dialog["64"] = "";
Dialog["65"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 3;
Goto["3"] = 4;
Goto["4"] = 0;
Goto["5"] = 7;
Goto["6"] = 7;
Goto["7"] = 8;
Goto["8"] = 0;
Goto["9"] = 11;
Goto["10"] = 11;
Goto["11"] = 12;
Goto["12"] = 0;
Goto["13"] = 15;
Goto["14"] = 15;
Goto["15"] = 16;
Goto["16"] = 0;
Goto["17"] = 19;
Goto["18"] = 19;
Goto["19"] = 20;
Goto["20"] = 0;
Goto["21"] = 23;
Goto["22"] = 23;
Goto["23"] = 24;
Goto["24"] = 0;
Goto["25"] = 27;
Goto["26"] = 27;
Goto["27"] = 28;
Goto["28"] = 0;
Goto["29"] = 31;
Goto["30"] = 31;
Goto["31"] = 32;
Goto["32"] = 0;
Goto["33"] = 35;
Goto["34"] = 35;
Goto["35"] = 36;
Goto["36"] = 0;
Goto["37"] = 39;
Goto["38"] = 39;
Goto["39"] = 40;
Goto["40"] = 0;
Goto["41"] = 43;
Goto["42"] = 43;
Goto["43"] = 44;
Goto["44"] = 0;
Goto["45"] = 47;
Goto["46"] = 47;
Goto["47"] = 48;
Goto["48"] = 0;
Goto["49"] = 51;
Goto["50"] = 51;
Goto["51"] = 52;
Goto["52"] = 53;
Goto["53"] = 54;
Goto["54"] = 55;
Goto["55"] = 56;
Goto["56"] = 57;
Goto["57"] = 58;
Goto["58"] = 63;
Goto["59"] = 60;
Goto["60"] = 61;
Goto["61"] = 62;
Goto["62"] = 63;
Goto["63"] = -1;
Goto["64"] = 65;
Goto["65"] = 66;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = 0;
Failto["5"] = 7;
Failto["6"] = 7;
Failto["7"] = 8;
Failto["8"] = 0;
Failto["9"] = 11;
Failto["10"] = 11;
Failto["11"] = 12;
Failto["12"] = 0;
Failto["13"] = 15;
Failto["14"] = 15;
Failto["15"] = 16;
Failto["16"] = 0;
Failto["17"] = 19;
Failto["18"] = 19;
Failto["19"] = 20;
Failto["20"] = 0;
Failto["21"] = 23;
Failto["22"] = 23;
Failto["23"] = 24;
Failto["24"] = 0;
Failto["25"] = 27;
Failto["26"] = 27;
Failto["27"] = 28;
Failto["28"] = 0;
Failto["29"] = 31;
Failto["30"] = 31;
Failto["31"] = 32;
Failto["32"] = 0;
Failto["33"] = 35;
Failto["34"] = 35;
Failto["35"] = 36;
Failto["36"] = 0;
Failto["37"] = 39;
Failto["38"] = 39;
Failto["39"] = 40;
Failto["40"] = 0;
Failto["41"] = 43;
Failto["42"] = 43;
Failto["43"] = 44;
Failto["44"] = 0;
Failto["45"] = 47;
Failto["46"] = 47;
Failto["47"] = 48;
Failto["48"] = 0;
Failto["49"] = 51;
Failto["50"] = 51;
Failto["51"] = 52;
Failto["52"] = 53;
Failto["53"] = 54;
Failto["54"] = 55;
Failto["55"] = 56;
Failto["56"] = 57;
Failto["57"] = 58;
Failto["58"] = 63;
Failto["59"] = 60;
Failto["60"] = 61;
Failto["61"] = 62;
Failto["62"] = 63;
Failto["63"] = -1;
Failto["64"] = 65;
Failto["65"] = 66;
Event = new array();
Event["0"] = "None";
Event["1"] = "None";
Event["2"] = "None";
Event["3"] = "Activate";
Event["4"] = "MultipleChoice";
Event["5"] = "Str";
Event["6"] = "Con";
Event["7"] = "Activate";
Event["8"] = "MultipleChoice";
Event["9"] = "Dex";
Event["10"] = "Con";
Event["11"] = "Activate";
Event["12"] = "MultipleChoice";
Event["13"] = "Str";
Event["14"] = "Dex";
Event["15"] = "Activate";
Event["16"] = "MultipleChoice";
Event["17"] = "Dex";
Event["18"] = "Wis";
Event["19"] = "Activate";
Event["20"] = "MultipleChoice";
Event["21"] = "Str";
Event["22"] = "Wis";
Event["23"] = "Activate";
Event["24"] = "MultipleChoice";
Event["25"] = "Con";
Event["26"] = "Wis";
Event["27"] = "Activate";
Event["28"] = "MultipleChoice";
Event["29"] = "Wis";
Event["30"] = "Dex";
Event["31"] = "Activate";
Event["32"] = "MultipleChoice";
Event["33"] = "Dex";
Event["34"] = "Wis";
Event["35"] = "Activate";
Event["36"] = "MultipleChoice";
Event["37"] = "Str";
Event["38"] = "Dex";
Event["39"] = "Activate";
Event["40"] = "MultipleChoice";
Event["41"] = "Con";
Event["42"] = "Str";
Event["43"] = "Activate";
Event["44"] = "MultipleChoice";
Event["45"] = "Dex";
Event["46"] = "Con";
Event["47"] = "Activate";
Event["48"] = "MultipleChoice";
Event["49"] = "Con";
Event["50"] = "Wis";
Event["51"] = "Activate";
Event["52"] = "Simple";
Event["53"] = "Simple";
Event["54"] = "Simple";
Event["55"] = "Simple";
Event["56"] = "Simple";
Event["57"] = "None";
Event["58"] = "Flag";
Event["59"] = "Str";
Event["60"] = "Dex";
Event["61"] = "Con";
Event["62"] = "Wis";
Event["63"] = "Simple";
Event["64"] = "Simple";
Event["65"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = "_root";
EvtVar1["4"] = 5;
EvtVar1["5"] = 1;
EvtVar1["6"] = 1;
EvtVar1["7"] = "_root";
EvtVar1["8"] = 9;
EvtVar1["9"] = 1;
EvtVar1["10"] = 1;
EvtVar1["11"] = "_root";
EvtVar1["12"] = 13;
EvtVar1["13"] = 1;
EvtVar1["14"] = 1;
EvtVar1["15"] = "_root";
EvtVar1["16"] = 17;
EvtVar1["17"] = 1;
EvtVar1["18"] = 1;
EvtVar1["19"] = "_root";
EvtVar1["20"] = 21;
EvtVar1["21"] = 1;
EvtVar1["22"] = 1;
EvtVar1["23"] = "_root";
EvtVar1["24"] = 25;
EvtVar1["25"] = 1;
EvtVar1["26"] = 1;
EvtVar1["27"] = "_root";
EvtVar1["28"] = 29;
EvtVar1["29"] = 1;
EvtVar1["30"] = 1;
EvtVar1["31"] = "_root";
EvtVar1["32"] = 33;
EvtVar1["33"] = 1;
EvtVar1["34"] = 1;
EvtVar1["35"] = "_root";
EvtVar1["36"] = 37;
EvtVar1["37"] = 1;
EvtVar1["38"] = 1;
EvtVar1["39"] = "_root";
EvtVar1["40"] = 41;
EvtVar1["41"] = 1;
EvtVar1["42"] = 1;
EvtVar1["43"] = "_root";
EvtVar1["44"] = 45;
EvtVar1["45"] = 1;
EvtVar1["46"] = 1;
EvtVar1["47"] = "_root";
EvtVar1["48"] = 49;
EvtVar1["49"] = 1;
EvtVar1["50"] = 1;
EvtVar1["51"] = "_root";
EvtVar1["52"] = 0;
EvtVar1["53"] = 0;
EvtVar1["54"] = 0;
EvtVar1["55"] = 0;
EvtVar1["56"] = 0;
EvtVar1["57"] = 0;
EvtVar1["58"] = "Completed";
EvtVar1["59"] = -1;
EvtVar1["60"] = -1;
EvtVar1["61"] = -1;
EvtVar1["62"] = -1;
EvtVar1["63"] = 0;
EvtVar1["64"] = 0;
EvtVar1["65"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 6;
EvtVar2["5"] = 0;
EvtVar2["6"] = 0;
EvtVar2["7"] = 0;
EvtVar2["8"] = 10;
EvtVar2["9"] = 0;
EvtVar2["10"] = 0;
EvtVar2["11"] = 0;
EvtVar2["12"] = 14;
EvtVar2["13"] = 0;
EvtVar2["14"] = 0;
EvtVar2["15"] = 0;
EvtVar2["16"] = 18;
EvtVar2["17"] = 0;
EvtVar2["18"] = 0;
EvtVar2["19"] = 0;
EvtVar2["20"] = 22;
EvtVar2["21"] = 0;
EvtVar2["22"] = 0;
EvtVar2["23"] = 0;
EvtVar2["24"] = 26;
EvtVar2["25"] = 0;
EvtVar2["26"] = 0;
EvtVar2["27"] = 0;
EvtVar2["28"] = 30;
EvtVar2["29"] = 0;
EvtVar2["30"] = 0;
EvtVar2["31"] = 0;
EvtVar2["32"] = 34;
EvtVar2["33"] = 0;
EvtVar2["34"] = 0;
EvtVar2["35"] = 0;
EvtVar2["36"] = 38;
EvtVar2["37"] = 0;
EvtVar2["38"] = 0;
EvtVar2["39"] = 0;
EvtVar2["40"] = 42;
EvtVar2["41"] = 0;
EvtVar2["42"] = 0;
EvtVar2["43"] = 0;
EvtVar2["44"] = 46;
EvtVar2["45"] = 0;
EvtVar2["46"] = 0;
EvtVar2["47"] = 0;
EvtVar2["48"] = 50;
EvtVar2["49"] = 0;
EvtVar2["50"] = 0;
EvtVar2["51"] = 0;
EvtVar2["52"] = 0;
EvtVar2["53"] = 0;
EvtVar2["54"] = 0;
EvtVar2["55"] = 0;
EvtVar2["56"] = 0;
EvtVar2["57"] = 0;
EvtVar2["58"] = "True";
EvtVar2["59"] = 0;
EvtVar2["60"] = 0;
EvtVar2["61"] = 0;
EvtVar2["62"] = 0;
EvtVar2["63"] = 0;
EvtVar2["64"] = 0;
EvtVar2["65"] = 0;
}
Frame 1557
DialogBox.BlackScreen._alpha = 40;
Dialog1.play();
stop();
Frame 1566
stop();
Frame 1581
if (ThiefTotal() < 2) {
stop();
}
Frame 1596
if (ThiefTotal() < 3) {
stop();
}
Frame 1611
if (ThiefTotal() < 4) {
stop();
}
Frame 1626
if (ThiefTotal() < 5) {
stop();
}
Frame 1641
if (ThiefTotal() < 6) {
stop();
}
Frame 1656
if (ThiefTotal() < 7) {
stop();
}
Frame 1671
if (ThiefTotal() < 8) {
stop();
}
Frame 1686
if (ThiefTotal() < 9) {
stop();
}
Frame 1701
if (ThiefTotal() < 10) {
stop();
}
Frame 1716
if (ThiefTotal() < 11) {
stop();
}
Frame 1731
if (ThiefTotal() < 12) {
stop();
}
Frame 1758
if (!Completed.Set) {
prevFrame();
play();
}
Frame 1784
stop();
Frame 1785
if (ProposedName == "") {
PassName = "IceWolf";
} else {
PassName = ProposedName;
}
Frame 1808
stop();
PasswordLine = EncodeAttributes();
Frame 1822
Background.StopClip();
gotoAndPlay (1393);
Frame 1834
Hint = new Array();
Hint[0] = "The questions asked in chracter creation determines your attributes by the following ways: strength bonus for courage, dexterity bonus for mutability, wisdom bonus for secrecy, and wisdom bonus for patience.";
Hint[1] = "To kill without being detected, attack your enemy from the back. Besides the stealth bonus, backstabbing also does more damage no matter which attack type you are using.";
Hint[2] = "Each type of enemy will have a certain visibility limit. For example, skeleton guards will fail to see low bushes within one half distance of its field of vision.";
Hint[3] = "Are you having a hard time finding any secrets at all? Try searching every single tomb in the Forest of Dispair and see what happens!";
Hint[4] = "Rescuing the slave Gerald has a great perk besides the karma stone. Ever wonder why he is able to walk into those... walls?";
Hint[5] = "Higher wisdom attribute opens up more dialog options in encounters. You will also recieve more hints about traps and clues about your immediate enviroment.";
Hint[6] = "Ever want to kill a bat and find yourself hitting thin air? To kill a bat, you have to lure it to fly down, then attack before the bat hits you. If you think that is too much trouble, just avoid them!";
Hint[7] = "Sound effects in this game is more than just bells and whistles. Listen carefully, and you may be able to save your life from disaster.";
Hint[8] = "When you accidentally step into a pressure plate, duck! Most traps are avoidable simply by dodging while the trap is in effect. Of course, this wouldn't work on trap pits at all.";
Hint[9] = "Your decisions throughout the game affects the way your character grows. They are awarded in the way that they are awarded during character creation.";
Hint[10] = "Speed up dialogs by pressing spacebar when okay is prompted. You can also speed up decisions by using number keys 1 through 5 for decision 1 to 5, from the top down.";
Hint[11] = "If you are pretty frustrated with sneaking around and want some revenge, type in 'MC Hawkings, Quake Master' as Section II of a save game...";
Hint[12] = "Ever want to create a super character? Section I of your password saves your character's attributes and can be reused to start a new game. Nifty!";
Hint[13] = "You'll find gold bags in two skeleton guards. Simply kill them, and they will drop the bags.";
Hint[14] = "You do know that there are two different paths to choose from, right? One of the tombs in the cemetery opens the way to the underground caverns.";
Hint[15] = "Don't even dream of defeating Lathania. I didn't even put in a death animation for her...";
Hint[16] = "All Your Base Are Belong To Us! No, seriously, this password is handy somewhere...";
Hint[17] = "Don't forget, all items have help messages that would hint you at its uses. If you don't know what an item is for, read the help message!";
Hint[18] = "There are very cute things that you can do with traps besides avoiding them. You know, if those traps hurts you, they'd surely hurt others just as well...";
Hint[19] = "Are you stuck trying to find the secrets inside the game? The cavern that you jump into in the beginning of the game should have a hidden passage. Knock around!";
Hint[20] = "Hey, if you found the vampire ring, there's a hidden message on the coffin. Search it and read it, it's funny!";
Hint[21] = "Skeleton guards can hear and will be alerted by loud noises, so in order to stay quiet, use the swing attack!";
Hint[22] = "Once a guard is alerted, they will turn toward the direction of the source of pain. Move away from that direction to avoid a confrontation.";
HintDisplay = Hint[parseInt(Math.random() * Hint.length)];
Frame 1856
stop();
Frame 1857
function distanceCalculate(src2destX, src2destY) {
src2destX = parseInt(src2destX);
src2destY = parseInt(src2destY);
return(Math.round(Math.sqrt((src2destX * src2destX) + (src2destY * src2destY))));
}
function distanceAngle(src2destX, src2destY) {
src2destX = parseInt(src2destX);
src2destY = parseInt(src2destY);
Angle = Math.round((Math.atan(src2destY / src2destX) * 180) / Math.PI);
if (src2destX >= 0) {
if (0 < src2destY) {
Angle = Angle - 180;
} else {
Angle = Angle + 180;
}
}
return(Angle);
}
function angleInRange(srcAngle, destAngle, halfRange) {
srcAngle = parseInt(srcAngle);
destAngle = parseInt(destAngle);
halfRange = parseInt(halfRange);
return((Math.abs(destAngle - srcAngle) < halfRange) || (((Math.abs(srcAngle) + Math.abs(destAngle)) + halfRange) >= 360));
}
function angleDifference(angle1, angle2) {
angle1 = parseInt(angle1);
angle2 = parseInt(angle2);
if (angle2 < angle1) {
if (180 < (angle1 - angle2)) {
return((360 - angle1) + angle2);
}
return(angle1 - angle2);
}
if (180 < (angle2 - angle1)) {
return((360 - angle2) + angle1);
}
return(angle2 - angle1);
}
function angleTurnDirection(srcAngle, destAngle) {
srcAngle = parseInt(srcAngle);
destAngle = parseInt(destAngle);
if (srcAngle < destAngle) {
if (180 < (destAngle - srcAngle)) {
return(-1);
}
return(1);
}
if (destAngle < srcAngle) {
if (180 < (srcAngle - destAngle)) {
return(1);
}
return(-1);
}
return(0);
}
function angleToX(angle, speed) {
angle = parseInt(angle);
speed = parseInt(speed);
return(Math.round(Math.cos((angle / 180) * Math.PI) * speed));
}
function angleToY(angle, speed) {
angle = parseInt(angle);
speed = parseInt(speed);
return(Math.round(Math.sin((angle / 180) * Math.PI) * speed));
}
function angleToPointer(angle) {
angle = parseInt(angle);
if (0 >= angle) {
return(-angle);
}
return(360 - angle);
}
function Encode100(Num) {
if (Num >= 100) {
return("zR");
}
return(chr(97 + parseInt(Num / 10)) + chr(74 + (Num % 10)));
}
function Encode26(Num) {
return(chr((65 + Num) - 1));
}
function Encode10(Num) {
return(chr(90 - Num));
}
function EncodeStr(Str) {
var temp;
temp = "";
i = 0;
while (i < Str.length) {
temp = temp + chr(Str.charCodeAt(i) + 5);
i++;
}
return(Encode26(Str.length) + temp);
}
function Decode100(Code, Point) {
return(((Code.charCodeAt(Point) - 97) * 10) + (Code.charCodeAt(Point + 1) - 74));
}
function Decode26(Code, Point) {
return((Code.charCodeAt(Point) - 65) + 1);
}
function Decode10(Code, Point) {
return(90 - Code.charCodeAt(Point));
}
function DecodeStr(Code, Point) {
var temp;
temp = "";
i = 0;
while (i < Decode26(Code, Point)) {
temp = temp + chr(Code.charCodeAt((i + Point) + 1) - 5);
i++;
}
return(temp);
}
function EncodeAttributes() {
return(((((((EncodeStr(PassName) + "a") + Encode10(Thief.ThiefStr)) + Encode26(Thief.ThiefDex)) + "y") + Encode10(Thief.ThiefCon)) + Encode26(Thief.ThiefWis)) + "b");
}
function DecodeAttributes(Str) {
var namelength;
namelength = Decode26(Str, 0) + 1;
if (((Str.charAt(namelength) != "a") || (Str.charAt(namelength + 3) != "y")) || (Str.charAt(namelength + 6) != "b")) {
InvalidPassword = true;
} else {
Thief.ThiefName = DecodeStr(Str, 0);
Thief.ThiefStr = Decode10(Str, namelength + 1);
Thief.ThiefDex = Decode26(Str, namelength + 2);
Thief.ThiefCon = Decode10(Str, namelength + 4);
Thief.ThiefWis = Decode26(Str, namelength + 5);
}
}
function ThiefTotal() {
return(((Thief.ThiefStr + Thief.ThiefDex) + Thief.ThiefWis) + Thief.ThiefCon);
}
StaticWidth = _width;
StaticHeight = _height;
UIR = new Array();
UVR = new Array();
Sequence = 0;
Instance of Symbol 810 MovieClip "TorchClip" in Frame 1857
onClipEvent (load) {
ClipName = "TorchLoop";
}
Frame 1858
with (Fade) {
play();
}
Dialog._visible = false;
TorchClip.startClip();
Frame 1862
stop();
Instance of Symbol 829 MovieClip in Frame 1862
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 830 MovieClip in Frame 1862
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 831 MovieClip in Frame 1862
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 832 MovieClip in Frame 1862
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 833 MovieClip in Frame 1862
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 833 MovieClip in Frame 1862
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Frame 1864
stop();
Frame 1866
stop();
Instance of Symbol 877 MovieClip in Frame 1866
onClipEvent (load) {
ActivationAmount = 9999;
Trigger = "SimpleMessage";
Visible = "True";
}
Instance of Symbol 879 MovieClip "SimpleMessage" in Frame 1866
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "None";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
Portrait = new array();
Portrait["1"] = "None";
Portrait["0"] = "None";
Name = new array();
Name["1"] = "None";
Name["0"] = "None";
Dialog = new array();
Dialog["1"] = "";
Dialog["0"] = "This is a dummy handle and proves to be of no significant importance.";
Goto = new array();
Goto["1"] = -1;
Goto["0"] = 1;
Failto = new array();
Failto["1"] = -1;
Failto["0"] = 1;
Event = new array();
Event["1"] = "Simple";
Event["0"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
}
Instance of Symbol 882 MovieClip in Frame 1868
onClipEvent (load) {
UID = -1;
Type = "Primary";
ItemNo = 2;
Amount = 5;
AutoTrigger = "True";
}
Instance of Symbol 883 MovieClip in Frame 1868
onClipEvent (load) {
UID = -1;
Type = "Primary";
ItemNo = 3;
Amount = 5;
AutoTrigger = "true";
}
Frame 1869
stop();
Instance of Symbol 890 MovieClip in Frame 1871
onClipEvent (load) {
UID = -1;
Type = "Secondary";
ItemNo = 1;
Amount = 1;
AutoTrigger = "True";
}
Frame 1872
stop();
Frame 1874
stop();
Frame 1876
stop();
Frame 1878
TorchClip.stopClip();
Fade.play();
Frame 1882
gotoAndPlay (1393);
Frame 1883
function distanceCalculate(src2destX, src2destY) {
src2destX = parseInt(src2destX);
src2destY = parseInt(src2destY);
return(Math.round(Math.sqrt((src2destX * src2destX) + (src2destY * src2destY))));
}
function distanceAngle(src2destX, src2destY) {
src2destX = parseInt(src2destX);
src2destY = parseInt(src2destY);
Angle = Math.round((Math.atan(src2destY / src2destX) * 180) / Math.PI);
if (src2destX >= 0) {
if (0 < src2destY) {
Angle = Angle - 180;
} else {
Angle = Angle + 180;
}
}
return(Angle);
}
function angleInRange(srcAngle, destAngle, halfRange) {
srcAngle = parseInt(srcAngle);
destAngle = parseInt(destAngle);
halfRange = Math.abs(parseInt(halfRange));
return((Math.abs(destAngle - srcAngle) < halfRange) || (((Math.abs(srcAngle) + Math.abs(destAngle)) + halfRange) >= 360));
}
function angleDifference(angle1, angle2) {
angle1 = parseInt(angle1);
angle2 = parseInt(angle2);
if (angle2 < angle1) {
if (180 < (angle1 - angle2)) {
return((360 - angle1) + angle2);
}
return(angle1 - angle2);
}
if (180 < (angle2 - angle1)) {
return((360 - angle2) + angle1);
}
return(angle2 - angle1);
}
function angleTurnDirection(srcAngle, destAngle) {
srcAngle = parseInt(srcAngle);
destAngle = parseInt(destAngle);
if (srcAngle < destAngle) {
if (180 < (destAngle - srcAngle)) {
return(-1);
}
return(1);
}
if (destAngle < srcAngle) {
if (180 < (srcAngle - destAngle)) {
return(1);
}
return(-1);
}
return(0);
}
function angleToX(angle, speed) {
angle = parseInt(angle);
speed = parseInt(speed);
return(Math.round(Math.cos((angle / 180) * Math.PI) * speed));
}
function angleToY(angle, speed) {
angle = parseInt(angle);
speed = parseInt(speed);
return(Math.round(Math.sin((angle / 180) * Math.PI) * speed));
}
function angleToPointer(angle) {
angle = parseInt(angle);
if (0 >= angle) {
return(-angle);
}
return(360 - angle);
}
function Encode100(Num) {
if (Num >= 100) {
return("zR");
}
return(chr(97 + parseInt(Num / 10)) + chr(74 + (Num % 10)));
}
function Encode26(Num) {
return(chr((65 + Num) - 1));
}
function Encode10(Num) {
return(chr(90 - Num));
}
function EncodeStr(Str) {
var temp;
temp = "";
i = 0;
while (i < Str.length) {
temp = temp + chr(Str.charCodeAt(i) + 5);
i++;
}
return(Encode26(Str.length) + temp);
}
function Decode100(Code, Point) {
return(((Code.charCodeAt(Point) - 97) * 10) + (Code.charCodeAt(Point + 1) - 74));
}
function Decode26(Code, Point) {
return((Code.charCodeAt(Point) - 65) + 1);
}
function Decode10(Code, Point) {
return(90 - Code.charCodeAt(Point));
}
function DecodeStr(Code, Point) {
var temp;
temp = "";
i = 0;
while (i < Decode26(Code, Point)) {
temp = temp + chr(Code.charCodeAt((i + Point) + 1) - 5);
i++;
}
return(temp);
}
function EncodeAttributes() {
return(((((((EncodeStr(PassName) + "a") + Encode10(Thief.ThiefStr)) + Encode26(Thief.ThiefDex)) + "y") + Encode10(Thief.ThiefCon)) + Encode26(Thief.ThiefWis)) + "b");
}
function DecodeAttributes(Str) {
var namelength;
namelength = Decode26(Str, 0) + 1;
Thief.ThiefName = DecodeStr(Str, 0);
Thief.ThiefStr = Decode10(Str, namelength + 1);
Thief.ThiefDex = Decode26(Str, namelength + 2);
Thief.ThiefCon = Decode10(Str, namelength + 4);
Thief.ThiefWis = Decode26(Str, namelength + 5);
}
function ThiefTotal() {
return(((Thief.ThiefStr + Thief.ThiefDex) + Thief.ThiefWis) + Thief.ThiefCon);
}
function EncodeCondition() {
return((((((CurrentScene + ThiefHealth.save()) + ThiefSpcInv.save().toLowerCase()) + ThiefPrimInv.save()) + ThiefSecInv.save().toLowerCase()) + ThiefWeapon.save()) + CurrentLocation);
}
Instance of Symbol 909 MovieClip "SaveValidator" in Frame 1883
onClipEvent (load) {
_visible = false;
}
Frame 1898
stop();
Frame 1899
SaveValidator.Set(Attributes, Condition);
if (!SaveValidator.ValidGame()) {
Attributes = SaveValidator.getAttributes();
Condition = SaveValidator.getCondition();
prevFrame();
stop();
}
Frame 1910
gotoAndPlay (1911);
Frame 1911
function distanceCalculate(src2destX, src2destY) {
src2destX = parseInt(src2destX);
src2destY = parseInt(src2destY);
return(Math.round(Math.sqrt((src2destX * src2destX) + (src2destY * src2destY))));
}
function distanceAngle(src2destX, src2destY) {
src2destX = parseInt(src2destX);
src2destY = parseInt(src2destY);
Angle = Math.round((Math.atan(src2destY / src2destX) * 180) / Math.PI);
if (src2destX >= 0) {
if (0 < src2destY) {
Angle = Angle - 180;
} else {
Angle = Angle + 180;
}
}
return(Angle);
}
function angleInRange(srcAngle, destAngle, halfRange) {
srcAngle = parseInt(srcAngle);
destAngle = parseInt(destAngle);
halfRange = Math.abs(parseInt(halfRange));
return((Math.abs(destAngle - srcAngle) < halfRange) || (((Math.abs(srcAngle) + Math.abs(destAngle)) + halfRange) >= 360));
}
function angleDifference(angle1, angle2) {
angle1 = parseInt(angle1);
angle2 = parseInt(angle2);
if (angle2 < angle1) {
if (180 < (angle1 - angle2)) {
return((360 - angle1) + angle2);
}
return(angle1 - angle2);
}
if (180 < (angle2 - angle1)) {
return((360 - angle2) + angle1);
}
return(angle2 - angle1);
}
function angleTurnDirection(srcAngle, destAngle) {
srcAngle = parseInt(srcAngle);
destAngle = parseInt(destAngle);
if (srcAngle < destAngle) {
if (180 < (destAngle - srcAngle)) {
return(-1);
}
return(1);
}
if (destAngle < srcAngle) {
if (180 < (srcAngle - destAngle)) {
return(1);
}
return(-1);
}
return(0);
}
function angleToX(angle, speed) {
angle = parseInt(angle);
speed = parseInt(speed);
return(Math.round(Math.cos((angle / 180) * Math.PI) * speed));
}
function angleToY(angle, speed) {
angle = parseInt(angle);
speed = parseInt(speed);
return(Math.round(Math.sin((angle / 180) * Math.PI) * speed));
}
function angleToPointer(angle) {
angle = parseInt(angle);
if (0 >= angle) {
return(-angle);
}
return(360 - angle);
}
function Encode100(Num) {
if (Num >= 100) {
return("zR");
}
return(chr(97 + parseInt(Num / 10)) + chr(74 + (Num % 10)));
}
function Encode26(Num) {
return(chr((65 + Num) - 1));
}
function Encode10(Num) {
return(chr(90 - Num));
}
function EncodeStr(Str) {
var temp;
temp = "";
i = 0;
while (i < Str.length) {
temp = temp + chr(Str.charCodeAt(i) + 5);
i++;
}
return(Encode26(Str.length) + temp);
}
function Decode100(Code, Point) {
return(parseInt(((Code.charCodeAt(Point) - 97) * 10) + (Code.charCodeAt(Point + 1) - 74)));
}
function Decode26(Code, Point) {
return(parseInt((Code.charCodeAt(Point) - 65) + 1));
}
function Decode10(Code, Point) {
return(parseInt(90 - Code.charCodeAt(Point)));
}
function DecodeStr(Code, Point) {
var temp;
temp = "";
i = 0;
while (i < Decode26(Code, Point)) {
temp = temp + chr(Code.charCodeAt((i + Point) + 1) - 5);
i++;
}
return(temp);
}
function EncodeAttributes() {
return(((((((EncodeStr(PassName) + "a") + Encode10(Thief.ThiefStr)) + Encode26(Thief.ThiefDex)) + "y") + Encode10(Thief.ThiefCon)) + Encode26(Thief.ThiefWis)) + "b");
}
function DecodeAttributes(Str) {
var namelength;
namelength = Decode26(Str, 0) + 1;
Thief.ThiefName = DecodeStr(Str, 0);
Thief.ThiefStr = Decode10(Str, namelength + 1);
Thief.ThiefDex = Decode26(Str, namelength + 2);
Thief.ThiefCon = Decode10(Str, namelength + 4);
Thief.ThiefWis = Decode26(Str, namelength + 5);
}
function ThiefTotal() {
return(((Thief.ThiefStr + Thief.ThiefDex) + Thief.ThiefWis) + Thief.ThiefCon);
}
function EncodeCondition() {
return(((((((CurrentScene + ThiefHealth.save()) + ThiefSpcInv.save().toLowerCase()) + GameRecord.save()) + ThiefPrimInv.save()) + ThiefSecInv.save()) + ThiefWeapon.save().toLowerCase()) + CurrentLocation);
}
UIR = new Array();
UVR = new Array();
Sequence = 0;
CurrentScene = "eRjwT";
CurrentLocation = "Room0";
StaticWidth = _width;
StaticHeight = _height;
Frame 1912
with (Fade) {
play();
}
Instance of Symbol 927 MovieClip "ThiefWalk" in Frame 1915
onClipEvent (load) {
ClipName = "MudWalk";
}
Instance of Symbol 933 MovieClip in Frame 1915
onClipEvent (load) {
SequenceRequest = 0;
SequenceIncrease = -1;
Trigger = "IntroDialog";
}
Instance of Symbol 934 MovieClip "IntroDialog" in Frame 1915
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
Portrait = new array();
Portrait["1"] = "Wolf";
Portrait["0"] = "None";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wolf";
Portrait["4"] = "None";
Portrait["5"] = "Rogue";
Portrait["6"] = "None";
Name = new array();
Name["1"] = "Player";
Name["0"] = "None";
Name["2"] = "Player";
Name["3"] = "Player";
Name["4"] = "Player";
Name["5"] = "Player";
Name["6"] = "None";
Dialog = new array();
Dialog["1"] = "I... faintly remember... finding my way into this cursed forest. But when have I fallen asleep... there is something twisted about this place that puts my senses into unrest. I must be careful, lest I fail and fall into eternal sleep...";
Dialog["0"] = "(Playing Cinametics)";
Dialog["2"] = "The night will surely strengthen the dark creatures around me... but that is a small matter. We shall find out who is the darker creature of the night.";
Dialog["3"] = "Alas, I should start moving. From the information that I have gathered, what I seek lies to the north.";
Dialog["4"] = "(Conversation Ends Here)";
Dialog["5"] = "...... Huh?";
Dialog["6"] = "";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = 3;
Goto["3"] = 4;
Goto["4"] = -1;
Goto["5"] = 1;
Goto["6"] = 7;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 1;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = -1;
Failto["5"] = 1;
Failto["6"] = 7;
Event = new array();
Event["1"] = "None";
Event["0"] = "Cinametics";
Event["2"] = "None";
Event["3"] = "None";
Event["4"] = "None";
Event["5"] = "None";
Event["6"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = "IntroCinametics";
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar1["5"] = 0;
EvtVar1["6"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
EvtVar2["5"] = 0;
EvtVar2["6"] = 0;
}
Instance of Symbol 936 MovieClip "Tele1" in Frame 1915
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room1";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 939 MovieClip "IntroCinametics" in Frame 1915
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "_root.TheWake";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 6;
Action = new array();
Action["0"] = "Nothing";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Nothing";
Action["7"] = "Speak";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Nothing";
Action["11"] = "Nothing";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Special";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Nothing";
Action["21"] = "Nothing";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Speak";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Nothing";
Action["31"] = "Nothing";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Special";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "SetVisible";
Action["41"] = "Nothing";
Action["42"] = "Nothing";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "SetVisible";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Recall";
Action["51"] = "Nothing";
Action["52"] = "Nothing";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Nothing";
Action["58"] = "Nothing";
Action["59"] = "Nothing";
Action["60"] = "Nothing";
Action["61"] = "Nothing";
Action["62"] = "Nothing";
Action["63"] = "Nothing";
Action["64"] = "Nothing";
Action["65"] = "Nothing";
Action["66"] = "Nothing";
Action["67"] = "Nothing";
Action["68"] = "Nothing";
Action["69"] = "Nothing";
Const = new array();
Const["0"] = "Sleep";
Const["1"] = "";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "";
Const["7"] = "?! . . . . . .";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "........";
Const["11"] = "";
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "WakeUp";
Const["18"] = "";
Const["19"] = "";
Const["20"] = "WakeUp";
Const["21"] = "";
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = "It is already nightfall... how can this be?!";
Const["28"] = "";
Const["29"] = "";
Const["30"] = "The night has come... it is time to move.";
Const["31"] = "";
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "Stand";
Const["38"] = "";
Const["39"] = "";
Const["40"] = "True";
Const["41"] = "";
Const["42"] = "";
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "false";
Const["48"] = "";
Const["49"] = "";
Const["50"] = "";
Const["51"] = "";
Const["52"] = "";
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "";
Const["58"] = "";
Const["59"] = "";
Const["60"] = 0;
Const["61"] = "";
Const["62"] = "";
Const["63"] = "";
Const["64"] = "";
Const["65"] = "";
Const["66"] = "";
Const["67"] = "";
Const["68"] = "";
Const["69"] = "";
Param = new array();
Param["0"] = 36;
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = "";
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = "";
Param["11"] = "";
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = 42;
Param["18"] = "";
Param["19"] = "";
Param["20"] = 42;
Param["21"] = "";
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = "";
Param["28"] = "";
Param["29"] = "";
Param["30"] = "";
Param["31"] = "";
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = 36;
Param["38"] = "";
Param["39"] = "";
Param["40"] = 0;
Param["41"] = "";
Param["42"] = "";
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = 0;
Param["48"] = "";
Param["49"] = "";
Param["50"] = "";
Param["51"] = "";
Param["52"] = "";
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = "";
Param["58"] = "";
Param["59"] = "";
Param["60"] = 0;
Param["61"] = "";
Param["62"] = "";
Param["63"] = "";
Param["64"] = "";
Param["65"] = "";
Param["66"] = "";
Param["67"] = "";
Param["68"] = "";
Param["69"] = "";
}
Instance of Symbol 829 MovieClip in Frame 1915
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 830 MovieClip in Frame 1915
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 831 MovieClip in Frame 1915
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 945 MovieClip "Home0" in Frame 1915
onClipEvent (load) {
UniversalID = 0;
}
Instance of Symbol 957 MovieClip "DialogBox" in Frame 1915
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 909 MovieClip "SaveScroll" in Frame 1915
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 981 MovieClip "ForestLoop" in Frame 1915
onClipEvent (load) {
ClipName = "ForestLoop";
}
Instance of Symbol 983 MovieClip in Frame 1915
onClipEvent (load) {
SoundClipName = "ForestLoop";
StopClipAtRoom = new array();
StopClipAtRoom[0] = "Room7";
StopClipAtRoom[1] = "Room11";
StopClipAtRoom[2] = "Room23";
StopClipAtRoom[3] = "EiOfH";
StartClipAtRoom = new array();
StartClipAtRoom[0] = "Room0";
StartClipAtRoom[1] = "Room18";
StartClipAtRoom[2] = "Room24";
}
Instance of Symbol 984 MovieClip "PrayerLoop" in Frame 1915
onClipEvent (load) {
ClipName = "Prayer";
}
Instance of Symbol 985 MovieClip in Frame 1915
onClipEvent (load) {
SoundClipName = "PrayerLoop";
StopClipAtRoom = new array();
StopClipAtRoom[0] = "Room18";
StartClipAtRoom = new array();
StartClipAtRoom[0] = "RxNiU";
}
Instance of Symbol 986 MovieClip "CaveMysteryLoop" in Frame 1915
onClipEvent (load) {
ClipName = "CaveMystery";
}
Instance of Symbol 987 MovieClip in Frame 1915
onClipEvent (load) {
SoundClipName = "CaveMysteryLoop";
StopClipAtRoom = new array();
StopClipAtRoom[0] = "Room12";
StopClipAtRoom[1] = "Room17";
StopClipAtRoom[2] = "Room24";
StartClipAtRoom = new array();
StartClipAtRoom[0] = "Room11";
StartClipAtRoom[1] = "Room14";
StartClipAtRoom[2] = "Room23";
}
Instance of Symbol 988 MovieClip "ChaosWarLoop" in Frame 1915
onClipEvent (load) {
ClipName = "ChaosWar";
}
Instance of Symbol 989 MovieClip in Frame 1915
onClipEvent (load) {
SoundClipName = "ChaosWarLoop";
StopClipAtRoom = new array();
StopClipAtRoom[0] = "Room17";
StartClipAtRoom = new array();
StartClipAtRoom[0] = "Room7";
}
Instance of Symbol 990 MovieClip "CombatLoop" in Frame 1915
onClipEvent (load) {
ClipName = "Combat";
}
Instance of Symbol 991 MovieClip in Frame 1915
onClipEvent (load) {
SoundClipName = "CombatLoop";
StopClipAtRoom = new array();
StopClipAtRoom[0] = "RxNiU";
StartClipAtRoom = new array();
StartClipAtRoom[0] = "Room17a";
}
Instance of Symbol 992 MovieClip "Fountain" in Frame 1915
onClipEvent (load) {
ClipName = "Fountain";
}
Instance of Symbol 993 MovieClip in Frame 1915
onClipEvent (load) {
SoundClipName = "Fountain";
StopClipAtRoom = new array();
StopClipAtRoom[0] = "Room18";
StartClipAtRoom = new array();
StartClipAtRoom[0] = "RxNiU";
}
Frame 1916
with (ThiefSecInv) {
Available = -1;
CurrentItem = 0;
ActiveItem = 0;
Timer = 0;
}
with (ThiefPrimInv) {
Available[0] = 1;
Available[1] = 0;
Available[2] = 0;
Available[3] = 0;
Available[4] = 0;
Available[5] = 0;
}
SaveScroll.Set(Attributes, Condition);
SaveScroll.LoadGame();
if (Condition == "All Your Base Are Belong To Us") {
Thief.ThiefStr = 10;
Thief.ThiefWis = 10;
Thief.ThiefDex = 10;
Thief.ThiefCon = 10;
Thief.resetStats();
} else if (Condition == "MC Hawkings, Quake Master") {
ThiefPrimInv.activateSecret();
ThiefSecInv.activateSecret();
ThiefWeapon.activateSecret();
}
Frame 1917
Thief._visible = false;
stop();
Frame 1923
stop();
Frame 1933
stop();
Instance of Symbol 997 MovieClip in Frame 1933
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room0a";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 998 MovieClip in Frame 1933
onClipEvent (load) {
SequenceRequest = 1;
SequenceIncrease = -1;
Trigger = "PatrolExplaination";
}
Instance of Symbol 999 MovieClip in Frame 1933
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room2";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1000 MovieClip in Frame 1933
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room5";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1001 MovieClip "PatrolExplaination" in Frame 1933
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "None";
Portrait["3"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "Hint";
Name["3"] = "None";
Dialog = new array();
Dialog["0"] = "A skeletal guard is patroling this area. It is not my mission to destroy them all; hence, avoid their detection whenever possible.";
Dialog["1"] = "Remember, all guards have a regular patrol pattern. Observe, and move through the loopholes of their patrol route.";
Dialog["2"] = "If you are still new to this game, a detour to the west might be a good idea... just to let you know.";
Dialog["3"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 3;
Goto["3"] = -1;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = -1;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
}
Instance of Symbol 1052 MovieClip in Frame 1933
onClipEvent (load) {
GuardHealth = 20;
GuardDamage = 5;
GuardSpeed = 4;
GuardSweep = 90;
GuardAlertDelay = 80;
DeathAction = "Undefined";
GuardRotation = 4;
ActionSet = new array();
ActionSet["0"] = "Movement";
ActionSet["1"] = "RotateCounterClockwise";
ActionSet["2"] = "Movement";
ActionSet["3"] = "RotateClockwise";
ActionSet["4"] = "Movement";
ActionSet["5"] = "RotateCounterClockwise";
ActionSet["6"] = "Movement";
ActionSet["7"] = "RotateClockwise";
ActionSet["8"] = "Recall";
Property = new array();
Property["0"] = 200;
Property["1"] = -90;
Property["2"] = 130;
Property["3"] = 90;
Property["4"] = 130;
Property["5"] = 180;
Property["6"] = 200;
Property["7"] = 0;
Property["8"] = 0;
UniversalID = 0;
}
Instance of Symbol 833 MovieClip in Frame 1933
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 945 MovieClip "Home1" in Frame 1933
onClipEvent (load) {
UniversalID = 0;
}
Instance of Symbol 945 MovieClip "Home2" in Frame 1933
onClipEvent (load) {
UniversalID = 0;
}
Frame 1944
stop();
Instance of Symbol 1054 MovieClip in Frame 1944
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room1";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1059 MovieClip "DropToCave" in Frame 1944
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room3";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1061 MovieClip in Frame 1944
onClipEvent (load) {
FallToDeath = "False";
Damage = 0;
Teleport = "DropToCave";
}
Instance of Symbol 1062 MovieClip in Frame 1944
onClipEvent (load) {
SequenceRequest = 2;
SequenceIncrease = -1;
Trigger = "TrapAndDodge";
}
Instance of Symbol 1072 MovieClip in Frame 1944
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "False";
HeldDown = "True";
Trigger = "Projectile0";
}
Instance of Symbol 1073 MovieClip "TrapAndDodge" in Frame 1944
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Wis";
Prerequsite["2"] = "None";
Prerequsite["3"] = "Wis";
Prerequsite["4"] = "None";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = "Grt";
PreVar1["2"] = 0;
PreVar1["3"] = "Grt";
PreVar1["4"] = 0;
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 1;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wolf";
Portrait["4"] = "Wolf";
Portrait["5"] = "None";
Portrait["6"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "Player";
Name["3"] = "Player";
Name["4"] = "Player";
Name["5"] = "None";
Name["6"] = "None";
Dialog = new array();
Dialog["0"] = "Be careful when you walk around. Take note of unnatural formations... they might give you a hint or two as to the dangers that lies around.";
Dialog["1"] = "For Example, watch the ground right in front of me. The twigs are aligned too closely to be natural... you can use this knowledge to your advantage, however.";
Dialog["2"] = "Besides moving around your enemies, you can also take advantage of other weakness that they possess. For example, skeleton guards only scan straight ahead when they are not in full alert. You can avoid their detection if you crouch right in front of them.";
Dialog["3"] = "The hole straight ahead seems to be there for an important reason... otherwise, there wouldn't be guards partroling around it.";
Dialog["4"] = "That hole ahead seems to be worthy of investigation.";
Dialog["5"] = "";
Dialog["6"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 3;
Goto["3"] = 5;
Goto["4"] = 5;
Goto["5"] = -1;
Goto["6"] = 7;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = 5;
Failto["5"] = -1;
Failto["6"] = 7;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
Event["4"] = "Simple";
Event["5"] = "Simple";
Event["6"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar1["5"] = 0;
EvtVar1["6"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
EvtVar2["5"] = 0;
EvtVar2["6"] = 0;
}
Instance of Symbol 1074 MovieClip in Frame 1944
onClipEvent (load) {
GuardHealth = 20;
GuardDamage = 5;
GuardSpeed = 4;
GuardSweep = 90;
GuardAlertDelay = 80;
DeathAction = "Undefined";
GuardRotation = 4;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "RotateCounterClockwise";
ActionSet["2"] = "StandStill";
ActionSet["3"] = "RotateClockwise";
ActionSet["4"] = "Recall";
Property = new array();
Property["0"] = 30;
Property["1"] = 0;
Property["2"] = 30;
Property["3"] = 180;
Property["4"] = 0;
UniversalID = 0;
}
Instance of Symbol 1075 MovieClip in Frame 1944
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 1000;
Property["1"] = 0;
UniversalID = 0;
}
Instance of Symbol 1078 MovieClip "Fireball1" in Frame 1944
onClipEvent (load) {
Speed = 8;
Damage = 10;
}
Instance of Symbol 829 MovieClip in Frame 1944
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1079 MovieClip in Frame 1944
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 830 MovieClip in Frame 1944
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Frame 1956
stop();
Instance of Symbol 1081 MovieClip in Frame 1956
onClipEvent (load) {
ActivationDelay = 5;
Destination = "Room2";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1082 MovieClip in Frame 1956
onClipEvent (load) {
SequenceRequest = 3;
SequenceIncrease = 4;
Trigger = "BatsAndSecrets";
}
Instance of Symbol 1083 MovieClip in Frame 1956
onClipEvent (load) {
ActivationDelay = 5;
Destination = "Room4";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1084 MovieClip in Frame 1956
onClipEvent (load) {
UID = 0;
Type = "Primary";
ItemNo = 1;
Amount = 5;
AutoTrigger = "true";
}
Instance of Symbol 1085 MovieClip "BatsAndSecrets" in Frame 1956
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Wis";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = "Grt";
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 2;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "None";
Portrait["3"] = "None";
Portrait["4"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "None";
Name["3"] = "None";
Name["4"] = "None";
Dialog = new array();
Dialog["0"] = "Bats sense their targets by using echolocation. To avoid their detection, stay low while the sound waves passes by. They would think that you are part of the dirt on the ground.";
Dialog["1"] = "I sense some possibility for hidden treasures in this cave. It should be worth my time to do a through search of this place.";
Dialog["2"] = "";
Dialog["3"] = "";
Dialog["4"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = -1;
Goto["3"] = 4;
Goto["4"] = 5;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = -1;
Failto["3"] = 4;
Failto["4"] = 5;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
Event["4"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
}
Instance of Symbol 1115 MovieClip in Frame 1956
onClipEvent (load) {
Health = 12;
Damage = 4;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Instance of Symbol 1115 MovieClip in Frame 1956
onClipEvent (load) {
Health = 12;
Damage = 4;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Instance of Symbol 1119 MovieClip in Frame 1956
onClipEvent (load) {
Health = 3;
Trigger = "CaveIn";
}
Instance of Symbol 832 MovieClip in Frame 1956
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 831 MovieClip in Frame 1956
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Frame 1963
stop();
Instance of Symbol 1140 MovieClip in Frame 1963
onClipEvent (load) {
Health = 12;
Damage = 4;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Instance of Symbol 1140 MovieClip in Frame 1963
onClipEvent (load) {
Health = 12;
Damage = 4;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Frame 1973
DraculaFound.Set = true;
stop();
Instance of Symbol 1141 MovieClip in Frame 1973
onClipEvent (load) {
ActivationDelay = 5;
Destination = "Room3a";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1144 MovieClip in Frame 1973
onClipEvent (load) {
UID = 1;
Type = "Secondary";
ItemNo = 1;
Amount = 50;
AutoTrigger = "true";
}
Instance of Symbol 1147 MovieClip in Frame 1973
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "False";
Trigger = "ZombieDescription";
}
Instance of Symbol 1148 MovieClip in Frame 1973
onClipEvent (load) {
ActivationAmount = 1;
Trigger = "Warning";
Visible = "False";
}
Instance of Symbol 1149 MovieClip "Warning" in Frame 1973
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Wis";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 3;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "None";
Portrait["3"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "None";
Name["3"] = "None";
Dialog = new array();
Dialog["0"] = "There is an inscription on the tomb:\r\rHere lies Dracula, who is so tired of having his ass whipped by a Belmont everytime he resurrects, that he is not going to come back to life again. EVER.";
Dialog["1"] = "(End of Dialog)";
Dialog["2"] = "";
Dialog["3"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = -1;
Goto["2"] = -1;
Goto["3"] = 4;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = -1;
Failto["2"] = -1;
Failto["3"] = 4;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
}
Instance of Symbol 1150 MovieClip "ZombieDescription" in Frame 1973
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "Wolf";
Portrait["3"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "Player";
Name["3"] = "None";
Dialog = new array();
Dialog["0"] = "Aha! A secret room. such simple trickery is nothing but a child's play to me.";
Dialog["1"] = "However, the master of this tomb does have his intellect... those hands that are barely visible are actually buried zombies.";
Dialog["2"] = "Try not to disturb them. However, when a zombie is awakened and had caught your throat, shake it off by turning left and right quickly.";
Dialog["3"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 3;
Goto["3"] = -1;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = -1;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
}
Instance of Symbol 1199 MovieClip in Frame 1973
onClipEvent (load) {
Health = 22;
Damage = 3;
Speed = 3;
Rotation = 3;
Lurk = "True";
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 80;
Property["1"] = 0;
Strength = 5;
}
Instance of Symbol 1200 MovieClip in Frame 1973
onClipEvent (load) {
Health = 22;
Damage = 3;
Speed = 3;
Rotation = 3;
Lurk = "True";
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 80;
Property["1"] = 0;
Strength = 5;
}
Instance of Symbol 1200 MovieClip in Frame 1973
onClipEvent (load) {
Health = 22;
Damage = 3;
Speed = 3;
Rotation = 3;
Lurk = "True";
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 80;
Property["1"] = 0;
Strength = 5;
}
Instance of Symbol 1199 MovieClip in Frame 1973
onClipEvent (load) {
Health = 22;
Damage = 3;
Speed = 3;
Rotation = 3;
Lurk = "True";
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 80;
Property["1"] = 0;
Strength = 5;
}
Instance of Symbol 833 MovieClip in Frame 1973
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Frame 1983
stop();
Instance of Symbol 1202 MovieClip in Frame 1983
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "False";
Trigger = "ThePath";
}
Instance of Symbol 1203 MovieClip in Frame 1983
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room1";
HomePoint = 2;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1204 MovieClip in Frame 1983
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room6";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1205 MovieClip in Frame 1983
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room7";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1206 MovieClip "coins" in Frame 1983
onClipEvent (load) {
UID = 3;
Type = "Special";
ItemNo = 6;
Amount = 1;
AutoTrigger = "False";
}
Instance of Symbol 1207 MovieClip "ThePath" in Frame 1983
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Wis";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = "Grt";
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "Wolf";
Portrait["3"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "Player";
Name["3"] = "None";
Dialog = new array();
Dialog["0"] = "The mausoleum that I seek lies to the West. However, that path is heavily guarded.";
Dialog["1"] = "A cemetery lies to the East. It seems to be worth investigating. Perhaps there is another path through the forest that would lead me to the same destination?";
Dialog["2"] = "I suppose that my skill is worthy for any dangerous roads ahead... still, I'd prefer if I can fare closer with the shadows of the night.";
Dialog["3"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 3;
Goto["2"] = 3;
Goto["3"] = -1;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 2;
Failto["3"] = -1;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
}
Instance of Symbol 1208 MovieClip in Frame 1983
onClipEvent (load) {
GuardHealth = 20;
GuardDamage = 5;
GuardSpeed = 4;
GuardSweep = 90;
GuardAlertDelay = 80;
DeathAction = "coins";
GuardRotation = 4;
ActionSet = new array();
ActionSet["0"] = "Movement";
ActionSet["1"] = "RotateClockwise";
ActionSet["2"] = "StandStill";
ActionSet["3"] = "Movement";
ActionSet["4"] = "RotateClockwise";
ActionSet["5"] = "StandStill";
ActionSet["6"] = "Recall";
Property = new array();
Property["0"] = 400;
Property["1"] = 180;
Property["2"] = 10;
Property["3"] = 400;
Property["4"] = 0;
Property["5"] = 10;
Property["6"] = 0;
UniversalID = 0;
}
Instance of Symbol 1079 MovieClip in Frame 1983
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 945 MovieClip "Home1" in Frame 1983
onClipEvent (load) {
UniversalID = 0;
}
Frame 1993
stop();
Instance of Symbol 1209 MovieClip in Frame 1993
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room5";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1210 MovieClip "DownToCave" in Frame 1993
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room11";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1213 MovieClip in Frame 1993
onClipEvent (load) {
SequenceRequest = 4;
SequenceIncrease = 5;
Trigger = "TombHints";
}
Instance of Symbol 1222 MovieClip "FallToCave" in Frame 1993
onClipEvent (load) {
AutoTrigger = "False";
ActivationDelay = 0;
Damage = 10;
FallToDeath = "False";
Teleport = "DownToCave";
}
Instance of Symbol 1223 MovieClip in Frame 1993
onClipEvent (load) {
ActivationAmount = 100;
Trigger = "FallToCave";
Visible = "False";
}
Instance of Symbol 1224 MovieClip in Frame 1993
onClipEvent (load) {
ActivationAmount = 1;
Trigger = "Inscription";
Visible = "False";
}
Instance of Symbol 1225 MovieClip "HealScroll" in Frame 1993
onClipEvent (load) {
UID = 2;
Type = "Primary";
ItemNo = 3;
Amount = 2;
AutoTrigger = "False";
}
Instance of Symbol 1226 MovieClip in Frame 1993
onClipEvent (load) {
ActivationAmount = 1;
Trigger = "Spoof";
Visible = "False";
}
Instance of Symbol 1227 MovieClip "TombHints" in Frame 1993
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Wis";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = "Grt";
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 1;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "None";
Portrait["3"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "None";
Name["3"] = "None";
Dialog = new array();
Dialog["0"] = "Zombies are low intelligent beings with extremely poor eyesights. Those who lurk underground would rise up only if they are disturbed. Shake them off by turning left and right if they start biting.";
Dialog["1"] = "It is strange to have a cemetery in the middle of nowhere. Read the tombstones and see if there are clues as to secret passages through this forest.";
Dialog["2"] = "";
Dialog["3"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = -1;
Goto["3"] = 4;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = -1;
Failto["3"] = 4;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
}
Instance of Symbol 1228 MovieClip in Frame 1993
onClipEvent (load) {
Health = 22;
Damage = 3;
Speed = 3;
Rotation = 3;
Lurk = "False";
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Movement";
ActionSet["2"] = "RotateClockwise";
ActionSet["3"] = "Movement";
ActionSet["4"] = "RotateClockwise";
ActionSet["5"] = "StandStill";
ActionSet["6"] = "Movement";
ActionSet["7"] = "RotateClockwise";
ActionSet["8"] = "Movement";
ActionSet["9"] = "RotateClockwise";
ActionSet["10"] = "Recall";
Property = new array();
Property["0"] = 40;
Property["1"] = 150;
Property["2"] = 90;
Property["3"] = 170;
Property["4"] = 180;
Property["5"] = 40;
Property["6"] = 150;
Property["7"] = -90;
Property["8"] = 150;
Property["9"] = 0;
Property["10"] = 0;
Strength = 5;
}
Instance of Symbol 1229 MovieClip in Frame 1993
onClipEvent (load) {
Health = 22;
Damage = 3;
Speed = 3;
Rotation = 3;
Lurk = "True";
ActionSet = new array();
ActionSet["0"] = "RotateCounterClockwise";
ActionSet["1"] = "Movement";
ActionSet["2"] = "RotateCounterClockwise";
ActionSet["3"] = "Movement";
ActionSet["4"] = "Recall";
Property = new array();
Property["0"] = 0;
Property["1"] = 100;
Property["2"] = 0;
Property["3"] = 100;
Property["4"] = 0;
Strength = 5;
}
Instance of Symbol 1230 MovieClip "Inscription" in Frame 1993
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Wis";
Prerequsite["2"] = "Wis";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = "Grt";
PreVar1["2"] = "Grt";
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 2;
PreVar2["2"] = 1;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "Wolf";
Portrait["3"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "Player";
Name["3"] = "None";
Dialog = new array();
Dialog["0"] = "The inscription on the tombstone says:\r\rPraise the standing stones who remembered death!\rFor they bear marks to a new life.\rBut moreso are they keys to the paths unknown.\rHeed my wisdom, let no stone be unturned.";
Dialog["1"] = "This inscription describes the two erect tombstones. It seems that... breaking one of the two would bring something related to life... and I suppose that the other tombstone must lead to the alternate path I'm seeking.";
Dialog["2"] = "The inscription must be describing the tombstones, but the content of the stones seems muddy to me. Stay alert... these trickery might lead the fools into all sorts of traps.";
Dialog["3"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 3;
Goto["2"] = 3;
Goto["3"] = -1;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = -1;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
}
Instance of Symbol 1231 MovieClip "Spoof" in Frame 1993
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Flag";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = "BudweiserFound";
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "None";
Portrait["3"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "NoDialog";
Name["2"] = "NoDialog";
Name["3"] = "None";
Dialog = new array();
Dialog["0"] = "The inscription on the tombstone says:\r\rWiser, Bud, R.I.P.\r\rOur beloved drinking buddy died while he was watching a duel, drinking some ale.";
Dialog["1"] = "(Check if spoof was found before)";
Dialog["2"] = "(Set found to true)";
Dialog["3"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 3;
Goto["2"] = -1;
Goto["3"] = -1;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = -1;
Failto["3"] = -1;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Flag";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = "BudweiserFound";
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = "True";
EvtVar2["3"] = 0;
}
Instance of Symbol 1232 MovieClip in Frame 1993
onClipEvent (load) {
Health = 1;
Trigger = "breakTomb";
}
Instance of Symbol 831 MovieClip in Frame 1993
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 830 MovieClip in Frame 1993
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 833 MovieClip in Frame 1993
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Frame 2003
stop();
Instance of Symbol 1240 MovieClip in Frame 2003
onClipEvent (load) {
SequenceRequest = 5;
SequenceIncrease = 6;
Trigger = "HeavyGuard";
}
Instance of Symbol 1241 MovieClip in Frame 2003
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room8";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1242 MovieClip "HeavyGuard" in Frame 2003
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 9;
Action = new array();
Action["0"] = "Speak";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Nothing";
Action["7"] = "Nothing";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Turn";
Action["11"] = "Movement";
Action["12"] = "Movement";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Movement";
Action["21"] = "Turn";
Action["22"] = "Turn";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Nothing";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Turn";
Action["31"] = "Nothing";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "Movement";
Action["41"] = "Movement";
Action["42"] = "Movement";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "Nothing";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Turn";
Action["51"] = "Turn";
Action["52"] = "Turn";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Nothing";
Action["58"] = "Nothing";
Action["59"] = "Nothing";
Action["60"] = "Speak";
Action["61"] = "Nothing";
Action["62"] = "Nothing";
Action["63"] = "Movement";
Action["64"] = "Nothing";
Action["65"] = "Nothing";
Action["66"] = "Nothing";
Action["67"] = "Nothing";
Action["68"] = "Nothing";
Action["69"] = "Nothing";
Action["70"] = "Turn";
Action["71"] = "Nothing";
Action["72"] = "Nothing";
Action["73"] = "Nothing";
Action["74"] = "Nothing";
Action["75"] = "Nothing";
Action["76"] = "Nothing";
Action["77"] = "Nothing";
Action["78"] = "Nothing";
Action["79"] = "Nothing";
Action["80"] = "Speak";
Action["81"] = "Nothing";
Action["82"] = "Nothing";
Action["83"] = "Movement";
Action["84"] = "Nothing";
Action["85"] = "Nothing";
Action["86"] = "Nothing";
Action["87"] = "Nothing";
Action["88"] = "Nothing";
Action["89"] = "Nothing";
Action["90"] = "Recall";
Action["91"] = "Nothing";
Action["92"] = "Nothing";
Action["93"] = "Nothing";
Action["94"] = "Nothing";
Action["95"] = "Nothing";
Action["96"] = "Nothing";
Action["97"] = "Nothing";
Action["98"] = "Nothing";
Action["99"] = "Nothing";
Action["100"] = "Nothing";
Action["101"] = "Nothing";
Action["102"] = "Nothing";
Action["103"] = "Nothing";
Action["104"] = "Nothing";
Action["105"] = "Nothing";
Action["106"] = "Nothing";
Action["107"] = "Nothing";
Action["108"] = "Nothing";
Action["109"] = "Nothing";
Const = new array();
Const["0"] = "Damn it, more skeleton guards...";
Const["1"] = "";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "";
Const["7"] = "";
Const["8"] = "";
Const["9"] = "";
Const["10"] = -45;
Const["11"] = 6;
Const["12"] = 5;
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = 6;
Const["21"] = -10;
Const["22"] = -10;
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = "";
Const["28"] = "";
Const["29"] = "";
Const["30"] = 45;
Const["31"] = "";
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Const["40"] = 6;
Const["41"] = 6;
Const["42"] = 5;
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "";
Const["48"] = "";
Const["49"] = "";
Const["50"] = 45;
Const["51"] = 10;
Const["52"] = -10;
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "";
Const["58"] = "";
Const["59"] = "";
Const["60"] = "The path back is being blocked. I have to move on...";
Const["61"] = "";
Const["62"] = "";
Const["63"] = 6;
Const["64"] = "";
Const["65"] = "";
Const["66"] = "";
Const["67"] = "";
Const["68"] = "";
Const["69"] = "";
Const["70"] = -45;
Const["71"] = "";
Const["72"] = "";
Const["73"] = "";
Const["74"] = "";
Const["75"] = "";
Const["76"] = "";
Const["77"] = "";
Const["78"] = "";
Const["79"] = "";
Const["80"] = "Another guard is coming. Quick, hide!";
Const["81"] = "";
Const["82"] = "";
Const["83"] = 6;
Const["84"] = "";
Const["85"] = "";
Const["86"] = "";
Const["87"] = "";
Const["88"] = "";
Const["89"] = "";
Const["90"] = "";
Const["91"] = "";
Const["92"] = "";
Const["93"] = "";
Const["94"] = "";
Const["95"] = "";
Const["96"] = "";
Const["97"] = "";
Const["98"] = "";
Const["99"] = "";
Const["100"] = "";
Const["101"] = "";
Const["102"] = "";
Const["103"] = "";
Const["104"] = "";
Const["105"] = "";
Const["106"] = "";
Const["107"] = "";
Const["108"] = "";
Const["109"] = "";
Param = new array();
Param["0"] = "";
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = "";
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = 135;
Param["11"] = 200;
Param["12"] = 125;
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = 128;
Param["21"] = 0;
Param["22"] = 0;
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = "";
Param["28"] = "";
Param["29"] = "";
Param["30"] = 180;
Param["31"] = "";
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
Param["40"] = 330;
Param["41"] = 350;
Param["42"] = 280;
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = "";
Param["48"] = "";
Param["49"] = "";
Param["50"] = 0;
Param["51"] = 180;
Param["52"] = 180;
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = "";
Param["58"] = "";
Param["59"] = "";
Param["60"] = "";
Param["61"] = "";
Param["62"] = "";
Param["63"] = 126;
Param["64"] = "";
Param["65"] = "";
Param["66"] = "";
Param["67"] = "";
Param["68"] = "";
Param["69"] = "";
Param["70"] = -90;
Param["71"] = "";
Param["72"] = "";
Param["73"] = "";
Param["74"] = "";
Param["75"] = "";
Param["76"] = "";
Param["77"] = "";
Param["78"] = "";
Param["79"] = "";
Param["80"] = "";
Param["81"] = "";
Param["82"] = "";
Param["83"] = 126;
Param["84"] = "";
Param["85"] = "";
Param["86"] = "";
Param["87"] = "";
Param["88"] = "";
Param["89"] = "";
Param["90"] = "";
Param["91"] = "";
Param["92"] = "";
Param["93"] = "";
Param["94"] = "";
Param["95"] = "";
Param["96"] = "";
Param["97"] = "";
Param["98"] = "";
Param["99"] = "";
Param["100"] = "";
Param["101"] = "";
Param["102"] = "";
Param["103"] = "";
Param["104"] = "";
Param["105"] = "";
Param["106"] = "";
Param["107"] = "";
Param["108"] = "";
Param["109"] = "";
}
Instance of Symbol 1243 MovieClip "Enemy1" in Frame 2003
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 480;
Property["1"] = 0;
UniversalID = 0;
}
Instance of Symbol 1243 MovieClip "Enemy0" in Frame 2003
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 480;
Property["1"] = 0;
UniversalID = 0;
}
Instance of Symbol 1244 MovieClip "Enemy2" in Frame 2003
onClipEvent (load) {
GuardHealth = 20;
GuardDamage = 5;
GuardSpeed = 4;
GuardSweep = 90;
GuardAlertDelay = 80;
DeathAction = "Undefined";
GuardRotation = 4;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Movement";
ActionSet["2"] = "RotateCounterClockwise";
ActionSet["3"] = "StandStill";
ActionSet["4"] = "RotateClockwise";
ActionSet["5"] = "StandStill";
ActionSet["6"] = "Recall";
Property = new array();
Property["0"] = 5;
Property["1"] = 100;
Property["2"] = 0;
Property["3"] = 20;
Property["4"] = 90;
Property["5"] = 20;
Property["6"] = 2;
UniversalID = 0;
}
Instance of Symbol 829 MovieClip in Frame 2003
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1245 MovieClip in Frame 2003
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 945 MovieClip "Home1" in Frame 2003
onClipEvent (load) {
UniversalID = 0;
}
Frame 2009
stop();
Instance of Symbol 1246 MovieClip in Frame 2009
onClipEvent (load) {
GuardHealth = 20;
GuardDamage = 5;
GuardSpeed = 4;
GuardSweep = 90;
GuardAlertDelay = 80;
DeathAction = "Undefined";
GuardRotation = 4;
ActionSet = new array();
ActionSet["0"] = "RotateCounterClockwise";
ActionSet["1"] = "StandStill";
ActionSet["2"] = "RotateClockwise";
ActionSet["3"] = "StandStill";
ActionSet["4"] = "Recall";
Property = new array();
Property["0"] = 0;
Property["1"] = 20;
Property["2"] = 90;
Property["3"] = 20;
Property["4"] = 2;
UniversalID = 0;
}
Frame 2018
stop();
Instance of Symbol 1247 MovieClip in Frame 2018
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room10";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1248 MovieClip in Frame 2018
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room7a";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1249 MovieClip in Frame 2018
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room9";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1250 MovieClip in Frame 2018
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 15;
ActivationAmount = 5;
Invisible = "False";
HeldDown = "False";
Trigger = "Flame1";
}
Instance of Symbol 1252 MovieClip in Frame 2018
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "RotateClockwise";
ActionSet["1"] = "StandStill";
ActionSet["2"] = "RotateCounterClockwise";
ActionSet["3"] = "StandStill";
ActionSet["4"] = "Recall";
Property = new array();
Property["0"] = -135;
Property["1"] = 40;
Property["2"] = 135;
Property["3"] = 40;
Property["4"] = 0;
UniversalID = 0;
}
Instance of Symbol 1075 MovieClip in Frame 2018
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 1000;
Property["1"] = 0;
UniversalID = 0;
}
Instance of Symbol 1253 MovieClip in Frame 2018
onClipEvent (load) {
GuardHealth = 20;
GuardDamage = 5;
GuardSpeed = 4;
GuardSweep = 90;
GuardAlertDelay = 80;
DeathAction = "Undefined";
GuardRotation = 4;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "RotateClockwise";
ActionSet["2"] = "Movement";
ActionSet["3"] = "RotateCounterClockwise";
ActionSet["4"] = "StandStill";
ActionSet["5"] = "RotateCounterClockwise";
ActionSet["6"] = "Movement";
ActionSet["7"] = "RotateClockwise";
Property = new array();
Property["0"] = 100;
Property["1"] = 180;
Property["2"] = 80;
Property["3"] = 90;
Property["4"] = 100;
Property["5"] = 0;
Property["6"] = 80;
Property["7"] = 90;
UniversalID = 0;
}
Instance of Symbol 1254 MovieClip in Frame 2018
onClipEvent (load) {
GuardHealth = 20;
GuardDamage = 5;
GuardSpeed = 4;
GuardSweep = 90;
GuardAlertDelay = 80;
DeathAction = "Undefined";
GuardRotation = 4;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Movement";
ActionSet["2"] = "RotateClockwise";
ActionSet["3"] = "StandStill";
ActionSet["4"] = "Movement";
ActionSet["5"] = "RotateClockwise";
ActionSet["6"] = "Recall";
Property = new array();
Property["0"] = 10;
Property["1"] = 240;
Property["2"] = 180;
Property["3"] = 10;
Property["4"] = 240;
Property["5"] = 0;
Property["6"] = 0;
UniversalID = 0;
}
Instance of Symbol 833 MovieClip in Frame 2018
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 833 MovieClip in Frame 2018
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 945 MovieClip "Home2" in Frame 2018
onClipEvent (load) {
UniversalID = 0;
}
Instance of Symbol 1272 MovieClip "Flame1" in Frame 2018
onClipEvent (load) {
Dodgable = "True";
ActivationDelay = 15;
Damage = 12;
Continuous = "False";
}
Frame 2028
stop();
Instance of Symbol 1273 MovieClip in Frame 2028
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room8";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1274 MovieClip "WrightFight" in Frame 2028
onClipEvent (load) {
SequenceRequest = 6;
SequenceIncrease = 6;
Trigger = "WrightDialog";
}
Instance of Symbol 1275 MovieClip "HealScroll" in Frame 2028
onClipEvent (load) {
UID = -1;
Type = "Primary";
ItemNo = 3;
Amount = 1;
AutoTrigger = "False";
}
Instance of Symbol 1276 MovieClip "FireballScroll" in Frame 2028
onClipEvent (load) {
UID = -1;
Type = "Primary";
ItemNo = 2;
Amount = 2;
AutoTrigger = "False";
}
Instance of Symbol 1277 MovieClip "WrightDialog" in Frame 2028
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "Flag";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
Prerequsite["5"] = "Wis";
Prerequsite["6"] = "Dex";
Prerequsite["7"] = "None";
Prerequsite["8"] = "None";
Prerequsite["9"] = "None";
Prerequsite["10"] = "Wis";
Prerequsite["11"] = "Wis";
Prerequsite["12"] = "None";
Prerequsite["13"] = "None";
Prerequsite["14"] = "None";
Prerequsite["15"] = "None";
Prerequsite["16"] = "None";
Prerequsite["17"] = "None";
Prerequsite["18"] = "None";
Prerequsite["19"] = "None";
Prerequsite["20"] = "None";
Prerequsite["21"] = "None";
Prerequsite["22"] = "None";
Prerequsite["23"] = "None";
Prerequsite["24"] = "None";
Prerequsite["25"] = "Str";
Prerequsite["26"] = "None";
Prerequsite["27"] = "None";
Prerequsite["28"] = "None";
Prerequsite["29"] = "None";
Prerequsite["30"] = "None";
Prerequsite["31"] = "None";
Prerequsite["32"] = "None";
Prerequsite["33"] = "None";
Prerequsite["34"] = "None";
Prerequsite["35"] = "None";
Prerequsite["36"] = "None";
Prerequsite["37"] = "None";
Prerequsite["38"] = "None";
Prerequsite["39"] = "None";
Prerequsite["40"] = "None";
Prerequsite["41"] = "None";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = "FoughtWright";
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar1["5"] = "Grt";
PreVar1["6"] = "Grt";
PreVar1["7"] = 0;
PreVar1["8"] = 0;
PreVar1["9"] = 0;
PreVar1["10"] = "Grt";
PreVar1["11"] = "Les";
PreVar1["12"] = 0;
PreVar1["13"] = 0;
PreVar1["14"] = 0;
PreVar1["15"] = 0;
PreVar1["16"] = 0;
PreVar1["17"] = 0;
PreVar1["18"] = 0;
PreVar1["19"] = 0;
PreVar1["20"] = 0;
PreVar1["21"] = 0;
PreVar1["22"] = 0;
PreVar1["23"] = 0;
PreVar1["24"] = 0;
PreVar1["25"] = "Grt";
PreVar1["26"] = 0;
PreVar1["27"] = 0;
PreVar1["28"] = 0;
PreVar1["29"] = 0;
PreVar1["30"] = 0;
PreVar1["31"] = 0;
PreVar1["32"] = 0;
PreVar1["33"] = 0;
PreVar1["34"] = 0;
PreVar1["35"] = 0;
PreVar1["36"] = 0;
PreVar1["37"] = 0;
PreVar1["38"] = 0;
PreVar1["39"] = 0;
PreVar1["40"] = 0;
PreVar1["41"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 1;
PreVar2["7"] = 0;
PreVar2["8"] = 0;
PreVar2["9"] = 0;
PreVar2["10"] = 1;
PreVar2["11"] = 1;
PreVar2["12"] = 0;
PreVar2["13"] = 0;
PreVar2["14"] = 0;
PreVar2["15"] = 0;
PreVar2["16"] = 0;
PreVar2["17"] = 0;
PreVar2["18"] = 0;
PreVar2["19"] = 0;
PreVar2["20"] = 0;
PreVar2["21"] = 0;
PreVar2["22"] = 0;
PreVar2["23"] = 0;
PreVar2["24"] = 0;
PreVar2["25"] = 2;
PreVar2["26"] = 0;
PreVar2["27"] = 0;
PreVar2["28"] = 0;
PreVar2["29"] = 0;
PreVar2["30"] = 0;
PreVar2["31"] = 0;
PreVar2["32"] = 0;
PreVar2["33"] = 0;
PreVar2["34"] = 0;
PreVar2["35"] = 0;
PreVar2["36"] = 0;
PreVar2["37"] = 0;
PreVar2["38"] = 0;
PreVar2["39"] = 0;
PreVar2["40"] = 0;
PreVar2["41"] = 0;
Portrait = new array();
Portrait["1"] = "Wolf";
Portrait["0"] = "None";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wolf";
Portrait["4"] = "Wright";
Portrait["5"] = "Wolf";
Portrait["6"] = "Wolf";
Portrait["7"] = "Wolf";
Portrait["8"] = "None";
Portrait["9"] = "None";
Portrait["10"] = "None";
Portrait["11"] = "None";
Portrait["12"] = "Wright";
Portrait["13"] = "Wolf";
Portrait["14"] = "None";
Portrait["15"] = "None";
Portrait["16"] = "None";
Portrait["17"] = "Wright";
Portrait["18"] = "None";
Portrait["19"] = "None";
Portrait["20"] = "None";
Portrait["21"] = "Wright";
Portrait["22"] = "Wolf";
Portrait["23"] = "None";
Portrait["24"] = "None";
Portrait["25"] = "None";
Portrait["26"] = "Wright";
Portrait["27"] = "None";
Portrait["28"] = "Wright";
Portrait["29"] = "None";
Portrait["30"] = "None";
Portrait["31"] = "Wright";
Portrait["32"] = "Wolf";
Portrait["33"] = "None";
Portrait["34"] = "None";
Portrait["35"] = "None";
Portrait["36"] = "Wright";
Portrait["37"] = "Wright";
Portrait["38"] = "Wright";
Portrait["39"] = "None";
Portrait["40"] = "Wright";
Portrait["41"] = "None";
Name = new array();
Name["1"] = "Player";
Name["0"] = "NoDialog";
Name["2"] = "Player";
Name["3"] = "Player";
Name["4"] = "Spirit";
Name["5"] = "Player";
Name["6"] = "Player";
Name["7"] = "Player";
Name["8"] = "None";
Name["9"] = "None";
Name["10"] = "None";
Name["11"] = "None";
Name["12"] = "Spirit";
Name["13"] = "Player";
Name["14"] = "None";
Name["15"] = "None";
Name["16"] = "None";
Name["17"] = "Spirit";
Name["18"] = "None";
Name["19"] = "NoDialog";
Name["20"] = "None";
Name["21"] = "Spirit";
Name["22"] = "Player";
Name["23"] = "None";
Name["24"] = "None";
Name["25"] = "None";
Name["26"] = "Spirit";
Name["27"] = "None";
Name["28"] = "Spirit";
Name["29"] = "NoDialog";
Name["30"] = "Spirit";
Name["31"] = "Pherik";
Name["32"] = "Player";
Name["33"] = "None";
Name["34"] = "None";
Name["35"] = "None";
Name["36"] = "Pherik";
Name["37"] = "Pherik";
Name["38"] = "Pherik";
Name["39"] = "None";
Name["40"] = "Pherik";
Name["41"] = "None";
Dialog = new array();
Dialog["1"] = "The spirit is gone. There is nothing more that is worth investigating. Let us move on.";
Dialog["0"] = "";
Dialog["2"] = "(End of Dialog Branch 1)";
Dialog["3"] = "A shady shadow lies ahead. There seems to be an altar also... but its inscriptions are too small for me to read it here.";
Dialog["4"] = "Hark! Who goes there?";
Dialog["5"] = "(This is a spirit of the Dragon God of the earth. It values men of great courage and can sense your path of thoughts. Do not lie to it. Speak plainly, and you may be rewarded.)";
Dialog["6"] = "(Spirits are usually creatures of great agility. However, I suppose that I can probably outrun him should a battle breaks out.)";
Dialog["7"] = "(What should I say to the spirit?)";
Dialog["8"] = "I am a mere lost traveller. I mean no harm to you.";
Dialog["9"] = "I am an assassin on a quest to destroy an evil man.";
Dialog["10"] = "I am one who is like you, o spirit of the night.";
Dialog["11"] = "My name is irrevelent, but you are about to be served with punishment.";
Dialog["12"] = "Lier! I can sense deceit in your heart at this very moment. I have no patience with tricksters like you, so speak plainly, or speak no more!";
Dialog["13"] = "(The spirit seems agitated.)";
Dialog["14"] = "So be it then. Let us depart on seperate ways.";
Dialog["15"] = "You are a fool if you dare to command me. Die!";
Dialog["16"] = "I'll speak plainly then. I am on a quest to kill a man.";
Dialog["17"] = "I respect your wish. Farewell.";
Dialog["18"] = "(Wright Removed Ending.)";
Dialog["19"] = "(Wright Activated For Dishonorable Combat)";
Dialog["20"] = "(End of Dialog)";
Dialog["21"] = "Very well, I honor a man for his courage and not his disposition. I will offer you a test of strength. If you duel with me and wins, you shall gain possession of the treasures I guard. If you leave right now or run during the fight, you will never hear from me again. Do you accept my challenge?";
Dialog["22"] = "(Should I accept this challenge?)";
Dialog["23"] = "This is an interesting proposal. I accept your challenge.";
Dialog["24"] = "This is not a necessary fight. I decline.";
Dialog["25"] = "I am a man of strength. I need no proof for this.";
Dialog["26"] = "Come then, and let the battle begin. By honor I'll let you strike first.";
Dialog["27"] = "(End Of Dialog)";
Dialog["28"] = "...... such amazing confidence! You have convinced me of your strength. You are worthy of my treasures. My soul will rest well knowing that my possessions are in the right hands. Farewell.";
Dialog["29"] = "(Remove Wright)\r(Goto Ending)";
Dialog["30"] = "A daring one, aren't you? It has been eons since I have heard such blunt words spoken to my ears.";
Dialog["31"] = "How dare that you compare me to a wretched mortal like you! Know this, that I am Pherik, servent of Arkanis, Dragon God of the earth. Convince me of your worth, or face the wrath of the Gods!";
Dialog["32"] = "(Do not be intimitated. This is a test of reason.)";
Dialog["33"] = "I suppose that we are different, afterall. I shall leave.";
Dialog["34"] = "How can we be different? We are both kins of darkness.";
Dialog["35"] = "By your temper, I suppose that you are inferior to me, afterall.";
Dialog["36"] = "What an intelligent answer! I must say, you have earned my respect. I suppose that I can tell you my secret, then. When I was still alive, I was indeed the guardian of this forest. However, Xercius, an elementalist of incredible power, turned this place of life into one of sorrow and death.";
Dialog["37"] = "Without the bounty of the forest, I quickly withered and died. Before I depart to the next world, I vowed to protect this last holy ground and its treasures so that they will not fall into the wrong hands. I have waited for years; you will be the first and last who is worthy of my possessions.";
Dialog["38"] = "Make no mistake, I know your true intent for coming here... but I despise Xercius far more than you. I have no more words to say to you but farewell. May the blessings of Arkanis be with you.";
Dialog["39"] = "(End of Dialog)";
Dialog["40"] = "Inferior, am I? Draw your weapons and fight me! You will rue the day when your body becomes void of life!";
Dialog["41"] = "";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = -1;
Goto["3"] = 4;
Goto["4"] = 5;
Goto["5"] = 6;
Goto["6"] = 7;
Goto["7"] = 8;
Goto["8"] = 12;
Goto["9"] = 21;
Goto["10"] = 31;
Goto["11"] = 30;
Goto["12"] = 13;
Goto["13"] = 14;
Goto["14"] = 17;
Goto["15"] = 19;
Goto["16"] = 21;
Goto["17"] = 18;
Goto["18"] = -1;
Goto["19"] = 20;
Goto["20"] = -1;
Goto["21"] = 22;
Goto["22"] = 23;
Goto["23"] = 26;
Goto["24"] = 17;
Goto["25"] = 28;
Goto["26"] = 27;
Goto["27"] = -1;
Goto["28"] = 29;
Goto["29"] = 39;
Goto["30"] = 21;
Goto["31"] = 32;
Goto["32"] = 33;
Goto["33"] = 17;
Goto["34"] = 36;
Goto["35"] = 40;
Goto["36"] = 37;
Goto["37"] = 38;
Goto["38"] = 39;
Goto["39"] = -1;
Goto["40"] = 19;
Goto["41"] = 42;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 3;
Failto["2"] = -1;
Failto["3"] = 4;
Failto["4"] = 5;
Failto["5"] = 6;
Failto["6"] = 7;
Failto["7"] = 8;
Failto["8"] = 12;
Failto["9"] = 21;
Failto["10"] = 31;
Failto["11"] = 30;
Failto["12"] = 13;
Failto["13"] = 14;
Failto["14"] = 17;
Failto["15"] = 19;
Failto["16"] = 21;
Failto["17"] = 18;
Failto["18"] = -1;
Failto["19"] = 20;
Failto["20"] = -1;
Failto["21"] = 22;
Failto["22"] = 23;
Failto["23"] = 26;
Failto["24"] = 17;
Failto["25"] = 28;
Failto["26"] = 27;
Failto["27"] = -1;
Failto["28"] = 29;
Failto["29"] = 39;
Failto["30"] = 21;
Failto["31"] = 32;
Failto["32"] = 33;
Failto["33"] = 17;
Failto["34"] = 36;
Failto["35"] = 40;
Failto["36"] = 37;
Failto["37"] = 38;
Failto["38"] = 39;
Failto["39"] = -1;
Failto["40"] = 19;
Failto["41"] = 42;
Event = new array();
Event["1"] = "Simple";
Event["0"] = "Activate";
Event["2"] = "Simple";
Event["3"] = "Flag";
Event["4"] = "Simple";
Event["5"] = "Simple";
Event["6"] = "Simple";
Event["7"] = "MultipleChoice";
Event["8"] = "Simple";
Event["9"] = "Simple";
Event["10"] = "Simple";
Event["11"] = "Simple";
Event["12"] = "Simple";
Event["13"] = "MultipleChoice";
Event["14"] = "Simple";
Event["15"] = "Simple";
Event["16"] = "Simple";
Event["17"] = "Activate";
Event["18"] = "Simple";
Event["19"] = "Activate";
Event["20"] = "Simple";
Event["21"] = "Simple";
Event["22"] = "MultipleChoice";
Event["23"] = "Simple";
Event["24"] = "Simple";
Event["25"] = "Simple";
Event["26"] = "Flag";
Event["27"] = "Simple";
Event["28"] = "Activate";
Event["29"] = "Activate";
Event["30"] = "Simple";
Event["31"] = "Simple";
Event["32"] = "MultipleChoice";
Event["33"] = "Simple";
Event["34"] = "Simple";
Event["35"] = "Simple";
Event["36"] = "Wis";
Event["37"] = "Activate";
Event["38"] = "Activate";
Event["39"] = "Simple";
Event["40"] = "Simple";
Event["41"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = "RemoveWright";
EvtVar1["2"] = 0;
EvtVar1["3"] = "FoughtWright";
EvtVar1["4"] = 0;
EvtVar1["5"] = 0;
EvtVar1["6"] = 0;
EvtVar1["7"] = 8;
EvtVar1["8"] = 0;
EvtVar1["9"] = 0;
EvtVar1["10"] = 0;
EvtVar1["11"] = 0;
EvtVar1["12"] = 0;
EvtVar1["13"] = 14;
EvtVar1["14"] = 0;
EvtVar1["15"] = 0;
EvtVar1["16"] = 0;
EvtVar1["17"] = "RemoveWright";
EvtVar1["18"] = 0;
EvtVar1["19"] = "Enemy0";
EvtVar1["20"] = 0;
EvtVar1["21"] = 0;
EvtVar1["22"] = 23;
EvtVar1["23"] = 0;
EvtVar1["24"] = 0;
EvtVar1["25"] = 0;
EvtVar1["26"] = "HonorableFight";
EvtVar1["27"] = 0;
EvtVar1["28"] = "UnlockItems";
EvtVar1["29"] = "RemoveWright";
EvtVar1["30"] = 0;
EvtVar1["31"] = 0;
EvtVar1["32"] = 33;
EvtVar1["33"] = 0;
EvtVar1["34"] = 0;
EvtVar1["35"] = 0;
EvtVar1["36"] = 1;
EvtVar1["37"] = "UnlockItems";
EvtVar1["38"] = "RemoveWright";
EvtVar1["39"] = 0;
EvtVar1["40"] = 0;
EvtVar1["41"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = "True";
EvtVar2["4"] = 0;
EvtVar2["5"] = 0;
EvtVar2["6"] = 0;
EvtVar2["7"] = 11;
EvtVar2["8"] = 0;
EvtVar2["9"] = 0;
EvtVar2["10"] = 0;
EvtVar2["11"] = 0;
EvtVar2["12"] = 0;
EvtVar2["13"] = 16;
EvtVar2["14"] = 0;
EvtVar2["15"] = 0;
EvtVar2["16"] = 0;
EvtVar2["17"] = 0;
EvtVar2["18"] = 0;
EvtVar2["19"] = 0;
EvtVar2["20"] = 0;
EvtVar2["21"] = 0;
EvtVar2["22"] = 25;
EvtVar2["23"] = 0;
EvtVar2["24"] = 0;
EvtVar2["25"] = 0;
EvtVar2["26"] = "True";
EvtVar2["27"] = 0;
EvtVar2["28"] = 0;
EvtVar2["29"] = 0;
EvtVar2["30"] = 0;
EvtVar2["31"] = 0;
EvtVar2["32"] = 35;
EvtVar2["33"] = 0;
EvtVar2["34"] = 0;
EvtVar2["35"] = 0;
EvtVar2["36"] = 0;
EvtVar2["37"] = 0;
EvtVar2["38"] = 0;
EvtVar2["39"] = 0;
EvtVar2["40"] = 0;
EvtVar2["41"] = 0;
}
Instance of Symbol 1280 MovieClip "WrightDeath" in Frame 2028
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "Flag";
Prerequsite["0"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
PreVar1 = new array();
PreVar1["1"] = "HonorableFight";
PreVar1["0"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
Portrait = new array();
Portrait["1"] = "Wright";
Portrait["0"] = "None";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wright";
Portrait["4"] = "None";
Name = new array();
Name["1"] = "Spirit";
Name["0"] = "NoDialog";
Name["2"] = "NoDialog";
Name["3"] = "Spirit";
Name["4"] = "None";
Dialog = new array();
Dialog["1"] = "You have fought well, warrior. I am convinced of your strength. The treasures are yours.";
Dialog["0"] = "(Strength Bonus)";
Dialog["2"] = "(Unlock Items)";
Dialog["3"] = "Curse you... you may have won, but know that my wrath will follow you for the rest of your living days!...";
Dialog["4"] = "(End Of Dialog)";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = 4;
Goto["3"] = 4;
Goto["4"] = -1;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 1;
Failto["2"] = 4;
Failto["3"] = 4;
Failto["4"] = -1;
Event = new array();
Event["1"] = "None";
Event["0"] = "Str";
Event["2"] = "Activate";
Event["3"] = "None";
Event["4"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = 1;
EvtVar1["2"] = "UnlockItems";
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
}
Instance of Symbol 1282 MovieClip "UnlockItems" in Frame 2028
onClipEvent (load) {
Trigger = new array();
Trigger[0] = "FireballScroll";
Trigger[1] = "HealScroll";
Trigger[2] = "Gaunlet";
}
Instance of Symbol 1299 MovieClip in Frame 2028
onClipEvent (load) {
GuardHealth = 80;
GuardDamage = 7;
GuardSpeed = 8;
GuardSweep = 120;
GuardAlertDelay = 120;
DeathAction = "WrightDeath";
GuardRotation = 8;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
ActionSet["2"] = "StandStill";
Property = new array();
Property["0"] = 80;
Property["1"] = 0;
Property["2"] = 0;
UniversalID = 0;
}
Instance of Symbol 831 MovieClip in Frame 2028
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1079 MovieClip in Frame 2028
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1300 MovieClip in Frame 2028
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1301 MovieClip "Gaunlet" in Frame 2028
onClipEvent (load) {
UID = -1;
Type = "Secondary";
ItemNo = 6;
Amount = 1;
AutoTrigger = "False";
}
Frame 2038
stop();
Instance of Symbol 1302 MovieClip in Frame 2038
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room8";
HomePoint = 2;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1303 MovieClip in Frame 2038
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room16";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1075 MovieClip in Frame 2038
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 1000;
Property["1"] = 0;
UniversalID = 0;
}
Instance of Symbol 1304 MovieClip in Frame 2038
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "RotateClockwise";
ActionSet["2"] = "StandStill";
ActionSet["3"] = "RotateCounterClockwise";
ActionSet["4"] = "Recall";
Property = new array();
Property["0"] = 30;
Property["1"] = 120;
Property["2"] = 30;
Property["3"] = 0;
Property["4"] = 0;
UniversalID = 0;
}
Instance of Symbol 1305 MovieClip in Frame 2038
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Movement";
ActionSet["2"] = "StandStill";
ActionSet["3"] = "RotateCounterClockwise";
ActionSet["4"] = "Movement";
ActionSet["5"] = "StandStill";
ActionSet["6"] = "RotateCounterClockwise";
ActionSet["7"] = "Recall";
Property = new array();
Property["0"] = 30;
Property["1"] = 220;
Property["2"] = 20;
Property["3"] = -45;
Property["4"] = 220;
Property["5"] = 20;
Property["6"] = 135;
Property["7"] = 1;
UniversalID = 0;
}
Instance of Symbol 829 MovieClip in Frame 2038
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1306 MovieClip in Frame 2048
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "False";
HeldDown = "False";
Trigger = "Projectile0";
}
Instance of Symbol 1307 MovieClip in Frame 2048
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "False";
HeldDown = "False";
Trigger = "Projectile1";
}
Instance of Symbol 1308 MovieClip in Frame 2048
onClipEvent (load) {
SequenceRequest = 5;
SequenceIncrease = 6;
Trigger = "CaveIntro";
}
Instance of Symbol 1309 MovieClip "CaveIntro" in Frame 2048
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Wis";
Prerequsite["2"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = "Grt";
PreVar1["2"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 2;
PreVar2["2"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "None";
Dialog = new array();
Dialog["0"] = "The place is dark; it is easy to fall into strange traps if one doesn't look carefully.";
Dialog["1"] = "Under the light of the torch, I can see two to three raising platforms that may trigger a trap.";
Dialog["2"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = -1;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = -1;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
}
Instance of Symbol 1310 MovieClip in Frame 2048
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room12";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1311 MovieClip in Frame 2048
onClipEvent (load) {
Health = 12;
Damage = 7;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Instance of Symbol 830 MovieClip in Frame 2048
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 831 MovieClip in Frame 2048
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 945 MovieClip "Home1" in Frame 2048
onClipEvent (load) {
UniversalID = 0;
}
Instance of Symbol 1313 MovieClip "Projectile1" in Frame 2048
onClipEvent (load) {
Speed = 20;
Damage = 6;
Bounce = 0;
}
Instance of Symbol 1314 MovieClip "Projectile0" in Frame 2048
onClipEvent (load) {
Speed = 20;
Damage = 6;
Bounce = 0;
}
Instance of Symbol 1315 MovieClip "Rumble" in Frame 2048
onClipEvent (load) {
ClipName = "Rumble";
}
Instance of Symbol 1316 MovieClip "Water" in Frame 2048
onClipEvent (load) {
ClipName = "WaterSrc";
}
Frame 2049
Rumble.StopClip();
stop();
Instance of Symbol 1319 MovieClip in Frame 2058
onClipEvent (load) {
FallToDeath = "True";
Damage = 0;
Teleport = "Undefined";
}
Instance of Symbol 1321 MovieClip in Frame 2058
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room14";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1322 MovieClip in Frame 2058
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "False";
Trigger = "CaveClues";
}
Instance of Symbol 1323 MovieClip "CaveClues" in Frame 2058
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "None";
Prerequsite["2"] = "Wis";
Prerequsite["3"] = "Wis";
Prerequsite["4"] = "Wis";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = 0;
PreVar1["2"] = "Grt";
PreVar1["3"] = "Grt";
PreVar1["4"] = "Grt";
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
PreVar2["2"] = 2;
PreVar2["3"] = 1;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
Portrait = new array();
Portrait["1"] = "Wolf";
Portrait["0"] = "Wolf";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wolf";
Portrait["4"] = "Wolf";
Portrait["5"] = "None";
Portrait["6"] = "None";
Name = new array();
Name["1"] = "Player";
Name["0"] = "Player";
Name["2"] = "Player";
Name["3"] = "Player";
Name["4"] = "Player";
Name["5"] = "None";
Name["6"] = "None";
Dialog = new array();
Dialog["1"] = "I suppose that if I knock around, one of the pillars would probably cave in to fill the gap of the chasm. However, there is a high risk of injury if I don't escape from the area while the cave in occurs.";
Dialog["0"] = "The chasm in front of me looks deep and unclimbable. I have to find another way past this obstacle...";
Dialog["2"] = "However, I can hear sounds of water from the East. Perhaps an investigation on the walls on that side might prove to be interesting.";
Dialog["3"] = "However, I think that there should be a less dangerous alternative... afterall, this cavern is being built elaborately as a secret passage. There must be some hidden trigger or clogged entrance to other areas that I must search and discover.";
Dialog["4"] = "However, I have a hunch that there is another way to cross this chasm without creating such a commotion.";
Dialog["5"] = "(End Of Dialog)";
Dialog["6"] = "";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = 5;
Goto["3"] = 5;
Goto["4"] = 5;
Goto["5"] = -1;
Goto["6"] = 7;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 1;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = 5;
Failto["5"] = -1;
Failto["6"] = 7;
Event = new array();
Event["1"] = "None";
Event["0"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "None";
Event["4"] = "Simple";
Event["5"] = "Simple";
Event["6"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar1["5"] = 0;
EvtVar1["6"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
EvtVar2["5"] = 0;
EvtVar2["6"] = 0;
}
Instance of Symbol 1324 MovieClip "Enemy2" in Frame 2058
onClipEvent (load) {
Health = 12;
Damage = 7;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Instance of Symbol 1324 MovieClip "Enemy3" in Frame 2058
onClipEvent (load) {
Health = 12;
Damage = 7;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Instance of Symbol 1325 MovieClip in Frame 2058
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room11";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1326 MovieClip in Frame 2058
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room13";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1327 MovieClip "Enemy1" in Frame 2058
onClipEvent (load) {
Health = 1;
Trigger = "RoomCollapse";
}
Instance of Symbol 1328 MovieClip "Enemy0" in Frame 2058
onClipEvent (load) {
Health = 1;
Trigger = "CollapseWall";
}
Instance of Symbol 833 MovieClip in Frame 2058
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 833 MovieClip in Frame 2058
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 945 MovieClip "Home2" in Frame 2058
onClipEvent (load) {
UniversalID = 0;
}
Instance of Symbol 1348 MovieClip "RoomCollapse" in Frame 2058
onClipEvent (load) {
Trigger = new array();
Trigger[0] = "RockFall";
Trigger[1] = "Pole";
Trigger[2] = "Rock1";
Trigger[3] = "Rock2";
Trigger[4] = "Rock3";
Trigger[5] = "Rock4";
}
Instance of Symbol 1351 MovieClip "Rock1" in Frame 2058
onClipEvent (load) {
ActivationDelay = 20;
Damage = 8;
RandomLocation = "True";
RandomDelay = "True";
Continuous = "True";
}
Instance of Symbol 1351 MovieClip "Rock2" in Frame 2058
onClipEvent (load) {
ActivationDelay = 20;
Damage = 8;
RandomLocation = "True";
RandomDelay = "True";
Continuous = "True";
}
Instance of Symbol 1351 MovieClip "Rock3" in Frame 2058
onClipEvent (load) {
ActivationDelay = 20;
Damage = 8;
RandomLocation = "True";
RandomDelay = "True";
Continuous = "True";
}
Instance of Symbol 1351 MovieClip "Rock4" in Frame 2058
onClipEvent (load) {
ActivationDelay = 20;
Damage = 8;
RandomLocation = "True";
RandomDelay = "True";
Continuous = "True";
}
Frame 2059
if (RockFall.Set) {
nextFrame();
stop();
}
stop();
Instance of Symbol 1311 MovieClip in Frame 2060
onClipEvent (load) {
Health = 12;
Damage = 7;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Instance of Symbol 1311 MovieClip in Frame 2060
onClipEvent (load) {
Health = 12;
Damage = 7;
Speed = 8;
Rotation = 40;
ActivationDelay = 30;
Strength = 10;
}
Instance of Symbol 831 MovieClip in Frame 2060
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Frame 2069
stop();
_level0.Water.setVolume(100);
Instance of Symbol 1357 MovieClip in Frame 2069
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room12";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1358 MovieClip in Frame 2069
onClipEvent (load) {
UID = -1;
Type = "Primary";
ItemNo = 4;
Amount = 1;
AutoTrigger = "True";
}
Instance of Symbol 1359 MovieClip in Frame 2069
onClipEvent (load) {
UID = -1;
Type = "Secondary";
ItemNo = 4;
Amount = 1;
AutoTrigger = "True";
}
Instance of Symbol 1360 MovieClip in Frame 2069
onClipEvent (load) {
ActivationAmount = 1;
Trigger = "AllSpells";
Visible = "False";
}
Instance of Symbol 1361 MovieClip in Frame 2069
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "False";
Trigger = "FoundSecret";
}
Instance of Symbol 1362 MovieClip "FoundSecret" in Frame 2069
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "Wis";
Prerequsite["0"] = "None";
Prerequsite["2"] = "Wis";
Prerequsite["3"] = "None";
Prerequsite["4"] = "Wis";
Prerequsite["5"] = "None";
PreVar1 = new array();
PreVar1["1"] = "Grt";
PreVar1["0"] = 0;
PreVar1["2"] = "Grt";
PreVar1["3"] = 0;
PreVar1["4"] = "Grt";
PreVar1["5"] = 0;
PreVar2 = new array();
PreVar2["1"] = 2;
PreVar2["0"] = 0;
PreVar2["2"] = 3;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
Portrait = new array();
Portrait["1"] = "Wolf";
Portrait["0"] = "Wolf";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wolf";
Portrait["4"] = "Wolf";
Portrait["5"] = "None";
Name = new array();
Name["1"] = "Player";
Name["0"] = "Player";
Name["2"] = "Player";
Name["3"] = "Player";
Name["4"] = "Player";
Name["5"] = "None";
Dialog = new array();
Dialog["1"] = "Look at the wall to the North! There are rune marks of some magical nature... it seems to be interesting enough for further investigation.";
Dialog["0"] = "I just knew that a secret passage like this exists! I surmise that this is the very passage that Xercius uses to travel to and from different areas of the forest. Watch the steps, however. The mud around the waterfall is slippery and might cause the unweary to fall into the chasm.";
Dialog["2"] = "Hmm. This is what the rune does: it creates an illusionary wall that can be dispelled by touch, but it also trigger another spell...";
Dialog["3"] = "(End Of Dialog)";
Dialog["4"] = "However, I have a hunch that there is another way to cross this chasm without creating such a commotion.";
Dialog["5"] = "(End Of Dialog)";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = 3;
Goto["3"] = -1;
Goto["4"] = 5;
Goto["5"] = -1;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 1;
Failto["2"] = 3;
Failto["3"] = -1;
Failto["4"] = 5;
Failto["5"] = -1;
Event = new array();
Event["1"] = "None";
Event["0"] = "Wis";
Event["2"] = "Simple";
Event["3"] = "None";
Event["4"] = "Simple";
Event["5"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = 1;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar1["5"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
EvtVar2["5"] = 0;
}
Instance of Symbol 832 MovieClip in Frame 2069
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 830 MovieClip in Frame 2069
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 831 MovieClip in Frame 2069
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1374 MovieClip "RockTrap" in Frame 2069
onClipEvent (load) {
ActivationDelay = 10;
Damage = 8;
RandomLocation = "False";
RandomDelay = "False";
Continuous = "False";
}
Instance of Symbol 1375 MovieClip "AllSpells" in Frame 2069
onClipEvent (load) {
Trigger = new array();
Trigger[0] = "Illusion";
Trigger[1] = "RockTrap";
}
Frame 2070
stop();
_level0.Water.setVolume(100);
Instance of Symbol 833 MovieClip in Frame 2070
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 833 MovieClip in Frame 2070
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Frame 2079
stop();
Instance of Symbol 1376 MovieClip in Frame 2079
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room12";
HomePoint = 2;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1377 MovieClip in Frame 2079
onClipEvent (load) {
ActivationDelay = 5;
Destination = "Room15";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1378 MovieClip in Frame 2079
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "False";
Trigger = "AllFlames";
}
Instance of Symbol 1379 MovieClip "FlameHint" in Frame 2079
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "None";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
Portrait = new array();
Portrait["1"] = "None";
Portrait["0"] = "Wolf";
Name = new array();
Name["1"] = "None";
Name["0"] = "Player";
Dialog = new array();
Dialog["1"] = "";
Dialog["0"] = "The streams of fire to the west are flame streams. They are either formed by magic or by natural volcanic reactions. Their patterns are very regular, and most of them can be dodged.";
Goto = new array();
Goto["1"] = -1;
Goto["0"] = 1;
Failto = new array();
Failto["1"] = -1;
Failto["0"] = 1;
Event = new array();
Event["1"] = "Simple";
Event["0"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
}
Instance of Symbol 1200 MovieClip in Frame 2079
onClipEvent (load) {
Health = 22;
Damage = 3;
Speed = 3;
Rotation = 3;
Lurk = "True";
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Recall";
Property = new array();
Property["0"] = 80;
Property["1"] = 0;
Strength = 5;
}
Instance of Symbol 1380 MovieClip in Frame 2079
onClipEvent (load) {
Health = 30;
Damage = 5;
Speed = 5;
Rotation = 5;
Lurk = "False";
ActionSet = new array();
ActionSet["0"] = "Movement";
ActionSet["1"] = "RotateClockwise";
ActionSet["2"] = "Movement";
ActionSet["3"] = "RotateClockwise";
ActionSet["4"] = "Recall";
Property = new array();
Property["0"] = 130;
Property["1"] = -90;
Property["2"] = 130;
Property["3"] = 90;
Property["4"] = 0;
Strength = 5;
}
Instance of Symbol 1381 MovieClip "Flame2" in Frame 2079
onClipEvent (load) {
Dodgable = "True";
ActivationDelay = 15;
Damage = 8;
Continuous = "True";
}
Instance of Symbol 1382 MovieClip "AllFlames" in Frame 2079
onClipEvent (load) {
Trigger = new array();
Trigger[0] = "Flame1Timer";
Trigger[1] = "Flame2";
Trigger[2] = "FlameHint";
}
Instance of Symbol 1381 MovieClip "Flame1" in Frame 2079
onClipEvent (load) {
Dodgable = "True";
ActivationDelay = 15;
Damage = 8;
Continuous = "True";
}
Instance of Symbol 1384 MovieClip "Flame1Timer" in Frame 2079
onClipEvent (load) {
ActivationDelay = 20;
Trigger = "Flame1";
}
Instance of Symbol 829 MovieClip in Frame 2079
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1079 MovieClip in Frame 2079
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 831 MovieClip in Frame 2079
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1388 MovieClip in Frame 2089
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room16";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1392 MovieClip in Frame 2089
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 1300 MovieClip in Frame 2089
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 945 MovieClip "Home1" in Frame 2089
onClipEvent (load) {
UniversalID = 0;
}
Frame 2103
stop();
Frame 2113
stop();
Instance of Symbol 1393 MovieClip in Frame 2113
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room15a";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1394 MovieClip in Frame 2113
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room17";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1395 MovieClip "coins" in Frame 2113
onClipEvent (load) {
UID = 4;
Type = "Special";
ItemNo = 6;
Amount = 1;
AutoTrigger = "False";
}
Instance of Symbol 1396 MovieClip in Frame 2113
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 6;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 6;
ActionSet = new array();
ActionSet["0"] = "Movement";
ActionSet["1"] = "RotateClockwise";
ActionSet["2"] = "Movement";
ActionSet["3"] = "RotateClockwise";
ActionSet["4"] = "Recall";
Property = new array();
Property["0"] = 370;
Property["1"] = 180;
Property["2"] = 370;
Property["3"] = 0;
Property["4"] = 0;
UniversalID = 0;
}
Instance of Symbol 1397 MovieClip in Frame 2113
onClipEvent (load) {
GuardHealth = 20;
GuardDamage = 5;
GuardSpeed = 4;
GuardSweep = 90;
GuardAlertDelay = 80;
DeathAction = "coins";
GuardRotation = 4;
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "RotateCounterClockwise";
ActionSet["2"] = "StandStill";
ActionSet["3"] = "RotateClockwise";
ActionSet["4"] = "StandStill";
ActionSet["5"] = "RotateClockwise";
ActionSet["6"] = "Recall";
Property = new array();
Property["0"] = 30;
Property["1"] = 0;
Property["2"] = 30;
Property["3"] = 90;
Property["4"] = 30;
Property["5"] = 180;
Property["6"] = 0;
UniversalID = 0;
}
Instance of Symbol 1300 MovieClip in Frame 2113
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1392 MovieClip in Frame 2113
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 1398 MovieClip in Frame 2113
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1399 MovieClip in Frame 2123
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "True";
Trigger = "SaveDialog";
}
Instance of Symbol 1400 MovieClip in Frame 2123
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room18";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1401 MovieClip in Frame 2123
onClipEvent (load) {
ActivationAmount = 5;
Trigger = "RestoreHealth";
Visible = "False";
}
Instance of Symbol 1402 MovieClip "SaveDialog" in Frame 2123
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "None";
Prerequsite["2"] = "Wis";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 0;
PreVar1["2"] = "Grt";
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "None";
Portrait["2"] = "Wolf";
Portrait["3"] = "None";
Portrait["4"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "None";
Name["2"] = "Player";
Name["3"] = "NoDialog";
Name["4"] = "None";
Dialog = new array();
Dialog["0"] = "This place seems peaceful enough to rest. Let me record this journey so far into my scroll.";
Dialog["1"] = "Write down the two sections of this journal to record the game progress. You can use the copy and paste commands; however, you will not be able to use any keyboard shortcuts if you try to copy and paste.";
Dialog["2"] = "This fountain is dedicated to Xovina, Dragon Goddess of water and life. Its water has health restoring qualities.";
Dialog["3"] = "(Jump to save room)";
Dialog["4"] = "(End Of Dialog)";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 3;
Goto["3"] = 4;
Goto["4"] = -1;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = -1;
Event = new array();
Event["0"] = "None";
Event["1"] = "Save";
Event["2"] = "Simple";
Event["3"] = "SkipAndPlay";
Event["4"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = "SaveRoom";
EvtVar1["4"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
}
Instance of Symbol 1403 MovieClip "RestoreHealth" in Frame 2123
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "None";
Prerequsite["2"] = "Wis";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 0;
PreVar1["2"] = "Grt";
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "Wolf";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "Player";
Dialog = new array();
Dialog["0"] = "The water is bitter-sweet, but I feel strengthened.";
Dialog["1"] = "(End Of Dialog)";
Dialog["2"] = "This fountain is dedicated to Xovina, Dragon Goddess of water and life. Its water has health restoring qualities.";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = -1;
Goto["2"] = 0;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = -1;
Failto["2"] = 0;
Event = new array();
Event["0"] = "HP";
Event["1"] = "Simple";
Event["2"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 5;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
}
Instance of Symbol 1392 MovieClip in Frame 2123
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 1392 MovieClip in Frame 2123
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 1404 MovieClip "Home0" in Frame 2123
onClipEvent (load) {
UniversalID = 0;
}
Frame 2124
stop();
Frame 2134
stop();
Frame 2145
stop();
Instance of Symbol 1415 MovieClip in Frame 2145
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "True";
Trigger = "TrevorFight";
}
Instance of Symbol 1416 MovieClip "TrevorFight" in Frame 2145
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "_root.DeadMeat";
Subscribe["8"] = "_root";
Subscribe["9"] = "";
Subscribe["10"] = 6;
Action = new array();
Action["0"] = "Speak";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Nothing";
Action["7"] = "Nothing";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Speak";
Action["11"] = "Movement";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Turn";
Action["21"] = "Special";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Special";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Movement";
Action["31"] = "Movement";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "Turn";
Action["41"] = "Special";
Action["42"] = "Nothing";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "Special";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Nothing";
Action["51"] = "Turn";
Action["52"] = "Nothing";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Nothing";
Action["58"] = "Special";
Action["59"] = "Nothing";
Action["60"] = "Recall";
Action["61"] = "Nothing";
Action["62"] = "Nothing";
Action["63"] = "Nothing";
Action["64"] = "Nothing";
Action["65"] = "Nothing";
Action["66"] = "Nothing";
Action["67"] = "Nothing";
Action["68"] = "Nothing";
Action["69"] = "Nothing";
Action["70"] = "Nothing";
Action["71"] = "Nothing";
Action["72"] = "Nothing";
Action["73"] = "Nothing";
Action["74"] = "Nothing";
Action["75"] = "Nothing";
Action["76"] = "Nothing";
Action["77"] = "Nothing";
Action["78"] = "Nothing";
Action["79"] = "Nothing";
Action["80"] = "Nothing";
Action["81"] = "Nothing";
Action["82"] = "Nothing";
Action["83"] = "Nothing";
Action["84"] = "Nothing";
Action["85"] = "Nothing";
Action["86"] = "Nothing";
Action["87"] = "Nothing";
Action["88"] = "Nothing";
Action["89"] = "Nothing";
Action["90"] = "Nothing";
Action["91"] = "Nothing";
Action["92"] = "Nothing";
Action["93"] = "Nothing";
Action["94"] = "Nothing";
Action["95"] = "Nothing";
Action["96"] = "Nothing";
Action["97"] = "Nothing";
Action["98"] = "Nothing";
Action["99"] = "Nothing";
Const = new array();
Const["0"] = "Heavy footsteps... someone is coming.";
Const["1"] = "";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "";
Const["7"] = "";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "I'd better hide myself.";
Const["11"] = 8;
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = -45;
Const["21"] = "Jump Back";
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = "Attack";
Const["28"] = "";
Const["29"] = "";
Const["30"] = 160;
Const["31"] = 8;
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Const["40"] = 45;
Const["41"] = "Charge";
Const["42"] = "";
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "Death";
Const["48"] = "";
Const["49"] = "";
Const["50"] = "";
Const["51"] = 45;
Const["52"] = "";
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "";
Const["58"] = "Room17a";
Const["59"] = "";
Const["60"] = "";
Const["61"] = "";
Const["62"] = "";
Const["63"] = "";
Const["64"] = "";
Const["65"] = "";
Const["66"] = "";
Const["67"] = "";
Const["68"] = "";
Const["69"] = "";
Const["70"] = "";
Const["71"] = "";
Const["72"] = "";
Const["73"] = "";
Const["74"] = "";
Const["75"] = "";
Const["76"] = "";
Const["77"] = "";
Const["78"] = "";
Const["79"] = "";
Const["80"] = "";
Const["81"] = "";
Const["82"] = "";
Const["83"] = "";
Const["84"] = "";
Const["85"] = "";
Const["86"] = "";
Const["87"] = "";
Const["88"] = "";
Const["89"] = "";
Const["90"] = "";
Const["91"] = "";
Const["92"] = "";
Const["93"] = "";
Const["94"] = "";
Const["95"] = "";
Const["96"] = "";
Const["97"] = "";
Const["98"] = "";
Const["99"] = "";
Param = new array();
Param["0"] = "";
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = "";
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = "";
Param["11"] = 300;
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = 180;
Param["21"] = 30;
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = 19;
Param["28"] = "";
Param["29"] = "";
Param["30"] = 160;
Param["31"] = 50;
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
Param["40"] = -45;
Param["41"] = 25;
Param["42"] = "";
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = 40;
Param["48"] = "";
Param["49"] = "";
Param["50"] = "";
Param["51"] = 135;
Param["52"] = "";
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = "";
Param["58"] = 1;
Param["59"] = "";
Param["60"] = "";
Param["61"] = "";
Param["62"] = "";
Param["63"] = "";
Param["64"] = "";
Param["65"] = "";
Param["66"] = "";
Param["67"] = "";
Param["68"] = "";
Param["69"] = "";
Param["70"] = "";
Param["71"] = "";
Param["72"] = "";
Param["73"] = "";
Param["74"] = "";
Param["75"] = "";
Param["76"] = "";
Param["77"] = "";
Param["78"] = "";
Param["79"] = "";
Param["80"] = "";
Param["81"] = "";
Param["82"] = "";
Param["83"] = "";
Param["84"] = "";
Param["85"] = "";
Param["86"] = "";
Param["87"] = "";
Param["88"] = "";
Param["89"] = "";
Param["90"] = "";
Param["91"] = "";
Param["92"] = "";
Param["93"] = "";
Param["94"] = "";
Param["95"] = "";
Param["96"] = "";
Param["97"] = "";
Param["98"] = "";
Param["99"] = "";
}
Instance of Symbol 1463 MovieClip "Enemy0" in Frame 2145
onClipEvent (load) {
MaxHealth = 80;
DeathAction = "TrevorRun";
}
Instance of Symbol 1398 MovieClip in Frame 2145
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1245 MovieClip in Frame 2145
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 945 MovieClip "Home0" in Frame 2145
onClipEvent (load) {
UniversalID = 0;
}
Instance of Symbol 945 MovieClip "Home1" in Frame 2145
onClipEvent (load) {
UniversalID = 0;
}
Frame 2155
CurrentLocation = "Room17a";
Frame 2160
stop();
Instance of Symbol 1464 MovieClip "FalseAmulet" in Frame 2160
onClipEvent (load) {
UID = -1;
Type = "Special";
ItemNo = 4;
Amount = 1;
AutoTrigger = "False";
}
Instance of Symbol 1465 MovieClip in Frame 2160
onClipEvent (load) {
ActivationDelay = 0;
Destination = "RxNiU";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1466 MovieClip in Frame 2160
onClipEvent (load) {
SequenceRequest = 6;
SequenceIncrease = -1;
Trigger = "TrevorDialog";
}
Instance of Symbol 1467 MovieClip "TrueAmulet" in Frame 2160
onClipEvent (load) {
UID = -1;
Type = "Special";
ItemNo = 4;
Amount = 1;
AutoTrigger = "False";
}
Instance of Symbol 1468 MovieClip "TrevorDialog" in Frame 2160
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "None";
Prerequsite["2"] = "Wis";
Prerequsite["3"] = "Wis";
Prerequsite["4"] = "None";
Prerequsite["-1"] = "None";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
Prerequsite["7"] = "None";
Prerequsite["8"] = "None";
Prerequsite["9"] = "None";
Prerequsite["10"] = "None";
Prerequsite["11"] = "None";
Prerequsite["12"] = "Wis";
Prerequsite["13"] = "None";
Prerequsite["14"] = "None";
Prerequsite["15"] = "None";
Prerequsite["16"] = "None";
Prerequsite["17"] = "None";
Prerequsite["18"] = "None";
Prerequsite["19"] = "None";
Prerequsite["20"] = "None";
Prerequsite["21"] = "None";
Prerequsite["22"] = "Dex";
Prerequsite["23"] = "None";
Prerequsite["24"] = "None";
Prerequsite["25"] = "None";
Prerequsite["26"] = "None";
Prerequsite["27"] = "None";
Prerequsite["28"] = "None";
Prerequsite["29"] = "None";
Prerequsite["30"] = "None";
Prerequsite["31"] = "None";
Prerequsite["32"] = "None";
Prerequsite["33"] = "None";
Prerequsite["34"] = "None";
Prerequsite["35"] = "None";
Prerequsite["36"] = "None";
Prerequsite["37"] = "None";
Prerequsite["38"] = "None";
Prerequsite["39"] = "None";
Prerequsite["40"] = "Wis";
Prerequsite["41"] = "None";
Prerequsite["42"] = "None";
Prerequsite["43"] = "None";
Prerequsite["44"] = "None";
Prerequsite["45"] = "None";
Prerequsite["46"] = "None";
Prerequsite["47"] = "None";
Prerequsite["48"] = "None";
Prerequsite["49"] = "None";
Prerequsite["50"] = "None";
Prerequsite["51"] = "None";
Prerequsite["52"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 0;
PreVar1["2"] = "Lst";
PreVar1["3"] = "Grt";
PreVar1["4"] = 0;
PreVar1["-1"] = 0;
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar1["7"] = 0;
PreVar1["8"] = 0;
PreVar1["9"] = 0;
PreVar1["10"] = 0;
PreVar1["11"] = 0;
PreVar1["12"] = "Lst";
PreVar1["13"] = 0;
PreVar1["14"] = 0;
PreVar1["15"] = 0;
PreVar1["16"] = 0;
PreVar1["17"] = 0;
PreVar1["18"] = 0;
PreVar1["19"] = 0;
PreVar1["20"] = 0;
PreVar1["21"] = 0;
PreVar1["22"] = "Grt";
PreVar1["23"] = 0;
PreVar1["24"] = 0;
PreVar1["25"] = 0;
PreVar1["26"] = 0;
PreVar1["27"] = 0;
PreVar1["28"] = 0;
PreVar1["29"] = 0;
PreVar1["30"] = 0;
PreVar1["31"] = 0;
PreVar1["32"] = 0;
PreVar1["33"] = 0;
PreVar1["34"] = 0;
PreVar1["35"] = 0;
PreVar1["36"] = 0;
PreVar1["37"] = 0;
PreVar1["38"] = 0;
PreVar1["39"] = 0;
PreVar1["40"] = "Grt";
PreVar1["41"] = 0;
PreVar1["42"] = 0;
PreVar1["43"] = 0;
PreVar1["44"] = 0;
PreVar1["45"] = 0;
PreVar1["46"] = 0;
PreVar1["47"] = 0;
PreVar1["48"] = 0;
PreVar1["49"] = 0;
PreVar1["50"] = 0;
PreVar1["51"] = 0;
PreVar1["52"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 2;
PreVar2["3"] = 3;
PreVar2["4"] = 0;
PreVar2["-1"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
PreVar2["7"] = 0;
PreVar2["8"] = 0;
PreVar2["9"] = 0;
PreVar2["10"] = 0;
PreVar2["11"] = 0;
PreVar2["12"] = 4;
PreVar2["13"] = 0;
PreVar2["14"] = 0;
PreVar2["15"] = 0;
PreVar2["16"] = 0;
PreVar2["17"] = 0;
PreVar2["18"] = 0;
PreVar2["19"] = 0;
PreVar2["20"] = 0;
PreVar2["21"] = 0;
PreVar2["22"] = 1;
PreVar2["23"] = 0;
PreVar2["24"] = 0;
PreVar2["25"] = 0;
PreVar2["26"] = 0;
PreVar2["27"] = 0;
PreVar2["28"] = 0;
PreVar2["29"] = 0;
PreVar2["30"] = 0;
PreVar2["31"] = 0;
PreVar2["32"] = 0;
PreVar2["33"] = 0;
PreVar2["34"] = 0;
PreVar2["35"] = 0;
PreVar2["36"] = 0;
PreVar2["37"] = 0;
PreVar2["38"] = 0;
PreVar2["39"] = 0;
PreVar2["40"] = 1;
PreVar2["41"] = 0;
PreVar2["42"] = 0;
PreVar2["43"] = 0;
PreVar2["44"] = 0;
PreVar2["45"] = 0;
PreVar2["46"] = 0;
PreVar2["47"] = 0;
PreVar2["48"] = 0;
PreVar2["49"] = 0;
PreVar2["50"] = 0;
PreVar2["51"] = 0;
PreVar2["52"] = 0;
Portrait = new array();
Portrait["0"] = "Trevor";
Portrait["1"] = "Trevor";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wolf";
Portrait["4"] = "Wolf";
Portrait["-1"] = "None";
Portrait["5"] = "Wolf";
Portrait["6"] = "None";
Portrait["7"] = "None";
Portrait["8"] = "None";
Portrait["9"] = "None";
Portrait["10"] = "None";
Portrait["11"] = "Trevor";
Portrait["12"] = "Wolf";
Portrait["13"] = "Wolf";
Portrait["14"] = "Wolf";
Portrait["15"] = "Trevor";
Portrait["16"] = "Trevor";
Portrait["17"] = "Wolf";
Portrait["18"] = "None";
Portrait["19"] = "None";
Portrait["20"] = "None";
Portrait["21"] = "None";
Portrait["22"] = "Trevor";
Portrait["23"] = "Trevor";
Portrait["24"] = "Trevor";
Portrait["25"] = "Trevor";
Portrait["26"] = "None";
Portrait["27"] = "None";
Portrait["28"] = "None";
Portrait["29"] = "None";
Portrait["30"] = "Trevor";
Portrait["31"] = "Trevor";
Portrait["32"] = "Trevor";
Portrait["33"] = "Wolf";
Portrait["34"] = "None";
Portrait["35"] = "None";
Portrait["36"] = "None";
Portrait["37"] = "None";
Portrait["38"] = "None";
Portrait["39"] = "Trevor";
Portrait["40"] = "Wolf";
Portrait["41"] = "Trevor";
Portrait["42"] = "Wolf";
Portrait["43"] = "Trevor";
Portrait["44"] = "Trevor";
Portrait["45"] = "Trevor";
Portrait["46"] = "Wolf";
Portrait["47"] = "None";
Portrait["48"] = "None";
Portrait["49"] = "None";
Portrait["50"] = "Trevor";
Portrait["51"] = "Trevor";
Portrait["52"] = "None";
Name = new array();
Name["0"] = "Warrior";
Name["1"] = "Warrior";
Name["2"] = "Player";
Name["3"] = "Player";
Name["4"] = "Player";
Name["-1"] = "None";
Name["5"] = "Player";
Name["6"] = "None";
Name["7"] = "None";
Name["8"] = "None";
Name["9"] = "None";
Name["10"] = "None";
Name["11"] = "Warrior";
Name["12"] = "Player";
Name["13"] = "Player";
Name["14"] = "Player";
Name["15"] = "Trevor";
Name["16"] = "Trevor";
Name["17"] = "Player";
Name["18"] = "None";
Name["19"] = "None";
Name["20"] = "None";
Name["21"] = "None";
Name["22"] = "Trevor";
Name["23"] = "Trevor";
Name["24"] = "Trevor";
Name["25"] = "Trevor";
Name["26"] = "None";
Name["27"] = "NoDialog";
Name["28"] = "None";
Name["29"] = "None";
Name["30"] = "Trevor";
Name["31"] = "Trevor";
Name["32"] = "Warrior";
Name["33"] = "Player";
Name["34"] = "None";
Name["35"] = "None";
Name["36"] = "None";
Name["37"] = "NoDialog";
Name["38"] = "None";
Name["39"] = "Warrior";
Name["40"] = "Player";
Name["41"] = "Trevor";
Name["42"] = "Player";
Name["43"] = "Trevor";
Name["44"] = "Trevor";
Name["45"] = "Trevor";
Name["46"] = "Player";
Name["47"] = "None";
Name["48"] = "None";
Name["49"] = "None";
Name["50"] = "Trevor";
Name["51"] = "Trevor";
Name["52"] = "None";
Dialog = new array();
Dialog["0"] = "Come of of here, you rotten roden! I can see where you are hiding from here!";
Dialog["1"] = "Speak. Who are you, and what business do you have in this rotten hellhole?";
Dialog["2"] = "(What an arrogant idiot! I'll silence him before he can make his next annoying insult!)";
Dialog["3"] = "(This man is full of himself... play along with his self appraisal but don't do it bluntly, and there will be benefits out of this engagement. He is a worthy fighter and a negative conflict should be avoided.)";
Dialog["4"] = "(This man is a worthy fighter. A conflict could be avoided if I bluff on my strengths.)";
Dialog["-1"] = "";
Dialog["5"] = "(Make a response.)";
Dialog["6"] = "I am a lost wanderer of the night. Perhaps you can help me find my way out.";
Dialog["7"] = "I am a fighter, and a worthy one at that. I'm not afraid of you, swine.";
Dialog["8"] = "I am a servant of the night and where I'm going is none of your business.";
Dialog["9"] = "Worthy warrior, I'm but a simple man. Show mercy!";
Dialog["10"] = "You bastard child of an orc, come and face my wrath!";
Dialog["11"] = "Hmm, I dare say that you are a queer one, even from my host of experiences. No ordinary traveller with a right mind would trend this path of darkness. Come, be honest with me now. What is your business here?";
Dialog["12"] = "(Should I tell him the truth?)";
Dialog["13"] = "I will speak plainly then. I have been hired to seek the cursed mausoleum deep inside this forest and to slay Xercius the elementalist inside.";
Dialog["14"] = "My intention here is none of your business; I suggest that you'd leave me alone and I'd do the same to you.";
Dialog["15"] = "What a coincidence! I am here to slay the infamous Xercius myself. Perhaps we can use the company of each other, afterall. Allow me to properly introduce myself. I am Trevor, a warrior dedicated to the cause of Marchius, the Dragon God of light. I would have invited you to join me, but our disposition is... quite different.";
Dialog["16"] = "I suppose that I will meet you inside the mausoleum then. Do you have any business with me before I move on?";
Dialog["17"] = "(What help should I request?)";
Dialog["18"] = "Perhaps you can show me a fighting stance or two.";
Dialog["19"] = "Any spell scrolls that you have found along the way would help.";
Dialog["20"] = "I can use any information that you have about this area.";
Dialog["21"] = "Please take no offense, but I do not need any help.";
Dialog["22"] = "(Trevor shows a jab)";
Dialog["23"] = "(learned skill)";
Dialog["24"] = "(Trevor gives amulet)";
Dialog["25"] = "Before I go, take this amulet. It will let me know when you are nearby, so that I can help you when you are in need of help. Until we meet again, take care, my friend.";
Dialog["26"] = "(Trevor goes away)";
Dialog["27"] = "(Silence Trevor)";
Dialog["28"] = "(2 fireball scrolls given)";
Dialog["29"] = "(1 healing scroll given)";
Dialog["30"] = "These are the scrolls that I have found recently. Take them... I am not a magic user myself and the scrolls are not good for anything but gold coins to me.";
Dialog["31"] = "There is a village to the north of here, outside of the forest. The path to it is deep and obscure, but if you can find the precise route to the village, I am sure that the locals will be much more helpful in providing you with goods and information.";
Dialog["32"] = "A warrior, are you? I doubt that anything powerful would come out of those bony muscles of yours. I don't believe you! Come, bastard, and show me your strength then!";
Dialog["33"] = "(Select an attitude carefully...)";
Dialog["34"] = "(Taunting) You are a fool to challenge me. Die, idiot!";
Dialog["35"] = "(Resentful) Perhaps I may look thin and weak to you, but my strength is in my skills.";
Dialog["36"] = "(Fearful) That's... true. Mayhaps if we leave each other alone, it'd be for the better.";
Dialog["37"] = "(Trevor Attacks!)";
Dialog["38"] = "(End Of Dialog)";
Dialog["39"] = "Ha! I would be pleased to hear you explain yourself. How is it that you can be a being that's equal to my might?";
Dialog["40"] = "Allow me to put it as such. We both possess strength in different areas: mine, of stealth and quick wit, and you, of tactics and a fist of might. In that respect, we are equals... but I admire your skills moreso than mine.";
Dialog["41"] = "Well put. Well put! From your elegant speech, I'd daresay that you're no ordinary thief. Come, tell me, why are you here?";
Dialog["42"] = "Well, a true warrior depends not on brute force to win... one must win by having a sober mind as well as fighting tactics to match. I have both, and you have neither.";
Dialog["43"] = "Calling me a fool, are you? Son of a bitch! Die! Die!";
Dialog["44"] = "That is right! Fear my name! Fear the name of Trevor, the great demon hunter! Very well, you can keep your pitiful life today, but cross paths with me again and you will know my wrath!";
Dialog["45"] = "You are starting to annoy me, earthworm. I have not the time nor patience to play mind games with you. And the more you hide the truth, the more I feel that you are coming here with evil intents. Know this, that my name is Trevor the demon hunter. I will crush all underling of darkness with my invincible might!";
Dialog["46"] = "(He is becoming very agitated. Be careful!)";
Dialog["47"] = "Quit bullying me and respect my privacy, if you are a true champion of justice!";
Dialog["48"] = "I mean no disrespect, but you also annoy me by dulging into my business.";
Dialog["49"] = "If you insist on talking, I'll have to silence you with the edge of my blade.";
Dialog["50"] = "Well, you seem to be an honest fellow... very well, I respect your wish to keep your business secret. But let me warn you once again, this is no ground for ordinary travelers to trend on. I suggest that you leave this place immediately.";
Dialog["51"] = "Since we are annoyed by each other, we should be going on seperate paths. But know this: nobody likes a wiseass. There might not be another person that is as hospitable as I am.";
Dialog["52"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 5;
Goto["3"] = 5;
Goto["4"] = 5;
Goto["-1"] = 0;
Goto["5"] = 6;
Goto["6"] = 11;
Goto["7"] = 32;
Goto["8"] = 45;
Goto["9"] = 44;
Goto["10"] = 43;
Goto["11"] = 12;
Goto["12"] = 13;
Goto["13"] = 15;
Goto["14"] = 45;
Goto["15"] = 16;
Goto["16"] = 17;
Goto["17"] = 18;
Goto["18"] = 22;
Goto["19"] = 28;
Goto["20"] = 31;
Goto["21"] = 24;
Goto["22"] = 23;
Goto["23"] = 24;
Goto["24"] = 25;
Goto["25"] = 26;
Goto["26"] = 27;
Goto["27"] = 38;
Goto["28"] = 29;
Goto["29"] = 30;
Goto["30"] = 24;
Goto["31"] = 24;
Goto["32"] = 33;
Goto["33"] = 34;
Goto["34"] = 37;
Goto["35"] = 39;
Goto["36"] = 44;
Goto["37"] = 38;
Goto["38"] = -1;
Goto["39"] = 40;
Goto["40"] = 41;
Goto["41"] = 12;
Goto["42"] = 43;
Goto["43"] = 37;
Goto["44"] = 26;
Goto["45"] = 46;
Goto["46"] = 47;
Goto["47"] = 50;
Goto["48"] = 51;
Goto["49"] = 44;
Goto["50"] = 24;
Goto["51"] = 26;
Goto["52"] = 53;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = 5;
Failto["-1"] = 0;
Failto["5"] = 6;
Failto["6"] = 11;
Failto["7"] = 32;
Failto["8"] = 45;
Failto["9"] = 44;
Failto["10"] = 43;
Failto["11"] = 12;
Failto["12"] = 13;
Failto["13"] = 15;
Failto["14"] = 45;
Failto["15"] = 16;
Failto["16"] = 17;
Failto["17"] = 18;
Failto["18"] = 22;
Failto["19"] = 28;
Failto["20"] = 31;
Failto["21"] = 24;
Failto["22"] = 23;
Failto["23"] = 24;
Failto["24"] = 25;
Failto["25"] = 26;
Failto["26"] = 27;
Failto["27"] = 38;
Failto["28"] = 29;
Failto["29"] = 30;
Failto["30"] = 24;
Failto["31"] = 24;
Failto["32"] = 33;
Failto["33"] = 34;
Failto["34"] = 37;
Failto["35"] = 39;
Failto["36"] = 44;
Failto["37"] = 38;
Failto["38"] = -1;
Failto["39"] = 40;
Failto["40"] = 42;
Failto["41"] = 12;
Failto["42"] = 43;
Failto["43"] = 37;
Failto["44"] = 26;
Failto["45"] = 46;
Failto["46"] = 47;
Failto["47"] = 50;
Failto["48"] = 51;
Failto["49"] = 44;
Failto["50"] = 24;
Failto["51"] = 26;
Failto["52"] = 53;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
Event["4"] = "None";
Event["-1"] = "Simple";
Event["5"] = "MultipleChoice";
Event["6"] = "Simple";
Event["7"] = "Simple";
Event["8"] = "Simple";
Event["9"] = "Simple";
Event["10"] = "Simple";
Event["11"] = "Simple";
Event["12"] = "YesNo";
Event["13"] = "Simple";
Event["14"] = "Simple";
Event["15"] = "Simple";
Event["16"] = "Simple";
Event["17"] = "MultipleChoice";
Event["18"] = "Simple";
Event["19"] = "Simple";
Event["20"] = "Simple";
Event["21"] = "Simple";
Event["22"] = "Cinametics";
Event["23"] = "Skill";
Event["24"] = "SpecialInventory";
Event["25"] = "SkipAndPlay";
Event["26"] = "Cinametics";
Event["27"] = "Activate";
Event["28"] = "PrimaryInventory";
Event["29"] = "PrimaryInventory";
Event["30"] = "Simple";
Event["31"] = "None";
Event["32"] = "Simple";
Event["33"] = "MultipleChoice";
Event["34"] = "Simple";
Event["35"] = "Simple";
Event["36"] = "Simple";
Event["37"] = "Activate";
Event["38"] = "Simple";
Event["39"] = "Simple";
Event["40"] = "Simple";
Event["41"] = "Simple";
Event["42"] = "None";
Event["43"] = "Simple";
Event["44"] = "SkipAndPlay";
Event["45"] = "Simple";
Event["46"] = "MultipleChoice";
Event["47"] = "Simple";
Event["48"] = "Simple";
Event["49"] = "Simple";
Event["50"] = "Simple";
Event["51"] = "SkipAndPlay";
Event["52"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar1["-1"] = 0;
EvtVar1["5"] = 6;
EvtVar1["6"] = 0;
EvtVar1["7"] = 0;
EvtVar1["8"] = 0;
EvtVar1["9"] = 0;
EvtVar1["10"] = 0;
EvtVar1["11"] = 0;
EvtVar1["12"] = 13;
EvtVar1["13"] = 0;
EvtVar1["14"] = 0;
EvtVar1["15"] = 0;
EvtVar1["16"] = 0;
EvtVar1["17"] = 18;
EvtVar1["18"] = 0;
EvtVar1["19"] = 0;
EvtVar1["20"] = 0;
EvtVar1["21"] = 0;
EvtVar1["22"] = "TrevorJab";
EvtVar1["23"] = 2;
EvtVar1["24"] = 3;
EvtVar1["25"] = "Room17b";
EvtVar1["26"] = "TrevorRunAnim";
EvtVar1["27"] = "SilenceTrevor";
EvtVar1["28"] = 2;
EvtVar1["29"] = 3;
EvtVar1["30"] = 0;
EvtVar1["31"] = 0;
EvtVar1["32"] = 0;
EvtVar1["33"] = 34;
EvtVar1["34"] = 0;
EvtVar1["35"] = 0;
EvtVar1["36"] = 0;
EvtVar1["37"] = "Enemy0";
EvtVar1["38"] = 0;
EvtVar1["39"] = 0;
EvtVar1["40"] = 0;
EvtVar1["41"] = 0;
EvtVar1["42"] = 0;
EvtVar1["43"] = 0;
EvtVar1["44"] = "Room17b";
EvtVar1["45"] = 0;
EvtVar1["46"] = 47;
EvtVar1["47"] = 0;
EvtVar1["48"] = 0;
EvtVar1["49"] = 0;
EvtVar1["50"] = 0;
EvtVar1["51"] = "Room17b";
EvtVar1["52"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
EvtVar2["-1"] = 0;
EvtVar2["5"] = 10;
EvtVar2["6"] = 0;
EvtVar2["7"] = 0;
EvtVar2["8"] = 0;
EvtVar2["9"] = 0;
EvtVar2["10"] = 0;
EvtVar2["11"] = 0;
EvtVar2["12"] = 14;
EvtVar2["13"] = 0;
EvtVar2["14"] = 0;
EvtVar2["15"] = 0;
EvtVar2["16"] = 0;
EvtVar2["17"] = 21;
EvtVar2["18"] = 0;
EvtVar2["19"] = 0;
EvtVar2["20"] = 0;
EvtVar2["21"] = 0;
EvtVar2["22"] = 0;
EvtVar2["23"] = 0;
EvtVar2["24"] = 1;
EvtVar2["25"] = 0;
EvtVar2["26"] = 0;
EvtVar2["27"] = 0;
EvtVar2["28"] = 2;
EvtVar2["29"] = 1;
EvtVar2["30"] = 0;
EvtVar2["31"] = 0;
EvtVar2["32"] = 0;
EvtVar2["33"] = 36;
EvtVar2["34"] = 0;
EvtVar2["35"] = 0;
EvtVar2["36"] = 0;
EvtVar2["37"] = 0;
EvtVar2["38"] = 0;
EvtVar2["39"] = 0;
EvtVar2["40"] = 0;
EvtVar2["41"] = 0;
EvtVar2["42"] = 0;
EvtVar2["43"] = 0;
EvtVar2["44"] = 0;
EvtVar2["45"] = 0;
EvtVar2["46"] = 49;
EvtVar2["47"] = 0;
EvtVar2["48"] = 0;
EvtVar2["49"] = 0;
EvtVar2["50"] = 0;
EvtVar2["51"] = 0;
EvtVar2["52"] = 0;
}
Instance of Symbol 1469 MovieClip "TrevorRunAnim" in Frame 2160
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 2;
Action = new array();
Action["0"] = "Speak";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Nothing";
Action["7"] = "Nothing";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Nothing";
Action["11"] = "MoveTo";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Recall";
Action["21"] = "Nothing";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Nothing";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Nothing";
Action["31"] = "Nothing";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "Nothing";
Action["41"] = "Nothing";
Action["42"] = "Nothing";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "Nothing";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Nothing";
Action["51"] = "Nothing";
Action["52"] = "Nothing";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Nothing";
Action["58"] = "Nothing";
Action["59"] = "Nothing";
Action["60"] = "Nothing";
Action["61"] = "Nothing";
Action["62"] = "Nothing";
Action["63"] = "Nothing";
Action["64"] = "Nothing";
Action["65"] = "Nothing";
Action["66"] = "Nothing";
Action["67"] = "Nothing";
Action["68"] = "Nothing";
Action["69"] = "Nothing";
Action["70"] = "Nothing";
Action["71"] = "Nothing";
Action["72"] = "Nothing";
Action["73"] = "Nothing";
Action["74"] = "Nothing";
Action["75"] = "Nothing";
Action["76"] = "Nothing";
Action["77"] = "Nothing";
Action["78"] = "Nothing";
Action["79"] = "Nothing";
Const = new array();
Const["0"] = "";
Const["1"] = "";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "";
Const["7"] = "";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "";
Const["11"] = 320;
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = "";
Const["21"] = "";
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = "";
Const["28"] = "";
Const["29"] = "";
Const["30"] = "";
Const["31"] = "";
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Const["40"] = "";
Const["41"] = "";
Const["42"] = "";
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "";
Const["48"] = "";
Const["49"] = "";
Const["50"] = "";
Const["51"] = "";
Const["52"] = "";
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "";
Const["58"] = "";
Const["59"] = "";
Const["60"] = "";
Const["61"] = "";
Const["62"] = "";
Const["63"] = "";
Const["64"] = "";
Const["65"] = "";
Const["66"] = "";
Const["67"] = "";
Const["68"] = "";
Const["69"] = "";
Const["70"] = "";
Const["71"] = "";
Const["72"] = "";
Const["73"] = "";
Const["74"] = "";
Const["75"] = "";
Const["76"] = "";
Const["77"] = "";
Const["78"] = "";
Const["79"] = "";
Param = new array();
Param["0"] = "";
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = "";
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = "";
Param["11"] = -170;
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = "";
Param["21"] = "";
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = "";
Param["28"] = "";
Param["29"] = "";
Param["30"] = "";
Param["31"] = "";
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
Param["40"] = "";
Param["41"] = "";
Param["42"] = "";
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = "";
Param["48"] = "";
Param["49"] = "";
Param["50"] = "";
Param["51"] = "";
Param["52"] = "";
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = "";
Param["58"] = "";
Param["59"] = "";
Param["60"] = "";
Param["61"] = "";
Param["62"] = "";
Param["63"] = "";
Param["64"] = "";
Param["65"] = "";
Param["66"] = "";
Param["67"] = "";
Param["68"] = "";
Param["69"] = "";
Param["70"] = "";
Param["71"] = "";
Param["72"] = "";
Param["73"] = "";
Param["74"] = "";
Param["75"] = "";
Param["76"] = "";
Param["77"] = "";
Param["78"] = "";
Param["79"] = "";
}
Instance of Symbol 1470 MovieClip "TrevorRun" in Frame 2160
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
Prerequsite["5"] = "None";
Prerequsite["4"] = "None";
Prerequsite["6"] = "None";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar1["5"] = 0;
PreVar1["4"] = 0;
PreVar1["6"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["5"] = 0;
PreVar2["4"] = 0;
PreVar2["6"] = 0;
Portrait = new array();
Portrait["1"] = "None";
Portrait["0"] = "Trevor";
Portrait["2"] = "None";
Portrait["3"] = "None";
Portrait["5"] = "None";
Portrait["4"] = "None";
Portrait["6"] = "None";
Name = new array();
Name["1"] = "NoDialog";
Name["0"] = "Trevor";
Name["2"] = "None";
Name["3"] = "NoDialog";
Name["5"] = "None";
Name["4"] = "None";
Name["6"] = "None";
Dialog = new array();
Dialog["1"] = "(False Amulet Activated)";
Dialog["0"] = "Argh! Damnation... you and your... filthy tactics... I swear, you have not seen the last of me. I will be back, and vengence will come with it!";
Dialog["2"] = "(Trevor Goes Away)";
Dialog["3"] = "(Con Bonus)";
Dialog["5"] = "";
Dialog["4"] = "(End Of Dialog)";
Dialog["6"] = "";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = 3;
Goto["3"] = 4;
Goto["5"] = 2;
Goto["4"] = -1;
Goto["6"] = 7;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 1;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["5"] = 2;
Failto["4"] = -1;
Failto["6"] = 7;
Event = new array();
Event["1"] = "Activate";
Event["0"] = "SkipAndPlay";
Event["2"] = "Cinametics";
Event["3"] = "Con";
Event["5"] = "Cinametics";
Event["4"] = "Simple";
Event["6"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = "FalseAmulet";
EvtVar1["0"] = "Room17b";
EvtVar1["2"] = "TrevorRunAnim";
EvtVar1["3"] = 1;
EvtVar1["5"] = "TrevorRunAnim";
EvtVar1["4"] = 0;
EvtVar1["6"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = "Enemy0";
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["5"] = "Enemy0";
EvtVar2["4"] = 0;
EvtVar2["6"] = 0;
}
Instance of Symbol 1471 MovieClip "TrevorJab" in Frame 2160
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 5;
Action = new array();
Action["0"] = "Movement";
Action["1"] = "Turn";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Nothing";
Action["7"] = "Speak";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Special";
Action["11"] = "Nothing";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Nothing";
Action["21"] = "Speak";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Nothing";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Nothing";
Action["31"] = "Special";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "Nothing";
Action["41"] = "Speak";
Action["42"] = "Nothing";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "Nothing";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Recall";
Action["51"] = "Nothing";
Action["52"] = "Nothing";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Nothing";
Action["58"] = "Nothing";
Action["59"] = "Nothing";
Action["60"] = "Nothing";
Action["61"] = "Nothing";
Action["62"] = "Nothing";
Action["63"] = "Nothing";
Action["64"] = "Nothing";
Action["65"] = "Nothing";
Action["66"] = "Nothing";
Action["67"] = "Nothing";
Action["68"] = "Nothing";
Action["69"] = "Nothing";
Action["70"] = "Nothing";
Action["71"] = "Nothing";
Action["72"] = "Nothing";
Action["73"] = "Nothing";
Action["74"] = "Nothing";
Action["75"] = "Nothing";
Action["76"] = "Nothing";
Action["77"] = "Nothing";
Action["78"] = "Nothing";
Action["79"] = "Nothing";
Const = new array();
Const["0"] = 1;
Const["1"] = -15;
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "";
Const["7"] = "Trevor: Show me a swing of yours.";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "Swing";
Const["11"] = 320;
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = "";
Const["21"] = "Trevor: That is a powerful but slow attack... watch.";
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = "";
Const["28"] = "";
Const["29"] = "";
Const["30"] = "";
Const["31"] = "Jab";
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Const["40"] = "";
Const["41"] = "Trevor: This clashing attack is a lot more powerful.";
Const["42"] = "";
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "";
Const["48"] = "";
Const["49"] = "";
Const["50"] = "";
Const["51"] = "";
Const["52"] = "";
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "";
Const["58"] = "";
Const["59"] = "";
Const["60"] = "";
Const["61"] = "";
Const["62"] = "";
Const["63"] = "";
Const["64"] = "";
Const["65"] = "";
Const["66"] = "";
Const["67"] = "";
Const["68"] = "";
Const["69"] = "";
Const["70"] = "";
Const["71"] = "";
Const["72"] = "";
Const["73"] = "";
Const["74"] = "";
Const["75"] = "";
Const["76"] = "";
Const["77"] = "";
Const["78"] = "";
Const["79"] = "";
Param = new array();
Param["0"] = 50;
Param["1"] = 90;
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = "";
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = 35;
Param["11"] = -170;
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = "";
Param["21"] = "";
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = "";
Param["28"] = "";
Param["29"] = "";
Param["30"] = "";
Param["31"] = 30;
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
Param["40"] = "";
Param["41"] = "";
Param["42"] = "";
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = "";
Param["48"] = "";
Param["49"] = "";
Param["50"] = "";
Param["51"] = "";
Param["52"] = "";
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = "";
Param["58"] = "";
Param["59"] = "";
Param["60"] = "";
Param["61"] = "";
Param["62"] = "";
Param["63"] = "";
Param["64"] = "";
Param["65"] = "";
Param["66"] = "";
Param["67"] = "";
Param["68"] = "";
Param["69"] = "";
Param["70"] = "";
Param["71"] = "";
Param["72"] = "";
Param["73"] = "";
Param["74"] = "";
Param["75"] = "";
Param["76"] = "";
Param["77"] = "";
Param["78"] = "";
Param["79"] = "";
}
Instance of Symbol 1079 MovieClip in Frame 2160
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1300 MovieClip in Frame 2160
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Frame 2165
stop();
Frame 2175
stop();
Frame 2185
stop();
Instance of Symbol 1472 MovieClip in Frame 2185
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room19";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1473 MovieClip in Frame 2185
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "False";
Trigger = "SlaveScream";
}
Instance of Symbol 1474 MovieClip in Frame 2185
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room17c";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1475 MovieClip in Frame 2185
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room20";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1306 MovieClip in Frame 2185
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "False";
HeldDown = "False";
Trigger = "Projectile0";
}
Instance of Symbol 1478 MovieClip in Frame 2185
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 10;
Damage = 0;
FallToDeath = "True";
Teleport = "Undefined";
}
Instance of Symbol 1479 MovieClip in Frame 2185
onClipEvent (load) {
SequenceRequest = 7;
SequenceIncrease = 8;
Trigger = "PitHints";
}
Instance of Symbol 1480 MovieClip "SlaveScream" in Frame 2185
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "Flag";
Prerequsite["0"] = "Follower";
Prerequsite["2"] = "Follower";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
PreVar1 = new array();
PreVar1["1"] = "SlaveEncountered";
PreVar1["0"] = "Slave";
PreVar1["2"] = "Slave";
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = "Active";
PreVar2["2"] = "Alive";
PreVar2["3"] = 0;
PreVar2["4"] = 0;
Portrait = new array();
Portrait["1"] = "None";
Portrait["0"] = "None";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wolf";
Portrait["4"] = "None";
Name = new array();
Name["1"] = "NoDialog";
Name["0"] = "NoDialog";
Name["2"] = "Player";
Name["3"] = "Player";
Name["4"] = "None";
Dialog = new array();
Dialog["1"] = "(Checking: Slave encountered)";
Dialog["0"] = "(Checking: Slave is following player)";
Dialog["2"] = "I wonder what will happen to that trapped fool...";
Dialog["3"] = "......";
Dialog["4"] = "(End Of Dialog)";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 4;
Goto["2"] = 3;
Goto["3"] = 4;
Goto["4"] = -1;
Failto = new array();
Failto["1"] = 4;
Failto["0"] = 1;
Failto["2"] = 4;
Failto["3"] = 4;
Failto["4"] = -1;
Event = new array();
Event["1"] = "Simple";
Event["0"] = "Simple";
Event["2"] = "Follower";
Event["3"] = "Activate";
Event["4"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = 0;
EvtVar1["2"] = "Terminate";
EvtVar1["3"] = "DeathClip";
EvtVar1["4"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
}
Instance of Symbol 1481 MovieClip "DeathClip" in Frame 2185
onClipEvent (load) {
ClipName = "SlaveDeath";
}
Instance of Symbol 1482 MovieClip "PitHints" in Frame 2185
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "Wis";
Prerequsite["2"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = "Grt";
PreVar1["2"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 1;
PreVar2["2"] = 0;
Portrait = new array();
Portrait["0"] = "Wolf";
Portrait["1"] = "Wolf";
Portrait["2"] = "None";
Name = new array();
Name["0"] = "Player";
Name["1"] = "Player";
Name["2"] = "None";
Dialog = new array();
Dialog["0"] = "This area is quiet... too quiet. Look at how the twigs in front of me are arranged altogether too closely to be nature. I pity the fool who had to spend the time to set this trap up.";
Dialog["1"] = "The trap that is covered by the twigs is a pit fall trap. They can be activated either by triggers or direct pressure, with the latter more common. Learn to listen to the click sound that the trap makes before the trap door opens. That sound should be burnt into a rogue's mind so that he would start to run for his life!";
Dialog["2"] = "(End Of Dialog)";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = -1;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = -1;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
}
Instance of Symbol 1512 MovieClip in Frame 2185
onClipEvent (load) {
Character = "Slave";
Location = "Room19";
Health = 20;
DefaultVisible = "False";
}
Instance of Symbol 1513 MovieClip "Projectile0" in Frame 2185
onClipEvent (load) {
Speed = 15;
Damage = 10;
Bounce = 9999;
}
Instance of Symbol 1392 MovieClip in Frame 2185
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 1392 MovieClip in Frame 2185
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 945 MovieClip "Home2" in Frame 2185
onClipEvent (load) {
UniversalID = 0;
}
Frame 2195
stop();
Instance of Symbol 1514 MovieClip in Frame 2195
onClipEvent (load) {
SequenceRequest = 9;
SequenceIncrease = -1;
Trigger = "SlaveTalk";
}
Instance of Symbol 1515 MovieClip in Frame 2195
onClipEvent (load) {
SequenceRequest = 8;
SequenceIncrease = 9;
Trigger = "SlaveEvents";
}
Instance of Symbol 1516 MovieClip in Frame 2195
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room18";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1517 MovieClip "SlaveEvents" in Frame 2195
onClipEvent (load) {
Trigger = new array();
Trigger[0] = "SlaveEncountered";
Trigger[1] = "SlaveRest";
}
Instance of Symbol 1518 MovieClip "SlaveRest" in Frame 2195
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 5;
Action = new array();
Action["0"] = "Speak";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Special";
Action["7"] = "Nothing";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Speak";
Action["11"] = "Nothing";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Speak";
Action["21"] = "Nothing";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Nothing";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Recall";
Action["31"] = "Nothing";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "Recall";
Action["41"] = "Nothing";
Action["42"] = "Nothing";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "Nothing";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Recall";
Action["51"] = "Nothing";
Action["52"] = "Nothing";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Nothing";
Action["58"] = "Nothing";
Action["59"] = "Nothing";
Const = new array();
Const["0"] = "Looks like a man in trouble...";
Const["1"] = "";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "Settled";
Const["7"] = "";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "Better leave before things get ugly.";
Const["11"] = 0;
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = "...... or should I?";
Const["21"] = 0;
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = "";
Const["28"] = "";
Const["29"] = "";
Const["30"] = "";
Const["31"] = 0;
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Const["40"] = "";
Const["41"] = "";
Const["42"] = "";
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "";
Const["48"] = "";
Const["49"] = "";
Const["50"] = "";
Const["51"] = "";
Const["52"] = "";
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "";
Const["58"] = "";
Const["59"] = "";
Param = new array();
Param["0"] = "";
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = 1;
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = "";
Param["11"] = 0;
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = "";
Param["21"] = 0;
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = "";
Param["28"] = "";
Param["29"] = "";
Param["30"] = "";
Param["31"] = 0;
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
Param["40"] = "";
Param["41"] = "";
Param["42"] = "";
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = "";
Param["48"] = "";
Param["49"] = "";
Param["50"] = "";
Param["51"] = "";
Param["52"] = "";
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = "";
Param["58"] = "";
Param["59"] = "";
}
Instance of Symbol 1519 MovieClip "SlaveTalk" in Frame 2195
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "Wis";
Prerequsite["0"] = "None";
Prerequsite["2"] = "Wis";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
Prerequsite["7"] = "None";
Prerequsite["8"] = "None";
Prerequsite["9"] = "None";
Prerequsite["10"] = "None";
Prerequsite["11"] = "None";
Prerequsite["12"] = "None";
Prerequsite["13"] = "None";
Prerequsite["14"] = "None";
Prerequsite["15"] = "None";
Prerequsite["16"] = "None";
Prerequsite["17"] = "None";
Prerequsite["18"] = "None";
Prerequsite["19"] = "Wis";
Prerequsite["20"] = "None";
Prerequsite["21"] = "None";
Prerequsite["22"] = "None";
Prerequsite["23"] = "None";
Prerequsite["24"] = "None";
Prerequsite["25"] = "None";
Prerequsite["26"] = "None";
Prerequsite["27"] = "None";
Prerequsite["28"] = "None";
Prerequsite["29"] = "Wis";
Prerequsite["30"] = "None";
Prerequsite["31"] = "None";
Prerequsite["32"] = "None";
Prerequsite["33"] = "None";
Prerequsite["34"] = "Item";
Prerequsite["35"] = "None";
Prerequsite["36"] = "None";
Prerequsite["37"] = "None";
Prerequsite["38"] = "None";
PreVar1 = new array();
PreVar1["1"] = "Lst";
PreVar1["0"] = 0;
PreVar1["2"] = "Grt";
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar1["7"] = 0;
PreVar1["8"] = 0;
PreVar1["9"] = 0;
PreVar1["10"] = 0;
PreVar1["11"] = 0;
PreVar1["12"] = 0;
PreVar1["13"] = 0;
PreVar1["14"] = 0;
PreVar1["15"] = 0;
PreVar1["16"] = 0;
PreVar1["17"] = 0;
PreVar1["18"] = 0;
PreVar1["19"] = "Grt";
PreVar1["20"] = 0;
PreVar1["21"] = 0;
PreVar1["22"] = 0;
PreVar1["23"] = 0;
PreVar1["24"] = 0;
PreVar1["25"] = 0;
PreVar1["26"] = 0;
PreVar1["27"] = 0;
PreVar1["28"] = 0;
PreVar1["29"] = "Grt";
PreVar1["30"] = 0;
PreVar1["31"] = 0;
PreVar1["32"] = 0;
PreVar1["33"] = 0;
PreVar1["34"] = "Primary";
PreVar1["35"] = 0;
PreVar1["36"] = 0;
PreVar1["37"] = 0;
PreVar1["38"] = 0;
PreVar2 = new array();
PreVar2["1"] = 3;
PreVar2["0"] = 0;
PreVar2["2"] = 3;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
PreVar2["7"] = 0;
PreVar2["8"] = 0;
PreVar2["9"] = 0;
PreVar2["10"] = 0;
PreVar2["11"] = 0;
PreVar2["12"] = 0;
PreVar2["13"] = 0;
PreVar2["14"] = 0;
PreVar2["15"] = 0;
PreVar2["16"] = 0;
PreVar2["17"] = 0;
PreVar2["18"] = 0;
PreVar2["19"] = 1;
PreVar2["20"] = 0;
PreVar2["21"] = 0;
PreVar2["22"] = 0;
PreVar2["23"] = 0;
PreVar2["24"] = 0;
PreVar2["25"] = 0;
PreVar2["26"] = 0;
PreVar2["27"] = 0;
PreVar2["28"] = 0;
PreVar2["29"] = 2;
PreVar2["30"] = 0;
PreVar2["31"] = 0;
PreVar2["32"] = 0;
PreVar2["33"] = 0;
PreVar2["34"] = 3;
PreVar2["35"] = 0;
PreVar2["36"] = 0;
PreVar2["37"] = 0;
PreVar2["38"] = 0;
Portrait = new array();
Portrait["1"] = "Wolf";
Portrait["0"] = "Slave";
Portrait["2"] = "Wolf";
Portrait["3"] = "Wolf";
Portrait["4"] = "Wolf";
Portrait["5"] = "None";
Portrait["6"] = "None";
Portrait["7"] = "None";
Portrait["8"] = "Slave";
Portrait["9"] = "Wolf";
Portrait["10"] = "None";
Portrait["11"] = "None";
Portrait["12"] = "None";
Portrait["13"] = "Slave";
Portrait["14"] = "None";
Portrait["15"] = "Slave";
Portrait["16"] = "Wolf";
Portrait["17"] = "Slave";
Portrait["18"] = "Slave";
Portrait["19"] = "Wolf";
Portrait["20"] = "Wolf";
Portrait["21"] = "None";
Portrait["22"] = "Slave";
Portrait["23"] = "None";
Portrait["24"] = "Slave";
Portrait["25"] = "None";
Portrait["26"] = "Slave";
Portrait["27"] = "Wolf";
Portrait["28"] = "Slave";
Portrait["29"] = "Wolf";
Portrait["30"] = "Slave";
Portrait["31"] = "Wolf";
Portrait["32"] = "Wolf";
Portrait["33"] = "Slave";
Portrait["34"] = "None";
Portrait["35"] = "None";
Portrait["36"] = "None";
Portrait["37"] = "None";
Portrait["38"] = "Wolf";
Name = new array();
Name["1"] = "Player";
Name["0"] = "Stranger";
Name["2"] = "Player";
Name["3"] = "Player";
Name["4"] = "Player";
Name["5"] = "None";
Name["6"] = "None";
Name["7"] = "None";
Name["8"] = "Gerald";
Name["9"] = "Player";
Name["10"] = "None";
Name["11"] = "None";
Name["12"] = "None";
Name["13"] = "Gerald";
Name["14"] = "None";
Name["15"] = "Gerald";
Name["16"] = "Player";
Name["17"] = "Gerald";
Name["18"] = "Gerald";
Name["19"] = "Player";
Name["20"] = "Player";
Name["21"] = "None";
Name["22"] = "Gerald";
Name["23"] = "None";
Name["24"] = "Gerald";
Name["25"] = "None";
Name["26"] = "Gerald";
Name["27"] = "Player";
Name["28"] = "Gerald";
Name["29"] = "Player";
Name["30"] = "Gerald";
Name["31"] = "Player";
Name["32"] = "Player";
Name["33"] = "Gerald";
Name["34"] = "None";
Name["35"] = "None";
Name["36"] = "None";
Name["37"] = "None";
Name["38"] = "Player";
Dialog = new array();
Dialog["1"] = "(...Weakling. You deserve to die...)";
Dialog["0"] = "Please! I beg you! Have mercy on my soul...";
Dialog["2"] = "( ...It is dangerous to stay here for too long, but this man may have some useful information to share. Show concern, ask questions, and some good should come out of this conversation.)";
Dialog["3"] = "(What should I say?)";
Dialog["4"] = "I'm sorry, but you don't deserve to live. Good bye.";
Dialog["5"] = "Calm down. Tell me, why did you come here to this acursed land?";
Dialog["6"] = "Don't lie to me. You are a disguised spy from Xercius, are you not?";
Dialog["7"] = "Be at peace. I am here to help you.";
Dialog["8"] = "My... my name is Gerald, a slave... I had a cruel master, and so I ran away and think that things better would await for me... but there are monsters everywhere... I don't know what to do anymore! Help! Help me...";
Dialog["9"] = "Quiet, lest the terrible monsters find you and eat you down to the last bone. Now let me think and give you my opinion on this matter.";
Dialog["10"] = "I think that you are utterly disobdient and you deserve the death that will come to you.";
Dialog["11"] = "I suggest that you go back to your master, beg for his repentance, and never leave him again.";
Dialog["12"] = "Wait. Tell me about this village of yours... for example, where is it?";
Dialog["13"] = "Oh woe is I! I don't deserve to die here... why are you so cruel to a fellow human being... help! Help! Save me! Somebody! Save me...";
Dialog["14"] = "(End Of Dialog)";
Dialog["15"] = "Do... do you think I will be forgiven? I... I don't know about this. He has to forgive me... or maybe... I just don't know... Do you think that my master will forgive me for running away?";
Dialog["16"] = "Do not worry... if you are valuable to your master, he will not forsake you. Afterall, you are a piece of his property, and no men would ever despise lost wealth flowing back into his hands.";
Dialog["17"] = "Of... of course! You are right. My master awaits me... he must be anxious for me to go back. Yes! I will go back! Kind sir, you seems to be a worthy adventurer... would you be generous enough to take me back to my village?";
Dialog["18"] = "Marchius' blessing! I am saved... I am eternally grateful... wait... I don't exactly know where my village is... I mean, I do, but now that I'm completely lost... you will have to escort me around until I recognize where my village is. It should be quite close to here, since I have no run too far away.";
Dialog["19"] = "Well... I have journeyed here from the south and I haven't seen any sign of villages. I'd wager that your village lies to the west of the crossroad that I have just passed.";
Dialog["20"] = "Stay close to me. Let us move in haste.";
Dialog["21"] = "(End Of Dialog)";
Dialog["22"] = "... You are right. I don't deserve mercy... when I was trapped here, I thought long about what I have just done... and it's not right. Thank you for cleansing my mind, stranger. Here, take this.";
Dialog["23"] = "(Recieves 1 healing scroll)";
Dialog["24"] = "I found this scroll lying on the floor when I was running away from the monsters. It will no longer be useful to me... I deserve death. Now leave me be, wise one. I am ready to die.";
Dialog["25"] = "(End Of Dialog)";
Dialog["26"] = "I... I have lost my way when I started running blindly away from the monsters... so I can't recall where it is, but it shouldn't be too far away. Now, please help me! I don't like the look of those zombies. They are looking at me like 'dinner is served'!";
Dialog["27"] = "Calm down. This is what I think you should do.";
Dialog["28"] = "Xercius... the hermit who lives in this forest? Why would I have anything to do with him? He don't need spies... I suppose not... he is such a powerful sorcerer! Why would he need spies?";
Dialog["29"] = "Wait a minute. Hermit? I thought Xercius is a madman who ravages villages around this forest. How does he come to be described as a hermit? Speak the truth! What connection do you have with this man?";
Dialog["30"] = "I... I have none! I am a slave of a village nearby, and we have all heard queer tales of Xercius the hermit... however, he never appeared around our village, much less wreak terrors among us... look at me. I speak the truth!";
Dialog["31"] = "Fine, then. I will not get much out of an underling like you, anyhow.";
Dialog["32"] = "(Which leads to the question... should I try to help him or not?)";
Dialog["33"] = "Are you willing to help me? Marchius bless, I am saved! As you can see, I am hurt and trapped here. Can you heal me and bring me to safety?";
Dialog["34"] = "Very well... I am a man of honor and I'll both heal you and bring you along.";
Dialog["35"] = "I am sorry, I do not have the ability to heal you. If you are not a nuisance, you can come along.";
Dialog["36"] = "You are pushing your luck too far! I will not help you. Good bye.";
Dialog["37"] = "(lost 1 healing scroll)";
Dialog["38"] = "The effect of this spell should patch your wounds up. You should feel better soon, if not right now.";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = 3;
Goto["3"] = 4;
Goto["4"] = 13;
Goto["5"] = 8;
Goto["6"] = 28;
Goto["7"] = 33;
Goto["8"] = 9;
Goto["9"] = 10;
Goto["10"] = 13;
Goto["11"] = 15;
Goto["12"] = 26;
Goto["13"] = 14;
Goto["14"] = -1;
Goto["15"] = 16;
Goto["16"] = 17;
Goto["17"] = 18;
Goto["18"] = 19;
Goto["19"] = 20;
Goto["20"] = 21;
Goto["21"] = -1;
Goto["22"] = 23;
Goto["23"] = 24;
Goto["24"] = 25;
Goto["25"] = -1;
Goto["26"] = 27;
Goto["27"] = 28;
Goto["28"] = 29;
Goto["29"] = 30;
Goto["30"] = 31;
Goto["31"] = 32;
Goto["32"] = 33;
Goto["33"] = 34;
Goto["34"] = 37;
Goto["35"] = 20;
Goto["36"] = 13;
Goto["37"] = 38;
Goto["38"] = 20;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 1;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = 13;
Failto["5"] = 8;
Failto["6"] = 28;
Failto["7"] = 33;
Failto["8"] = 9;
Failto["9"] = 10;
Failto["10"] = 13;
Failto["11"] = 15;
Failto["12"] = 26;
Failto["13"] = 14;
Failto["14"] = -1;
Failto["15"] = 16;
Failto["16"] = 17;
Failto["17"] = 18;
Failto["18"] = 19;
Failto["19"] = 20;
Failto["20"] = 21;
Failto["21"] = -1;
Failto["22"] = 23;
Failto["23"] = 24;
Failto["24"] = 25;
Failto["25"] = -1;
Failto["26"] = 27;
Failto["27"] = 28;
Failto["28"] = 29;
Failto["29"] = 31;
Failto["30"] = 31;
Failto["31"] = 32;
Failto["32"] = 33;
Failto["33"] = 34;
Failto["34"] = 37;
Failto["35"] = 20;
Failto["36"] = 13;
Failto["37"] = 38;
Failto["38"] = 20;
Event = new array();
Event["1"] = "Simple";
Event["0"] = "Follower";
Event["2"] = "Simple";
Event["3"] = "MultipleChoice";
Event["4"] = "Simple";
Event["5"] = "Simple";
Event["6"] = "Simple";
Event["7"] = "Simple";
Event["8"] = "Simple";
Event["9"] = "MultipleChoice";
Event["10"] = "Simple";
Event["11"] = "Simple";
Event["12"] = "Simple";
Event["13"] = "Dex";
Event["14"] = "Simple";
Event["15"] = "YesNo";
Event["16"] = "Simple";
Event["17"] = "YesNo";
Event["18"] = "Simple";
Event["19"] = "Simple";
Event["20"] = "Follower";
Event["21"] = "Simple";
Event["22"] = "Simple";
Event["23"] = "PrimaryInventory";
Event["24"] = "Simple";
Event["25"] = "Simple";
Event["26"] = "Simple";
Event["27"] = "MultipleChoice";
Event["28"] = "Simple";
Event["29"] = "Simple";
Event["30"] = "Simple";
Event["31"] = "Simple";
Event["32"] = "YesNo";
Event["33"] = "MultipleChoice";
Event["34"] = "Simple";
Event["35"] = "Simple";
Event["36"] = "Simple";
Event["37"] = "PrimaryInventory";
Event["38"] = "Follower";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = "Health";
EvtVar1["2"] = 0;
EvtVar1["3"] = 4;
EvtVar1["4"] = 0;
EvtVar1["5"] = 0;
EvtVar1["6"] = 0;
EvtVar1["7"] = 0;
EvtVar1["8"] = 0;
EvtVar1["9"] = 10;
EvtVar1["10"] = 0;
EvtVar1["11"] = 0;
EvtVar1["12"] = 0;
EvtVar1["13"] = 1;
EvtVar1["14"] = 0;
EvtVar1["15"] = 16;
EvtVar1["16"] = 0;
EvtVar1["17"] = 18;
EvtVar1["18"] = 0;
EvtVar1["19"] = 0;
EvtVar1["20"] = "Activate";
EvtVar1["21"] = 0;
EvtVar1["22"] = 0;
EvtVar1["23"] = 3;
EvtVar1["24"] = 0;
EvtVar1["25"] = 0;
EvtVar1["26"] = 0;
EvtVar1["27"] = 10;
EvtVar1["28"] = 0;
EvtVar1["29"] = 0;
EvtVar1["30"] = 0;
EvtVar1["31"] = 0;
EvtVar1["32"] = 33;
EvtVar1["33"] = 34;
EvtVar1["34"] = 0;
EvtVar1["35"] = 0;
EvtVar1["36"] = 0;
EvtVar1["37"] = 3;
EvtVar1["38"] = "Health";
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = -15;
EvtVar2["2"] = 0;
EvtVar2["3"] = 7;
EvtVar2["4"] = 0;
EvtVar2["5"] = 0;
EvtVar2["6"] = 0;
EvtVar2["7"] = 0;
EvtVar2["8"] = 0;
EvtVar2["9"] = 12;
EvtVar2["10"] = 0;
EvtVar2["11"] = 0;
EvtVar2["12"] = 0;
EvtVar2["13"] = 0;
EvtVar2["14"] = 0;
EvtVar2["15"] = 22;
EvtVar2["16"] = 0;
EvtVar2["17"] = 13;
EvtVar2["18"] = 0;
EvtVar2["19"] = 0;
EvtVar2["20"] = 0;
EvtVar2["21"] = 0;
EvtVar2["22"] = 0;
EvtVar2["23"] = 1;
EvtVar2["24"] = 0;
EvtVar2["25"] = 0;
EvtVar2["26"] = 0;
EvtVar2["27"] = 11;
EvtVar2["28"] = 0;
EvtVar2["29"] = 0;
EvtVar2["30"] = 0;
EvtVar2["31"] = 0;
EvtVar2["32"] = 4;
EvtVar2["33"] = 36;
EvtVar2["34"] = 0;
EvtVar2["35"] = 0;
EvtVar2["36"] = 0;
EvtVar2["37"] = -1;
EvtVar2["38"] = 20;
}
Instance of Symbol 1520 MovieClip in Frame 2195
onClipEvent (load) {
Health = 30;
Damage = 5;
Speed = 5;
Rotation = 5;
Lurk = "False";
ActionSet = new array();
ActionSet["0"] = "RotateCounterClockwise";
ActionSet["1"] = "Movement";
ActionSet["2"] = "RotateCounterClockwise";
ActionSet["3"] = "Movement";
ActionSet["4"] = "RotateCounterClockwise";
ActionSet["5"] = "Movement";
ActionSet["6"] = "Recall";
Property = new array();
Property["0"] = 180;
Property["1"] = 60;
Property["2"] = 0;
Property["3"] = 120;
Property["4"] = 180;
Property["5"] = 120;
Property["6"] = 2;
Strength = 5;
}
Instance of Symbol 1079 MovieClip in Frame 2195
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Frame 2205
stop();
Instance of Symbol 1521 MovieClip in Frame 2205
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room21";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1522 MovieClip in Frame 2205
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room18";
HomePoint = 2;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1523 MovieClip in Frame 2205
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 5;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 5;
ActionSet = new array();
ActionSet["0"] = "RotateClockwise";
ActionSet["1"] = "StandStill";
ActionSet["2"] = "Movement";
ActionSet["3"] = "RotateCounterClockwise";
ActionSet["4"] = "StandStill";
ActionSet["5"] = "Movement";
ActionSet["6"] = "RotateClockwise";
ActionSet["7"] = "Recall";
Property = new array();
Property["0"] = 90;
Property["1"] = 75;
Property["2"] = 200;
Property["3"] = -90;
Property["4"] = 10;
Property["5"] = 200;
Property["6"] = 0;
Property["7"] = 0;
UniversalID = 0;
}
Instance of Symbol 1524 MovieClip in Frame 2205
onClipEvent (load) {
GuardHealth = 24;
GuardDamage = 10;
GuardSpeed = 5;
GuardSweep = 100;
GuardAlertDelay = 120;
DeathAction = "Undefined";
GuardRotation = 5;
ActionSet = new array();
ActionSet["0"] = "RotateCounterClockwise";
ActionSet["1"] = "Movement";
ActionSet["2"] = "RotateClockwise";
ActionSet["3"] = "Movement";
ActionSet["4"] = "RotateClockwise";
ActionSet["5"] = "Movement";
ActionSet["6"] = "RotateClockwise";
ActionSet["7"] = "StandStill";
ActionSet["8"] = "RotateClockwise";
ActionSet["9"] = "Movement";
ActionSet["10"] = "RotateClockwise";
ActionSet["11"] = "StandStill";
ActionSet["12"] = "Recall";
Property = new array();
Property["0"] = -180;
Property["1"] = 140;
Property["2"] = -90;
Property["3"] = 200;
Property["4"] = 0;
Property["5"] = 140;
Property["6"] = 180;
Property["7"] = 5;
Property["8"] = 90;
Property["9"] = 200;
Property["10"] = -90;
Property["11"] = 20;
Property["12"] = 0;
UniversalID = 0;
}
Instance of Symbol 1300 MovieClip in Frame 2205
onClipEvent (load) {
Bound = "North";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 945 MovieClip "Home1" in Frame 2205
onClipEvent (load) {
UniversalID = 0;
}
Frame 2215
stop();
Instance of Symbol 1525 MovieClip in Frame 2215
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 5;
Damage = 0;
FallToDeath = "True";
Teleport = "Undefined";
}
Instance of Symbol 1526 MovieClip in Frame 2215
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 5;
Damage = 0;
FallToDeath = "True";
Teleport = "Undefined";
}
Instance of Symbol 1527 MovieClip in Frame 2215
onClipEvent (load) {
PlayerOnly = "False";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "False";
HeldDown = "False";
Trigger = "AllFireballs";
}
Instance of Symbol 1528 MovieClip in Frame 2215
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room22";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1529 MovieClip in Frame 2215
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room20";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1530 MovieClip in Frame 2215
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "False";
Trigger = "TrapHints";
}
Instance of Symbol 1531 MovieClip "AllFireballs" in Frame 2215
onClipEvent (load) {
Trigger = new array();
Trigger[0] = "Projectile0";
Trigger[1] = "Projectile1";
Trigger[2] = "Projectile2";
}
Instance of Symbol 1532 MovieClip "TrapHints" in Frame 2215
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "Wis";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = "Grt";
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 1;
Portrait = new array();
Portrait["1"] = "None";
Portrait["0"] = "Wolf";
Name = new array();
Name["1"] = "None";
Name["0"] = "Player";
Dialog = new array();
Dialog["1"] = "";
Dialog["0"] = "Stop. This zombie's patrol pattern is abnormal... added that to the peculiar rocks that lies around, something unusual must be around. I must be extra careful with this particular area.";
Goto = new array();
Goto["1"] = -1;
Goto["0"] = 1;
Failto = new array();
Failto["1"] = -1;
Failto["0"] = 1;
Event = new array();
Event["1"] = "Simple";
Event["0"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
}
Instance of Symbol 1533 MovieClip in Frame 2215
onClipEvent (load) {
Health = 30;
Damage = 5;
Speed = 3;
Rotation = 3;
Lurk = "False";
ActionSet = new array();
ActionSet["0"] = "StandStill";
ActionSet["1"] = "Movement";
ActionSet["2"] = "RotateClockwise";
ActionSet["3"] = "StandStill";
ActionSet["4"] = "RotateCounterClockwise";
ActionSet["5"] = "Movement";
ActionSet["6"] = "RotateClockwise";
ActionSet["7"] = "Movement";
ActionSet["8"] = "RotateCounterClockwise";
ActionSet["9"] = "Recall";
Property = new array();
Property["0"] = 10;
Property["1"] = 120;
Property["2"] = 90;
Property["3"] = 20;
Property["4"] = 0;
Property["5"] = 80;
Property["6"] = 180;
Property["7"] = 170;
Property["8"] = 0;
Property["9"] = 0;
Strength = 5;
}
Instance of Symbol 1078 MovieClip "Projectile0" in Frame 2215
onClipEvent (load) {
Speed = 8;
Damage = 10;
}
Instance of Symbol 1078 MovieClip "Projectile2" in Frame 2215
onClipEvent (load) {
Speed = 8;
Damage = 10;
}
Instance of Symbol 1534 MovieClip "Projectile1" in Frame 2215
onClipEvent (load) {
Speed = 8;
Damage = 10;
}
Frame 2225
stop();
Instance of Symbol 1535 MovieClip in Frame 2225
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room23";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1536 MovieClip in Frame 2225
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room21";
HomePoint = 1;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1537 MovieClip in Frame 2225
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "True";
Trigger = "SlaveEscape";
}
Instance of Symbol 1542 MovieClip in Frame 2225
onClipEvent (load) {
ActivationDelay = 0;
Destination = "TheVillage";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1543 MovieClip "SlaveWalkAway" in Frame 2225
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 3;
Action = new array();
Action["0"] = "Nothing";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "MoveTo";
Action["7"] = "Nothing";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Nothing";
Action["11"] = "Nothing";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Turn";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Nothing";
Action["21"] = "Nothing";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Movement";
Action["27"] = "Nothing";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Recall";
Action["31"] = "Nothing";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Const = new array();
Const["0"] = "";
Const["1"] = "";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = 250;
Const["7"] = "";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "";
Const["11"] = "";
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = 10;
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = "";
Const["21"] = "";
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = 5;
Const["27"] = "";
Const["28"] = "";
Const["29"] = "";
Const["30"] = "";
Const["31"] = "";
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Param = new array();
Param["0"] = "";
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = 140;
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = "";
Param["11"] = "";
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = -90;
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = "";
Param["21"] = "";
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = 150;
Param["27"] = "";
Param["28"] = "";
Param["29"] = "";
Param["30"] = "";
Param["31"] = "";
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
}
Instance of Symbol 1544 MovieClip "SlaveEscape" in Frame 2225
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "Follower";
Prerequsite["1"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
Prerequsite["10"] = "None";
Prerequsite["7"] = "None";
Prerequsite["8"] = "None";
Prerequsite["9"] = "None";
PreVar1 = new array();
PreVar1["0"] = "Slave";
PreVar1["1"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar1["10"] = 0;
PreVar1["7"] = 0;
PreVar1["8"] = 0;
PreVar1["9"] = 0;
PreVar2 = new array();
PreVar2["0"] = "Active";
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
PreVar2["10"] = 0;
PreVar2["7"] = 0;
PreVar2["8"] = 0;
PreVar2["9"] = 0;
Portrait = new array();
Portrait["0"] = "Slave";
Portrait["1"] = "None";
Portrait["2"] = "None";
Portrait["3"] = "Slave";
Portrait["4"] = "None";
Portrait["5"] = "None";
Portrait["6"] = "None";
Portrait["10"] = "None";
Portrait["7"] = "None";
Portrait["8"] = "None";
Portrait["9"] = "None";
Name = new array();
Name["0"] = "Gerald";
Name["1"] = "None";
Name["2"] = "None";
Name["3"] = "Gerald";
Name["4"] = "None";
Name["5"] = "NoDialog";
Name["6"] = "None";
Name["10"] = "NoDialog";
Name["7"] = "None";
Name["8"] = "None";
Name["9"] = "None";
Dialog = new array();
Dialog["0"] = "Wait... these trees are starting to become familiar to me. I think I've been here before... Of course I have! There, there lies the sign that would lead me back to my village!";
Dialog["1"] = "(recieves Karma Stone)";
Dialog["2"] = "(Recieves 2 healing scrolls)";
Dialog["3"] = "These are all the items that I have found along the way... and I wish that the karma stone will bring you luck. So long.";
Dialog["4"] = "(Gerald Leaves)";
Dialog["5"] = "(Follower Eliminated)";
Dialog["6"] = "(End Of Dialog)";
Dialog["10"] = "(Follower Eliminated)";
Dialog["7"] = "";
Dialog["8"] = "";
Dialog["9"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 3;
Goto["3"] = 4;
Goto["4"] = 5;
Goto["5"] = 6;
Goto["6"] = -1;
Goto["10"] = 5;
Goto["7"] = -1;
Goto["8"] = 9;
Goto["9"] = 10;
Failto = new array();
Failto["0"] = -1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = 5;
Failto["5"] = 6;
Failto["6"] = -1;
Failto["10"] = 5;
Failto["7"] = -1;
Failto["8"] = 9;
Failto["9"] = 10;
Event = new array();
Event["0"] = "Follower";
Event["1"] = "SpecialInventory";
Event["2"] = "PrimaryInventory";
Event["3"] = "Simple";
Event["4"] = "Cinametics";
Event["5"] = "Follower";
Event["6"] = "Simple";
Event["10"] = "Follower";
Event["7"] = "Simple";
Event["8"] = "Simple";
Event["9"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = "Deactivate";
EvtVar1["1"] = 5;
EvtVar1["2"] = 3;
EvtVar1["3"] = 0;
EvtVar1["4"] = "SlaveWalkAway";
EvtVar1["5"] = "Terminate";
EvtVar1["6"] = 0;
EvtVar1["10"] = "Terminate";
EvtVar1["7"] = 0;
EvtVar1["8"] = 0;
EvtVar1["9"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 1;
EvtVar2["2"] = 2;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
EvtVar2["5"] = 0;
EvtVar2["6"] = 0;
EvtVar2["10"] = 0;
EvtVar2["7"] = 0;
EvtVar2["8"] = 0;
EvtVar2["9"] = 0;
}
Instance of Symbol 1392 MovieClip in Frame 2225
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 1392 MovieClip in Frame 2225
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 945 MovieClip "Home2" in Frame 2225
onClipEvent (load) {
UniversalID = 0;
}
Frame 2235
stop();
Instance of Symbol 1546 MovieClip in Frame 2235
onClipEvent (load) {
SequenceRequest = 10;
SequenceIncrease = 11;
Trigger = "LathaniaEntry";
}
Instance of Symbol 1547 MovieClip in Frame 2235
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room24";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1548 MovieClip "LathaniaDialog" in Frame 2235
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
Prerequsite["-1"] = "None";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
Prerequsite["7"] = "None";
Prerequsite["8"] = "None";
Prerequsite["9"] = "None";
Prerequsite["10"] = "Wis";
Prerequsite["11"] = "None";
Prerequsite["12"] = "None";
Prerequsite["13"] = "None";
Prerequsite["14"] = "None";
Prerequsite["15"] = "None";
Prerequsite["16"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar1["-1"] = 0;
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar1["7"] = 0;
PreVar1["8"] = 0;
PreVar1["9"] = 0;
PreVar1["10"] = "Grt";
PreVar1["11"] = 0;
PreVar1["12"] = 0;
PreVar1["13"] = 0;
PreVar1["14"] = 0;
PreVar1["15"] = 0;
PreVar1["16"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
PreVar2["-1"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
PreVar2["7"] = 0;
PreVar2["8"] = 0;
PreVar2["9"] = 0;
PreVar2["10"] = 3;
PreVar2["11"] = 0;
PreVar2["12"] = 0;
PreVar2["13"] = 0;
PreVar2["14"] = 0;
PreVar2["15"] = 0;
PreVar2["16"] = 0;
Portrait = new array();
Portrait["0"] = "Lathania";
Portrait["1"] = "Wolf";
Portrait["2"] = "Lathania";
Portrait["3"] = "Wolf";
Portrait["4"] = "Lathania";
Portrait["-1"] = "None";
Portrait["5"] = "Wolf";
Portrait["6"] = "Lathania";
Portrait["7"] = "Wolf";
Portrait["8"] = "None";
Portrait["9"] = "None";
Portrait["10"] = "None";
Portrait["11"] = "Lathania";
Portrait["12"] = "None";
Portrait["13"] = "Wolf";
Portrait["14"] = "None";
Portrait["15"] = "Lathania";
Portrait["16"] = "Lathania";
Name = new array();
Name["0"] = "Lathania";
Name["1"] = "Player";
Name["2"] = "Lathania";
Name["3"] = "Player";
Name["4"] = "Lathania";
Name["-1"] = "None";
Name["5"] = "Player";
Name["6"] = "Lathania";
Name["7"] = "Player";
Name["8"] = "NoDialog";
Name["9"] = "None";
Name["10"] = "None";
Name["11"] = "Lathania";
Name["12"] = "None";
Name["13"] = "Player";
Name["14"] = "None";
Name["15"] = "Lathania";
Name["16"] = "Lathania";
Dialog = new array();
Dialog["0"] = "Hello again, Chosen One. Why do you look surprised? You shouldn't be, if you are truly a kin to the darkness.";
Dialog["1"] = "Your name is Lathania, if I recall correctly... look, you are starting to get onto my nerves. It doesn't matter if you are some powerful magical creature... you are on my way to completing the mission, and if you interfere with me any further, I will have no choice but to kill you.";
Dialog["2"] = "Kill me? My, such loud and noisy words! Why don't you think before you act, dear? I am here bearing a message. Let me warn you, the entrance of the temple is sealed with acid mines. pick your steps carefully, and you may yet survive another day.";
Dialog["3"] = "Why are you telling me this? Are you foe or ally? You are holding too much mystery for your own good, child.";
Dialog["4"] = "Honeypug, I have my reasons. You have to live... that's what the elders told me. Guard you, they say...";
Dialog["-1"] = "";
Dialog["5"] = "Who are the elders? Why do you want to guard me?";
Dialog["6"] = "I am sorry, this is as far as I can tell you. I can speak no more.";
Dialog["7"] = "Then this is as far as you can live, Lathania. You seems to be siding with both sides of this conflict, and you are enjoying it. I, however, do not wish to be a puppet in your little mind games. Draw your staff and fight!";
Dialog["8"] = "(Lathania Activated)";
Dialog["9"] = "(End Of Dialog)";
Dialog["10"] = "What do you mean, \"I will?\" So now you are a seer of the future?";
Dialog["11"] = "Very well, it seems that you are too absorbed in your own self to see things through anyway... I suppose that the speculation of the elders have gone too far. I have nothing more to say to you... farewell.";
Dialog["12"] = "(Lathania Goes Away)";
Dialog["13"] = "Dawn is coming soon... I have to get going before I am weakened by the sun...";
Dialog["14"] = "(End of Dialog)";
Dialog["15"] = "I speculated this much. Those are things of the future... they will come, and you will see them in time. Well, at least you are honest. I suppose that there are good qualities in you, afterall.";
Dialog["16"] = "I speculated this much. Those are things of the future... they will come, and you will see them in time. Well, at least you are honest. I suppose that there are good qualities in you, afterall. ";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 3;
Goto["3"] = 4;
Goto["4"] = 5;
Goto["-1"] = 0;
Goto["5"] = 6;
Goto["6"] = 7;
Goto["7"] = 8;
Goto["8"] = 9;
Goto["9"] = -1;
Goto["10"] = 11;
Goto["11"] = 12;
Goto["12"] = 13;
Goto["13"] = 14;
Goto["14"] = -1;
Goto["15"] = 14;
Goto["16"] = 16;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = 5;
Failto["-1"] = 0;
Failto["5"] = 6;
Failto["6"] = 7;
Failto["7"] = 8;
Failto["8"] = 9;
Failto["9"] = -1;
Failto["10"] = 11;
Failto["11"] = 12;
Failto["12"] = 13;
Failto["13"] = 14;
Failto["14"] = -1;
Failto["15"] = 14;
Failto["16"] = 16;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
Event["4"] = "Simple";
Event["-1"] = "Simple";
Event["5"] = "Simple";
Event["6"] = "Simple";
Event["7"] = "Simple";
Event["8"] = "Activate";
Event["9"] = "Simple";
Event["10"] = "Simple";
Event["11"] = "Simple";
Event["12"] = "Cinametics";
Event["13"] = "Simple";
Event["14"] = "Simple";
Event["15"] = "Simple";
Event["16"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar1["-1"] = 0;
EvtVar1["5"] = 0;
EvtVar1["6"] = 0;
EvtVar1["7"] = 0;
EvtVar1["8"] = "LathaniaActions";
EvtVar1["9"] = 0;
EvtVar1["10"] = 0;
EvtVar1["11"] = 0;
EvtVar1["12"] = "LathaniaEscape";
EvtVar1["13"] = 0;
EvtVar1["14"] = 0;
EvtVar1["15"] = 0;
EvtVar1["16"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
EvtVar2["-1"] = 0;
EvtVar2["5"] = 0;
EvtVar2["6"] = 0;
EvtVar2["7"] = 0;
EvtVar2["8"] = 0;
EvtVar2["9"] = 0;
EvtVar2["10"] = 0;
EvtVar2["11"] = 0;
EvtVar2["12"] = 0;
EvtVar2["13"] = 0;
EvtVar2["14"] = 0;
EvtVar2["15"] = 0;
EvtVar2["16"] = 0;
}
Instance of Symbol 1549 MovieClip "LathaniaEscape" in Frame 2235
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 3;
Action = new array();
Action["0"] = "Speak";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Nothing";
Action["7"] = "Nothing";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Nothing";
Action["11"] = "Special";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Nothing";
Action["21"] = "SetVisible";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Nothing";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Recall";
Action["31"] = "Nothing";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "Nothing";
Action["41"] = "Nothing";
Action["42"] = "Nothing";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "Nothing";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Nothing";
Action["51"] = "Nothing";
Action["52"] = "Nothing";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Nothing";
Action["58"] = "Nothing";
Action["59"] = "Nothing";
Action["60"] = "Nothing";
Action["61"] = "Nothing";
Action["62"] = "Nothing";
Action["63"] = "Nothing";
Action["64"] = "Nothing";
Action["65"] = "Nothing";
Action["66"] = "Nothing";
Action["67"] = "Nothing";
Action["68"] = "Nothing";
Action["69"] = "Nothing";
Action["70"] = "Nothing";
Action["71"] = "Nothing";
Action["72"] = "Nothing";
Action["73"] = "Nothing";
Action["74"] = "Nothing";
Action["75"] = "Nothing";
Action["76"] = "Nothing";
Action["77"] = "Nothing";
Action["78"] = "Nothing";
Action["79"] = "Nothing";
Const = new array();
Const["0"] = "";
Const["1"] = "";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "";
Const["7"] = "";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "";
Const["11"] = "Phase Out";
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = "";
Const["21"] = "False";
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = 0;
Const["28"] = "";
Const["29"] = "";
Const["30"] = "";
Const["31"] = "";
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Const["40"] = "";
Const["41"] = "";
Const["42"] = "";
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "";
Const["48"] = "";
Const["49"] = "";
Const["50"] = "";
Const["51"] = "";
Const["52"] = "";
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "";
Const["58"] = "";
Const["59"] = "";
Const["60"] = "";
Const["61"] = "";
Const["62"] = "";
Const["63"] = "";
Const["64"] = "";
Const["65"] = "";
Const["66"] = "";
Const["67"] = "";
Const["68"] = "";
Const["69"] = "";
Const["70"] = "";
Const["71"] = "";
Const["72"] = "";
Const["73"] = "";
Const["74"] = "";
Const["75"] = "";
Const["76"] = "";
Const["77"] = "";
Const["78"] = "";
Const["79"] = "";
Param = new array();
Param["0"] = "";
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = "";
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = "";
Param["11"] = 25;
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = "";
Param["21"] = "";
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = 0;
Param["28"] = "";
Param["29"] = "";
Param["30"] = "";
Param["31"] = "";
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
Param["40"] = "";
Param["41"] = "";
Param["42"] = "";
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = "";
Param["48"] = "";
Param["49"] = "";
Param["50"] = "";
Param["51"] = "";
Param["52"] = "";
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = "";
Param["58"] = "";
Param["59"] = "";
Param["60"] = "";
Param["61"] = "";
Param["62"] = "";
Param["63"] = "";
Param["64"] = "";
Param["65"] = "";
Param["66"] = "";
Param["67"] = "";
Param["68"] = "";
Param["69"] = "";
Param["70"] = "";
Param["71"] = "";
Param["72"] = "";
Param["73"] = "";
Param["74"] = "";
Param["75"] = "";
Param["76"] = "";
Param["77"] = "";
Param["78"] = "";
Param["79"] = "";
}
Instance of Symbol 1550 MovieClip "LathaniaEndDialog" in Frame 2235
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["1"] = "None";
Portrait["0"] = "Lathania";
Portrait["2"] = "Wolf";
Portrait["3"] = "None";
Name = new array();
Name["1"] = "None";
Name["0"] = "Lathania";
Name["2"] = "Player";
Name["3"] = "None";
Dialog = new array();
Dialog["1"] = "(Lathania goes away)";
Dialog["0"] = "Stop! How many times do I have to tell you before you can understand that this fight will be senseless? I am not your enemy. I will not attempt to kill you just to prove my point. Pay heed to my words, and live...";
Dialog["2"] = "I don't trust that... girl... but it is better to be too cautious than too careless at this point. Perhaps I should take extra precaution around the temple entrance.";
Dialog["3"] = "(End of Dialog)";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = 3;
Goto["3"] = -1;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 1;
Failto["2"] = 3;
Failto["3"] = -1;
Event = new array();
Event["1"] = "Cinametics";
Event["0"] = "Activate";
Event["2"] = "Activate";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = "LathaniaEscape";
EvtVar1["0"] = "LathaniaPause";
EvtVar1["2"] = "Thief._parent";
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
}
Instance of Symbol 1551 MovieClip "Saying3" in Frame 2235
onClipEvent (load) {
ActivationDelay = 300;
Trigger = "LathaniaEndDialog";
}
Instance of Symbol 1552 MovieClip "Saying2" in Frame 2235
onClipEvent (load) {
ActivationDelay = 200;
Trigger = "Popup2";
}
Instance of Symbol 1553 MovieClip "LathaniaActions" in Frame 2235
onClipEvent (load) {
Trigger = new array();
Trigger[0] = "Enemy0";
Trigger[1] = "Saying1";
Trigger[2] = "Saying2";
Trigger[3] = "Saying3";
}
Instance of Symbol 1554 MovieClip "Saying1" in Frame 2235
onClipEvent (load) {
ActivationDelay = 100;
Trigger = "Popup1";
}
Instance of Symbol 1590 MovieClip in Frame 2235
onClipEvent (load) {
DeathAction = "Undefined";
MaxHealth = 9999;
DeathPossible = "False";
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1591 MovieClip "LathaniaEntry" in Frame 2235
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "_root";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 6;
Action = new array();
Action["0"] = "Movement";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Nothing";
Action["7"] = "Nothing";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Special";
Action["11"] = "Special";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Nothing";
Action["21"] = "SetVisible";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Nothing";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Speak";
Action["31"] = "Special";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "Speak";
Action["41"] = "Nothing";
Action["42"] = "Nothing";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "Nothing";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Nothing";
Action["51"] = "Nothing";
Action["52"] = "Nothing";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Special";
Action["58"] = "Nothing";
Action["59"] = "Nothing";
Action["60"] = "Recall";
Action["61"] = "Nothing";
Action["62"] = "Nothing";
Action["63"] = "Nothing";
Action["64"] = "Nothing";
Action["65"] = "Nothing";
Action["66"] = "Nothing";
Action["67"] = "Nothing";
Action["68"] = "Nothing";
Action["69"] = "Nothing";
Const = new array();
Const["0"] = 5;
Const["1"] = "False";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "";
Const["7"] = "";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "Stand Still";
Const["11"] = "Phase In";
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = "";
Const["21"] = "True";
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = "";
Const["28"] = "";
Const["29"] = "";
Const["30"] = "?!";
Const["31"] = "Phase In";
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Const["40"] = "You again!!";
Const["41"] = "";
Const["42"] = "";
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "";
Const["48"] = "";
Const["49"] = "";
Const["50"] = "";
Const["51"] = "";
Const["52"] = "";
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "Room23a";
Const["58"] = "";
Const["59"] = "";
Const["60"] = "";
Const["61"] = "";
Const["62"] = "";
Const["63"] = "";
Const["64"] = "";
Const["65"] = "";
Const["66"] = "";
Const["67"] = "";
Const["68"] = "";
Const["69"] = "";
Param = new array();
Param["0"] = 200;
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = "";
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = 1;
Param["11"] = 1;
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = "";
Param["21"] = "";
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = "";
Param["28"] = "";
Param["29"] = "";
Param["30"] = "";
Param["31"] = 10;
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
Param["40"] = "";
Param["41"] = "";
Param["42"] = "";
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = "";
Param["48"] = "";
Param["49"] = "";
Param["50"] = "";
Param["51"] = "";
Param["52"] = "";
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = 1;
Param["58"] = "";
Param["59"] = "";
Param["60"] = "";
Param["61"] = "";
Param["62"] = "";
Param["63"] = "";
Param["64"] = "";
Param["65"] = "";
Param["66"] = "";
Param["67"] = "";
Param["68"] = "";
Param["69"] = "";
}
Instance of Symbol 1079 MovieClip in Frame 2235
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1245 MovieClip in Frame 2235
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1398 MovieClip in Frame 2235
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1597 MovieClip in Frame 2242
onClipEvent (load) {
SequenceRequest = 11;
SequenceIncrease = 12;
Trigger = "LathaniaDialog";
}
onClipEvent (load) {
_visible = false;
}
Frame 2243
stop();
Frame 2250
stop();
Instance of Symbol 1398 MovieClip in Frame 2250
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Frame 2259
stop();
Instance of Symbol 1464 MovieClip "FalseAmulet" in Frame 2259
onClipEvent (load) {
UID = -1;
Type = "Special";
ItemNo = 4;
Amount = 1;
AutoTrigger = "False";
}
Instance of Symbol 1598 MovieClip in Frame 2259
onClipEvent (load) {
ActivationDelay = 0;
Destination = "EiOfH";
HomePoint = 0;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1467 MovieClip "TrueAmulet" in Frame 2259
onClipEvent (load) {
UID = -1;
Type = "Special";
ItemNo = 4;
Amount = 1;
AutoTrigger = "False";
}
Instance of Symbol 1599 MovieClip in Frame 2259
onClipEvent (load) {
SequenceRequest = 12;
SequenceIncrease = 13;
Trigger = "AcidClues";
}
Instance of Symbol 1624 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 5;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1625 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 10;
}
Instance of Symbol 1626 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1626 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1626 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1626 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1626 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1626 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1625 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 10;
}
Instance of Symbol 1626 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1625 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 10;
}
Instance of Symbol 1625 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 10;
}
Instance of Symbol 1625 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 10;
}
Instance of Symbol 1626 MovieClip in Frame 2259
onClipEvent (load) {
AutoTrigger = "True";
ActivationDelay = 0;
Detectable = "True";
Damage = 20;
}
Instance of Symbol 1627 MovieClip "AcidClues" in Frame 2259
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["1"] = "None";
Prerequsite["0"] = "None";
Prerequsite["2"] = "None";
Prerequsite["3"] = "None";
PreVar1 = new array();
PreVar1["1"] = 0;
PreVar1["0"] = 0;
PreVar1["2"] = 0;
PreVar1["3"] = 0;
PreVar2 = new array();
PreVar2["1"] = 0;
PreVar2["0"] = 0;
PreVar2["2"] = 0;
PreVar2["3"] = 0;
Portrait = new array();
Portrait["1"] = "Wolf";
Portrait["0"] = "Wolf";
Portrait["2"] = "Wolf";
Portrait["3"] = "None";
Name = new array();
Name["1"] = "Player";
Name["0"] = "Player";
Name["2"] = "Player";
Name["3"] = "None";
Dialog = new array();
Dialog["1"] = "Acid mines are spell scrolls sealed in bottles, usually buried beneath the ground. There are no physical traits about these mines. When one steps too close to them, the spell will be unsealed, releasing a stream of acid and hurting everything around it.";
Dialog["0"] = "I can see the Mausoleum ahead. With so many guards along the path, It is not right that there is no sentry guarding the entrance. Perhaps that cursed girl is right, afterall. There are acid mines around this area.";
Dialog["2"] = "To avoid acid mines, crouch at a location where an acid mine might be. If I am close enough to the mine, my innate magical energy should pick up its signature and identifies its precise location.";
Dialog["3"] = "(End Of Dialog)";
Goto = new array();
Goto["1"] = 2;
Goto["0"] = 1;
Goto["2"] = 3;
Goto["3"] = -1;
Failto = new array();
Failto["1"] = 2;
Failto["0"] = 1;
Failto["2"] = 3;
Failto["3"] = -1;
Event = new array();
Event["1"] = "Simple";
Event["0"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
EvtVar1 = new array();
EvtVar1["1"] = 0;
EvtVar1["0"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar2 = new array();
EvtVar2["1"] = 0;
EvtVar2["0"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
}
Instance of Symbol 1398 MovieClip in Frame 2259
onClipEvent (load) {
Bound = "East";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1245 MovieClip in Frame 2259
onClipEvent (load) {
Bound = "West";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1628 MovieClip "DramaticEntrance" in Frame 2259
onClipEvent (load) {
ClipName = "DramaticEntrance";
}
Frame 2269
CurrentScene = "pXcVk";
_root.DramaticEntrance.PlayClip();
if (DraculaFound.Set) {
GameRecord.Located();
}
if (BudweiserFound.Set) {
GameRecord.Located();
}
if (TheVillageFound.Set) {
GameRecord.Located();
}
stop();
Instance of Symbol 1644 MovieClip in Frame 2269
onClipEvent (load) {
SequenceRequest = 13;
SequenceIncrease = 14;
Trigger = "ThiefMonologue";
}
Instance of Symbol 1646 MovieClip in Frame 2269
onClipEvent (load) {
ActivationAmount = 5;
Trigger = "PushStatue";
Visible = "False";
}
Instance of Symbol 1647 MovieClip in Frame 2269
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "True";
Trigger = "AreaCleared";
}
Instance of Symbol 1647 MovieClip in Frame 2269
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 0;
ActivationAmount = 1;
Invisible = "True";
HeldDown = "True";
Trigger = "AreaCleared";
}
Instance of Symbol 1648 MovieClip "ThiefMonologue" in Frame 2269
onClipEvent (load) {
Subscribe = new array();
Subscribe["0"] = "used";
Subscribe["7"] = "";
Subscribe["8"] = "";
Subscribe["9"] = "";
Subscribe["10"] = 4;
Action = new array();
Action["0"] = "Speak";
Action["1"] = "Nothing";
Action["2"] = "Nothing";
Action["3"] = "Nothing";
Action["4"] = "Nothing";
Action["5"] = "Nothing";
Action["6"] = "Nothing";
Action["7"] = "Nothing";
Action["8"] = "Nothing";
Action["9"] = "Nothing";
Action["10"] = "Speak";
Action["11"] = "Nothing";
Action["12"] = "Nothing";
Action["13"] = "Nothing";
Action["14"] = "Nothing";
Action["15"] = "Nothing";
Action["16"] = "Nothing";
Action["17"] = "Nothing";
Action["18"] = "Nothing";
Action["19"] = "Nothing";
Action["20"] = "Speak";
Action["21"] = "Nothing";
Action["22"] = "Nothing";
Action["23"] = "Nothing";
Action["24"] = "Nothing";
Action["25"] = "Nothing";
Action["26"] = "Nothing";
Action["27"] = "Nothing";
Action["28"] = "Nothing";
Action["29"] = "Nothing";
Action["30"] = "Speak";
Action["31"] = "Nothing";
Action["32"] = "Nothing";
Action["33"] = "Nothing";
Action["34"] = "Nothing";
Action["35"] = "Nothing";
Action["36"] = "Nothing";
Action["37"] = "Nothing";
Action["38"] = "Nothing";
Action["39"] = "Nothing";
Action["40"] = "Recall";
Action["41"] = "Nothing";
Action["42"] = "Nothing";
Action["43"] = "Nothing";
Action["44"] = "Nothing";
Action["45"] = "Nothing";
Action["46"] = "Nothing";
Action["47"] = "Nothing";
Action["48"] = "Nothing";
Action["49"] = "Nothing";
Action["50"] = "Nothing";
Action["51"] = "Nothing";
Action["52"] = "Nothing";
Action["53"] = "Nothing";
Action["54"] = "Nothing";
Action["55"] = "Nothing";
Action["56"] = "Nothing";
Action["57"] = "Nothing";
Action["58"] = "Nothing";
Action["59"] = "Nothing";
Action["60"] = "Nothing";
Action["61"] = "Nothing";
Action["62"] = "Nothing";
Action["63"] = "Nothing";
Action["64"] = "Nothing";
Action["65"] = "Nothing";
Action["66"] = "Nothing";
Action["67"] = "Nothing";
Action["68"] = "Nothing";
Action["69"] = "Nothing";
Action["70"] = "Nothing";
Action["71"] = "Nothing";
Action["72"] = "Nothing";
Action["73"] = "Nothing";
Action["74"] = "Nothing";
Action["75"] = "Nothing";
Action["76"] = "Nothing";
Action["77"] = "Nothing";
Action["78"] = "Nothing";
Action["79"] = "Nothing";
Const = new array();
Const["0"] = "";
Const["1"] = "";
Const["2"] = "";
Const["3"] = "";
Const["4"] = "";
Const["5"] = "";
Const["6"] = "";
Const["7"] = "";
Const["8"] = "";
Const["9"] = "";
Const["10"] = "So this... this is the accursed mausoleum.";
Const["11"] = "Phase Out";
Const["12"] = "";
Const["13"] = "";
Const["14"] = "";
Const["15"] = "";
Const["16"] = "";
Const["17"] = "";
Const["18"] = "";
Const["19"] = "";
Const["20"] = "I sense... such strange darkness around me.";
Const["21"] = "False";
Const["22"] = "";
Const["23"] = "";
Const["24"] = "";
Const["25"] = "";
Const["26"] = "";
Const["27"] = "";
Const["28"] = "";
Const["29"] = "";
Const["30"] = "... it feels like home.";
Const["31"] = "";
Const["32"] = "";
Const["33"] = "";
Const["34"] = "";
Const["35"] = "";
Const["36"] = "";
Const["37"] = "";
Const["38"] = "";
Const["39"] = "";
Const["40"] = "";
Const["41"] = "";
Const["42"] = "";
Const["43"] = "";
Const["44"] = "";
Const["45"] = "";
Const["46"] = "";
Const["47"] = "";
Const["48"] = "";
Const["49"] = "";
Const["50"] = "";
Const["51"] = "";
Const["52"] = "";
Const["53"] = "";
Const["54"] = "";
Const["55"] = "";
Const["56"] = "";
Const["57"] = "";
Const["58"] = "";
Const["59"] = "";
Const["60"] = "";
Const["61"] = "";
Const["62"] = "";
Const["63"] = "";
Const["64"] = "";
Const["65"] = "";
Const["66"] = "";
Const["67"] = "";
Const["68"] = "";
Const["69"] = "";
Const["70"] = "";
Const["71"] = "";
Const["72"] = "";
Const["73"] = "";
Const["74"] = "";
Const["75"] = "";
Const["76"] = "";
Const["77"] = "";
Const["78"] = "";
Const["79"] = "";
Param = new array();
Param["0"] = "";
Param["1"] = "";
Param["2"] = "";
Param["3"] = "";
Param["4"] = "";
Param["5"] = "";
Param["6"] = "";
Param["7"] = "";
Param["8"] = "";
Param["9"] = "";
Param["10"] = "";
Param["11"] = 25;
Param["12"] = "";
Param["13"] = "";
Param["14"] = "";
Param["15"] = "";
Param["16"] = "";
Param["17"] = "";
Param["18"] = "";
Param["19"] = "";
Param["20"] = "";
Param["21"] = "";
Param["22"] = "";
Param["23"] = "";
Param["24"] = "";
Param["25"] = "";
Param["26"] = "";
Param["27"] = "";
Param["28"] = "";
Param["29"] = "";
Param["30"] = "";
Param["31"] = "";
Param["32"] = "";
Param["33"] = "";
Param["34"] = "";
Param["35"] = "";
Param["36"] = "";
Param["37"] = "";
Param["38"] = "";
Param["39"] = "";
Param["40"] = "";
Param["41"] = "";
Param["42"] = "";
Param["43"] = "";
Param["44"] = "";
Param["45"] = "";
Param["46"] = "";
Param["47"] = "";
Param["48"] = "";
Param["49"] = "";
Param["50"] = "";
Param["51"] = "";
Param["52"] = "";
Param["53"] = "";
Param["54"] = "";
Param["55"] = "";
Param["56"] = "";
Param["57"] = "";
Param["58"] = "";
Param["59"] = "";
Param["60"] = "";
Param["61"] = "";
Param["62"] = "";
Param["63"] = "";
Param["64"] = "";
Param["65"] = "";
Param["66"] = "";
Param["67"] = "";
Param["68"] = "";
Param["69"] = "";
Param["70"] = "";
Param["71"] = "";
Param["72"] = "";
Param["73"] = "";
Param["74"] = "";
Param["75"] = "";
Param["76"] = "";
Param["77"] = "";
Param["78"] = "";
Param["79"] = "";
}
Instance of Symbol 1315 MovieClip "RumbleClip" in Frame 2269
onClipEvent (load) {
ClipName = "Rumble";
}
Instance of Symbol 1649 MovieClip "PushStatue" in Frame 2269
onClipEvent (load) {
Trigger = new array();
Trigger[0] = "_root";
Trigger[1] = "RumbleClip";
}
Instance of Symbol 1392 MovieClip in Frame 2269
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 1079 MovieClip in Frame 2269
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1392 MovieClip in Frame 2269
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Instance of Symbol 1392 MovieClip in Frame 2269
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Frame 2270
stop();
Frame 2271
stop();
Frame 2272
stop();
Frame 2273
stop();
Frame 2274
RumbleClip.StartClip();
Instance of Symbol 1652 MovieClip in Frame 2275
onClipEvent (load) {
ActivationAmount = 1;
Trigger = "_root";
Visible = "False";
}
Frame 2300
currentLocation = "EiZnH";
RumbleClip.StopClip();
stop();
Frame 2311
stop();
TheVillageFound.Set = true;
Instance of Symbol 1653 MovieClip in Frame 2311
onClipEvent (load) {
PlayerOnly = "True";
ActivationDelay = 2;
ActivationAmount = 9999;
Invisible = "True";
HeldDown = "False";
Trigger = "Trade";
}
Instance of Symbol 1654 MovieClip "coins" in Frame 2311
onClipEvent (load) {
UID = 5;
Type = "Special";
ItemNo = 6;
Amount = 1;
AutoTrigger = "True";
}
Instance of Symbol 1655 MovieClip in Frame 2311
onClipEvent (load) {
ActivationDelay = 0;
Destination = "Room22";
HomePoint = 2;
FirstRoom = 0;
LastRoom = 0;
}
Instance of Symbol 1656 MovieClip "Trade" in Frame 2311
onClipEvent (load) {
Prerequsite = new array();
Prerequsite["0"] = "None";
Prerequsite["1"] = "None";
Prerequsite["2"] = "Item";
Prerequsite["3"] = "None";
Prerequsite["4"] = "None";
Prerequsite["5"] = "None";
Prerequsite["6"] = "None";
Prerequsite["7"] = "None";
Prerequsite["8"] = "None";
Prerequsite["9"] = "None";
Prerequsite["10"] = "None";
Prerequsite["11"] = "None";
Prerequsite["12"] = "None";
Prerequsite["13"] = "None";
Prerequsite["14"] = "None";
Prerequsite["15"] = "None";
Prerequsite["16"] = "None";
Prerequsite["17"] = "None";
Prerequsite["18"] = "None";
Prerequsite["19"] = "None";
Prerequsite["20"] = "None";
Prerequsite["21"] = "None";
Prerequsite["22"] = "None";
Prerequsite["23"] = "None";
Prerequsite["24"] = "Item";
Prerequsite["25"] = "None";
Prerequsite["26"] = "None";
Prerequsite["27"] = "None";
Prerequsite["28"] = "None";
Prerequsite["29"] = "None";
Prerequsite["30"] = "None";
Prerequsite["31"] = "None";
Prerequsite["32"] = "Item";
Prerequsite["33"] = "None";
Prerequsite["34"] = "None";
Prerequsite["35"] = "None";
Prerequsite["36"] = "None";
Prerequsite["37"] = "None";
Prerequsite["38"] = "None";
Prerequsite["39"] = "None";
Prerequsite["40"] = "Item";
Prerequsite["41"] = "None";
Prerequsite["42"] = "None";
Prerequsite["43"] = "None";
Prerequsite["44"] = "None";
Prerequsite["45"] = "None";
Prerequsite["46"] = "None";
Prerequsite["47"] = "None";
Prerequsite["48"] = "None";
Prerequsite["49"] = "None";
Prerequsite["50"] = "None";
Prerequsite["51"] = "None";
Prerequsite["52"] = "Item";
Prerequsite["53"] = "Item";
Prerequsite["54"] = "None";
Prerequsite["55"] = "None";
Prerequsite["56"] = "None";
Prerequsite["57"] = "None";
Prerequsite["58"] = "None";
Prerequsite["59"] = "None";
Prerequsite["60"] = "None";
PreVar1 = new array();
PreVar1["0"] = 0;
PreVar1["1"] = 0;
PreVar1["2"] = "Special";
PreVar1["3"] = 0;
PreVar1["4"] = 0;
PreVar1["5"] = 0;
PreVar1["6"] = 0;
PreVar1["7"] = 0;
PreVar1["8"] = 0;
PreVar1["9"] = 0;
PreVar1["10"] = 0;
PreVar1["11"] = 0;
PreVar1["12"] = 0;
PreVar1["13"] = 0;
PreVar1["14"] = 0;
PreVar1["15"] = 0;
PreVar1["16"] = 0;
PreVar1["17"] = 0;
PreVar1["18"] = 0;
PreVar1["19"] = 0;
PreVar1["20"] = 0;
PreVar1["21"] = 0;
PreVar1["22"] = 0;
PreVar1["23"] = 0;
PreVar1["24"] = "Special";
PreVar1["25"] = 0;
PreVar1["26"] = 0;
PreVar1["27"] = 0;
PreVar1["28"] = 0;
PreVar1["29"] = 0;
PreVar1["30"] = 0;
PreVar1["31"] = 0;
PreVar1["32"] = "Special";
PreVar1["33"] = 0;
PreVar1["34"] = 0;
PreVar1["35"] = 0;
PreVar1["36"] = 0;
PreVar1["37"] = 0;
PreVar1["38"] = 0;
PreVar1["39"] = 0;
PreVar1["40"] = "Special";
PreVar1["41"] = 0;
PreVar1["42"] = 0;
PreVar1["43"] = 0;
PreVar1["44"] = 0;
PreVar1["45"] = 0;
PreVar1["46"] = 0;
PreVar1["47"] = 0;
PreVar1["48"] = 0;
PreVar1["49"] = 0;
PreVar1["50"] = 0;
PreVar1["51"] = 0;
PreVar1["52"] = "Special";
PreVar1["53"] = "Special";
PreVar1["54"] = 0;
PreVar1["55"] = 0;
PreVar1["56"] = 0;
PreVar1["57"] = 0;
PreVar1["58"] = 0;
PreVar1["59"] = 0;
PreVar1["60"] = 0;
PreVar2 = new array();
PreVar2["0"] = 0;
PreVar2["1"] = 0;
PreVar2["2"] = 6;
PreVar2["3"] = 0;
PreVar2["4"] = 0;
PreVar2["5"] = 0;
PreVar2["6"] = 0;
PreVar2["7"] = 0;
PreVar2["8"] = 0;
PreVar2["9"] = 0;
PreVar2["10"] = 0;
PreVar2["11"] = 0;
PreVar2["12"] = 0;
PreVar2["13"] = 0;
PreVar2["14"] = 0;
PreVar2["15"] = 0;
PreVar2["16"] = 0;
PreVar2["17"] = 0;
PreVar2["18"] = 0;
PreVar2["19"] = 0;
PreVar2["20"] = 0;
PreVar2["21"] = 0;
PreVar2["22"] = 0;
PreVar2["23"] = 0;
PreVar2["24"] = 6;
PreVar2["25"] = 0;
PreVar2["26"] = 0;
PreVar2["27"] = 0;
PreVar2["28"] = 0;
PreVar2["29"] = 0;
PreVar2["30"] = 0;
PreVar2["31"] = 0;
PreVar2["32"] = 6;
PreVar2["33"] = 0;
PreVar2["34"] = 0;
PreVar2["35"] = 0;
PreVar2["36"] = 0;
PreVar2["37"] = 0;
PreVar2["38"] = 0;
PreVar2["39"] = 0;
PreVar2["40"] = 6;
PreVar2["41"] = 0;
PreVar2["42"] = 0;
PreVar2["43"] = 0;
PreVar2["44"] = 0;
PreVar2["45"] = 0;
PreVar2["46"] = 0;
PreVar2["47"] = 0;
PreVar2["48"] = 0;
PreVar2["49"] = 0;
PreVar2["50"] = 0;
PreVar2["51"] = 0;
PreVar2["52"] = 6;
PreVar2["53"] = 6;
PreVar2["54"] = 0;
PreVar2["55"] = 0;
PreVar2["56"] = 0;
PreVar2["57"] = 0;
PreVar2["58"] = 0;
PreVar2["59"] = 0;
PreVar2["60"] = 0;
Portrait = new array();
Portrait["0"] = "Juliana";
Portrait["1"] = "Juliana";
Portrait["2"] = "Juliana";
Portrait["3"] = "Juliana";
Portrait["4"] = "None";
Portrait["5"] = "Juliana";
Portrait["6"] = "None";
Portrait["7"] = "None";
Portrait["8"] = "None";
Portrait["9"] = "None";
Portrait["10"] = "None";
Portrait["11"] = "None";
Portrait["12"] = "None";
Portrait["13"] = "Juliana";
Portrait["14"] = "None";
Portrait["15"] = "None";
Portrait["16"] = "None";
Portrait["17"] = "None";
Portrait["18"] = "None";
Portrait["19"] = "None";
Portrait["20"] = "None";
Portrait["21"] = "None";
Portrait["22"] = "None";
Portrait["23"] = "Juliana";
Portrait["24"] = "Juliana";
Portrait["25"] = "Juliana";
Portrait["26"] = "None";
Portrait["27"] = "None";
Portrait["28"] = "None";
Portrait["29"] = "None";
Portrait["30"] = "Juliana";
Portrait["31"] = "None";
Portrait["32"] = "None";
Portrait["33"] = "Juliana";
Portrait["34"] = "None";
Portrait["35"] = "None";
Portrait["36"] = "None";
Portrait["37"] = "None";
Portrait["38"] = "None";
Portrait["39"] = "None";
Portrait["40"] = "None";
Portrait["41"] = "Juliana";
Portrait["42"] = "None";
Portrait["43"] = "None";
Portrait["44"] = "None";
Portrait["45"] = "None";
Portrait["46"] = "None";
Portrait["47"] = "None";
Portrait["48"] = "None";
Portrait["49"] = "None";
Portrait["50"] = "None";
Portrait["51"] = "None";
Portrait["52"] = "None";
Portrait["53"] = "None";
Portrait["54"] = "Juliana";
Portrait["55"] = "Juliana";
Portrait["56"] = "None";
Portrait["57"] = "None";
Portrait["58"] = "None";
Portrait["59"] = "None";
Portrait["60"] = "None";
Name = new array();
Name["0"] = "Juliana";
Name["1"] = "Juliana";
Name["2"] = "Juliana";
Name["3"] = "Juliana";
Name["4"] = "None";
Name["5"] = "Juliana";
Name["6"] = "Juliana";
Name["7"] = "None";
Name["8"] = "None";
Name["9"] = "None";
Name["10"] = "None";
Name["11"] = "None";
Name["12"] = "None";
Name["13"] = "Juliana";
Name["14"] = "None";
Name["15"] = "None";
Name["16"] = "None";
Name["17"] = "None";
Name["18"] = "None";
Name["19"] = "None";
Name["20"] = "None";
Name["21"] = "None";
Name["22"] = "None";
Name["23"] = "Juliana";
Name["24"] = "Juliana";
Name["25"] = "Juliana";
Name["26"] = "None";
Name["27"] = "None";
Name["28"] = "None";
Name["29"] = "None";
Name["30"] = "Juliana";
Name["31"] = "None";
Name["32"] = "None";
Name["33"] = "Juliana";
Name["34"] = "None";
Name["35"] = "None";
Name["36"] = "None";
Name["37"] = "None";
Name["38"] = "None";
Name["39"] = "None";
Name["40"] = "None";
Name["41"] = "Juliana";
Name["42"] = "None";
Name["43"] = "None";
Name["44"] = "None";
Name["45"] = "None";
Name["46"] = "None";
Name["47"] = "None";
Name["48"] = "None";
Name["49"] = "None";
Name["50"] = "None";
Name["51"] = "None";
Name["52"] = "None";
Name["53"] = "None";
Name["54"] = "Juliana";
Name["55"] = "Juliana";
Name["56"] = "None";
Name["57"] = "None";
Name["58"] = "None";
Name["59"] = "None";
Name["60"] = "None";
Dialog = new array();
Dialog["0"] = "Hello, my name is Juliana. Welcome to The Village! This is one of the three major secret areas in the game, and I'm glad that you have found it.";
Dialog["1"] = "I think that you've probably heard some news about this village. We specializes in trading unique goods fit for an adventurer. So don't be shy... if you found any gold bags during your travel, you should trade them for more useful items here. In fact, this is the only area where you can trade your gold for items in this demo!";
Dialog["2"] = "Very good, you have found at least a bag of gold coins. Let's trade.";
Dialog["3"] = "Oh, you don't have any gold coins with you? Well, since this is a secret area, I'll tell you a secret... you will find the first two bags of coins before you reach the first save point. Well, so long, and good luck with the rest of your journey!";
Dialog["4"] = "(End Of Dialog)";
Dialog["5"] = "Before we start our trade, let me tell you how the trade works. You will first trade in the gold, then I will show you what you can buy after you pay. However, you will get a refund if none of the selection interests you.";
Dialog["6"] = "Let us begin our trade, shall we? We can provide you with various supplies as well as training. Choose a category first, then I will list the items available along with their individual prices. So, tell me, what do you need?";
Dialog["7"] = "[1 Bag ] Spell Scrolls";
Dialog["8"] = "[2 Bags] Artifacts";
Dialog["9"] = "[2 Bags] Stats Training";
Dialog["10"] = "[3 Bags] Premium Service";
Dialog["11"] = "I think that our trading should stop here today.";
Dialog["12"] = "(Pay 1 gold bag)";
Dialog["13"] = "Spell scrolls are readily available, and so as a bargin you'll get more for your buck. What do you think? Anything that interests you?";
Dialog["14"] = "5 Lightning Scrolls";
Dialog["15"] = "5 Fireball Scrolls";
Dialog["16"] = "2 Healing Scrolls";
Dialog["17"] = "3 Dark Bolt Scrolls";
Dialog["18"] = "I'm sorry, I think that I'll take something else.";
Dialog["19"] = "(5 Lightning Bolts sold)";
Dialog["20"] = "(5 Fireball sold)";
Dialog["21"] = "(2 Healing sold)";
Dialog["22"] = "(3 Dark Bolts sold)";
Dialog["23"] = "Thank you for the purchase!";
Dialog["24"] = "Now is there anything else that you are interested in?";
Dialog["25"] = "I am sorry, but you have used up all the gold coins that you have. Come again, and have a nice day!";
Dialog["26"] = "(End Of Dialog)";
Dialog["27"] = "(1 Bag of Gold returned)";
Dialog["28"] = "(1 Bag of Gold returned)";
Dialog["29"] = "(1 Bag of Gold returned)";
Dialog["30"] = "I'm sorry that things didn't work out. Is there something else that you might want to take a look at?";
Dialog["31"] = "(1 Bag of Gold Taken)";
Dialog["32"] = "(1 Bag of Gold Taken)";
Dialog["33"] = "All of these ancient artifacts fits into your secondary inventory slot, and you can only keep one of them at a time. These items are also unidentified, so buy at your own risk. Which of these items would you like to buy?";
Dialog["34"] = "An ancient elven cloak";
Dialog["35"] = "A gleaming Topaz ring";
Dialog["36"] = "Sorry, I don't think I want any of those.";
Dialog["37"] = "(Elven Clock Given)";
Dialog["38"] = "(Shield Ring Given)";
Dialog["39"] = "(1 Bag of Gold Taken)";
Dialog["40"] = "(1 Bag of Gold Taken)";
Dialog["41"] = "We provide training in the following attributes. Improvement is garunteed... even though some improvements are not as apparent as others.";
Dialog["42"] = "Strength Training";
Dialog["43"] = "Dexterity Training";
Dialog["44"] = "Wisdom Training";
Dialog["45"] = "Constitution Training";
Dialog["46"] = "I am sorry, but I don't feel like exercising at this point.";
Dialog["47"] = "(After 5 mintues...)";
Dialog["48"] = "(After 5 mintues...)";
Dialog["49"] = "(After 5 mintues...)";
Dialog["50"] = "(After 5 mintues...)";
Dialog["51"] = "(1 Bag of Gold Taken)";
Dialog["52"] = "(1 Bag of Gold Taken)";
Dialog["53"] = "(1 Bag of Gold Taken)";
Dialog["54"] = "I know that you wanted the best if you are willing to pay that much. Very well--I will agree to join your party if you let me keep the gold coins. I can provide you with healing and exclusive informations while you are inside the temple. How about it? I'll promise that I'll be very useful to you.";
Dialog["55"] = "(Elven Bracelet Given)";
Dialog["56"] = "Please take this... it is an elven token of friendship. I will need some time to pack up my belongings, so you won't be seeing me until you enter into the temple. So long, and good luck on your journey ahead!";
Dialog["57"] = "(End Of Dialog)";
Dialog["58"] = "";
Dialog["59"] = "";
Dialog["60"] = "";
Goto = new array();
Goto["0"] = 1;
Goto["1"] = 2;
Goto["2"] = 5;
Goto["3"] = 4;
Goto["4"] = -1;
Goto["5"] = 6;
Goto["6"] = 7;
Goto["7"] = 12;
Goto["8"] = 31;
Goto["9"] = 39;
Goto["10"] = 51;
Goto["11"] = -1;
Goto["12"] = 13;
Goto["13"] = 13;
Goto["14"] = 19;
Goto["15"] = 20;
Goto["16"] = 21;
Goto["17"] = 22;
Goto["18"] = 29;
Goto["19"] = 23;
Goto["20"] = 23;
Goto["21"] = 23;
Goto["22"] = 23;
Goto["23"] = 24;
Goto["24"] = 25;
Goto["25"] = 26;
Goto["26"] = -1;
Goto["27"] = 28;
Goto["28"] = 29;
Goto["29"] = 30;
Goto["30"] = 31;
Goto["31"] = 32;
Goto["32"] = 33;
Goto["33"] = 30;
Goto["34"] = 37;
Goto["35"] = 38;
Goto["36"] = 28;
Goto["37"] = 23;
Goto["38"] = 23;
Goto["39"] = 40;
Goto["40"] = 41;
Goto["41"] = 42;
Goto["42"] = 47;
Goto["43"] = 48;
Goto["44"] = 49;
Goto["45"] = 50;
Goto["46"] = 28;
Goto["47"] = 23;
Goto["48"] = 23;
Goto["49"] = 23;
Goto["50"] = 23;
Goto["51"] = 52;
Goto["52"] = 53;
Goto["53"] = 54;
Goto["54"] = 55;
Goto["55"] = 56;
Goto["56"] = 57;
Goto["57"] = -1;
Goto["58"] = 59;
Goto["59"] = 60;
Goto["60"] = 61;
Failto = new array();
Failto["0"] = 1;
Failto["1"] = 2;
Failto["2"] = 3;
Failto["3"] = 4;
Failto["4"] = -1;
Failto["5"] = 6;
Failto["6"] = 7;
Failto["7"] = 12;
Failto["8"] = 31;
Failto["9"] = 39;
Failto["10"] = 51;
Failto["11"] = -1;
Failto["12"] = 13;
Failto["13"] = 13;
Failto["14"] = 19;
Failto["15"] = 20;
Failto["16"] = 21;
Failto["17"] = 22;
Failto["18"] = 29;
Failto["19"] = 23;
Failto["20"] = 23;
Failto["21"] = 23;
Failto["22"] = 23;
Failto["23"] = 26;
Failto["24"] = 25;
Failto["25"] = 26;
Failto["26"] = -1;
Failto["27"] = 28;
Failto["28"] = 29;
Failto["29"] = 30;
Failto["30"] = 31;
Failto["31"] = 32;
Failto["32"] = 29;
Failto["33"] = 30;
Failto["34"] = 37;
Failto["35"] = 38;
Failto["36"] = 28;
Failto["37"] = 23;
Failto["38"] = 23;
Failto["39"] = 40;
Failto["40"] = 29;
Failto["41"] = 42;
Failto["42"] = 47;
Failto["43"] = 48;
Failto["44"] = 49;
Failto["45"] = 50;
Failto["46"] = 28;
Failto["47"] = 23;
Failto["48"] = 23;
Failto["49"] = 23;
Failto["50"] = 23;
Failto["51"] = 52;
Failto["52"] = 29;
Failto["53"] = 28;
Failto["54"] = 55;
Failto["55"] = 56;
Failto["56"] = 57;
Failto["57"] = -1;
Failto["58"] = 59;
Failto["59"] = 60;
Failto["60"] = 61;
Event = new array();
Event["0"] = "Simple";
Event["1"] = "Simple";
Event["2"] = "Simple";
Event["3"] = "Simple";
Event["4"] = "Simple";
Event["5"] = "None";
Event["6"] = "MultipleChoice";
Event["7"] = "Simple";
Event["8"] = "Simple";
Event["9"] = "Simple";
Event["10"] = "Simple";
Event["11"] = "Simple";
Event["12"] = "SpecialInventory";
Event["13"] = "MultipleChoice";
Event["14"] = "Simple";
Event["15"] = "Simple";
Event["16"] = "Simple";
Event["17"] = "Simple";
Event["18"] = "Simple";
Event["19"] = "PrimaryInventory";
Event["20"] = "PrimaryInventory";
Event["21"] = "PrimaryInventory";
Event["22"] = "PrimaryInventory";
Event["23"] = "Simple";
Event["24"] = "MultipleChoice";
Event["25"] = "Simple";
Event["26"] = "Simple";
Event["27"] = "SpecialInventory";
Event["28"] = "SpecialInventory";
Event["29"] = "SpecialInventory";
Event["30"] = "MultipleChoice";
Event["31"] = "SpecialInventory";
Event["32"] = "SpecialInventory";
Event["33"] = "MultipleChoice";
Event["34"] = "Simple";
Event["35"] = "Simple";
Event["36"] = "Simple";
Event["37"] = "SecondaryInventory";
Event["38"] = "SecondaryInventory";
Event["39"] = "SpecialInventory";
Event["40"] = "SpecialInventory";
Event["41"] = "MultipleChoice";
Event["42"] = "Simple";
Event["43"] = "Simple";
Event["44"] = "Simple";
Event["45"] = "Simple";
Event["46"] = "Simple";
Event["47"] = "Str";
Event["48"] = "Dex";
Event["49"] = "Wis";
Event["50"] = "Con";
Event["51"] = "SpecialInventory";
Event["52"] = "SpecialInventory";
Event["53"] = "SpecialInventory";
Event["54"] = "YesNo";
Event["55"] = "SpecialInventory";
Event["56"] = "Simple";
Event["57"] = "Simple";
Event["58"] = "Simple";
Event["59"] = "Simple";
Event["60"] = "Simple";
EvtVar1 = new array();
EvtVar1["0"] = 0;
EvtVar1["1"] = 0;
EvtVar1["2"] = 0;
EvtVar1["3"] = 0;
EvtVar1["4"] = 0;
EvtVar1["5"] = 0;
EvtVar1["6"] = 7;
EvtVar1["7"] = 0;
EvtVar1["8"] = 0;
EvtVar1["9"] = 0;
EvtVar1["10"] = 0;
EvtVar1["11"] = 0;
EvtVar1["12"] = 6;
EvtVar1["13"] = 14;
EvtVar1["14"] = 0;
EvtVar1["15"] = 0;
EvtVar1["16"] = 0;
EvtVar1["17"] = 0;
EvtVar1["18"] = 0;
EvtVar1["19"] = 1;
EvtVar1["20"] = 2;
EvtVar1["21"] = 3;
EvtVar1["22"] = 4;
EvtVar1["23"] = 0;
EvtVar1["24"] = 7;
EvtVar1["25"] = 0;
EvtVar1["26"] = 0;
EvtVar1["27"] = 6;
EvtVar1["28"] = 6;
EvtVar1["29"] = 6;
EvtVar1["30"] = 7;
EvtVar1["31"] = 6;
EvtVar1["32"] = 6;
EvtVar1["33"] = 34;
EvtVar1["34"] = 0;
EvtVar1["35"] = 0;
EvtVar1["36"] = 0;
EvtVar1["37"] = 2;
EvtVar1["38"] = 3;
EvtVar1["39"] = 6;
EvtVar1["40"] = 6;
EvtVar1["41"] = 42;
EvtVar1["42"] = 0;
EvtVar1["43"] = 0;
EvtVar1["44"] = 0;
EvtVar1["45"] = 0;
EvtVar1["46"] = 0;
EvtVar1["47"] = 1;
EvtVar1["48"] = 1;
EvtVar1["49"] = 1;
EvtVar1["50"] = 1;
EvtVar1["51"] = 6;
EvtVar1["52"] = 6;
EvtVar1["53"] = 6;
EvtVar1["54"] = 55;
EvtVar1["55"] = 7;
EvtVar1["56"] = 0;
EvtVar1["57"] = 0;
EvtVar1["58"] = 0;
EvtVar1["59"] = 0;
EvtVar1["60"] = 0;
EvtVar2 = new array();
EvtVar2["0"] = 0;
EvtVar2["1"] = 0;
EvtVar2["2"] = 0;
EvtVar2["3"] = 0;
EvtVar2["4"] = 0;
EvtVar2["5"] = 0;
EvtVar2["6"] = 11;
EvtVar2["7"] = 0;
EvtVar2["8"] = 0;
EvtVar2["9"] = 0;
EvtVar2["10"] = 0;
EvtVar2["11"] = 0;
EvtVar2["12"] = -1;
EvtVar2["13"] = 18;
EvtVar2["14"] = 0;
EvtVar2["15"] = 0;
EvtVar2["16"] = 0;
EvtVar2["17"] = 0;
EvtVar2["18"] = 0;
EvtVar2["19"] = 5;
EvtVar2["20"] = 5;
EvtVar2["21"] = 2;
EvtVar2["22"] = 3;
EvtVar2["23"] = 0;
EvtVar2["24"] = 11;
EvtVar2["25"] = 0;
EvtVar2["26"] = 0;
EvtVar2["27"] = 1;
EvtVar2["28"] = 1;
EvtVar2["29"] = 1;
EvtVar2["30"] = 11;
EvtVar2["31"] = -1;
EvtVar2["32"] = -1;
EvtVar2["33"] = 36;
EvtVar2["34"] = 0;
EvtVar2["35"] = 0;
EvtVar2["36"] = 0;
EvtVar2["37"] = 1;
EvtVar2["38"] = 1;
EvtVar2["39"] = -1;
EvtVar2["40"] = -1;
EvtVar2["41"] = 46;
EvtVar2["42"] = 0;
EvtVar2["43"] = 0;
EvtVar2["44"] = 0;
EvtVar2["45"] = 0;
EvtVar2["46"] = 0;
EvtVar2["47"] = 0;
EvtVar2["48"] = 0;
EvtVar2["49"] = 0;
EvtVar2["50"] = 0;
EvtVar2["51"] = -1;
EvtVar2["52"] = -1;
EvtVar2["53"] = -1;
EvtVar2["54"] = 27;
EvtVar2["55"] = 1;
EvtVar2["56"] = 0;
EvtVar2["57"] = 0;
EvtVar2["58"] = 0;
EvtVar2["59"] = 0;
EvtVar2["60"] = 0;
}
Instance of Symbol 1657 MovieClip in Frame 2311
onClipEvent (load) {
Character = "Juliana";
Location = "TheVillage";
Health = 20;
DefaultVisible = "True";
}
Instance of Symbol 1079 MovieClip in Frame 2311
onClipEvent (load) {
Bound = "South";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "False";
}
Instance of Symbol 1392 MovieClip in Frame 2311
onClipEvent (load) {
Bound = "Corner";
isCorner = "False";
hitObject = "Nothing";
Target = 5;
hitObjectWidth = "";
Corner = "True";
}
Symbol 23 MovieClip Frame 1
gfx.stop();
Symbol 23 MovieClip Frame 7
_parent.restore();
Symbol 24 MovieClip [LathaniaMissile] Frame 1
function explode() {
if (hitTest(_level0.Thief.BumpMap) && (_level0.Thief.state != "Dead")) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Math.round(Damage);
}
if ((hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Damage);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
gotoAndPlay (5);
}
function restore() {
gotoAndPlay (15);
}
Activated = true;
Exist = true;
Speed = 10;
Damage = 8;
turnSpeed = 1;
Symbol 24 MovieClip [LathaniaMissile] Frame 2
SpanWidth = 20;
Register = 0;
while (eval (("_level0.Projectile" + Register) + ".Exist")) {
Register++;
}
_name = ("Projectile" + Register);
Symbol 24 MovieClip [LathaniaMissile] Frame 3
var diffx = (_x - _level0.Thief._x);
var diffy = (_y - _level0.Thief._y);
var DestAngle = _root.distanceAngle(diffx, diffy);
if (!_root.angleInRange(_rotation, DestAngle, turnSpeed)) {
_rotation = (_rotation + (_root.angleTurnDirection(_rotation, DestAngle) * turnSpeed));
}
_x = (_x + _root.angleToX(_rotation, Speed));
_y = (_y + _root.angleToY(_rotation, Speed));
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
explode();
}
if (_level0.Follower.Activated && (_level0.Follower._visible)) {
if (BumpMap.hitTest(_level0.Follower.BumpMap)) {
explode();
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (BumpMap.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
explode();
}
}
Target++;
}
if ((((_x < -40) || ((_root.StaticWidth + 40) < _x)) || (_y < -40)) || ((_root.StaticHeight + 40) < _y)) {
explode();
}
Symbol 24 MovieClip [LathaniaMissile] Frame 4
prevFrame();
play();
Symbol 24 MovieClip [LathaniaMissile] Frame 6
Activated = false;
stop();
Symbol 24 MovieClip [LathaniaMissile] Frame 16
removeMovieClip("");
stop();
Symbol 34 MovieClip Frame 11
_parent.play();
stop();
Symbol 35 MovieClip [TrevorStake] Frame 1
function explode() {
if (hitTest(_level0.Thief.BumpMap)) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Math.round(Damage / 2);
}
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Damage / 2);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
gotoAndPlay (5);
}
Activated = true;
Exist = true;
Speed = 12;
Damage = 8;
Symbol 35 MovieClip [TrevorStake] Frame 2
SpanWidth = 20;
Register = 0;
while (eval (("_level0.Projectile" + Register) + ".Exist")) {
Register++;
}
_name = ("Projectile" + Register);
Symbol 35 MovieClip [TrevorStake] Frame 3
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
explode();
}
if (_level0.Follower.Activated) {
if (BumpMap.hitTest(_level0.Follower.BumpMap)) {
explode();
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (BumpMap.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
explode();
}
}
Target++;
}
if ((((_x < -40) || ((_root.StaticWidth + 40) < _x)) || (_y < -40)) || ((_root.StaticHeight + 40) < _y)) {
explode();
}
Symbol 35 MovieClip [TrevorStake] Frame 4
prevFrame();
play();
Symbol 35 MovieClip [TrevorStake] Frame 6
Activated = false;
stop();
Symbol 35 MovieClip [TrevorStake] Frame 8
removeMovieClip("");
stop();
Symbol 42 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("Main Menu");
}
Symbol 43 MovieClip Frame 2
if (_root._framesloaded < 1450) {
prevFrame();
play();
}
Symbol 43 MovieClip Frame 4
stop();
Symbol 283 Button
on (release) {
_root.gotoAndPlay("Opening");
}
Symbol 287 Button
on (release) {
_root.gotoAndPlay("Storyline");
}
Symbol 288 MovieClip Frame 2
if (_root._framesloaded < 1530) {
prevFrame();
play();
}
Symbol 288 MovieClip Frame 4
stop();
Symbol 291 Button
on (release) {
_root.gotoAndPlay("Creation");
}
Symbol 292 MovieClip Frame 2
if (_root._framesloaded < 1830) {
prevFrame();
play();
}
Symbol 292 MovieClip Frame 4
stop();
Symbol 295 Button
on (release) {
_root.gotoAndPlay("Tutorial");
}
Symbol 296 MovieClip Frame 2
if (_root._framesloaded < 1850) {
prevFrame();
play();
}
Symbol 296 MovieClip Frame 4
stop();
Symbol 299 Button
on (release) {
_root.gotoAndPlay("Validator");
}
Symbol 300 MovieClip Frame 2
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
prevFrame();
play();
}
Symbol 300 MovieClip Frame 4
stop();
Symbol 307 Button
on (release) {
play();
}
Symbol 308 Button
on (release) {
stopAllSounds();
gotoAndPlay (1393);
}
Symbol 338 MovieClip Frame 1
Exist = true;
Speed = 20;
Damage = 10;
Bounce = 5;
Bound = "";
Symbol 338 MovieClip Frame 2
_visible = false;
stop();
Symbol 338 MovieClip Frame 3
_parent.SpanWidth = 20;
_visible = true;
Symbol 338 MovieClip Frame 4
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * Speed));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * Speed));
if (hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State != "Crouched")) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = Speed / 2;
_level0.Thief._rotation = _parent._rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
gotoAndPlay (15);
}
if ((hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = Speed / 2;
_level0.Follower._rotation = _parent._rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Damage;
gotoAndPlay (15);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _parent._rotation) {
TargetAngle = -_parent._rotation;
} else {
TargetAngle = 360 - _parent._rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", Speed / 2);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", Speed / 2);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
gotoAndPlay (15);
}
Target++;
}
if ((((_level0.StaticWidth < _parent._x) || (_parent._x < 0)) || (_level0.StaticHeight < _parent._y)) || (_parent._y < 0)) {
gotoAndPlay (15);
}
Symbol 338 MovieClip Frame 5
gotoAndPlay (4);
_parent.Activated = true;
Symbol 338 MovieClip Frame 8
Bounce = Bounce - 1;
if (0 >= Bounce) {
gotoAndPlay (15);
} else {
if ((Bound == "East") || (Bound == "West")) {
_parent._rotation = (-_parent._rotation) + 180;
} else {
_parent._rotation = -_parent._rotation;
}
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * Speed));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * Speed));
}
_parent.Activated = true;
Symbol 338 MovieClip Frame 9
gotoAndPlay (4);
Symbol 338 MovieClip Frame 15
_parent.Activated = false;
Symbol 338 MovieClip Frame 21
gotoAndPlay (1);
Symbol 344 MovieClip Frame 10
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - 20;
Symbol 344 MovieClip Frame 21
_parent.Activated = false;
stop();
Symbol 345 MovieClip Frame 2
Activated = true;
stop();
Symbol 345 MovieClip Frame 3
if (!Activated) {
_parent.Activated = false;
gotoAndPlay (1);
}
_parent._x = _level0.Thief._x;
_parent._y = _level0.Thief._y;
Symbol 345 MovieClip Frame 4
prevFrame();
play();
Symbol 348 MovieClip Frame 10
with (_parent) {
gotoAndPlay("Fly");
}
Symbol 355 MovieClip Frame 9
with (_parent) {
gotoAndPlay(1);
}
Symbol 356 MovieClip Frame 1
Speed = 15;
Damage = 20;
Rate = 0;
rec1_r = 0;
rec2_r = 0;
Immune = 20;
Symbol 356 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 3
stop();
Symbol 356 MovieClip Frame 5
with (_parent) {
if (_rotation != _level0.Thief._rotation) {
Rate = 5;
}
DarkRay.rec2_r = DarkRay.rec1_r;
DarkRay.rec1_r = _rotation;
_rotation = _level0.Thief._rotation;
Orientation = (_rotation / 180) * Math.PI;
_x = _x + Math.round(Math.cos(Orientation) * DarkRay.Rate);
_y = _y + Math.round(Math.sin(Orientation) * DarkRay.Rate);
DarkRay.rec1_x = Math.round(Math.cos(Orientation) * DarkRay.Rate);
DarkRay.rec1_y = Math.round(Math.sin(Orientation) * DarkRay.Rate);
}
Sprite.Tail1._x = -Rate;
Sprite.Tail1._rotation = rec2_r - _parent._rotation;
if (Rate < Speed) {
Rate++;
}
if (0 < Immune) {
Immune--;
}
if ((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State != "Crouched")) && (0 >= Immune)) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = _parent._rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
gotoAndPlay (10);
}
if ((hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = _parent._rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Damage;
gotoAndPlay (10);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _parent._rotation) {
TargetAngle = -_parent._rotation;
} else {
TargetAngle = 360 - _parent._rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
gotoAndPlay (10);
}
Target++;
}
if ((((_level0.StaticWidth < _parent._x) || (_parent._x < 0)) || (_level0.StaticHeight < _parent._y)) || (_parent._y < 0)) {
gotoAndPlay (10);
}
Symbol 356 MovieClip Frame 6
prevFrame();
play();
Symbol 356 MovieClip Frame 10
_parent.Activated = false;
Symbol 356 MovieClip Frame 11
stop();
Symbol 370 MovieClip Frame 2
_parent.explode();
Symbol 370 MovieClip Frame 3
_parent.explode();
Symbol 370 MovieClip Frame 7
stop();
with (_parent) {
gotoAndPlay(1);
}
Symbol 371 MovieClip Frame 1
function explode() {
if (hitTest(_level0.Thief.BumpMap)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_x >= _level0.Thief._x) {
if (_level0.Thief._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = TargetAngle + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Math.round(Damage / 2);
}
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Follower._y) / (_x - _level0.Follower._x)) * 180) / Math.PI);
if (_x >= _level0.Follower._x) {
if (_level0.Follower._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = TargetAngle + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Damage / 2);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
}
Speed = 10;
Damage = 20;
Symbol 371 MovieClip Frame 2
stop();
Symbol 371 MovieClip Frame 3
_parent.SpanWidth = 20;
_parent.Activated = true;
Symbol 371 MovieClip Frame 4
Orientation = (_parent._rotation / 180) * Math.PI;
_parent._x = _parent._x + Math.round(Math.cos(Orientation) * Speed);
_parent._y = _parent._y + Math.round(Math.sin(Orientation) * Speed);
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (6);
}
if (_level0.Follower.Activated && (_level0.Follower._visible)) {
if (BumpMap.hitTest(_level0.Follower.BumpMap)) {
gotoAndPlay (6);
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (BumpMap.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
gotoAndPlay (6);
}
}
Target++;
}
if ((((_level0.StaticWidth < _parent._x) || (_parent._x < 0)) || (_level0.StaticHeight < _parent._y)) || (_parent._y < 0)) {
_parent.Activated = false;
gotoAndPlay (1);
}
Symbol 371 MovieClip Frame 5
prevFrame();
play();
Symbol 371 MovieClip Frame 7
_parent.Activated = false;
stop();
Symbol 373 MovieClip Frame 2
_parent.explode();
Symbol 373 MovieClip Frame 3
_parent.explode();
Symbol 373 MovieClip Frame 7
stop();
Symbol 374 MovieClip Frame 1
function explode() {
if (hitTest(_level0.Thief.BumpMap)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_x >= _level0.Thief._x) {
if (_level0.Thief._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = TargetAngle + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Math.round(Damage / 2);
}
if ((hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Follower._y) / (_x - _level0.Follower._x)) * 180) / Math.PI);
if (_x >= _level0.Follower._x) {
if (_level0.Follower._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = TargetAngle + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Damage / 2);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Chaingun Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Chaingun Pain");
}
}
}
Target++;
}
}
Speed = 30;
Damage = 80;
Symbol 374 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 3
_parent.SpanWidth = 20;
_parent.Activated = true;
Symbol 374 MovieClip Frame 4
Orientation = (_parent._rotation / 180) * Math.PI;
_parent._x = _parent._x + Math.round(Math.cos(Orientation) * Speed);
_parent._y = _parent._y + Math.round(Math.sin(Orientation) * Speed);
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (6);
}
if (_level0.Follower.Activated) {
if (BumpMap.hitTest(_level0.Follower.BumpMap)) {
gotoAndPlay (6);
}
}
TraceTarget = "Nothing";
TraceDistance = 10000;
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
diffx = _parent._x - getProperty("_level0.Enemy" + Target, _x);
diffy = _parent._y - getProperty("_level0.Enemy" + Target, _y);
Distance = Math.sqrt((diffx * diffx) + (diffy * diffy));
if (Distance < TraceDistance) {
TraceDistance = Distance;
TraceTarget = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((TraceTarget != "Nothing") && (TraceDistance < 180)) {
diffx = _parent._x - getProperty(TraceTarget, _x);
diffy = _parent._y - getProperty(TraceTarget, _y);
TargetAngle = Math.round((Math.atan(diffy / diffx) * 180) / Math.PI);
if (diffx >= 0) {
if (0 < diffy) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if ((20 < Math.abs(TargetAngle - _parent._rotation)) && (Math.abs(TargetAngle - _parent._rotation) < 60)) {
if (((90 < Math.abs(TargetAngle)) && (90 < Math.abs(_parent._rotation))) && ((TargetAngle * _parent._rotation) < 0)) {
_parent._rotation = ((TargetAngle + _parent._rotation) / 2) + 180;
} else {
_parent._rotation = (TargetAngle + _parent._rotation) / 2;
}
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (BumpMap.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
gotoAndPlay (6);
}
}
Target++;
}
if ((((_level0.StaticWidth < _parent._x) || (_parent._x < 0)) || (_level0.StaticHeight < _parent._y)) || (_parent._y < 0)) {
_parent.Activated = false;
gotoAndPlay (1);
}
Symbol 374 MovieClip Frame 5
prevFrame();
play();
Symbol 374 MovieClip Frame 17
_parent.Activated = false;
gotoAndPlay (1);
Symbol 375 MovieClip Frame 1
function resetAll() {
with (Lightning) {
gotoAndPlay(1);
}
with (Fireball) {
gotoAndPlay(1);
}
with (DarkRay) {
gotoAndPlay(1);
}
with (Rocket) {
gotoAndPlay(1);
}
Activated = false;
gotoAndPlay (3);
}
AttackType = "None";
ChangeTo = "None";
Bound = "Nothing";
Activated = false;
Instance of Symbol 338 MovieClip "Lightning" in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
Speed = 25;
Damage = 10;
Bounce = 5;
}
Instance of Symbol 371 MovieClip "Fireball" in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
Speed = 8;
Damage = 10;
}
Symbol 375 MovieClip Frame 4
AttackType = ChangeTo;
Symbol 375 MovieClip Frame 5
prevFrame();
play();
Symbol 375 MovieClip Frame 11
with (eval (AttackType)) {
play();
}
Activated = true;
gotoAndPlay (19);
Symbol 375 MovieClip Frame 19
if (!Activated) {
gotoAndPlay (30);
}
Symbol 375 MovieClip Frame 20
prevFrame();
play();
Symbol 375 MovieClip Frame 24
with (eval (AttackType)) {
Bound = _parent.Bound;
gotoAndPlay("Bound");
}
Bound = "Nothing";
Symbol 375 MovieClip Frame 25
gotoAndPlay (19);
Symbol 375 MovieClip Frame 50
gotoAndPlay (3);
Symbol 382 MovieClip Frame 1
Scale = random(10) * 10;
_xscale = Scale;
_yscale = Scale;
_alpha = 100;
_x = (random(60) - 30);
_y = (random(60) - 30);
Symbol 382 MovieClip Frame 2
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
_alpha = (_alpha - 5);
Symbol 382 MovieClip Frame 3
if (0 >= _xscale) {
Scale = (random(10) * 5) + 50;
_xscale = Scale;
_yscale = Scale;
_alpha = 100;
_x = (random(60) - 30);
_y = (random(60) - 30);
}
prevFrame();
play();
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 2
_x = _level0.Thief._x;
_y = _level0.Thief._y;
Symbol 383 MovieClip Frame 12
_x = _level0.Thief._x;
_y = _level0.Thief._y;
Symbol 383 MovieClip Frame 13
prevFrame();
play();
Symbol 386 MovieClip Frame 30
gotoAndPlay (10);
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 3
_x = _level0.Thief._x;
_y = _level0.Thief._y;
prevFrame();
play();
Symbol 390 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
stop();
Symbol 415 MovieClip Frame 11
stop();
Symbol 415 MovieClip Frame 20
stop();
Symbol 415 MovieClip Frame 30
stop();
Symbol 415 MovieClip Frame 40
stop();
Symbol 415 MovieClip Frame 50
stop();
Symbol 415 MovieClip Frame 60
stop();
Symbol 415 MovieClip Frame 70
stop();
Symbol 415 MovieClip Frame 80
stop();
Symbol 415 MovieClip Frame 90
stop();
Symbol 427 Button
on (press) {
_parent._parent.Selection = _name.substr(-1, 1);
}
Symbol 429 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 2
stop();
Symbol 429 MovieClip Frame 3
stop();
Symbol 429 MovieClip Frame 4
_parent._parent.Selection = _name.substr(-1, 1);
Symbol 430 MovieClip Frame 3
KeyDown = -1;
if (_visible) {
i = 0;
while (i < 5) {
if ((Key.isDown(49 + i) || (Key.isDown(97 + i))) && (eval (("Selection" + i) + "._visible"))) {
KeyDown = i;
with (eval ("Selection" + i)) {
nextFrame();
}
}
i++;
}
}
if (KeyDown == -1) {
prevFrame();
play();
} else {
i = 0;
while (i < 5) {
with (eval ("Selection" + i)) {
nextFrame();
}
i++;
}
}
Symbol 430 MovieClip Frame 5
if (!(Key.isDown(49 + KeyDown) || (Key.isDown(97 + KeyDown)))) {
with (eval ("Selection" + KeyDown)) {
nextFrame();
}
} else {
prevFrame();
play();
}
Symbol 434 Button
on (press) {
_parent.Selection = 0;
}
Symbol 436 MovieClip Frame 2
if (!((Key.isDown(Key.SPACE) && (_parent._visible)) && (_visible))) {
prevFrame();
play();
}
Symbol 436 MovieClip Frame 5
if (Key.isDown(Key.SPACE)) {
prevFrame();
play();
}
Symbol 436 MovieClip Frame 6
_parent.Selection = 0;
Symbol 438 MovieClip Frame 1
function reset() {
setProperty("MultipleChoice", _visible , false);
setProperty("SimpleContinue", _visible , false);
setProperty("Portrait", _visible , false);
Selection = -1;
Dialog = "";
}
function close() {
gotoAndPlay (1);
}
function initPortrait(Name) {
Temp = Name;
with (Portrait) {
gotoAndPlay(_parent.Temp);
}
setProperty("Portrait", _visible , true);
}
function initContinue() {
setProperty("SimpleContinue", _visible , true);
}
function initResponse() {
i = 0;
while (i < 5) {
with (eval ("MultipleChoice.Selection" + i)) {
_visible = false;
gotoAndStop(1);
}
i++;
}
AddSlot = 0;
}
function addResponse(Dialog) {
if (AddSlot < 5) {
Set(("MultipleChoice.Selection" + AddSlot) + ".Dialog", Dialog);
setProperty("MultipleChoice.Selection" + AddSlot, _visible , true);
AddSlot++;
}
}
function showResponse() {
setProperty("MultipleChoice", _visible , true);
}
reset();
_visible = false;
Symbol 438 MovieClip Frame 2
stop();
Symbol 442 Button
on (rollOver) {
_level0.helpIndex.Stick(ItemNo);
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 497 MovieClip Frame 3
stop();
Symbol 497 MovieClip Frame 8
stop();
Symbol 497 MovieClip Frame 13
stop();
Symbol 497 MovieClip Frame 18
stop();
Symbol 497 MovieClip Frame 23
stop();
Symbol 497 MovieClip Frame 28
stop();
Symbol 497 MovieClip Frame 33
stop();
Symbol 497 MovieClip Frame 38
stop();
Symbol 497 MovieClip Frame 43
stop();
Symbol 497 MovieClip Frame 48
stop();
Symbol 497 MovieClip Frame 53
stop();
Symbol 497 MovieClip Frame 58
stop();
Symbol 497 MovieClip Frame 63
stop();
Symbol 497 MovieClip Frame 68
stop();
Symbol 497 MovieClip Frame 73
stop();
Symbol 497 MovieClip Frame 78
stop();
Symbol 497 MovieClip Frame 83
stop();
Symbol 497 MovieClip Frame 88
stop();
Symbol 497 MovieClip Frame 93
stop();
Symbol 497 MovieClip Frame 98
stop();
Symbol 497 MovieClip Frame 103
stop();
Symbol 497 MovieClip Frame 108
stop();
Symbol 497 MovieClip Frame 113
stop();
Symbol 497 MovieClip Frame 118
stop();
Symbol 497 MovieClip Frame 123
stop();
Symbol 497 MovieClip Frame 128
stop();
Symbol 497 MovieClip Frame 133
stop();
Symbol 497 MovieClip Frame 138
stop();
Symbol 501 Button
on (press) {
_parent.Selection = 1;
}
Symbol 503 Button
on (press) {
_parent.Selection = 2;
}
Symbol 507 MovieClip Frame 2
if ((Key.isDown(49) || (Key.isDown(97))) && (_parent._visible)) {
gotoAndPlay (3);
} else if ((Key.isDown(50) || (Key.isDown(98))) && (_parent._visible)) {
gotoAndPlay (7);
} else {
prevFrame();
play();
}
Symbol 507 MovieClip Frame 4
if (!(Key.isDown(49) || (Key.isDown(97)))) {
_parent.Selection = 1;
gotoAndPlay (1);
}
Symbol 507 MovieClip Frame 5
prevFrame();
play();
Symbol 507 MovieClip Frame 8
if (!(Key.isDown(50) || (Key.isDown(98)))) {
_parent.Selection = 2;
gotoAndPlay (1);
}
Symbol 507 MovieClip Frame 9
prevFrame();
play();
Symbol 508 MovieClip Frame 1
function initMessage(DisplayIcon, Text, AnswerType) {
ItemNo = DisplayIcon;
with (Icon) {
gotoAndPlay("Inv" + _parent.ItemNo);
}
Message = Text;
Continue._visible = false;
YesNo._visible = false;
setProperty(AnswerType, _visible , true);
_visible = true;
selection = -1;
play();
}
_visible = false;
Symbol 508 MovieClip Frame 3
stop();
Symbol 508 MovieClip Frame 5
if (Selection != -1) {
_level0.DialogBox.Selection = Selection;
_visible = false;
gotoAndPlay (2);
} else {
prevFrame();
play();
}
Symbol 512 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 512 MovieClip Frame 2
stop();
Symbol 512 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 512 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 512 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 512 MovieClip Frame 13
stop();
Symbol 514 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 514 MovieClip Frame 2
Current = 0;
stop();
Symbol 514 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 514 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 514 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 514 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 516 MovieClip Frame 1
function toggle() {
if (Set) {
Set = false;
} else {
Set = true;
}
}
Set = false;
Symbol 516 MovieClip Frame 2
stop();
Symbol 516 MovieClip Frame 3
trace(Set);
toggle();
prevFrame();
Symbol 519 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 10
stop();
Symbol 672 MovieClip Frame 1
function ThreePointCheck(Power) {
Target = 0;
while (Target < 5) {
hit = false;
Count = 0;
while (Count < 3) {
if (eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap._visible")) {
with (eval ("Shadow" + Count)) {
if (hitTest(eval (("_level0.Enemy" + _parent.Target) + ".Sprite.BumpMap"))) {
_parent.hit = true;
}
}
}
Count++;
}
if (hit && (eval (("_level0.Enemy" + String(Target)) + ".Vulerable"))) {
eval ("_level0.Enemy" + i).Vulerable = false;
if (_level0.ThiefSecInv.ActiveItem == 1) {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - Math.round((_parent.ThiefStrength * 3) / 5);
VampireBlood.play();
}
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _parent._rotation) {
TargetAngle = -_parent._rotation;
} else {
TargetAngle = 360 - _parent._rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
with (eval ("_level0.Enemy" + String(Target))) {
Damage = Power;
PainRebound = 10;
gotoAndPlay("Back Pain");
}
} else {
with (eval ("_level0.Enemy" + String(Target))) {
Damage = Power;
PainRebound = 10;
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
}
function OnePointCheck() {
Target = 0;
while (Target < 5) {
hit = false;
if (eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap._visible")) {
if (Shadow.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hit = true;
}
}
Count = 0;
while (Count < 3) {
Count++;
}
if (hit && (eval (("_level0.Enemy" + String(Target)) + ".Vulerable"))) {
eval ("_level0.Enemy" + i).Vulerable = false;
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _parent._rotation) {
TargetAngle = -_parent._rotation;
} else {
TargetAngle = 360 - _parent._rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
with (eval ("_level0.Enemy" + String(Target))) {
Damage = Math.round(_level0.Thief.ThiefStrength / 3);
PainRebound = 8;
gotoAndPlay("Back Pain");
}
} else {
with (eval ("_level0.Enemy" + String(Target))) {
Damage = Math.round(_level0.Thief.ThiefStrength / 3);
PainRebound = 8;
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
}
function noise() {
i = 0;
while (i < 5) {
if (eval ("_level0.Enemy" + i).Vulerable && (!eval ("_level0.Enemy" + i).inAlert)) {
diffx = eval ("_level0.Enemy" + i)._x - _parent._x;
diffy = eval ("_level0.Enemy" + i)._y - _parent._y;
if (_root.distanceCalculate(diffx, diffy) < 200) {
eval ("_level0.Enemy" + i).gotoAndPlay("Alert");
}
}
i++;
}
}
Symbol 672 MovieClip Frame 3
stop();
Symbol 672 MovieClip Frame 11
_root.ThiefWalk.PlayClip();
Symbol 672 MovieClip Frame 17
_root.ThiefWalk.PlayClip();
Symbol 672 MovieClip Frame 22
gotoAndPlay (10);
Symbol 672 MovieClip Frame 30
with (_parent) {
State = "Crouched";
}
stop();
Symbol 672 MovieClip Frame 42
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 57
ThreePointCheck(_level0.Thief.ThiefStrength);
Symbol 672 MovieClip Frame 70
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 85
noise();
ThreePointCheck(Math.round((_level0.Thief.ThiefStrength * 2) / 3));
Symbol 672 MovieClip Frame 98
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 111
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * 12));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * 12));
Symbol 672 MovieClip Frame 112
ThreePointCheck(Math.round(_level0.Thief.ThiefStrength * 1.2));
noise();
Symbol 672 MovieClip Frame 113
_parent.State = "Pause";
Symbol 672 MovieClip Frame 117
if ((_parent.State == "Ready") || (_parent.State == "Pause")) {
gotoAndPlay (136);
}
Symbol 672 MovieClip Frame 118
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * _parent.ThiefStrength));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * _parent.ThiefStrength));
Symbol 672 MovieClip Frame 119
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * _parent.ThiefStrength));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * _parent.ThiefStrength));
Symbol 672 MovieClip Frame 120
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * _parent.ThiefStrength));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * _parent.ThiefStrength));
Symbol 672 MovieClip Frame 121
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * _parent.ThiefStrength));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * _parent.ThiefStrength));
Symbol 672 MovieClip Frame 122
ThreePointCheck(Math.round(_level0.Thief.ThiefStrength * 1.2));
Symbol 672 MovieClip Frame 132
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 143
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 161
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * 12));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * 12));
Symbol 672 MovieClip Frame 163
ThreePointCheck(_level0.Thief.ThiefStrength);
Symbol 672 MovieClip Frame 165
noise();
OnePointCheck();
Symbol 672 MovieClip Frame 171
noise();
OnePointCheck();
Symbol 672 MovieClip Frame 177
noise();
OnePointCheck();
Symbol 672 MovieClip Frame 194
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 213
_parent.State = "Concentrating";
Symbol 672 MovieClip Frame 224
_parent.State = "Launch";
Symbol 672 MovieClip Frame 225
_parent.State = "Concentrating";
Symbol 672 MovieClip Frame 243
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 267
_parent.State = "Concentrating";
Symbol 672 MovieClip Frame 272
_parent.State = "Launch";
Symbol 672 MovieClip Frame 273
_parent.State = "Concentrating";
Symbol 672 MovieClip Frame 286
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 305
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * -1));
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * -1));
Symbol 672 MovieClip Frame 306
Target = 0;
while (Target < 5) {
hit = false;
if (eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap._visible")) {
differenceX = _parent._x - eval ("_level0.Enemy" + Target)._x;
differenceY = _parent._y - eval ("_level0.Enemy" + Target)._y;
if (_root.angleInRange(_parent._rotation, _root.distanceAngle(differenceX, differenceY), 15)) {
_level0.Thief.Sprite.hit = true;
}
}
if (hit && (eval (("_level0.Enemy" + String(Target)) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _parent._rotation) {
TargetAngle = -_parent._rotation;
} else {
TargetAngle = 360 - _parent._rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
with (eval ("_level0.Enemy" + String(Target))) {
Damage = 4;
PainRebound = 6;
gotoAndPlay("Chaingun Pain");
}
} else {
with (eval ("_level0.Enemy" + String(Target))) {
Damage = 4;
PainRebound = 6;
gotoAndPlay("Chaingun Pain");
}
}
}
Target++;
}
Symbol 672 MovieClip Frame 308
if (Key.isDown(Key.SPACE) && (KeyMode != "Disabled")) {
gotoAndPlay (304);
}
Symbol 672 MovieClip Frame 309
_level0.Thief._rotation = Math.round(_level0.Thief._rotation / 45) * 45;
_level0.Thief.State = "StandStill";
stopDrag();
_level0.Cursor._visible = false;
gotoAndPlay (1);
Symbol 672 MovieClip Frame 325
_parent.State = "Concentrating";
Symbol 672 MovieClip Frame 329
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * -12));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * -12));
Symbol 672 MovieClip Frame 330
_parent.State = "Launch";
Symbol 672 MovieClip Frame 331
Orientation = (_parent._rotation / 180) * Math.PI;
setProperty("_parent", _x , _parent._x + (Math.cos(Orientation) * 10));
setProperty("_parent", _y , _parent._y + (Math.sin(Orientation) * 10));
_parent.State = "Concentrating";
Symbol 672 MovieClip Frame 341
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 356
stop();
Symbol 672 MovieClip Frame 404
_level0.Thief.State = "StandStill";
gotoAndPlay (1);
Symbol 672 MovieClip Frame 411
stop();
Symbol 672 MovieClip Frame 420
stop();
Symbol 672 MovieClip Frame 456
stop();
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 11
_rotation = (-_parent._rotation);
Symbol 678 MovieClip Frame 12
prevFrame();
play();
Symbol 682 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 2
with (_parent.Sprite.Body) {
nextFrame();
}
_visible = false;
Symbol 684 MovieClip Frame 3
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Vulerable")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
diffx = _parent._x - getProperty("_level0.Enemy" + Target, _x);
diffy = _parent._y - getProperty("_level0.Enemy" + Target, _y);
TargetAngle = Math.round((Math.atan(diffy / diffx) * 180) / Math.PI);
if (diffx >= 0) {
if (0 < diffy) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
DifferenceAngle = Math.abs(getProperty("_level0.Enemy" + Target, _rotation) - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", 5);
Set(("_level0.Enemy" + Target) + ".PainRebound", 8);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", 5);
Set(("_level0.Enemy" + Target) + ".PainRebound", 8);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
}
Target++;
}
Symbol 684 MovieClip Frame 4
prevFrame();
play();
Symbol 685 MovieClip Frame 1
function resetStats() {
if (10 < ThiefStr) {
ThiefStr = 10;
}
if (ThiefStr < 0) {
ThiefStr = 0;
}
if (10 < ThiefDex) {
ThiefDex = 10;
}
if (ThiefDex < 0) {
ThiefDex = 0;
}
if (10 < ThiefWis) {
ThiefWis = 10;
}
if (ThiefWis < 0) {
ThiefWis = 0;
}
if (10 < ThiefCon) {
ThiefCon = 10;
}
if (ThiefCon < 0) {
ThiefCon = 0;
}
ThiefSpeed = 6 + (ThiefDex / 2);
ThiefHealth = 35 + (ThiefCon * 5);
_level0.ThiefHealth.Storage = -1;
ThiefStrength = 10 + ThiefStr;
trace("Stats (SDWC)");
trace(ThiefStr);
trace(ThiefDex);
trace(ThiefWis);
trace(ThiefCon);
}
State = "StandStill";
LastState = "StandStill";
TargetProperty = 0;
ThiefDex = 0;
ThiefStr = 0;
ThiefWis = 0;
ThiefCon = 0;
ThiefName = "White Wolf";
resetStats();
SpanWidth = 25;
KeyMode = "Directional";
AttackMode = "Swing";
Invincible = false;
InvRotate = _rotation;
Symbol 685 MovieClip Frame 2
if (LastState == "Home") {
if (State == "PainCrouch") {
with (Sprite) {
gotoAndPlay("CrouchInPain");
}
State = "PainCrouch";
LastState = "PainCrouch";
} else {
State = "StandStill";
LastState = "StandStill";
_rotation = getProperty("_level0.Home" + HomePoint, _rotation);
}
_x = getProperty("_level0.Home" + HomePoint, _x);
_y = getProperty("_level0.Home" + HomePoint, _y);
if (_level0.Follower.Activated) {
if (_level0.Follower.State != "OnHold") {
_level0.Follower._rotation = _rotation;
_level0.Follower.State = "StandStill";
Orientation = (_rotation / 180) * Math.PI;
_level0.Follower._x = _x - (Math.cos(Orientation) * 60);
_level0.Follower._y = _y - (Math.sin(Orientation) * 60);
with (_level0.Follower.Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
}
}
if (State == "Crouched") {
if (!Key.isDown(90)) {
State = "StandStill";
}
}
if ((State == "StandStill") && (0 >= _level0.ThiefHealth.Health)) {
KeyMode = "Disabled";
State = "Death";
Invincible = true;
gotoAndPlay (15);
Sprite.gotoAndPlay("Death");
}
_rotation = Math.round(_rotation);
InvRotate = _rotation;
LastState = State;
if ((State == "StandStill") || (State == "Movement")) {
State = "StandStill";
if (KeyMode == "Angular") {
if (Key.isDown(Key.LEFT)) {
_rotation = (_rotation - 45);
}
if (Key.isDown(Key.RIGHT)) {
_rotation = (_rotation + 45);
}
if (Key.isDown(Key.UP)) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * ThiefSpeed));
_y = (_y + (Math.sin(Orientation) * ThiefSpeed));
State = "Movement";
}
if (Key.isDown(Key.DOWN)) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - ((Math.cos(Orientation) * ThiefSpeed) / 3));
_y = (_y - ((Math.sin(Orientation) * ThiefSpeed) / 3));
State = "StandStill";
}
}
if (KeyMode == "Directional") {
ChangeAngle = _rotation;
ChangeY = 0;
if (Key.isDown(Key.UP)) {
ChangeAngle = -90;
ChangeY = -1;
} else if (Key.isDown(Key.DOWN)) {
ChangeAngle = 90;
ChangeY = 1;
}
if (Key.isDown(Key.LEFT)) {
ChangeAngle = -180;
if (ChangeY != 0) {
ChangeAngle = 135 * ChangeY;
}
ChangeY = 1;
} else if (Key.isDown(Key.RIGHT)) {
ChangeAngle = 0;
if (ChangeY != 0) {
ChangeAngle = 45 * ChangeY;
}
ChangeY = 1;
}
Difference = ChangeAngle - _rotation;
if (5 < Math.abs(Difference)) {
if (((0 < Difference) && (Difference < 180)) || ((Difference < 0) && (Difference < -180))) {
_rotation = (_rotation + 45);
} else {
_rotation = (_rotation - 45);
}
} else if (ChangeY != 0) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * ThiefSpeed));
_y = (_y + (Math.sin(Orientation) * ThiefSpeed));
State = "Movement";
}
}
if (Key.isDown(Key.SPACE) && (KeyMode != "Disabled")) {
with (Sprite) {
gotoAndPlay(AttackMode);
}
State = "Attack";
}
if (Key.isDown(67) && (KeyMode != "Disabled")) {
if (((!_level0.Projectile5.Activated) && (_level0.Projectile5.Bound == "Nothing")) && (_level0.Projectile5.AttackType != "None")) {
if (_level0.ThiefPrimInv.CurrentItem == 5) {
Sprite.gotoAndPlay("Rocket");
} else {
with (Sprite) {
if (_level0.ThiefSecInv.ActiveItem == 4) {
gotoAndPlay("Cast Special");
} else {
gotoAndPlay("Cast Spell");
}
}
}
State = "Casting";
}
}
if (Key.isDown(90) && (KeyMode != "Disabled")) {
with (Sprite) {
gotoAndPlay("Crouch");
}
State = "Crouching";
}
}
if (State == "StandStill") {
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
if (State == "Movement") {
if (LastState == "StandStill") {
with (Sprite) {
gotoAndPlay("Movement");
}
}
}
if (State == "StandStill") {
_rotation = (Math.round(_rotation / 45) * 45);
}
if ((State == "Pause") && (!Key.isDown(Key.SPACE))) {
State = "Ready";
}
if ((State == "Ready") && (Key.isDown(Key.SPACE))) {
State = "Attack";
}
if (State == "Pain") {
with (Sprite) {
gotoAndPlay("Pain");
}
gotoAndPlay (5);
}
if (State == "Crouching") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * 2));
_y = (_y + (Math.sin(Orientation) * 2));
}
if ((State == "Casting") && (!Key.isDown(67))) {
with (Sprite) {
gotoAndPlay("Stand Still");
}
State = "StandStill";
}
if (State == "Launch") {
if ((_level0.ThiefSecInv.ActiveItem != 4) && (_level0.ThiefPrimInv.CurrentItem != 5)) {
with (_level0.ThiefPrimInv) {
Available[CurrentItem]--;
}
}
Orientation = (_rotation / 180) * Math.PI;
setProperty("_level0.Projectile5", _x , _x + (Math.cos(Orientation) * 50));
setProperty("_level0.Projectile5", _y , _y + (Math.sin(Orientation) * 50));
setProperty("_level0.Projectile5", _rotation , _rotation);
with (_level0.Projectile5) {
gotoAndPlay("Activate");
}
}
if (State == "Eject") {
State = "StandStill";
}
if (State == "Bounded") {
with (Sprite) {
gotoAndPlay("Stand Still");
}
if (((((Key.isDown(Key.LEFT) || (Key.isDown(Key.RIGHT))) || (Key.isDown(Key.UP))) || (Key.isDown(Key.DOWN))) && (KeyPressed != Key.getCode())) && (KeyMode != "Disabled")) {
KeyPressed = Key.getCode();
TargetProperty--;
if ((TargetProperty % 2) == 0) {
_rotation = (_rotation - 45);
} else {
_rotation = (_rotation + 45);
}
}
if (0 >= TargetProperty) {
State = "Eject";
}
}
if (KeyMode != "Disabled") {
if (Key.isDown(Key.CONTROL)) {
if (Key.isDown(68)) {
KeyMode = "Directional";
} else if (Key.isDown(65)) {
KeyMode = "Angular";
}
}
}
Symbol 685 MovieClip Frame 3
prevFrame();
play();
Symbol 685 MovieClip Frame 5
State = "Pain";
if (_level0.ThiefSecInv.ActiveItem == 2) {
_level0.ThiefSecInv.deactivate();
}
if ((_level0.ThiefSecInv.ActiveItem == 3) || (_level0.ThiefSecInv.CurrentItem == 9)) {
_rotation = InvRotate;
LastState = "StandStill";
State = "StandStill";
gotoAndPlay (2);
}
Symbol 685 MovieClip Frame 6
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * TargetProperty));
_y = (_y - (Math.sin(Orientation) * TargetProperty));
Symbol 685 MovieClip Frame 7
if (LastState == "Home") {
if (State == "PainCrouch") {
with (Sprite) {
gotoAndPlay("CrouchInPain");
}
State = "PainCrouch";
LastState = "PainCrouch";
} else {
State = "StandStill";
LastState = "StandStill";
_rotation = getProperty("_level0.Home" + HomePoint, _rotation);
}
_x = getProperty("_level0.Home" + HomePoint, _x);
_y = getProperty("_level0.Home" + HomePoint, _y);
_rotation = getProperty("_level0.Home" + HomePoint, _rotation);
gotoAndPlay (2);
if (_level0.Follower.Activated) {
if (_level0.Follower.State != "OnHold") {
_level0.Follower._rotation = _rotation;
_level0.Follower.State = "StandStill";
Orientation = (_rotation / 180) * Math.PI;
_level0.Follower._x = _x - (Math.cos(Orientation) * 60);
_level0.Follower._y = _y - (Math.sin(Orientation) * 60);
with (_level0.Follower.Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
}
} else if (State == "Bounded") {
gotoAndPlay (2);
} else {
TargetProperty = TargetProperty - 1;
if (0 >= TargetProperty) {
LastState = "StandStill";
State = "StandStill";
_rotation = (Math.round(_rotation / 45) * 45);
gotoAndPlay (2);
} else {
gotoAndPlay (6);
}
}
Symbol 685 MovieClip Frame 15
state = "Dead";
_root.bloodScreen.play();
Symbol 685 MovieClip Frame 17
_rotation = InvRotate;
prevFrame();
play();
Symbol 685 MovieClip Frame 25
Sprite.gotoAndPlay("Stand Still");
Symbol 685 MovieClip Frame 27
prevFrame();
play();
Symbol 685 MovieClip Frame 36
Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (2);
Symbol 736 Button
on (release) {
play();
}
Symbol 748 Button
on (release) {
gotoAndPlay (1393);
}
Symbol 752 MovieClip Frame 1
function reset() {
setProperty("MultipleChoice", _visible , false);
setProperty("SimpleContinue", _visible , false);
setProperty("Portrait", _visible , false);
Selection = -1;
Dialog = "";
}
function close() {
gotoAndPlay (1);
}
function initPortrait(Name) {
Temp = Name;
with (Portrait) {
gotoAndPlay(_parent.Temp);
}
setProperty("Portrait", _visible , true);
}
function initContinue() {
setProperty("SimpleContinue", _visible , true);
}
function initResponse() {
i = 0;
while (i < 5) {
with (eval ("MultipleChoice.Selection" + i)) {
_visible = false;
gotoAndStop(1);
}
i++;
}
AddSlot = 0;
}
function addResponse(Dialog) {
if (AddSlot < 5) {
Set(("MultipleChoice.Selection" + AddSlot) + ".Dialog", Dialog);
setProperty("MultipleChoice.Selection" + AddSlot, _visible , true);
AddSlot++;
}
}
function showResponse() {
setProperty("MultipleChoice", _visible , true);
}
reset();
_visible = false;
Symbol 752 MovieClip Frame 2
stop();
Symbol 755 MovieClip Frame 1
function Stick(ItemNo) {
Name = InvName[ItemNo];
Refrence = InvDesc[ItemNo];
Sticking = true;
Timer = getTimer();
}
function UnStick() {
Sticking = false;
_visible = false;
}
InvName = new Array();
InvName[0] = "Nothing";
InvName[1] = "Scroll of Lightning Bolt";
InvName[2] = "Scroll of Fireball";
InvName[3] = "Scroll of Healing";
InvName[4] = "Scroll of Dark Bolt";
InvName[5] = "Heat Seeking Rocket Launcher";
InvName[6] = "Ring of the Vampire";
InvName[7] = "Elven Cloak of Invisibility";
InvName[8] = "Ring of Divine Radiance";
InvName[9] = "Spellbook of Galvanus";
InvName[10] = "Amulet of Life";
InvName[11] = "Gaunlet of Blessings";
InvName[12] = "Bracelet of Defense";
InvName[13] = "Eye of True Sight";
InvName[14] = "Spiked Metal Armor";
InvName[15] = "Swinging Back Stab Attack";
InvName[16] = "Quick Jab Attack";
InvName[17] = "Thunderclash Attack";
InvName[18] = "Metal Gaunlet Attack";
InvName[19] = "Chaingun Attack";
InvName[20] = "Metal Key";
InvName[22] = "Crystal Amulet";
InvName[23] = InvName[22];
InvName[24] = "Karma Stone";
InvName[25] = "Bag of Gold";
InvName[26] = "Elven Bracelet";
InvDesc = new Array();
InvDesc[0] = "";
InvDesc[1] = "The scroll releases a lightning bolt that bounces off walls several times before giving out.";
InvDesc[2] = "The scroll releases a fireball that explodes on contact. Does splash damage.";
InvDesc[3] = "The scroll releases a healing aura that heals the wound of the spell caster.";
InvDesc[4] = "The scroll follows the master's will and flies according to the orientation of the master.";
InvDesc[5] = "An upgraded version of Quake 3 Arena's rocket launcher, which releases mild heat seeking missiles.";
InvDesc[6] = "A magical ring that draining the life force of anything that comes into contact with the dagger.";
InvDesc[7] = "A treasured elven artifact that renders the user partially invisible when activated.";
InvDesc[8] = "The ring produces a brilliant light that protects the user from all physical damages.";
InvDesc[9] = "When activated, scrolls do not burn out when spells are being casted. It also reduces casting time.";
InvDesc[10] = "An amulet that surrounds the wielder with healing aura when activated.";
InvDesc[11] = "The gaunlet enables any wielder to release a 2 hit combo attack when activated.";
InvDesc[12] = "When activated, a shielding aura reduces the damage of incoming physical attacks.";
InvDesc[13] = "Wielder of the eye knows all and see all.";
InvDesc[14] = "An armor from FallOut, upgraded for practicality. The uer is invincible and deals damage on contact.";
InvDesc[15] = "Slow but powerful, the swinging back stab aims at vulerable points for heavy damage.";
InvDesc[16] = "A warrior style attack with better reach and speed, but it is loud and lacks finesse.";
InvDesc[17] = "The dagger is being driven into the floor to produce waves of energy blasts.";
InvDesc[18] = "Press attack immediately after the first swing to perform a two hit combo.";
InvDesc[19] = "A classic weapon from Doom. Just hold the attack key and fire away.";
InvDesc[20] = "A metallic key used to open locked doors.";
InvDesc[22] = "The crystal grows eerily in a blood red color, with magical powers channeling within.";
InvDesc[23] = InvDesc[22];
InvDesc[24] = "A common stone that is a gamble to buy, for each stone has its own unidentifiable effect.";
InvDesc[25] = "A leather bag of common currency used in Drakonis.";
InvDesc[26] = "A finely crafted elven bracelet, with the words 'peace within self' engraved in elven";
Sticking = false;
Timer = 0;
_visible = false;
Symbol 755 MovieClip Frame 2
if (Sticking) {
if ((Timer + 1000) < getTimer()) {
_visible = true;
_x = Mouse._x;
_y = Mouse._y;
}
}
Symbol 755 MovieClip Frame 3
prevFrame();
play();
Symbol 787 MovieClip Frame 2
if (!Key.isDown(72)) {
prevFrame();
play();
}
Symbol 787 MovieClip Frame 4
if (Key.isDown(72)) {
prevFrame();
play();
}
Symbol 797 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 1
function show() {
_visible = true;
ThiefName = _level0.Thief.ThiefName;
ThiefStr.gotoAndStop(_level0.Thief.ThiefStr);
ThiefDex.gotoAndStop(_level0.Thief.ThiefDex);
ThiefWis.gotoAndStop(_level0.Thief.ThiefWis);
ThiefCon.gotoAndStop(_level0.Thief.ThiefCon);
}
function hide() {
_visible = false;
}
Symbol 799 MovieClip Frame 2
if (((!Key.isDown(219)) && (Key.isDown(221))) && (!_visible)) {
show();
}
if ((!Key.isDown(221)) && (_visible)) {
hide();
}
Symbol 799 MovieClip Frame 3
prevFrame();
play();
Symbol 801 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(ItemArray[0] + 19);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 802 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(ItemArray[1] + 19);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 803 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(ItemArray[2] + 19);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 804 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(ItemArray[3] + 19);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 805 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(ItemArray[5] + 19);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 806 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(ItemArray[4] + 19);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 807 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(ItemArray[7] + 19);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 808 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(ItemArray[6] + 19);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
Symbol 809 MovieClip Frame 1
function hide() {
_visible = false;
}
function show() {
_visible = true;
}
function exist(ItemNo) {
i = 0;
while ((ItemArray[i] != ItemNo) && (i < 8)) {
i++;
}
if (i < 8) {
return(true);
}
return(false);
}
function addItem(ItemNo) {
ItemNo = parseInt(ItemNo);
i = 0;
while ((0 < ItemArray[i]) && (i < 7)) {
i++;
}
ItemArray[i] = ItemNo;
with (eval ("Inv" + i)) {
gotoAndPlay("Inv" + String(_parent.ItemArray[_parent.i] + 19));
}
}
function delItem(ItemNo) {
ItemNo = parseInt(ItemNo);
i = 0;
while ((ItemArray[i] != ItemNo) && (i < 8)) {
i++;
}
if (i < 8) {
ItemArray[i] = 0;
eval ("Inv" + i).gotoAndPlay("Inv0");
return(true);
}
return(false);
}
function save() {
savestring = "";
i = 0;
while (i < 8) {
savestring = savestring + _root.Encode26(ItemArray[i] + 1);
i++;
}
return(savestring);
}
function loadc(savedstring) {
trace(savedstring);
i = 0;
while (i < 8) {
itemToAdd = _root.Decode26(savedstring, i) - 1;
if (0 < itemToAdd) {
addItem(itemToAdd);
}
i++;
}
gotoAndPlay (2);
}
ItemArray = new Array();
i = 0;
while (i < 8) {
ItemArray[i] = 0;
i++;
}
Symbol 809 MovieClip Frame 3
if (((!Key.isDown(221)) && (Key.isDown(219))) && (!_visible)) {
show();
}
if ((!Key.isDown(219)) && (_visible)) {
hide();
}
Symbol 809 MovieClip Frame 4
prevFrame();
play();
Symbol 810 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 810 MovieClip Frame 2
stop();
Symbol 810 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 810 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 810 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 810 MovieClip Frame 13
stop();
Symbol 827 MovieClip Frame 1
with (Flame) {
gotoAndStop(random(4) + 1);
}
Symbol 827 MovieClip Frame 10
gotoAndPlay (1);
Symbol 829 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 829 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 829 MovieClip Frame 3
prevFrame();
play();
Symbol 830 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 830 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 830 MovieClip Frame 3
prevFrame();
play();
Symbol 831 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 831 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 831 MovieClip Frame 3
prevFrame();
play();
Symbol 832 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 832 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 832 MovieClip Frame 3
prevFrame();
play();
Symbol 833 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 833 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 833 MovieClip Frame 3
prevFrame();
play();
Symbol 837 MovieClip Frame 90
stop();
Symbol 855 MovieClip Frame 1
stop();
Symbol 856 MovieClip Frame 1
function save() {
return(_root.Encode100(Health));
}
function loadc(loadstring) {
Health = _root.Decode100(loadstring, 0);
Storage = 0;
gotoAndPlay (3);
}
Symbol 856 MovieClip Frame 2
Health = _level0.Thief.ThiefHealth;
Storage = 0;
Damage = 0;
Symbol 856 MovieClip Frame 3
Damage = Math.round(Damage);
if ((0 < Damage) && ((_level0.ThiefSecInv.ActiveItem == 3) || (_level0.ThiefSecInv.CurrentItem == 9))) {
Damage = 0;
}
Speed = 0;
while (Speed < 1) {
if (0 < Damage) {
if ((!((_level0.ThiefSecInv.ActiveItem == 7) && (Speed == 0))) && (0 < Health)) {
Health--;
}
Damage--;
}
if (Damage < 0) {
if (Health < _level0.Thief.ThiefHealth) {
Health++;
Damage++;
} else {
Damage = 0;
}
}
Speed++;
}
if (Health != Storage) {
Frame = Math.round((Health * 100) / _level0.Thief.ThiefHealth);
Sprite.gotoAndStop(101 - Frame);
}
Storage = Health;
Symbol 856 MovieClip Frame 4
prevFrame();
play();
Symbol 857 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(CurrentItem);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
on (release) {
if ((_level0.Thief.KeyMode != "Disabled") && (CurrentItem != 5)) {
Change = ((CurrentItem < 4) ? (CurrentItem + 1) : 0);
while (!switchTo(Change)) {
Change = ((Change < 4) ? (Change + 1) : 0);
}
}
if (CurrentItem == 0) {
Change = 1;
while ((!switchTo(Change)) && (Change < 5)) {
Change++;
}
}
}
Symbol 859 MovieClip Frame 1
function switchTo(ItemNo) {
if (0 < Available[ItemNo]) {
CurrentItem = ItemNo;
with (Icon) {
gotoAndPlay("Inv" + String(_parent.CurrentItem));
}
if (CurrentItem == 0) {
_level0.Projectile5.ChangeTo = "None";
} else if (CurrentItem == 1) {
_level0.Projectile5.ChangeTo = "Lightning";
} else if (CurrentItem == 2) {
_level0.Projectile5.ChangeTo = "Fireball";
} else if (CurrentItem == 3) {
_level0.Projectile5.ChangeTo = "Heal";
} else if (CurrentItem == 4) {
_level0.Projectile5.ChangeTo = "DarkRay";
} else if (CurrentItem == 5) {
_level0.Projectile5.ChangeTo = "Rocket";
}
return(true);
}
return(false);
}
function activateSecret() {
Available[5] = 9999;
switchTo(5);
}
function save() {
savestring = "";
i = 1;
while (i < 6) {
savestring = savestring + _root.Encode26(Available[i] + 1);
i++;
}
savestring = savestring + _root.Encode10(CurrentItem);
return(savestring);
}
function loadc(loadstring) {
trace(loadstring);
Available[0] = 1;
i = 1;
while (i < 6) {
Available[i] = _root.Decode26(loadstring, i - 1) - 1;
i++;
}
switchTo(_root.Decode10(loadstring, 5));
gotoAndPlay (3);
}
CurrentItem = 0;
KeyCleared = false;
Available = new Array();
Available[0] = 1;
Available[1] = 0;
Available[2] = 0;
Available[3] = 0;
Available[4] = 0;
Available[5] = 0;
Symbol 859 MovieClip Frame 3
if ((((Key.isDown(81) && (_level0.Thief.KeyMode != "Disabled")) && (KeyCleared)) || (Available[CurrentItem] == 0)) && (CurrentItem != 5)) {
Change = ((CurrentItem < 4) ? (CurrentItem + 1) : 0);
while (!switchTo(Change)) {
Change = ((Change < 4) ? (Change + 1) : 0);
}
KeyCleared = false;
}
Test = 0;
while (Test < 5) {
if (25 < Available[Test]) {
Available[Test] = 25;
}
if (Available[Test] < 0) {
Available[Test] = 0;
}
if (((Key.isDown(49 + Test) || (Key.isDown(97 + Test))) && (_level0.Thief.KeyMode != "Disabled")) && (CurrentItem != 5)) {
switchTo(Test + 1);
}
Test++;
}
if ((!Key.isDown(81)) && (!KeyCleared)) {
KeyCleared = true;
}
if (CurrentItem == 0) {
Change = 1;
while ((!switchTo(Change)) && (Change < 5)) {
Change++;
}
}
AmountLeft = (((CurrentItem != 0) && (CurrentItem != 5)) ? (Available[CurrentItem]) : "");
Symbol 859 MovieClip Frame 4
prevFrame();
play();
Symbol 860 Button
on (rollOver) {
if (CurrentItem != 0) {
_level0.helpIndex.Stick(CurrentItem + 5);
}
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
on (release) {
if (((((!KeyLock) && (_level0.Thief.State != "Concentrating")) && (_level0.Thief.State != "Casting")) && (_level0.Thief.KeyMode != "Disabled")) && (CurrentItem != 9)) {
if (ActiveItem == 0) {
activate();
} else {
deactivate();
}
}
}
Symbol 862 MovieClip Frame 1
function switchTo(ItemNo) {
if (ActiveItem != 0) {
deactivate();
}
CurrentItem = Parseint(ItemNo);
ActiveItem = 0;
Available = MaxAvailable[CurrentItem];
if (CurrentItem == 0) {
Sprite.gotoAndPlay("Inv0");
} else {
Sprite.gotoAndPlay("Inv" + (CurrentItem + 5));
}
if (CurrentItem == 9) {
_level0.Thief.ThiefArmor.play();
}
}
function activate() {
if (0 < Available) {
Available--;
}
Timer = getTimer();
ActiveItem = CurrentItem;
if (CurrentItem == 1) {
_level0.Thief.Vampire.play();
}
if (CurrentItem == 3) {
_level0.Thief.SpanWidth = 55;
_level0.Thief.BumpMap.play();
}
if (CurrentItem == 5) {
_level0.ThiefStar.play();
}
if (CurrentItem == 6) {
FormerWeapon = _level0.ThiefWeapon.CurrentWeapon;
_level0.ThiefWeapon.Available[3] = true;
_level0.ThiefWeapon.switchTo(3);
}
if (CurrentItem == 7) {
_level0.ThiefDefense.play();
}
}
function deactivate() {
if (CurrentItem == 3) {
_level0.Thief.SpanWidth = 25;
_level0.Thief.BumpMap.gotoAndStop(1);
}
if (CurrentItem == 5) {
_level0.ThiefStar.gotoAndStop(1);
}
if (CurrentItem == 6) {
_level0.ThiefWeapon.Available[3] = false;
_level0.ThiefWeapon.switchTo(FormerWeapon);
}
if (CurrentItem == 7) {
_level0.ThiefDefense.gotoAndStop(1);
}
ActiveItem = 0;
}
function save() {
var AvailPct = parseInt((Available / MaxAvailable[CurrentItem]) * 100);
if (99 < AvailPct) {
return(_root.Encode100(CurrentItem) + _root.Encode100(99));
}
if (AvailPct < 0) {
return(_root.Encode100(CurrentItem) + _root.Encode100(0));
}
return(_root.Encode100(CurrentItem) + _root.Encode100(AvailPct));
}
function loadc(loadstring) {
switchTo(_root.Decode100(loadstring, 0));
Available = parseInt((_root.Decode100(loadstring, 2) * MaxAvailable[CurrentItem]) / 100);
}
function activateSecret() {
switchTo(9);
}
Available = -1;
CurrentItem = 0;
ActiveItem = 0;
Timer = 0;
KeyLock = false;
MaxAvailable = new Array();
MaxAvailable[0] = -1;
MaxAvailable[1] = 60;
MaxAvailable[2] = 20;
MaxAvailable[3] = 20;
MaxAvailable[4] = 60;
MaxAvailable[5] = 50;
MaxAvailable[6] = 120;
MaxAvailable[7] = 120;
MaxAvailable[8] = -1;
MaxAvailable[9] = -1;
Symbol 862 MovieClip Frame 3
if ((CurrentItem == ActiveItem) && (CurrentItem != 0)) {
if ((Timer + 500) < getTimer()) {
if (ActiveItem == 5) {
_level0.ThiefHealth.Damage--;
}
Available--;
Timer = getTimer();
}
}
if (Available == 0) {
switchTo(0);
}
if (((((Key.isDown(65) && (!KeyLock)) && (_level0.Thief.State != "Concentrating")) && (_level0.Thief.State != "Casting")) && (_level0.Thief.KeyMode != "Disabled")) && (CurrentItem != 9)) {
KeyLock = true;
if (ActiveItem == 0) {
activate();
} else {
deactivate();
}
}
if (!Key.isDown(65)) {
KeyLock = false;
}
if (Available == -1) {
AmountLeft = "";
} else if (Math.round((Available / MaxAvailable[CurrentItem]) * 100) >= 100) {
AmountLeft = "99";
} else {
AmountLeft = Math.round((Available / MaxAvailable[CurrentItem]) * 100);
}
if ((ActiveItem == 2) && (30 < _level0.Thief._alpha)) {
_level0.Thief._alpha = _level0.Thief._alpha - 5;
}
if ((ActiveItem == 0) && (_level0.Thief._alpha < 100)) {
_level0.Thief._alpha = _level0.Thief._alpha + 5;
}
Symbol 862 MovieClip Frame 4
prevFrame();
play();
Symbol 863 Button
on (rollOver) {
_level0.helpIndex.Stick(CurrentWeapon + 15);
}
on (rollOut) {
_level0.helpIndex.UnStick();
}
on (release) {
if ((CurrentWeapon < 3) && (_level0.Thief.KeyMode != "Disabled")) {
Search = ((CurrentWeapon < 2) ? (CurrentWeapon + 1) : 0);
while (!Available[Search]) {
((Search < 2) ? (Search++) : ((Search = 0)));
}
switchTo(Search);
}
}
Symbol 864 MovieClip Frame 3
stop();
Symbol 864 MovieClip Frame 8
stop();
Symbol 864 MovieClip Frame 13
stop();
Symbol 864 MovieClip Frame 18
stop();
Symbol 864 MovieClip Frame 23
stop();
Symbol 864 MovieClip Frame 28
stop();
Symbol 864 MovieClip Frame 33
stop();
Symbol 864 MovieClip Frame 38
stop();
Symbol 864 MovieClip Frame 43
stop();
Symbol 864 MovieClip Frame 48
stop();
Symbol 864 MovieClip Frame 53
stop();
Symbol 864 MovieClip Frame 58
stop();
Symbol 864 MovieClip Frame 63
stop();
Symbol 864 MovieClip Frame 68
stop();
Symbol 864 MovieClip Frame 73
stop();
Symbol 864 MovieClip Frame 78
stop();
Symbol 864 MovieClip Frame 83
stop();
Symbol 864 MovieClip Frame 88
stop();
Symbol 864 MovieClip Frame 93
stop();
Symbol 864 MovieClip Frame 98
stop();
Symbol 864 MovieClip Frame 103
stop();
Symbol 864 MovieClip Frame 108
stop();
Symbol 864 MovieClip Frame 113
stop();
Symbol 864 MovieClip Frame 118
stop();
Symbol 864 MovieClip Frame 123
stop();
Symbol 864 MovieClip Frame 128
stop();
Symbol 864 MovieClip Frame 133
stop();
Symbol 864 MovieClip Frame 138
stop();
Symbol 865 MovieClip Frame 1
function switchTo(ItemNo) {
if (Available[ItemNo]) {
CurrentWeapon = ItemNo;
Icon.gotoAndPlay("Inv" + String(ItemNo + 15));
if (ItemNo == 0) {
_level0.Thief.AttackMode = "Swing";
}
if (ItemNo == 1) {
_level0.Thief.AttackMode = "Jab";
}
if (ItemNo == 2) {
_level0.Thief.AttackMode = "Clash";
}
if (ItemNo == 3) {
_level0.Thief.AttackMode = "Gaunlet";
}
if (ItemNo == 4) {
_level0.Thief.AttackMode = "Chaingun";
}
}
}
function addSkill(SkillNo) {
Available[SkillNo] = true;
}
function save() {
savestring = "k";
i = 1;
while (i < 5) {
if (Available[ItemNo]) {
savestring = savestring + _root.Encode10(i + 1);
} else {
savestring = savestring + _root.Encode10(9);
}
i++;
}
savestring = savestring + _root.Encode26(currentWeapon);
return(savestring);
}
function loadc(loadstring) {
Available[0] = true;
i = 1;
while (i < 5) {
Available[i] = _root.Decode10(loadstring, i) != 9;
i++;
}
switchTo(_root.Decode26(loadstring, 5));
gotoAndPlay (2);
}
function activateSecret() {
Available[0] = false;
Available[1] = false;
Available[2] = false;
Available[3] = false;
Available[4] = true;
switchTo(4);
gotoAndPlay (2);
}
Available = new Array();
Available[0] = true;
Available[1] = true;
Available[2] = false;
Available[3] = false;
Available[4] = false;
CurrentWeapon = 0;
KeyLock = false;
switchTo(CurrentWeapon);
Symbol 865 MovieClip Frame 2
if (((Key.isDown(87) && (!KeyLock)) && (CurrentWeapon < 3)) && (_level0.Thief.KeyMode != "Disabled")) {
KeyLock = true;
Search = ((CurrentWeapon < 2) ? (CurrentWeapon + 1) : 0);
while (!Available[Search]) {
((Search < 2) ? (Search++) : ((Search = 0)));
}
switchTo(Search);
}
if (!Key.isDown(87)) {
KeyLock = false;
}
Symbol 865 MovieClip Frame 3
prevFrame();
play();
Symbol 876 MovieClip Frame 1
_parent.Activated = true;
stop();
Symbol 876 MovieClip Frame 10
with (eval ("_level0." + _parent.Trigger)) {
play();
}
_parent.ActivationAmount = _parent.ActivationAmount - 1;
if (0 >= _parent.ActivationAmount) {
stop();
}
Symbol 877 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 877 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 877 MovieClip Frame 3
prevFrame();
play();
Symbol 879 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 879 MovieClip Frame 2
Current = 0;
stop();
Symbol 879 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 879 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 879 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 879 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 882 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 882 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 882 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 882 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 882 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 882 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 882 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 882 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 882 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 882 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 882 MovieClip Frame 18
stop();
Symbol 883 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 883 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 883 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 883 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 883 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 883 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 883 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 883 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 883 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 883 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 883 MovieClip Frame 18
stop();
Symbol 888 MovieClip Frame 90
stop();
Symbol 890 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 890 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 890 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 890 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 890 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 890 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 890 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 890 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 890 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 890 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 890 MovieClip Frame 18
stop();
Symbol 909 MovieClip Frame 1
function SaveGame() {
_level0.PassName = _level0.Thief.ThiefName;
Attributes = _root.EncodeAttributes();
Condition = _root.EncodeCondition();
}
function ValidGame() {
var namelength;
namelength = _root.Decode26(Attributes, 0) + 1;
if (((((Condition.charAt(29) != "k") && (Condition != "Unknown Passage")) && (Condition != "All Your Base Are Belong To Us")) && (Condition != "MC Hawkings, Quake Master")) || (((Attributes.charAt(namelength) != "a") || (Attributes.charAt(namelength + 3) != "y")) || (Attributes.charAt(namelength + 6) != "b"))) {
Attributes = "Unknown Passage";
Condition = "Unknown Passage";
return(false);
}
return(true);
}
function LoadGame() {
_root.DecodeAttributes(Attributes);
_root.Thief.resetStats();
if (Condition.charAt(29) != "k") {
trace("Bad Conditional Statement");
return(undefined);
}
_root.ThiefHealth.loadc(Condition.substr(5, 2));
_root.ThiefSpcInv.loadc(Condition.substr(7, 8).toUpperCase());
_root.GameRecord.loadc(Condition.substr(15, 4));
_root.ThiefPrimInv.loadc(Condition.substr(19, 6));
_root.ThiefSecInv.loadc(Condition.substr(25, 4));
_root.ThiefWeapon.loadc(Condition.substr(29, 6).toUpperCase());
Destination = Condition.substr(35);
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = 0;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
}
function Set(Att, Cond) {
Attributes = Att;
Condition = Cond;
}
function show() {
_visible = true;
}
function hide() {
_visible = false;
}
function getAttributes() {
return(Attributes);
}
function getCondition() {
return(Condition);
}
function getScene() {
return(Condition.substr(0, 5));
}
_visible = false;
Symbol 909 MovieClip Frame 2
stop();
Symbol 916 MovieClip Frame 1
stop();
Symbol 923 MovieClip Frame 1
stop();
Symbol 923 MovieClip Frame 24
stop();
Symbol 924 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 15
stopAllSounds();
_root.gotoAndPlay("ThiefDeathScene");
Symbol 927 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 927 MovieClip Frame 2
stop();
Symbol 927 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 927 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 927 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 927 MovieClip Frame 13
stop();
Symbol 933 MovieClip Frame 1
_visible = false;
Symbol 933 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 933 MovieClip Frame 4
prevFrame();
play();
Symbol 933 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 933 MovieClip Frame 8
stop();
Symbol 934 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 934 MovieClip Frame 2
Current = 0;
stop();
Symbol 934 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 934 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 934 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 934 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 936 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 936 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 936 MovieClip Frame 6
prevFrame();
play();
Symbol 936 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 936 MovieClip Frame 10
prevFrame();
play();
Symbol 936 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 936 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 936 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 939 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 939 MovieClip Frame 2
stop();
Symbol 939 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 939 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 939 MovieClip Frame 6
gotoAndPlay (13);
Symbol 939 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 939 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 939 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 945 MovieClip Frame 1
_visible = false;
Symbol 945 MovieClip Frame 2
stop();
Symbol 956 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 3
stop();
Symbol 956 MovieClip Frame 19
stop();
Symbol 956 MovieClip Frame 45
stop();
Symbol 957 MovieClip Frame 1
function reset() {
setProperty("MultipleChoice", _visible , false);
setProperty("SimpleContinue", _visible , false);
setProperty("Portrait", _visible , false);
Selection = -1;
Dialog = "";
}
function close() {
gotoAndPlay (1);
}
function initPortrait(Name) {
Temp = Name;
with (Portrait) {
gotoAndPlay(_parent.Temp);
}
setProperty("Portrait", _visible , true);
}
function initContinue() {
setProperty("SimpleContinue", _visible , true);
}
function initResponse() {
i = 0;
while (i < 5) {
with (eval ("MultipleChoice.Selection" + i)) {
_visible = false;
gotoAndStop(1);
}
i++;
}
AddSlot = 0;
}
function addResponse(Dialog) {
if (AddSlot < 5) {
Set(("MultipleChoice.Selection" + AddSlot) + ".Dialog", Dialog);
setProperty("MultipleChoice.Selection" + AddSlot, _visible , true);
AddSlot++;
}
}
function showResponse() {
setProperty("MultipleChoice", _visible , true);
}
reset();
_visible = false;
Symbol 957 MovieClip Frame 2
stop();
Symbol 980 MovieClip Frame 1
function setVisible() {
_level0.Thief.gotoAndPlay("Cinametics");
_visible = true;
compute();
addBonus();
_root.SaveScroll.SaveGame();
_root.SaveScroll._visible = true;
}
function setInvisible() {
_level0.Thief.gotoAndPlay("End Cinametics");
_visible = false;
_root.SaveScroll._visible = true;
}
function addBonus() {
_root.GameRecord.reset();
_level0.Thief.ThiefDex = _level0.Thief.ThiefDex + parseInt(DexBonus);
_level0.Thief.ThiefStr = _level0.Thief.ThiefStr + parseInt(StrBonus);
_level0.Thief.ThiefWis = _level0.Thief.ThiefWis + parseInt(WisBonus);
_level0.Thief.ThiefCon = _level0.Thief.ThiefCon + parseInt(ConBonus);
_level0.Thief.ResetStats();
}
function compute() {
Discovery = _root.GameRecord.TotalDiscovery;
Kills = _root.GameRecord.TotalKills;
Secrets = _root.GameRecord.SecretsLocated;
if (Discovery < 1) {
DexBonus = 2;
} else if (Discovery < 4) {
DexBonus = 1;
} else {
DexBonus = 0;
}
if (6 < Kills) {
StrBonus = 1;
} else {
StrBonus = 0;
}
if (Secrets >= 3) {
WisBonus = 1;
} else {
WisBonus = 0;
}
ConBonus = 1;
}
setInvisible();
Symbol 980 MovieClip Frame 2
stop();
Symbol 980 MovieClip Frame 3
if (!_visible) {
setVisible();
} else {
setInvisible();
}
prevFrame();
Symbol 981 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 981 MovieClip Frame 2
stop();
Symbol 981 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 981 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 981 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 981 MovieClip Frame 13
stop();
Symbol 983 MovieClip Frame 1
MusicOn = false;
CurrentLocation = "Default";
Symbol 983 MovieClip Frame 2
if ((StartClipAtRoom[0] == "Auto") && (!MusicOn)) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
Symbol 983 MovieClip Frame 3
if (!MusicOn) {
i = 0;
while (i < StartClipAtRoom.length) {
if (CurrentLocation == StartClipAtRoom[i]) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
i++;
}
}
if (MusicOn) {
i = 0;
while (i < StopClipAtRoom.length) {
if (CurrentLocation == StopClipAtRoom[i]) {
eval ("_root." + SoundClipName).StopClip();
MusicOn = false;
}
i++;
}
}
Symbol 983 MovieClip Frame 4
if (_root.CurrentLocation != CurrentLocation) {
CurrentLocation = _root.CurrentLocation;
gotoAndPlay (3);
}
Symbol 983 MovieClip Frame 5
prevFrame();
play();
Symbol 984 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 984 MovieClip Frame 2
stop();
Symbol 984 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 984 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 984 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 984 MovieClip Frame 13
stop();
Symbol 985 MovieClip Frame 1
MusicOn = false;
CurrentLocation = "Default";
Symbol 985 MovieClip Frame 2
if ((StartClipAtRoom[0] == "Auto") && (!MusicOn)) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
Symbol 985 MovieClip Frame 3
if (!MusicOn) {
i = 0;
while (i < StartClipAtRoom.length) {
if (CurrentLocation == StartClipAtRoom[i]) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
i++;
}
}
if (MusicOn) {
i = 0;
while (i < StopClipAtRoom.length) {
if (CurrentLocation == StopClipAtRoom[i]) {
eval ("_root." + SoundClipName).StopClip();
MusicOn = false;
}
i++;
}
}
Symbol 985 MovieClip Frame 4
if (_root.CurrentLocation != CurrentLocation) {
CurrentLocation = _root.CurrentLocation;
gotoAndPlay (3);
}
Symbol 985 MovieClip Frame 5
prevFrame();
play();
Symbol 986 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 986 MovieClip Frame 2
stop();
Symbol 986 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 986 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 986 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 986 MovieClip Frame 13
stop();
Symbol 987 MovieClip Frame 1
MusicOn = false;
CurrentLocation = "Default";
Symbol 987 MovieClip Frame 2
if ((StartClipAtRoom[0] == "Auto") && (!MusicOn)) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
Symbol 987 MovieClip Frame 3
if (!MusicOn) {
i = 0;
while (i < StartClipAtRoom.length) {
if (CurrentLocation == StartClipAtRoom[i]) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
i++;
}
}
if (MusicOn) {
i = 0;
while (i < StopClipAtRoom.length) {
if (CurrentLocation == StopClipAtRoom[i]) {
eval ("_root." + SoundClipName).StopClip();
MusicOn = false;
}
i++;
}
}
Symbol 987 MovieClip Frame 4
if (_root.CurrentLocation != CurrentLocation) {
CurrentLocation = _root.CurrentLocation;
gotoAndPlay (3);
}
Symbol 987 MovieClip Frame 5
prevFrame();
play();
Symbol 988 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 988 MovieClip Frame 2
stop();
Symbol 988 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 988 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 988 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 988 MovieClip Frame 13
stop();
Symbol 989 MovieClip Frame 1
MusicOn = false;
CurrentLocation = "Default";
Symbol 989 MovieClip Frame 2
if ((StartClipAtRoom[0] == "Auto") && (!MusicOn)) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
Symbol 989 MovieClip Frame 3
if (!MusicOn) {
i = 0;
while (i < StartClipAtRoom.length) {
if (CurrentLocation == StartClipAtRoom[i]) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
i++;
}
}
if (MusicOn) {
i = 0;
while (i < StopClipAtRoom.length) {
if (CurrentLocation == StopClipAtRoom[i]) {
eval ("_root." + SoundClipName).StopClip();
MusicOn = false;
}
i++;
}
}
Symbol 989 MovieClip Frame 4
if (_root.CurrentLocation != CurrentLocation) {
CurrentLocation = _root.CurrentLocation;
gotoAndPlay (3);
}
Symbol 989 MovieClip Frame 5
prevFrame();
play();
Symbol 990 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 990 MovieClip Frame 2
stop();
Symbol 990 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 990 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 990 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 990 MovieClip Frame 13
stop();
Symbol 991 MovieClip Frame 1
MusicOn = false;
CurrentLocation = "Default";
Symbol 991 MovieClip Frame 2
if ((StartClipAtRoom[0] == "Auto") && (!MusicOn)) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
Symbol 991 MovieClip Frame 3
if (!MusicOn) {
i = 0;
while (i < StartClipAtRoom.length) {
if (CurrentLocation == StartClipAtRoom[i]) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
i++;
}
}
if (MusicOn) {
i = 0;
while (i < StopClipAtRoom.length) {
if (CurrentLocation == StopClipAtRoom[i]) {
eval ("_root." + SoundClipName).StopClip();
MusicOn = false;
}
i++;
}
}
Symbol 991 MovieClip Frame 4
if (_root.CurrentLocation != CurrentLocation) {
CurrentLocation = _root.CurrentLocation;
gotoAndPlay (3);
}
Symbol 991 MovieClip Frame 5
prevFrame();
play();
Symbol 992 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 992 MovieClip Frame 2
stop();
Symbol 992 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 992 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 992 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 992 MovieClip Frame 13
stop();
Symbol 993 MovieClip Frame 1
MusicOn = false;
CurrentLocation = "Default";
Symbol 993 MovieClip Frame 2
if ((StartClipAtRoom[0] == "Auto") && (!MusicOn)) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
Symbol 993 MovieClip Frame 3
if (!MusicOn) {
i = 0;
while (i < StartClipAtRoom.length) {
if (CurrentLocation == StartClipAtRoom[i]) {
eval ("_root." + SoundClipName).StartClip();
MusicOn = true;
}
i++;
}
}
if (MusicOn) {
i = 0;
while (i < StopClipAtRoom.length) {
if (CurrentLocation == StopClipAtRoom[i]) {
eval ("_root." + SoundClipName).StopClip();
MusicOn = false;
}
i++;
}
}
Symbol 993 MovieClip Frame 4
if (_root.CurrentLocation != CurrentLocation) {
CurrentLocation = _root.CurrentLocation;
gotoAndPlay (3);
}
Symbol 993 MovieClip Frame 5
prevFrame();
play();
Symbol 994 MovieClip Frame 1
function toggle() {
if (Set) {
Set = false;
} else {
Set = true;
}
}
Set = false;
Symbol 994 MovieClip Frame 2
stop();
Symbol 994 MovieClip Frame 3
trace(Set);
toggle();
prevFrame();
Symbol 996 MovieClip Frame 1
function Detected() {
if (TotalDetection < 9) {
TotalDetection++;
}
}
function Killed() {
if (TotalKills < 9) {
TotalKills++;
}
}
function Located() {
if (SecretsLocated < 9) {
SecretsLocated++;
}
}
function save() {
return(((_root.Encode26(TotalDetection) + _root.Encode10(TotalKills)) + _root.Encode26(SecretsLocated)) + _root.Encode26(7));
}
function loadc(loadstring) {
TotalDetection = _root.Decode26(loadstring, 0);
TotalKills = _root.Decode10(loadstring, 1);
SecretsLocated = _root.Decode26(loadstring, 2);
}
function Reset() {
TotalDetection = 0;
TotalKills = 0;
SecretsLocated = 0;
}
TotalDetection = 0;
TotalKills = 0;
SecretsLocated = 0;
Symbol 996 MovieClip Frame 2
stop();
Symbol 997 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 997 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 997 MovieClip Frame 6
prevFrame();
play();
Symbol 997 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 997 MovieClip Frame 10
prevFrame();
play();
Symbol 997 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 997 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 997 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 998 MovieClip Frame 1
_visible = false;
Symbol 998 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 998 MovieClip Frame 4
prevFrame();
play();
Symbol 998 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 998 MovieClip Frame 8
stop();
Symbol 999 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 999 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 999 MovieClip Frame 6
prevFrame();
play();
Symbol 999 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 999 MovieClip Frame 10
prevFrame();
play();
Symbol 999 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 999 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 999 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1000 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1000 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1000 MovieClip Frame 6
prevFrame();
play();
Symbol 1000 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1000 MovieClip Frame 10
prevFrame();
play();
Symbol 1000 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1000 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1000 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1001 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1001 MovieClip Frame 2
Current = 0;
stop();
Symbol 1001 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1001 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1001 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1001 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1004 MovieClip Frame 1
CrouchHit = false;
Symbol 1004 MovieClip Frame 4
CrouchHit = CrouchMap.hitTest(_level0.Thief._x, _level0.Thief._y, true);
if ((Sprite.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (!(CrouchHit && (_level0.Thief.State == "Crouched")))) && (!((!CrouchHit) && (_level0.ThiefSecInv.ActiveItem == 2)))) {
_root.GameRecord.Detected();
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
gotoAndPlay (15);
}
if ((Sprite.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
_root.GameRecord.Detected();
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
gotoAndPlay (15);
}
Symbol 1004 MovieClip Frame 5
prevFrame();
play();
Symbol 1004 MovieClip Frame 10
stop();
Symbol 1004 MovieClip Frame 15
if (Sprite.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (!((!CrouchMap.hitTest(_level0.Thief._x, _level0.Thief._y, true)) && (_level0.ThiefSecInv.ActiveItem == 2)))) {
with (_parent) {
InSight = true;
}
} else if ((Sprite.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
with (_parent) {
InSight = true;
}
} else {
with (_parent) {
InSight = false;
}
}
Symbol 1004 MovieClip Frame 16
gotoAndPlay (15);
Symbol 1004 MovieClip Frame 21
stop();
Symbol 1004 MovieClip Frame 22
stop();
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 10
stop();
Symbol 1050 MovieClip Frame 1
stop();
Symbol 1050 MovieClip Frame 2
stop();
Symbol 1050 MovieClip Frame 18
stop();
Symbol 1050 MovieClip Frame 38
gotoAndPlay (20);
Symbol 1050 MovieClip Frame 47
if (Shadow.hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = _parent._parent._rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + _parent._parent.GuardDamage;
}
if (Shadow.hitTest(_level0.Follower._x, _level0.Follower._y, true)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = _parent._parent._rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - _parent._parent.GuardDamage;
}
Symbol 1050 MovieClip Frame 60
with (_parent._parent) {
gotoAndPlay("Stunned");
}
gotoAndPlay (1);
Symbol 1050 MovieClip Frame 68
stop();
Symbol 1050 MovieClip Frame 78
stop();
Symbol 1050 MovieClip Frame 88
with (Head) {
gotoAndPlay("Back");
}
gotoAndPlay (90);
Symbol 1050 MovieClip Frame 89
with (Head) {
gotoAndPlay("Front");
}
gotoAndPlay (90);
Symbol 1050 MovieClip Frame 140
with (_parent) {
gotoAndPlay("Death");
}
stop();
Symbol 1050 MovieClip Frame 143
with (Head) {
gotoAndPlay("Front");
}
with (_parent) {
gotoAndPlay("Death");
}
Symbol 1050 MovieClip Frame 148
stop();
Symbol 1050 MovieClip Frame 159
stop();
Symbol 1050 MovieClip Frame 200
with (_parent) {
gotoAndPlay("Death");
}
stop();
Symbol 1050 MovieClip Frame 210
_parent._parent.cSlide = 10;
Symbol 1050 MovieClip Frame 217
_parent._parent.cSlide = 6;
Symbol 1050 MovieClip Frame 223
_parent._parent.cSlide = 2;
Symbol 1050 MovieClip Frame 229
stop();
Symbol 1051 MovieClip Frame 1
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
TargetAngle = Math.atan((_parent._y - _level0.Thief._y) / (_parent._x - _level0.Thief._x));
if (_level0.Thief._x < _parent._x) {
if (_level0.Thief._y < _parent._y) {
TargetAngle = TargetAngle + Math.PI;
} else {
TargetAngle = TargetAngle - Math.PI;
}
}
_level0.Thief._x = _parent._x + (Math.cos(TargetAngle) * (_parent.SpanWidth + _level0.Thief.SpanWidth));
_level0.Thief._y = _parent._y + (Math.sin(TargetAngle) * (_parent.SpanWidth + _level0.Thief.SpanWidth));
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
with (_parent.FOV) {
gotoAndPlay("Alert");
}
gotoAndPlay (5);
}
if ((BumpMap.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
TargetAngle = Math.atan((_parent._y - _level0.Follower._y) / (_parent._x - _level0.Follower._x));
if (_level0.Follower._x < _parent._x) {
if (_level0.Follower._y < _parent._y) {
TargetAngle = TargetAngle + Math.PI;
} else {
TargetAngle = TargetAngle - Math.PI;
}
}
_level0.Follower._x = _parent._x + (Math.cos(TargetAngle) * _parent.SpanWidth);
_level0.Follower._y = _parent._y + (Math.sin(TargetAngle) * _parent.SpanWidth);
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
with (_parent.FOV) {
gotoAndPlay("Alert");
}
gotoAndPlay (5);
}
Symbol 1051 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1051 MovieClip Frame 5
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
TargetAngle = Math.atan((_parent._y - _level0.Thief._y) / (_parent._x - _level0.Thief._x));
if (_level0.Thief._x < _parent._x) {
if (_level0.Thief._y < _parent._y) {
TargetAngle = TargetAngle + Math.PI;
} else {
TargetAngle = TargetAngle - Math.PI;
}
}
_level0.Thief._x = _parent._x + (Math.cos(TargetAngle) * (_parent.SpanWidth + _level0.Thief.SpanWidth));
_level0.Thief._y = _parent._y + (Math.sin(TargetAngle) * (_parent.SpanWidth + _level0.Thief.SpanWidth));
}
if (BumpMap.hitTest(_level0.Follower._x, _level0.Follower._y, true)) {
TargetAngle = Math.atan((_parent._y - _level0.Follower._y) / (_parent._x - _level0.Follower._x));
if (_level0.Follower._x < _parent._x) {
if (_level0.Follower._y < _parent._y) {
TargetAngle = TargetAngle + Math.PI;
} else {
TargetAngle = TargetAngle - Math.PI;
}
}
_level0.Follower._x = _parent._x + (Math.cos(TargetAngle) * _parent.SpanWidth);
_level0.Follower._y = _parent._y + (Math.sin(TargetAngle) * _parent.SpanWidth);
}
Symbol 1051 MovieClip Frame 6
prevFrame();
play();
Symbol 1051 MovieClip Frame 11
gotoAndPlay (5);
Symbol 1051 MovieClip Frame 17
gotoAndPlay (5);
Symbol 1051 MovieClip Frame 25
stop();
Symbol 1052 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1052 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1052 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1052 MovieClip Frame 15
Delay = getTimer();
Symbol 1052 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1052 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1052 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1052 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1052 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1052 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1052 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1052 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1052 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1052 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1052 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1052 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1052 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1052 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1052 MovieClip Frame 113
Delay = getTimer();
Symbol 1052 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1052 MovieClip Frame 121
stop();
Symbol 1052 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1052 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1052 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1052 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1052 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1052 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1052 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1052 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1052 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1052 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1052 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1052 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1052 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1052 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1052 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1052 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1052 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1052 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1052 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1052 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1052 MovieClip Frame 230
FOV._visible = false;
Symbol 1052 MovieClip Frame 232
prevFrame();
play();
Symbol 1052 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1054 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1054 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1054 MovieClip Frame 6
prevFrame();
play();
Symbol 1054 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1054 MovieClip Frame 10
prevFrame();
play();
Symbol 1054 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1054 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1054 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1059 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1059 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1059 MovieClip Frame 6
prevFrame();
play();
Symbol 1059 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1059 MovieClip Frame 10
prevFrame();
play();
Symbol 1059 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1059 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1059 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1061 MovieClip Frame 1
function Capture() {
var i = 0;
while (i < 7) {
if ((hitTest(eval (Subscribers[i])._x, eval (Subscribers[i])._y, false) && ((i < 2) || (eval (Subscribers[i] + ".Grounded") && (0 < eval (Subscribers[i] + ".Damage"))))) && (!Captured[i])) {
Captured[i] = true;
if (i == 0) {
with (_level0.Thief) {
State = "Disabled";
Sprite.gotoAndPlay("FreeFall");
}
} else if (i == 1) {
with (_level0.Follower) {
State = "Death";
Activated = false;
}
} else {
with (eval (Subscribers[i])) {
gotoAndPlay("Death");
PainRebound = 2;
}
}
}
i++;
}
}
function Dump() {
var i = 0;
while (i < 7) {
if (Captured[i]) {
if (eval (Subscribers[i])._xscale == 100) {
PainRebound = 0;
eval (Subscribers[i]).Sprite.Sprite.gotoAndPlay("FallToDeath");
}
if (eval (Subscribers[i])._xscale >= 70) {
eval (Subscribers[i])._xscale = eval (Subscribers[i])._xscale - 5;
eval (Subscribers[i])._yscale = eval (Subscribers[i])._yscale - 5;
} else {
eval (Subscribers[i])._visible = false;
if (i == 0) {
gotoAndPlay (5);
}
}
}
i++;
}
}
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
function Bounce() {
i = 2;
while (i < 7) {
if ((hitTest(eval (Subscribers[i]).Sprite.BumpMap) && (eval (Subscribers[i] + ".Damage") == 0)) && (!Captured[i])) {
var hitObject = Subscribers[i];
var Bound = getCornerBound(hitObject);
var hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
i++;
}
}
Subscribers = new Array();
Subscribers[0] = "_level0.Thief";
Subscribers[1] = "_level0.Follower";
Subscribers[2] = "_level0.Enemy0";
Subscribers[3] = "_level0.Enemy1";
Subscribers[4] = "_level0.Enemy2";
Subscribers[5] = "_level0.Enemy3";
Subscribers[6] = "_level0.Enemy4";
Captured = new Array();
var i = 0;
while (i < 7) {
Captured[i] = false;
i++;
}
_visible = false;
Symbol 1061 MovieClip Frame 3
Dump();
Capture();
Bounce();
prevFrame();
play();
Symbol 1061 MovieClip Frame 10
if (FallToDeath == "True") {
_level0.ThiefHealth.Damage = _level0.Thief.ThiefHealth;
_level0.Thief.State = "StandStill";
} else {
_level0.Thief._xscale = 100;
_level0.Thief._yscale = 100;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
trace("_level0." + Teleport);
eval ("_level0." + Teleport).gotoAndPlay("Teleport");
}
stop();
Symbol 1062 MovieClip Frame 1
_visible = false;
Symbol 1062 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1062 MovieClip Frame 4
prevFrame();
play();
Symbol 1062 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1062 MovieClip Frame 8
stop();
Symbol 1069 MovieClip Frame 1
stop();
Symbol 1069 MovieClip Frame 2
stop();
Symbol 1072 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1072 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1072 MovieClip Frame 4
prevFrame();
play();
Symbol 1072 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1072 MovieClip Frame 8
prevFrame();
play();
Symbol 1072 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1072 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1072 MovieClip Frame 37
stop();
Symbol 1072 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1073 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1073 MovieClip Frame 2
Current = 0;
stop();
Symbol 1073 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1073 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1073 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1073 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1074 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1074 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1074 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1074 MovieClip Frame 15
Delay = getTimer();
Symbol 1074 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1074 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1074 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1074 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1074 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1074 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1074 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1074 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1074 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1074 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1074 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1074 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1074 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1074 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1074 MovieClip Frame 113
Delay = getTimer();
Symbol 1074 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1074 MovieClip Frame 121
stop();
Symbol 1074 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1074 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1074 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1074 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1074 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1074 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1074 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1074 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1074 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1074 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1074 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1074 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1074 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1074 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1074 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1074 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1074 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1074 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1074 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1074 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1074 MovieClip Frame 230
FOV._visible = false;
Symbol 1074 MovieClip Frame 232
prevFrame();
play();
Symbol 1074 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1075 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1075 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1075 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1075 MovieClip Frame 15
Delay = getTimer();
Symbol 1075 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1075 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1075 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1075 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1075 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1075 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1075 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1075 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1075 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1075 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1075 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1075 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1075 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1075 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1075 MovieClip Frame 113
Delay = getTimer();
Symbol 1075 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1075 MovieClip Frame 121
stop();
Symbol 1075 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1075 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1075 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1075 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1075 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1075 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1075 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1075 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1075 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1075 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1075 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1075 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1075 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1075 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1075 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1075 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1075 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1075 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1075 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1075 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1075 MovieClip Frame 230
FOV._visible = false;
Symbol 1075 MovieClip Frame 232
prevFrame();
play();
Symbol 1075 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1078 MovieClip Frame 1
function explode() {
if (hitTest(_level0.Thief.BumpMap)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_x >= _level0.Thief._x) {
if (_level0.Thief._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = TargetAngle + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Math.round(Damage / 2);
}
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Follower._y) / (_x - _level0.Follower._x)) * 180) / Math.PI);
if (_x >= _level0.Follower._x) {
if (_level0.Follower._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = TargetAngle + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Damage / 2);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
}
Activated = false;
Exist = true;
Symbol 1078 MovieClip Frame 2
SpanWidth = 20;
if (_name.substr(0, 5) != "Proje") {
Register = 0;
while (eval (("_level0.Projectile" + Register) + ".Exist")) {
Register++;
}
_name = ("Projectile" + Register);
}
stop();
Symbol 1078 MovieClip Frame 3
Activated = true;
Symbol 1078 MovieClip Frame 5
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (7);
}
if (_level0.Follower.Activated) {
if (BumpMap.hitTest(_level0.Follower.BumpMap)) {
gotoAndPlay (7);
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (BumpMap.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
gotoAndPlay (7);
}
}
Target++;
}
Symbol 1078 MovieClip Frame 6
prevFrame();
play();
Symbol 1078 MovieClip Frame 8
Activated = false;
stop();
Symbol 1079 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 1079 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 1079 MovieClip Frame 3
prevFrame();
play();
Symbol 1081 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1081 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1081 MovieClip Frame 6
prevFrame();
play();
Symbol 1081 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1081 MovieClip Frame 10
prevFrame();
play();
Symbol 1081 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1081 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1081 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1082 MovieClip Frame 1
_visible = false;
Symbol 1082 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1082 MovieClip Frame 4
prevFrame();
play();
Symbol 1082 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1082 MovieClip Frame 8
stop();
Symbol 1083 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1083 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1083 MovieClip Frame 6
prevFrame();
play();
Symbol 1083 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1083 MovieClip Frame 10
prevFrame();
play();
Symbol 1083 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1083 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1083 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1084 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1084 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1084 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1084 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1084 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1084 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1084 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1084 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1084 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1084 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1084 MovieClip Frame 18
stop();
Symbol 1085 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1085 MovieClip Frame 2
Current = 0;
stop();
Symbol 1085 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1085 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1085 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1085 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1100 MovieClip Frame 1
stop();
Symbol 1100 MovieClip Frame 16
stop();
with (_parent._parent) {
gotoAndPlay("Attack");
}
Symbol 1100 MovieClip Frame 31
gotoAndPlay (22);
Symbol 1100 MovieClip Frame 41
stop();
with (_parent._parent) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (1);
Symbol 1100 MovieClip Frame 71
stop();
Symbol 1102 MovieClip Frame 1
stop();
Symbol 1104 MovieClip Frame 1
stop();
Symbol 1114 MovieClip Frame 1
_parent.State = "StandStill";
stop();
Symbol 1114 MovieClip Frame 2
_parent.State = "Scanning";
Symbol 1115 MovieClip Frame 1
SpanWidth = 50;
Activated = true;
Vulerable = false;
Attacked = false;
Damage = 0;
Grounded = false;
PainRebound = 0;
State = "StandStill";
StandardDelay = ActivationDelay;
ActivationDelay = random(StandardDelay);
inAlert = true;
Symbol 1115 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1115 MovieClip Frame 3
_rotation = -90;
gotoAndPlay (12);
Symbol 1115 MovieClip Frame 5
SetAlert = false;
if (_level0.Follower.Activated) {
distx = _x - _level0.Follower._x;
disty = _y - _level0.Follower._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
if ((Distance < (FOV._width / 2)) && (((FOV._width / 2) - 25) < Distance)) {
SetAlert = true;
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
if ((((Distance < (FOV._width / 2)) && (((FOV._width / 2) - 25) < Distance)) && (_level0.Thief.State != "Crouched")) || (SetAlert)) {
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
gotoAndPlay (21);
}
Symbol 1115 MovieClip Frame 6
if (State == "StandStill") {
gotoAndPlay (12);
} else {
prevFrame();
play();
}
Symbol 1115 MovieClip Frame 12
Delay = getTimer();
Symbol 1115 MovieClip Frame 14
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
with (FOV) {
play();
}
ActivationDelay = StandardDelay;
gotoAndPlay (4);
} else {
prevFrame();
play();
}
Symbol 1115 MovieClip Frame 21
with (Sprite.Sprite) {
gotoAndPlay("Open Up");
}
_root.GameRecord.Detected();
stop();
Symbol 1115 MovieClip Frame 30
State = "Seeking";
Vulerable = true;
Attacked = false;
with (Sprite.Sprite) {
gotoAndPlay("Flying");
}
Symbol 1115 MovieClip Frame 32
if (State == "Seeking") {
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
Distance = Distance * 2;
if (Distance < 100) {
Distance = 100;
}
if (250 < Distance) {
Distance = 250;
}
Delay = Distance;
Distance = Distance / 3;
State = "Flying";
}
}
if (State == "Flying") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
Delay = Delay - Speed;
if ((Distance * 2) < Delay) {
Sprite.Sprite._xscale = 70 + (((Delay - (Distance * 2)) / Distance) * 30);
Sprite.Sprite._yscale = 70 + (((Delay - (Distance * 2)) / Distance) * 30);
} else if ((0 < Delay) && (Delay < Distance)) {
Sprite.Sprite._xscale = 70 + (((Distance - Delay) / Distance) * 30);
Sprite.Sprite._yscale = 70 + (((Distance - Delay) / Distance) * 30);
} else if (0 >= Delay) {
Sprite.Sprite._xscale = 100;
Sprite.Sprite._yscale = 100;
gotoAndPlay (40);
}
if (Sprite.HitMap.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (!Attacked)) {
trace("bite");
_level0.Thief.State = "Pain";
_level0.Thief._rotation = _rotation + 180;
_level0.Thief.TargetProperty = 6;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Strength;
Attacked = true;
}
if ((Sprite.HitMap.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (!Attacked)) {
_level0.Follower.State = "Pain";
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.PainRebound = 6;
_level0.Follower.Health = _level0.Follower.Health - Strength;
Attacked = true;
}
}
prevFrame();
play();
Symbol 1115 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Close Down");
}
_rotation = -90;
Vulerable = false;
Activated = true;
stop();
Symbol 1115 MovieClip Frame 53
with (Sprite.Sprite.Blood) {
_alpha = 100;
gotoAndPlay(1);
}
Health = Health - (Damage * 1.2);
Attacked = true;
_rotation = TargetAngle;
if (0 >= Health) {
gotoAndPlay (60);
} else {
gotoAndPlay (31);
}
Symbol 1115 MovieClip Frame 60
with (Sprite.Sprite) {
gotoAndPlay("Death");
}
_rotation = TargetAngle;
PainRebound = 15;
Vulerable = false;
_root.GameRecord.Killed();
Symbol 1115 MovieClip Frame 62
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1119 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
function Bounce() {
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated") && (_name != ("_level0.Enemy" + Target))) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if (hitObject != "Nothing") {
Bound = getCornerBound(hitObject);
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
}
Activated = true;
Vulerable = true;
_visible = false;
Symbol 1119 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1119 MovieClip Frame 3
Activated = false;
Symbol 1119 MovieClip Frame 4
Bounce();
Symbol 1119 MovieClip Frame 5
prevFrame();
play();
Symbol 1119 MovieClip Frame 11
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1119 MovieClip Frame 12
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1119 MovieClip Frame 13
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1119 MovieClip Frame 26
Vulerable = false;
stop();
Symbol 1139 MovieClip Frame 1
stop();
Symbol 1139 MovieClip Frame 3
stop();
Symbol 1139 MovieClip Frame 5
stop();
Symbol 1139 MovieClip Frame 17
stop();
Symbol 1140 MovieClip Frame 1
SpanWidth = 50;
Activated = true;
Vulerable = false;
Attacked = false;
Damage = 0;
Grounded = false;
PainRebound = 0;
State = "StandStill";
StandardDelay = ActivationDelay;
ActivationDelay = random(StandardDelay);
inAlert = true;
Symbol 1140 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1140 MovieClip Frame 3
_rotation = -90;
gotoAndPlay (12);
Symbol 1140 MovieClip Frame 5
SetAlert = false;
if (_level0.Follower.Activated) {
distx = _x - _level0.Follower._x;
disty = _y - _level0.Follower._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
if ((Distance < (FOV._width / 2)) && (((FOV._width / 2) - 25) < Distance)) {
SetAlert = true;
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
if ((((Distance < (FOV._width / 2)) && (((FOV._width / 2) - 25) < Distance)) && (_level0.Thief.State != "Crouched")) || (SetAlert)) {
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
gotoAndPlay (21);
}
Symbol 1140 MovieClip Frame 6
if (State == "StandStill") {
gotoAndPlay (12);
} else {
prevFrame();
play();
}
Symbol 1140 MovieClip Frame 12
Delay = getTimer();
Symbol 1140 MovieClip Frame 14
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
with (FOV) {
play();
}
ActivationDelay = StandardDelay;
gotoAndPlay (4);
} else {
prevFrame();
play();
}
Symbol 1140 MovieClip Frame 21
with (Sprite.Sprite) {
gotoAndPlay("Open Up");
}
_root.GameRecord.Detected();
stop();
Symbol 1140 MovieClip Frame 30
State = "Seeking";
Vulerable = true;
Attacked = false;
with (Sprite.Sprite) {
gotoAndPlay("Flying");
}
Symbol 1140 MovieClip Frame 32
if (State == "Seeking") {
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
Distance = Distance * 2;
if (Distance < 100) {
Distance = 100;
}
if (250 < Distance) {
Distance = 250;
}
Delay = Distance;
Distance = Distance / 3;
State = "Flying";
}
}
if (State == "Flying") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
Delay = Delay - Speed;
if ((Distance * 2) < Delay) {
Sprite.Sprite._xscale = 70 + (((Delay - (Distance * 2)) / Distance) * 30);
Sprite.Sprite._yscale = 70 + (((Delay - (Distance * 2)) / Distance) * 30);
} else if ((0 < Delay) && (Delay < Distance)) {
Sprite.Sprite._xscale = 70 + (((Distance - Delay) / Distance) * 30);
Sprite.Sprite._yscale = 70 + (((Distance - Delay) / Distance) * 30);
} else if (0 >= Delay) {
Sprite.Sprite._xscale = 100;
Sprite.Sprite._yscale = 100;
gotoAndPlay (40);
}
if (Sprite.HitMap.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (!Attacked)) {
trace("bite");
_level0.Thief.State = "Pain";
_level0.Thief._rotation = _rotation + 180;
_level0.Thief.TargetProperty = 6;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Strength;
Attacked = true;
}
if ((Sprite.HitMap.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (!Attacked)) {
_level0.Follower.State = "Pain";
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.PainRebound = 6;
_level0.Follower.Health = _level0.Follower.Health - Strength;
Attacked = true;
}
}
prevFrame();
play();
Symbol 1140 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Close Down");
}
_rotation = -90;
Vulerable = false;
Activated = true;
stop();
Symbol 1140 MovieClip Frame 53
with (Sprite.Sprite.Blood) {
_alpha = 100;
gotoAndPlay(1);
}
Health = Health - (Damage * 1.2);
Attacked = true;
_rotation = TargetAngle;
if (0 >= Health) {
gotoAndPlay (60);
} else {
gotoAndPlay (31);
}
Symbol 1140 MovieClip Frame 60
with (Sprite.Sprite) {
gotoAndPlay("Death");
}
_rotation = TargetAngle;
PainRebound = 15;
Vulerable = false;
_root.GameRecord.Killed();
Symbol 1140 MovieClip Frame 62
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1141 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1141 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1141 MovieClip Frame 6
prevFrame();
play();
Symbol 1141 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1141 MovieClip Frame 10
prevFrame();
play();
Symbol 1141 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1141 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1141 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1144 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1144 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1144 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1144 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1144 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1144 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1144 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1144 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1144 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1144 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1144 MovieClip Frame 18
stop();
Symbol 1147 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1147 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1147 MovieClip Frame 4
prevFrame();
play();
Symbol 1147 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1147 MovieClip Frame 8
prevFrame();
play();
Symbol 1147 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1147 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1147 MovieClip Frame 37
stop();
Symbol 1147 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1148 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 1148 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 1148 MovieClip Frame 3
prevFrame();
play();
Symbol 1149 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1149 MovieClip Frame 2
Current = 0;
stop();
Symbol 1149 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1149 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1149 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1149 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1150 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1150 MovieClip Frame 2
Current = 0;
stop();
Symbol 1150 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1150 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1150 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1150 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1153 MovieClip Frame 1
if (hitTest(_level0.Thief._x, _level0.Thief._y, true) && (!_parent.InSight)) {
_root.GameRecord.Detected();
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
}
if (((hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (!_parent.InSight)) && (_level0.Follower._visible)) {
_root.GameRecord.Detected();
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
}
Symbol 1153 MovieClip Frame 2
prevFrame();
play();
Symbol 1153 MovieClip Frame 5
if (hitTest(_level0.Thief._x, _level0.Thief._y, true) && (!_parent.InSight)) {
with (_parent.Sprite.Sprite) {
play();
}
_parent.InSight = true;
}
if ((hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (!_parent.InSight)) {
with (_parent.Sprite.Sprite) {
play();
}
_parent.InSight = true;
}
Symbol 1153 MovieClip Frame 6
prevFrame();
play();
Symbol 1153 MovieClip Frame 15
stop();
Symbol 1153 MovieClip Frame 16
prevFrame();
Symbol 1153 MovieClip Frame 26
stop();
Symbol 1185 MovieClip Frame 1
stop();
Symbol 1185 MovieClip Frame 2
stop();
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1187 MovieClip Frame 2
stop();
Symbol 1197 MovieClip Frame 2
stop();
Symbol 1197 MovieClip Frame 11
stop();
Symbol 1197 MovieClip Frame 34
with (_parent._parent) {
gotoAndPlay("Unlurk");
}
gotoAndPlay (1);
Symbol 1197 MovieClip Frame 69
gotoAndPlay (40);
Symbol 1197 MovieClip Frame 82
with (_parent._parent) {
gotoAndPlay("Grapple Hold");
}
Symbol 1197 MovieClip Frame 90
with (_parent._parent) {
gotoAndPlay("Reel In");
}
stop();
Symbol 1197 MovieClip Frame 103
with (_parent._parent) {
gotoAndPlay("Bite");
}
gotoAndPlay (105);
Symbol 1197 MovieClip Frame 118
if (_parent._parent.hitObject == "_level0.Thief") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + _parent._parent.Strength;
} else {
_level0.Follower.Health = _level0.Follower.Health - _parent._parent.Strength;
}
Symbol 1197 MovieClip Frame 125
gotoAndPlay (105);
Symbol 1197 MovieClip Frame 146
stop();
Symbol 1197 MovieClip Frame 155
stop();
Symbol 1197 MovieClip Frame 165
stop();
Symbol 1197 MovieClip Frame 174
stop();
Symbol 1197 MovieClip Frame 190
stop();
Symbol 1197 MovieClip Frame 195
with (Head) {
gotoAndPlay("Back");
}
_rotation = 180;
Symbol 1197 MovieClip Frame 231
_parent._parent.Activated = false;
stop();
Symbol 1197 MovieClip Frame 271
_parent._parent.Activated = false;
stop();
Symbol 1198 MovieClip Frame 1
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
distx = _parent._x - _level0.Thief._x;
disty = _parent._y - _level0.Thief._y;
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Orientation = (TargetAngle / 180) * Math.PI;
_level0.Thief._x = _parent._x + Math.round(Math.cos(Orientation) * (_parent.SpanWidth + _level0.Thief.SpanWidth));
_level0.Thief._y = _parent._y + Math.round(Math.sin(Orientation) * (_parent.SpanWidth + _level0.Thief.SpanWidth));
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
}
if (BumpMap.hitTest(_level0.Follower._x, _level0.Follower._y) && (_level0.Follower.Activated)) {
distx = _parent._x - _level0.Follower._x;
disty = _parent._y - _level0.Follower._y;
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Orientation = (TargetAngle / 180) * Math.PI;
_level0.Follower._x = _parent._x + Math.round(Math.cos(Orientation) * _parent.SpanWidth);
_level0.Follower._y = _parent._y + Math.round(Math.sin(Orientation) * _parent.SpanWidth);
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
}
Symbol 1198 MovieClip Frame 2
prevFrame();
play();
Symbol 1198 MovieClip Frame 5
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
distx = _parent._x - _level0.Thief._x;
disty = _parent._y - _level0.Thief._y;
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Orientation = (TargetAngle / 180) * Math.PI;
_level0.Thief._x = _parent._x + Math.round(Math.cos(Orientation) * (_parent.SpanWidth + _level0.Thief.SpanWidth));
_level0.Thief._y = _parent._y + Math.round(Math.sin(Orientation) * (_parent.SpanWidth + _level0.Thief.SpanWidth));
}
if (BumpMap.hitTest(_level0.Follower._x, _level0.Follower._y)) {
distx = _parent._x - _level0.Follower._x;
disty = _parent._y - _level0.Follower._y;
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Orientation = (TargetAngle / 180) * Math.PI;
_level0.Follower._x = _parent._x + Math.round(Math.cos(Orientation) * _parent.SpanWidth);
_level0.Follower._y = _parent._y + Math.round(Math.sin(Orientation) * _parent.SpanWidth);
}
Symbol 1198 MovieClip Frame 6
prevFrame();
play();
Symbol 1198 MovieClip Frame 12
stop();
Symbol 1198 MovieClip Frame 20
if (BumpMap.hitTest(_level0.Thief._x, _level0.Thief._y)) {
distx = _parent._x - _level0.Thief._x;
disty = _parent._y - _level0.Thief._y;
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Orientation = (TargetAngle / 180) * Math.PI;
_level0.Thief._x = _parent._x + Math.round(Math.cos(Orientation) * _parent.SpanWidth);
_level0.Thief._y = _parent._y + Math.round(Math.sin(Orientation) * _parent.SpanWidth);
}
if (BumpMap.hitTest(_level0.Follower._x, _level0.Follower._y)) {
distx = _parent._x - _level0.Follower._x;
disty = _parent._y - _level0.Follower._y;
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Orientation = (TargetAngle / 180) * Math.PI;
_level0.Follower._x = _parent._x + Math.round(Math.cos(Orientation) * _parent.SpanWidth);
_level0.Follower._y = _parent._y + Math.round(Math.sin(Orientation) * _parent.SpanWidth);
}
Symbol 1198 MovieClip Frame 21
prevFrame();
play();
Symbol 1199 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
inAlert = true;
Coord = new object();
Symbol 1199 MovieClip Frame 2
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
Symbol 1199 MovieClip Frame 4
if (Lurk == "True") {
with (Sprite.Sprite) {
gotoAndPlay("Lurking");
}
with (FOV) {
gotoAndPlay("Lurking");
}
with (Sprite) {
gotoAndPlay("Alert");
}
} else {
gotoAndPlay (25);
}
Symbol 1199 MovieClip Frame 5
Vulearable = false;
stop();
Symbol 1199 MovieClip Frame 15
with (FOV) {
gotoAndPlay("Idle");
}
Vulerable = true;
gotoAndPlay (25);
Symbol 1199 MovieClip Frame 25
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (104);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
Symbol 1199 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Delay = getTimer();
Symbol 1199 MovieClip Frame 41
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (25);
}
Symbol 1199 MovieClip Frame 42
prevFrame();
play();
Symbol 1199 MovieClip Frame 50
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1199 MovieClip Frame 51
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
TargetProperty = TargetProperty - Speed;
if (0 >= TargetProperty) {
gotoAndPlay (25);
}
Symbol 1199 MovieClip Frame 52
prevFrame();
play();
Symbol 1199 MovieClip Frame 60
Orientation = 1;
gotoAndPlay (94);
Symbol 1199 MovieClip Frame 75
Orientation = -1;
gotoAndPlay (94);
Symbol 1199 MovieClip Frame 94
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Symbol 1199 MovieClip Frame 95
_rotation = (_rotation + (Orientation * Rotation));
if ((Math.abs(_rotation - TargetProperty) < Rotation) || (((Math.abs(_rotation) + Math.abs(TargetProperty)) + Rotation) >= 360)) {
_rotation = TargetProperty;
gotoAndPlay (25);
}
Symbol 1199 MovieClip Frame 96
prevFrame();
play();
Symbol 1199 MovieClip Frame 104
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1199 MovieClip Frame 105
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - (Rotation * 3));
} else {
_rotation = (_rotation + (Rotation * 3));
}
if ((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (111);
}
Symbol 1199 MovieClip Frame 106
prevFrame();
play();
Symbol 1199 MovieClip Frame 111
with (Sprite.Sprite) {
gotoAndPlay("Grapple");
}
hitObject = "Nothing";
TargetProperty = 10;
Symbol 1199 MovieClip Frame 118
Orientation = (_rotation / 180) * Math.PI;
if (hitObject != "Nothing") {
if (hitObject == "_level0.Thief") {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
} else {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
gotoAndPlay (128);
}
_x = (getProperty(hitObject, _x) - Math.round(Math.cos(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
_y = (getProperty(hitObject, _y) - Math.round(Math.sin(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
} else {
_x = (_x + Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y + Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Coord.x = Sprite.Sprite.GrabHand._x;
Coord.y = Sprite.Sprite.GrabHand._y;
localToGlobal(Coord);
if (hitObject == "Nothing") {
if ((_level0.Follower.BumpMap.hitTest(Coord.x, Coord.y, true) && (_level0.Follower.Activated)) && (_level0.Follower.State != "Death")) {
hitObject = "_level0.Follower";
_level0.Follower.HeldAmount++;
}
if ((Sprite.Sprite.GrabHand.hitTest(_level0.Thief.BumpMap) && (_level0.ThiefSecInv.ActiveItem != 3)) && (_level0.Thief.State != "Death")) {
hitObject = "_level0.Thief";
}
}
Symbol 1199 MovieClip Frame 119
prevFrame();
play();
Symbol 1199 MovieClip Frame 128
if (hitObject == "Nothing") {
gotoAndPlay (146);
} else {
with (eval (hitObject)) {
State = "Bounded";
TargetProperty = Strength + 3;
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
with (Sprite) {
gotoAndPlay("Disabled");
}
}
Symbol 1199 MovieClip Frame 129
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * 6));
_y = (_y + Math.round(Math.sin(Orientation) * 6));
Symbol 1199 MovieClip Frame 130
prevFrame();
play();
Symbol 1199 MovieClip Frame 136
_x = getProperty(hitObject, _x);
_y = getProperty(hitObject, _y);
if ((eval (hitObject + ".State") == "Eject") || (eval (hitObject + ".State") == "Pain")) {
gotoAndPlay (140);
}
Symbol 1199 MovieClip Frame 137
prevFrame();
play();
Symbol 1199 MovieClip Frame 140
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Shove");
}
}
TargetProperty = 10;
Symbol 1199 MovieClip Frame 141
if (-5 >= TargetProperty) {
gotoAndPlay (146);
} else if (0 < TargetProperty) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y - Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Symbol 1199 MovieClip Frame 142
prevFrame();
play();
Symbol 1199 MovieClip Frame 146
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite) {
gotoAndPlay("Idle");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
InSight = false;
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1199 MovieClip Frame 147
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (155);
}
Symbol 1199 MovieClip Frame 148
prevFrame();
play();
Symbol 1199 MovieClip Frame 155
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1199 MovieClip Frame 156
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (!((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360))) {
gotoAndPlay (146);
}
if ((Distance < (Speed * 2)) || (Distance < 10)) {
CurrentAction = -1;
TargetProperty = homer;
if (((homer < _rotation) && ((_rotation - homer) < 180)) || ((_rotation < homer) && ((homer - _rotation) >= 180))) {
Orientation = -1;
} else {
Orientation = 1;
}
gotoAndPlay (94);
}
Symbol 1199 MovieClip Frame 157
prevFrame();
play();
Symbol 1199 MovieClip Frame 164
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
Direction = -1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1199 MovieClip Frame 172
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
Direction = 1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1199 MovieClip Frame 180
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1199 MovieClip Frame 181
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1199 MovieClip Frame 182
PainRebound--;
if (0 >= PainRebound) {
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (197);
} else {
Damaage = 0;
gotoAndPlay (104);
}
}
prevFrame();
play();
Symbol 1199 MovieClip Frame 186
Direction = -1;
Health = Health - Damage;
_rotation = (_level0.Thief._rotation + 180);
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1199 MovieClip Frame 187
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1199 MovieClip Frame 188
PainRebound--;
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (207);
}
if (0 >= PainRebound) {
Damage = 0;
gotoAndPlay (104);
}
prevFrame();
play();
Symbol 1199 MovieClip Frame 197
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * 20));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * 20));
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1199 MovieClip Frame 198
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
}
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1199 MovieClip Frame 199
prevFrame();
play();
Symbol 1199 MovieClip Frame 207
PainRebound = 5;
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (Sprite.Sprite) {
gotoAndPlay("Violent Death");
}
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1199 MovieClip Frame 208
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1199 MovieClip Frame 209
prevFrame();
play();
Symbol 1199 MovieClip Frame 220
Sprite.gotoAndPlay("Disabled");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = false;
stop();
Symbol 1199 MovieClip Frame 230
CurrentAction = -1;
Sprite.gotoAndPlay("Idle");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = true;
gotoAndPlay (25);
Symbol 1200 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
inAlert = true;
Coord = new object();
Symbol 1200 MovieClip Frame 2
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
Symbol 1200 MovieClip Frame 4
if (Lurk == "True") {
with (Sprite.Sprite) {
gotoAndPlay("Lurking");
}
with (FOV) {
gotoAndPlay("Lurking");
}
with (Sprite) {
gotoAndPlay("Alert");
}
} else {
gotoAndPlay (25);
}
Symbol 1200 MovieClip Frame 5
Vulearable = false;
stop();
Symbol 1200 MovieClip Frame 15
with (FOV) {
gotoAndPlay("Idle");
}
Vulerable = true;
gotoAndPlay (25);
Symbol 1200 MovieClip Frame 25
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (104);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
Symbol 1200 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Delay = getTimer();
Symbol 1200 MovieClip Frame 41
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (25);
}
Symbol 1200 MovieClip Frame 42
prevFrame();
play();
Symbol 1200 MovieClip Frame 50
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1200 MovieClip Frame 51
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
TargetProperty = TargetProperty - Speed;
if (0 >= TargetProperty) {
gotoAndPlay (25);
}
Symbol 1200 MovieClip Frame 52
prevFrame();
play();
Symbol 1200 MovieClip Frame 60
Orientation = 1;
gotoAndPlay (94);
Symbol 1200 MovieClip Frame 75
Orientation = -1;
gotoAndPlay (94);
Symbol 1200 MovieClip Frame 94
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Symbol 1200 MovieClip Frame 95
_rotation = (_rotation + (Orientation * Rotation));
if ((Math.abs(_rotation - TargetProperty) < Rotation) || (((Math.abs(_rotation) + Math.abs(TargetProperty)) + Rotation) >= 360)) {
_rotation = TargetProperty;
gotoAndPlay (25);
}
Symbol 1200 MovieClip Frame 96
prevFrame();
play();
Symbol 1200 MovieClip Frame 104
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1200 MovieClip Frame 105
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - (Rotation * 3));
} else {
_rotation = (_rotation + (Rotation * 3));
}
if ((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (111);
}
Symbol 1200 MovieClip Frame 106
prevFrame();
play();
Symbol 1200 MovieClip Frame 111
with (Sprite.Sprite) {
gotoAndPlay("Grapple");
}
hitObject = "Nothing";
TargetProperty = 10;
Symbol 1200 MovieClip Frame 118
Orientation = (_rotation / 180) * Math.PI;
if (hitObject != "Nothing") {
if (hitObject == "_level0.Thief") {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
} else {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
gotoAndPlay (128);
}
_x = (getProperty(hitObject, _x) - Math.round(Math.cos(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
_y = (getProperty(hitObject, _y) - Math.round(Math.sin(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
} else {
_x = (_x + Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y + Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Coord.x = Sprite.Sprite.GrabHand._x;
Coord.y = Sprite.Sprite.GrabHand._y;
localToGlobal(Coord);
if (hitObject == "Nothing") {
if ((_level0.Follower.BumpMap.hitTest(Coord.x, Coord.y, true) && (_level0.Follower.Activated)) && (_level0.Follower.State != "Death")) {
hitObject = "_level0.Follower";
_level0.Follower.HeldAmount++;
}
if ((Sprite.Sprite.GrabHand.hitTest(_level0.Thief.BumpMap) && (_level0.ThiefSecInv.ActiveItem != 3)) && (_level0.Thief.State != "Death")) {
hitObject = "_level0.Thief";
}
}
Symbol 1200 MovieClip Frame 119
prevFrame();
play();
Symbol 1200 MovieClip Frame 128
if (hitObject == "Nothing") {
gotoAndPlay (146);
} else {
with (eval (hitObject)) {
State = "Bounded";
TargetProperty = Strength + 3;
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
with (Sprite) {
gotoAndPlay("Disabled");
}
}
Symbol 1200 MovieClip Frame 129
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * 6));
_y = (_y + Math.round(Math.sin(Orientation) * 6));
Symbol 1200 MovieClip Frame 130
prevFrame();
play();
Symbol 1200 MovieClip Frame 136
_x = getProperty(hitObject, _x);
_y = getProperty(hitObject, _y);
if ((eval (hitObject + ".State") == "Eject") || (eval (hitObject + ".State") == "Pain")) {
gotoAndPlay (140);
}
Symbol 1200 MovieClip Frame 137
prevFrame();
play();
Symbol 1200 MovieClip Frame 140
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Shove");
}
}
TargetProperty = 10;
Symbol 1200 MovieClip Frame 141
if (-5 >= TargetProperty) {
gotoAndPlay (146);
} else if (0 < TargetProperty) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y - Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Symbol 1200 MovieClip Frame 142
prevFrame();
play();
Symbol 1200 MovieClip Frame 146
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite) {
gotoAndPlay("Idle");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
InSight = false;
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1200 MovieClip Frame 147
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (155);
}
Symbol 1200 MovieClip Frame 148
prevFrame();
play();
Symbol 1200 MovieClip Frame 155
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1200 MovieClip Frame 156
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (!((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360))) {
gotoAndPlay (146);
}
if ((Distance < (Speed * 2)) || (Distance < 10)) {
CurrentAction = -1;
TargetProperty = homer;
if (((homer < _rotation) && ((_rotation - homer) < 180)) || ((_rotation < homer) && ((homer - _rotation) >= 180))) {
Orientation = -1;
} else {
Orientation = 1;
}
gotoAndPlay (94);
}
Symbol 1200 MovieClip Frame 157
prevFrame();
play();
Symbol 1200 MovieClip Frame 164
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
Direction = -1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1200 MovieClip Frame 172
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
Direction = 1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1200 MovieClip Frame 180
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1200 MovieClip Frame 181
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1200 MovieClip Frame 182
PainRebound--;
if (0 >= PainRebound) {
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (197);
} else {
Damaage = 0;
gotoAndPlay (104);
}
}
prevFrame();
play();
Symbol 1200 MovieClip Frame 186
Direction = -1;
Health = Health - Damage;
_rotation = (_level0.Thief._rotation + 180);
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1200 MovieClip Frame 187
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1200 MovieClip Frame 188
PainRebound--;
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (207);
}
if (0 >= PainRebound) {
Damage = 0;
gotoAndPlay (104);
}
prevFrame();
play();
Symbol 1200 MovieClip Frame 197
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * 20));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * 20));
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1200 MovieClip Frame 198
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
}
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1200 MovieClip Frame 199
prevFrame();
play();
Symbol 1200 MovieClip Frame 207
PainRebound = 5;
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (Sprite.Sprite) {
gotoAndPlay("Violent Death");
}
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1200 MovieClip Frame 208
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1200 MovieClip Frame 209
prevFrame();
play();
Symbol 1200 MovieClip Frame 220
Sprite.gotoAndPlay("Disabled");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = false;
stop();
Symbol 1200 MovieClip Frame 230
CurrentAction = -1;
Sprite.gotoAndPlay("Idle");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = true;
gotoAndPlay (25);
Symbol 1202 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1202 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1202 MovieClip Frame 4
prevFrame();
play();
Symbol 1202 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1202 MovieClip Frame 8
prevFrame();
play();
Symbol 1202 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1202 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1202 MovieClip Frame 37
stop();
Symbol 1202 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1203 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1203 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1203 MovieClip Frame 6
prevFrame();
play();
Symbol 1203 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1203 MovieClip Frame 10
prevFrame();
play();
Symbol 1203 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1203 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1203 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1204 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1204 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1204 MovieClip Frame 6
prevFrame();
play();
Symbol 1204 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1204 MovieClip Frame 10
prevFrame();
play();
Symbol 1204 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1204 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1204 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1205 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1205 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1205 MovieClip Frame 6
prevFrame();
play();
Symbol 1205 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1205 MovieClip Frame 10
prevFrame();
play();
Symbol 1205 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1205 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1205 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1206 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1206 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1206 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1206 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1206 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1206 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1206 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1206 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1206 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1206 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1206 MovieClip Frame 18
stop();
Symbol 1207 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1207 MovieClip Frame 2
Current = 0;
stop();
Symbol 1207 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1207 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1207 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1207 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1208 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1208 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1208 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1208 MovieClip Frame 15
Delay = getTimer();
Symbol 1208 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1208 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1208 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1208 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1208 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1208 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1208 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1208 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1208 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1208 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1208 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1208 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1208 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1208 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1208 MovieClip Frame 113
Delay = getTimer();
Symbol 1208 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1208 MovieClip Frame 121
stop();
Symbol 1208 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1208 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1208 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1208 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1208 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1208 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1208 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1208 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1208 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1208 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1208 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1208 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1208 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1208 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1208 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1208 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1208 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1208 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1208 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1208 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1208 MovieClip Frame 230
FOV._visible = false;
Symbol 1208 MovieClip Frame 232
prevFrame();
play();
Symbol 1208 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1209 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1209 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1209 MovieClip Frame 6
prevFrame();
play();
Symbol 1209 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1209 MovieClip Frame 10
prevFrame();
play();
Symbol 1209 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1209 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1209 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1210 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1210 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1210 MovieClip Frame 6
prevFrame();
play();
Symbol 1210 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1210 MovieClip Frame 10
prevFrame();
play();
Symbol 1210 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1210 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1210 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1213 MovieClip Frame 1
_visible = false;
Symbol 1213 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1213 MovieClip Frame 4
prevFrame();
play();
Symbol 1213 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1213 MovieClip Frame 8
stop();
Symbol 1221 MovieClip Frame 1
function CaptureAttempt() {
if (_parent.Activated) {
if (_parent.hitObject != "None") {
with (_parent) {
gotoAndPlay("Capture");
}
}
}
}
Symbol 1221 MovieClip Frame 5
CaptureAttempt();
Symbol 1221 MovieClip Frame 7
CaptureAttempt();
Symbol 1221 MovieClip Frame 9
CaptureAttempt();
Symbol 1221 MovieClip Frame 11
CaptureAttempt();
Symbol 1221 MovieClip Frame 12
_parent.Activated = false;
Symbol 1221 MovieClip Frame 28
with (_parent) {
gotoAndPlay("Recovery");
}
Symbol 1222 MovieClip Frame 1
function Captured() {
if (hitTest(eval (hitObject + "._x"), eval (hitObject + "._y"), true)) {
return(true);
}
return(false);
}
function Scan() {
if (hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
hitObject = "_level0.Thief";
hitType = "Thief";
return(true);
}
if (hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) {
hitObject = "_level0.Follower";
hitType = "Follower";
return(true);
}
Target = 0;
while (Target < 5) {
testObject = "_level0.Enemy" + Target;
if ((hitTest(eval (testObject + "._x"), eval (testObject + "._y"), true) && (eval (testObject + ".Grounded"))) && (eval (testObject + ".Vulerable"))) {
hitObject = testObject;
hitType = "Enemy";
return(true);
}
Target++;
}
return(false);
}
Activated = true;
Symbol 1222 MovieClip Frame 3
_visible = true;
if ((AutoTrigger == "False") || ((!Activated) && (hitObject == "_level0.Thief"))) {
stop();
}
Symbol 1222 MovieClip Frame 4
Activated = true;
hitObject = "None";
if (AutoTrigger == "False") {
gotoAndPlay (10);
} else {
gotoAndPlay (17);
}
Symbol 1222 MovieClip Frame 11
Delay = getTimer();
Symbol 1222 MovieClip Frame 13
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
gotoAndPlay (24);
} else {
prevFrame();
play();
}
Symbol 1222 MovieClip Frame 18
if (Scan()) {
gotoAndPlay (10);
}
Symbol 1222 MovieClip Frame 19
prevFrame();
play();
Symbol 1222 MovieClip Frame 24
Scale = 100;
FallFactor = 2;
Symbol 1222 MovieClip Frame 26
Scale = Scale - FallFactor;
if (hitObject == "None") {
Scan();
if (Activated) {
gotoAndPlay (24);
} else {
stop();
}
} else if (Captured()) {
setProperty(hitObject, _xscale , Scale);
setProperty(hitObject, _yscale , Scale);
prevFrame();
play();
} else {
setProperty(hitObject, _xscale , 100);
setProperty(hitObject, _yscale , 100);
hitObject = "None";
gotoAndPlay (24);
}
Symbol 1222 MovieClip Frame 30
if (Captured()) {
Activated = false;
if (hitType == "Thief") {
with (_level0.Thief) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("FreeFall");
}
}
} else if (hitType == "Follower") {
with (_level0.Follower) {
State = "Death";
Activated = false;
}
} else if (hitType == "Enemy") {
with (eval (hitObject)) {
gotoAndPlay("Death");
with (Sprite.Sprite) {
gotoAndPlay("FallToDeath");
}
PainRebound = 0;
}
}
} else {
setProperty(hitObject, _xscale , "100");
setProperty(hitObject, _yscale , "100");
hitObject = "None";
stop();
}
Symbol 1222 MovieClip Frame 31
Scale = Scale - FallFactor;
FallFactor = FallFactor + 1;
setProperty(hitObject, _xscale , Scale);
setProperty(hitObject, _yscale , Scale);
Symbol 1222 MovieClip Frame 32
if (70 >= Scale) {
setProperty(hitObject, _visible , false);
} else {
prevFrame();
play();
}
Symbol 1222 MovieClip Frame 38
if (hitType == "Thief") {
if (FallToDeath == "True") {
_level0.ThiefHealth.Damage = _level0.Thief.ThiefHealth;
_level0.Thief.State = "StandStill";
} else {
setProperty(hitObject, _xscale , 100);
setProperty(hitObject, _yscale , 100);
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
with (eval ("_level0." + Teleport)) {
gotoAndPlay("Teleport");
}
}
}
Symbol 1222 MovieClip Frame 39
stop();
Symbol 1223 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 1223 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 1223 MovieClip Frame 3
prevFrame();
play();
Symbol 1224 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 1224 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 1224 MovieClip Frame 3
prevFrame();
play();
Symbol 1225 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1225 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1225 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1225 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1225 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1225 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1225 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1225 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1225 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1225 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1225 MovieClip Frame 18
stop();
Symbol 1226 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 1226 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 1226 MovieClip Frame 3
prevFrame();
play();
Symbol 1227 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1227 MovieClip Frame 2
Current = 0;
stop();
Symbol 1227 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1227 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1227 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1227 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1228 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
inAlert = true;
Coord = new object();
Symbol 1228 MovieClip Frame 2
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
Symbol 1228 MovieClip Frame 4
if (Lurk == "True") {
with (Sprite.Sprite) {
gotoAndPlay("Lurking");
}
with (FOV) {
gotoAndPlay("Lurking");
}
with (Sprite) {
gotoAndPlay("Alert");
}
} else {
gotoAndPlay (25);
}
Symbol 1228 MovieClip Frame 5
Vulearable = false;
stop();
Symbol 1228 MovieClip Frame 15
with (FOV) {
gotoAndPlay("Idle");
}
Vulerable = true;
gotoAndPlay (25);
Symbol 1228 MovieClip Frame 25
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (104);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
Symbol 1228 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Delay = getTimer();
Symbol 1228 MovieClip Frame 41
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (25);
}
Symbol 1228 MovieClip Frame 42
prevFrame();
play();
Symbol 1228 MovieClip Frame 50
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1228 MovieClip Frame 51
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
TargetProperty = TargetProperty - Speed;
if (0 >= TargetProperty) {
gotoAndPlay (25);
}
Symbol 1228 MovieClip Frame 52
prevFrame();
play();
Symbol 1228 MovieClip Frame 60
Orientation = 1;
gotoAndPlay (94);
Symbol 1228 MovieClip Frame 75
Orientation = -1;
gotoAndPlay (94);
Symbol 1228 MovieClip Frame 94
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Symbol 1228 MovieClip Frame 95
_rotation = (_rotation + (Orientation * Rotation));
if ((Math.abs(_rotation - TargetProperty) < Rotation) || (((Math.abs(_rotation) + Math.abs(TargetProperty)) + Rotation) >= 360)) {
_rotation = TargetProperty;
gotoAndPlay (25);
}
Symbol 1228 MovieClip Frame 96
prevFrame();
play();
Symbol 1228 MovieClip Frame 104
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1228 MovieClip Frame 105
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - (Rotation * 3));
} else {
_rotation = (_rotation + (Rotation * 3));
}
if ((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (111);
}
Symbol 1228 MovieClip Frame 106
prevFrame();
play();
Symbol 1228 MovieClip Frame 111
with (Sprite.Sprite) {
gotoAndPlay("Grapple");
}
hitObject = "Nothing";
TargetProperty = 10;
Symbol 1228 MovieClip Frame 118
Orientation = (_rotation / 180) * Math.PI;
if (hitObject != "Nothing") {
if (hitObject == "_level0.Thief") {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
} else {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
gotoAndPlay (128);
}
_x = (getProperty(hitObject, _x) - Math.round(Math.cos(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
_y = (getProperty(hitObject, _y) - Math.round(Math.sin(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
} else {
_x = (_x + Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y + Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Coord.x = Sprite.Sprite.GrabHand._x;
Coord.y = Sprite.Sprite.GrabHand._y;
localToGlobal(Coord);
if (hitObject == "Nothing") {
if ((_level0.Follower.BumpMap.hitTest(Coord.x, Coord.y, true) && (_level0.Follower.Activated)) && (_level0.Follower.State != "Death")) {
hitObject = "_level0.Follower";
_level0.Follower.HeldAmount++;
}
if ((Sprite.Sprite.GrabHand.hitTest(_level0.Thief.BumpMap) && (_level0.ThiefSecInv.ActiveItem != 3)) && (_level0.Thief.State != "Death")) {
hitObject = "_level0.Thief";
}
}
Symbol 1228 MovieClip Frame 119
prevFrame();
play();
Symbol 1228 MovieClip Frame 128
if (hitObject == "Nothing") {
gotoAndPlay (146);
} else {
with (eval (hitObject)) {
State = "Bounded";
TargetProperty = Strength + 3;
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
with (Sprite) {
gotoAndPlay("Disabled");
}
}
Symbol 1228 MovieClip Frame 129
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * 6));
_y = (_y + Math.round(Math.sin(Orientation) * 6));
Symbol 1228 MovieClip Frame 130
prevFrame();
play();
Symbol 1228 MovieClip Frame 136
_x = getProperty(hitObject, _x);
_y = getProperty(hitObject, _y);
if ((eval (hitObject + ".State") == "Eject") || (eval (hitObject + ".State") == "Pain")) {
gotoAndPlay (140);
}
Symbol 1228 MovieClip Frame 137
prevFrame();
play();
Symbol 1228 MovieClip Frame 140
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Shove");
}
}
TargetProperty = 10;
Symbol 1228 MovieClip Frame 141
if (-5 >= TargetProperty) {
gotoAndPlay (146);
} else if (0 < TargetProperty) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y - Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Symbol 1228 MovieClip Frame 142
prevFrame();
play();
Symbol 1228 MovieClip Frame 146
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite) {
gotoAndPlay("Idle");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
InSight = false;
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1228 MovieClip Frame 147
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (155);
}
Symbol 1228 MovieClip Frame 148
prevFrame();
play();
Symbol 1228 MovieClip Frame 155
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1228 MovieClip Frame 156
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (!((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360))) {
gotoAndPlay (146);
}
if ((Distance < (Speed * 2)) || (Distance < 10)) {
CurrentAction = -1;
TargetProperty = homer;
if (((homer < _rotation) && ((_rotation - homer) < 180)) || ((_rotation < homer) && ((homer - _rotation) >= 180))) {
Orientation = -1;
} else {
Orientation = 1;
}
gotoAndPlay (94);
}
Symbol 1228 MovieClip Frame 157
prevFrame();
play();
Symbol 1228 MovieClip Frame 164
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
Direction = -1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1228 MovieClip Frame 172
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
Direction = 1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1228 MovieClip Frame 180
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1228 MovieClip Frame 181
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1228 MovieClip Frame 182
PainRebound--;
if (0 >= PainRebound) {
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (197);
} else {
Damaage = 0;
gotoAndPlay (104);
}
}
prevFrame();
play();
Symbol 1228 MovieClip Frame 186
Direction = -1;
Health = Health - Damage;
_rotation = (_level0.Thief._rotation + 180);
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1228 MovieClip Frame 187
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1228 MovieClip Frame 188
PainRebound--;
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (207);
}
if (0 >= PainRebound) {
Damage = 0;
gotoAndPlay (104);
}
prevFrame();
play();
Symbol 1228 MovieClip Frame 197
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * 20));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * 20));
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1228 MovieClip Frame 198
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
}
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1228 MovieClip Frame 199
prevFrame();
play();
Symbol 1228 MovieClip Frame 207
PainRebound = 5;
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (Sprite.Sprite) {
gotoAndPlay("Violent Death");
}
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1228 MovieClip Frame 208
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1228 MovieClip Frame 209
prevFrame();
play();
Symbol 1228 MovieClip Frame 220
Sprite.gotoAndPlay("Disabled");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = false;
stop();
Symbol 1228 MovieClip Frame 230
CurrentAction = -1;
Sprite.gotoAndPlay("Idle");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = true;
gotoAndPlay (25);
Symbol 1229 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
inAlert = true;
Coord = new object();
Symbol 1229 MovieClip Frame 2
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
Symbol 1229 MovieClip Frame 4
if (Lurk == "True") {
with (Sprite.Sprite) {
gotoAndPlay("Lurking");
}
with (FOV) {
gotoAndPlay("Lurking");
}
with (Sprite) {
gotoAndPlay("Alert");
}
} else {
gotoAndPlay (25);
}
Symbol 1229 MovieClip Frame 5
Vulearable = false;
stop();
Symbol 1229 MovieClip Frame 15
with (FOV) {
gotoAndPlay("Idle");
}
Vulerable = true;
gotoAndPlay (25);
Symbol 1229 MovieClip Frame 25
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (104);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
Symbol 1229 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Delay = getTimer();
Symbol 1229 MovieClip Frame 41
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (25);
}
Symbol 1229 MovieClip Frame 42
prevFrame();
play();
Symbol 1229 MovieClip Frame 50
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1229 MovieClip Frame 51
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
TargetProperty = TargetProperty - Speed;
if (0 >= TargetProperty) {
gotoAndPlay (25);
}
Symbol 1229 MovieClip Frame 52
prevFrame();
play();
Symbol 1229 MovieClip Frame 60
Orientation = 1;
gotoAndPlay (94);
Symbol 1229 MovieClip Frame 75
Orientation = -1;
gotoAndPlay (94);
Symbol 1229 MovieClip Frame 94
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Symbol 1229 MovieClip Frame 95
_rotation = (_rotation + (Orientation * Rotation));
if ((Math.abs(_rotation - TargetProperty) < Rotation) || (((Math.abs(_rotation) + Math.abs(TargetProperty)) + Rotation) >= 360)) {
_rotation = TargetProperty;
gotoAndPlay (25);
}
Symbol 1229 MovieClip Frame 96
prevFrame();
play();
Symbol 1229 MovieClip Frame 104
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1229 MovieClip Frame 105
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - (Rotation * 3));
} else {
_rotation = (_rotation + (Rotation * 3));
}
if ((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (111);
}
Symbol 1229 MovieClip Frame 106
prevFrame();
play();
Symbol 1229 MovieClip Frame 111
with (Sprite.Sprite) {
gotoAndPlay("Grapple");
}
hitObject = "Nothing";
TargetProperty = 10;
Symbol 1229 MovieClip Frame 118
Orientation = (_rotation / 180) * Math.PI;
if (hitObject != "Nothing") {
if (hitObject == "_level0.Thief") {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
} else {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
gotoAndPlay (128);
}
_x = (getProperty(hitObject, _x) - Math.round(Math.cos(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
_y = (getProperty(hitObject, _y) - Math.round(Math.sin(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
} else {
_x = (_x + Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y + Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Coord.x = Sprite.Sprite.GrabHand._x;
Coord.y = Sprite.Sprite.GrabHand._y;
localToGlobal(Coord);
if (hitObject == "Nothing") {
if ((_level0.Follower.BumpMap.hitTest(Coord.x, Coord.y, true) && (_level0.Follower.Activated)) && (_level0.Follower.State != "Death")) {
hitObject = "_level0.Follower";
_level0.Follower.HeldAmount++;
}
if ((Sprite.Sprite.GrabHand.hitTest(_level0.Thief.BumpMap) && (_level0.ThiefSecInv.ActiveItem != 3)) && (_level0.Thief.State != "Death")) {
hitObject = "_level0.Thief";
}
}
Symbol 1229 MovieClip Frame 119
prevFrame();
play();
Symbol 1229 MovieClip Frame 128
if (hitObject == "Nothing") {
gotoAndPlay (146);
} else {
with (eval (hitObject)) {
State = "Bounded";
TargetProperty = Strength + 3;
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
with (Sprite) {
gotoAndPlay("Disabled");
}
}
Symbol 1229 MovieClip Frame 129
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * 6));
_y = (_y + Math.round(Math.sin(Orientation) * 6));
Symbol 1229 MovieClip Frame 130
prevFrame();
play();
Symbol 1229 MovieClip Frame 136
_x = getProperty(hitObject, _x);
_y = getProperty(hitObject, _y);
if ((eval (hitObject + ".State") == "Eject") || (eval (hitObject + ".State") == "Pain")) {
gotoAndPlay (140);
}
Symbol 1229 MovieClip Frame 137
prevFrame();
play();
Symbol 1229 MovieClip Frame 140
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Shove");
}
}
TargetProperty = 10;
Symbol 1229 MovieClip Frame 141
if (-5 >= TargetProperty) {
gotoAndPlay (146);
} else if (0 < TargetProperty) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y - Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Symbol 1229 MovieClip Frame 142
prevFrame();
play();
Symbol 1229 MovieClip Frame 146
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite) {
gotoAndPlay("Idle");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
InSight = false;
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1229 MovieClip Frame 147
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (155);
}
Symbol 1229 MovieClip Frame 148
prevFrame();
play();
Symbol 1229 MovieClip Frame 155
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1229 MovieClip Frame 156
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (!((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360))) {
gotoAndPlay (146);
}
if ((Distance < (Speed * 2)) || (Distance < 10)) {
CurrentAction = -1;
TargetProperty = homer;
if (((homer < _rotation) && ((_rotation - homer) < 180)) || ((_rotation < homer) && ((homer - _rotation) >= 180))) {
Orientation = -1;
} else {
Orientation = 1;
}
gotoAndPlay (94);
}
Symbol 1229 MovieClip Frame 157
prevFrame();
play();
Symbol 1229 MovieClip Frame 164
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
Direction = -1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1229 MovieClip Frame 172
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
Direction = 1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1229 MovieClip Frame 180
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1229 MovieClip Frame 181
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1229 MovieClip Frame 182
PainRebound--;
if (0 >= PainRebound) {
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (197);
} else {
Damaage = 0;
gotoAndPlay (104);
}
}
prevFrame();
play();
Symbol 1229 MovieClip Frame 186
Direction = -1;
Health = Health - Damage;
_rotation = (_level0.Thief._rotation + 180);
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1229 MovieClip Frame 187
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1229 MovieClip Frame 188
PainRebound--;
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (207);
}
if (0 >= PainRebound) {
Damage = 0;
gotoAndPlay (104);
}
prevFrame();
play();
Symbol 1229 MovieClip Frame 197
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * 20));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * 20));
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1229 MovieClip Frame 198
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
}
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1229 MovieClip Frame 199
prevFrame();
play();
Symbol 1229 MovieClip Frame 207
PainRebound = 5;
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (Sprite.Sprite) {
gotoAndPlay("Violent Death");
}
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1229 MovieClip Frame 208
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1229 MovieClip Frame 209
prevFrame();
play();
Symbol 1229 MovieClip Frame 220
Sprite.gotoAndPlay("Disabled");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = false;
stop();
Symbol 1229 MovieClip Frame 230
CurrentAction = -1;
Sprite.gotoAndPlay("Idle");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = true;
gotoAndPlay (25);
Symbol 1230 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1230 MovieClip Frame 2
Current = 0;
stop();
Symbol 1230 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1230 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1230 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1230 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1231 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1231 MovieClip Frame 2
Current = 0;
stop();
Symbol 1231 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1231 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1231 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1231 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1232 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
function Bounce() {
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated") && (_name != ("_level0.Enemy" + Target))) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if (hitObject != "Nothing") {
Bound = getCornerBound(hitObject);
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
}
Activated = true;
Vulerable = true;
_visible = false;
Symbol 1232 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1232 MovieClip Frame 3
Activated = false;
Symbol 1232 MovieClip Frame 4
Bounce();
Symbol 1232 MovieClip Frame 5
prevFrame();
play();
Symbol 1232 MovieClip Frame 11
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1232 MovieClip Frame 12
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1232 MovieClip Frame 13
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1232 MovieClip Frame 26
Vulerable = false;
stop();
Symbol 1239 MovieClip Frame 1
stop();
Symbol 1239 MovieClip Frame 15
_level0.healScroll.play();
stop();
Symbol 1240 MovieClip Frame 1
_visible = false;
Symbol 1240 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1240 MovieClip Frame 4
prevFrame();
play();
Symbol 1240 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1240 MovieClip Frame 8
stop();
Symbol 1241 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1241 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1241 MovieClip Frame 6
prevFrame();
play();
Symbol 1241 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1241 MovieClip Frame 10
prevFrame();
play();
Symbol 1241 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1241 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1241 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1242 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1242 MovieClip Frame 2
stop();
Symbol 1242 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1242 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1242 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1242 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1242 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1242 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1243 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1243 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1243 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1243 MovieClip Frame 15
Delay = getTimer();
Symbol 1243 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1243 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1243 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1243 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1243 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1243 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1243 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1243 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1243 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1243 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1243 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1243 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1243 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1243 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1243 MovieClip Frame 113
Delay = getTimer();
Symbol 1243 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1243 MovieClip Frame 121
stop();
Symbol 1243 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1243 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1243 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1243 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1243 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1243 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1243 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1243 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1243 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1243 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1243 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1243 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1243 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1243 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1243 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1243 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1243 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1243 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1243 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1243 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1243 MovieClip Frame 230
FOV._visible = false;
Symbol 1243 MovieClip Frame 232
prevFrame();
play();
Symbol 1243 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1244 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1244 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1244 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1244 MovieClip Frame 15
Delay = getTimer();
Symbol 1244 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1244 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1244 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1244 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1244 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1244 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1244 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1244 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1244 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1244 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1244 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1244 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1244 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1244 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1244 MovieClip Frame 113
Delay = getTimer();
Symbol 1244 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1244 MovieClip Frame 121
stop();
Symbol 1244 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1244 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1244 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1244 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1244 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1244 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1244 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1244 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1244 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1244 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1244 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1244 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1244 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1244 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1244 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1244 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1244 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1244 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1244 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1244 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1244 MovieClip Frame 230
FOV._visible = false;
Symbol 1244 MovieClip Frame 232
prevFrame();
play();
Symbol 1244 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1245 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 1245 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 1245 MovieClip Frame 3
prevFrame();
play();
Symbol 1246 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1246 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1246 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1246 MovieClip Frame 15
Delay = getTimer();
Symbol 1246 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1246 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1246 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1246 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1246 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1246 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1246 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1246 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1246 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1246 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1246 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1246 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1246 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1246 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1246 MovieClip Frame 113
Delay = getTimer();
Symbol 1246 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1246 MovieClip Frame 121
stop();
Symbol 1246 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1246 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1246 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1246 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1246 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1246 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1246 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1246 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1246 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1246 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1246 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1246 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1246 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1246 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1246 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1246 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1246 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1246 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1246 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1246 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1246 MovieClip Frame 230
FOV._visible = false;
Symbol 1246 MovieClip Frame 232
prevFrame();
play();
Symbol 1246 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1247 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1247 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1247 MovieClip Frame 6
prevFrame();
play();
Symbol 1247 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1247 MovieClip Frame 10
prevFrame();
play();
Symbol 1247 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1247 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1247 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1248 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1248 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1248 MovieClip Frame 6
prevFrame();
play();
Symbol 1248 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1248 MovieClip Frame 10
prevFrame();
play();
Symbol 1248 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1248 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1248 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1249 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1249 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1249 MovieClip Frame 6
prevFrame();
play();
Symbol 1249 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1249 MovieClip Frame 10
prevFrame();
play();
Symbol 1249 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1249 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1249 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1250 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1250 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1250 MovieClip Frame 4
prevFrame();
play();
Symbol 1250 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1250 MovieClip Frame 8
prevFrame();
play();
Symbol 1250 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1250 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1250 MovieClip Frame 37
stop();
Symbol 1250 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1252 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1252 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1252 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1252 MovieClip Frame 15
Delay = getTimer();
Symbol 1252 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1252 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1252 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1252 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1252 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1252 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1252 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1252 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1252 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1252 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1252 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1252 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1252 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1252 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1252 MovieClip Frame 113
Delay = getTimer();
Symbol 1252 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1252 MovieClip Frame 121
stop();
Symbol 1252 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1252 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1252 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1252 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1252 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1252 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1252 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1252 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1252 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1252 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1252 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1252 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1252 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1252 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1252 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1252 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1252 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1252 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1252 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1252 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1252 MovieClip Frame 230
FOV._visible = false;
Symbol 1252 MovieClip Frame 232
prevFrame();
play();
Symbol 1252 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1253 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1253 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1253 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1253 MovieClip Frame 15
Delay = getTimer();
Symbol 1253 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1253 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1253 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1253 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1253 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1253 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1253 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1253 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1253 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1253 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1253 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1253 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1253 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1253 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1253 MovieClip Frame 113
Delay = getTimer();
Symbol 1253 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1253 MovieClip Frame 121
stop();
Symbol 1253 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1253 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1253 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1253 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1253 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1253 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1253 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1253 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1253 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1253 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1253 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1253 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1253 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1253 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1253 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1253 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1253 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1253 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1253 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1253 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1253 MovieClip Frame 230
FOV._visible = false;
Symbol 1253 MovieClip Frame 232
prevFrame();
play();
Symbol 1253 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1254 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1254 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1254 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1254 MovieClip Frame 15
Delay = getTimer();
Symbol 1254 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1254 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1254 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1254 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1254 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1254 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1254 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1254 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1254 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1254 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1254 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1254 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1254 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1254 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1254 MovieClip Frame 113
Delay = getTimer();
Symbol 1254 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1254 MovieClip Frame 121
stop();
Symbol 1254 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1254 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1254 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1254 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1254 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1254 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1254 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1254 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1254 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1254 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1254 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1254 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1254 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1254 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1254 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1254 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1254 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1254 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1254 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1254 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1254 MovieClip Frame 230
FOV._visible = false;
Symbol 1254 MovieClip Frame 232
prevFrame();
play();
Symbol 1254 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1271 MovieClip Frame 1
_parent.Activated = true;
Symbol 1271 MovieClip Frame 17
_parent.Activated = false;
Symbol 1271 MovieClip Frame 25
with (_parent) {
gotoAndPlay("Recovery");
}
Symbol 1271 MovieClip Frame 26
stop();
Symbol 1272 MovieClip Frame 1
Activated = false;
Symbol 1272 MovieClip Frame 2
stop();
Symbol 1272 MovieClip Frame 3
if (Activated) {
if (hitTest(_level0.Thief.BumpMap) && (!((_level0.Thief.State == "Crouched") && (Dodgable == "True")))) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 6;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = Math.round(_level0.ThiefHealth.Damage + (Damage / 4));
}
if (hitTest(_level0.Follower.BumpMap)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 6;
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Damage / 4);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _rotation) {
TargetAngle = -_rotation;
} else {
TargetAngle = 360 - _rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 4));
Set(("_level0.Enemy" + Target) + ".PainRebound", 6);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 4));
Set(("_level0.Enemy" + Target) + ".PainRebound", 6);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
}
Symbol 1272 MovieClip Frame 6
gotoAndPlay (3);
Symbol 1272 MovieClip Frame 11
if (Continuous == "True") {
gotoAndPlay (19);
} else {
with (Sprite) {
gotoAndPlay("OnFire");
}
gotoAndPlay (2);
}
Symbol 1272 MovieClip Frame 19
Delay = getTimer();
Symbol 1272 MovieClip Frame 21
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
with (Sprite) {
gotoAndPlay("OnFire");
}
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1273 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1273 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1273 MovieClip Frame 6
prevFrame();
play();
Symbol 1273 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1273 MovieClip Frame 10
prevFrame();
play();
Symbol 1273 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1273 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1273 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1274 MovieClip Frame 1
_visible = false;
Symbol 1274 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1274 MovieClip Frame 4
prevFrame();
play();
Symbol 1274 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1274 MovieClip Frame 8
stop();
Symbol 1275 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1275 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1275 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1275 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1275 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1275 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1275 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1275 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1275 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1275 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1275 MovieClip Frame 18
stop();
Symbol 1276 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1276 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1276 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1276 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1276 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1276 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1276 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1276 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1276 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1276 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1276 MovieClip Frame 18
stop();
Symbol 1277 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1277 MovieClip Frame 2
Current = 0;
stop();
Symbol 1277 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1277 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1277 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1277 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1279 MovieClip Frame 2
stop();
Symbol 1279 MovieClip Frame 3
_level0.Enemy0.disable();
stop();
Symbol 1280 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1280 MovieClip Frame 2
Current = 0;
stop();
Symbol 1280 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1280 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1280 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1280 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1282 MovieClip Frame 3
stop();
Symbol 1282 MovieClip Frame 4
Count = 0;
while (Count < Trigger.length) {
with (eval ("_level0." + Trigger[Count])) {
play();
}
Count++;
}
Symbol 1282 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1283 MovieClip Frame 1
CrouchHit = false;
Symbol 1283 MovieClip Frame 4
if (Sprite.hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
gotoAndPlay (15);
}
if ((Sprite.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
gotoAndPlay (15);
}
Symbol 1283 MovieClip Frame 5
prevFrame();
play();
Symbol 1283 MovieClip Frame 10
stop();
Symbol 1283 MovieClip Frame 15
if (Sprite.hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
with (_parent) {
InSight = true;
}
} else if (Sprite.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) {
with (_parent) {
InSight = true;
}
} else {
with (_parent) {
InSight = false;
}
}
Symbol 1283 MovieClip Frame 16
gotoAndPlay (15);
Symbol 1283 MovieClip Frame 21
stop();
Symbol 1283 MovieClip Frame 22
stop();
Symbol 1297 MovieClip Frame 1
stop();
Symbol 1297 MovieClip Frame 2
stop();
Symbol 1297 MovieClip Frame 14
stop();
Symbol 1297 MovieClip Frame 32
gotoAndPlay (16);
Symbol 1297 MovieClip Frame 41
if (Shadow.hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = _parent._parent._rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + _parent._parent.GuardDamage;
}
if (Shadow.hitTest(_level0.Follower._x, _level0.Follower._y, true)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = _parent._parent._rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - _parent._parent.GuardDamage;
}
Symbol 1297 MovieClip Frame 60
with (_parent._parent) {
gotoAndPlay("Stunned");
}
gotoAndPlay (1);
Symbol 1297 MovieClip Frame 68
stop();
Symbol 1297 MovieClip Frame 78
stop();
Symbol 1297 MovieClip Frame 113
with (_parent) {
gotoAndPlay("Death");
}
stop();
Symbol 1297 MovieClip Frame 121
with (Head) {
gotoAndPlay("Front");
}
with (_parent) {
gotoAndPlay("Death");
}
Symbol 1297 MovieClip Frame 126
stop();
Symbol 1297 MovieClip Frame 137
stop();
Symbol 1297 MovieClip Frame 157
with (_parent) {
gotoAndPlay("Death");
}
stop();
Symbol 1298 MovieClip Frame 1
if (DetMap.hitTest(_level0.Thief.BumpMap)) {
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
with (_parent.FOV) {
gotoAndPlay("Alert");
}
gotoAndPlay (5);
}
if (DetMap.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) {
with (_parent) {
InSight = true;
gotoAndPlay("Alert");
}
with (_parent.FOV) {
gotoAndPlay("Alert");
}
gotoAndPlay (5);
}
Symbol 1298 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1298 MovieClip Frame 6
prevFrame();
play();
Symbol 1298 MovieClip Frame 11
gotoAndPlay (5);
Symbol 1298 MovieClip Frame 25
stop();
Symbol 1299 MovieClip Frame 1
function disable() {
FOV.gotoAndPlay("Death");
Sprite.gotoAndPlay("Death");
_visible = false;
gotoAndPlay (3);
}
SpanWidth = 75;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
Symbol 1299 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1299 MovieClip Frame 4
stop();
Symbol 1299 MovieClip Frame 10
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
Alert = 250;
Symbol 1299 MovieClip Frame 16
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1299 MovieClip Frame 17
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (47);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1299 MovieClip Frame 18
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 140) && (Math.abs(_rotation - TargetAngle) < 40)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (37);
} else {
gotoAndPlay (17);
}
Symbol 1299 MovieClip Frame 29
Delay = getTimer();
Symbol 1299 MovieClip Frame 31
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (17);
} else {
prevFrame();
play();
}
Symbol 1299 MovieClip Frame 37
stop();
Symbol 1299 MovieClip Frame 47
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
Delay = getTimer();
Symbol 1299 MovieClip Frame 49
if (InSight) {
gotoAndPlay (10);
} else if ((Delay + 2000) < getTimer()) {
gotoAndPlay (10);
} else {
prevFrame();
play();
}
Symbol 1299 MovieClip Frame 59
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1299 MovieClip Frame 60
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1299 MovieClip Frame 61
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (103);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (10);
} else {
prevFrame();
play();
}
Symbol 1299 MovieClip Frame 74
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1299 MovieClip Frame 75
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1299 MovieClip Frame 76
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (103);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (10);
} else {
prevFrame();
play();
}
Symbol 1299 MovieClip Frame 89
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (117);
}
Symbol 1299 MovieClip Frame 90
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1299 MovieClip Frame 91
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (117);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (10);
} else {
prevFrame();
play();
}
Symbol 1299 MovieClip Frame 103
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
gotoAndPlay (104);
Symbol 1299 MovieClip Frame 104
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1299 MovieClip Frame 105
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
eval ("_level0." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (104);
}
Symbol 1299 MovieClip Frame 117
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
gotoAndPlay (104);
Symbol 1299 MovieClip Frame 119
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
eval ("_level0." + DeathAction).play();
}
stop();
} else {
prevFrame();
play();
}
Symbol 1299 MovieClip Frame 131
FOV._visible = false;
Symbol 1299 MovieClip Frame 133
prevFrame();
play();
Symbol 1299 MovieClip Frame 142
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1300 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 1300 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 1300 MovieClip Frame 3
prevFrame();
play();
Symbol 1301 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1301 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1301 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1301 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1301 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1301 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1301 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1301 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1301 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1301 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1301 MovieClip Frame 18
stop();
Symbol 1302 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1302 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1302 MovieClip Frame 6
prevFrame();
play();
Symbol 1302 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1302 MovieClip Frame 10
prevFrame();
play();
Symbol 1302 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1302 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1302 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1303 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1303 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1303 MovieClip Frame 6
prevFrame();
play();
Symbol 1303 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1303 MovieClip Frame 10
prevFrame();
play();
Symbol 1303 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1303 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1303 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1304 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1304 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1304 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1304 MovieClip Frame 15
Delay = getTimer();
Symbol 1304 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1304 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1304 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1304 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1304 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1304 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1304 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1304 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1304 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1304 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1304 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1304 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1304 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1304 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1304 MovieClip Frame 113
Delay = getTimer();
Symbol 1304 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1304 MovieClip Frame 121
stop();
Symbol 1304 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1304 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1304 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1304 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1304 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1304 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1304 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1304 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1304 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1304 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1304 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1304 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1304 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1304 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1304 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1304 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1304 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1304 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1304 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1304 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1304 MovieClip Frame 230
FOV._visible = false;
Symbol 1304 MovieClip Frame 232
prevFrame();
play();
Symbol 1304 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1305 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1305 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1305 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1305 MovieClip Frame 15
Delay = getTimer();
Symbol 1305 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1305 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1305 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1305 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1305 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1305 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1305 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1305 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1305 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1305 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1305 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1305 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1305 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1305 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1305 MovieClip Frame 113
Delay = getTimer();
Symbol 1305 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1305 MovieClip Frame 121
stop();
Symbol 1305 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1305 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1305 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1305 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1305 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1305 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1305 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1305 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1305 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1305 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1305 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1305 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1305 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1305 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1305 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1305 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1305 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1305 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1305 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1305 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1305 MovieClip Frame 230
FOV._visible = false;
Symbol 1305 MovieClip Frame 232
prevFrame();
play();
Symbol 1305 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1306 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1306 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1306 MovieClip Frame 4
prevFrame();
play();
Symbol 1306 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1306 MovieClip Frame 8
prevFrame();
play();
Symbol 1306 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1306 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1306 MovieClip Frame 37
stop();
Symbol 1306 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1307 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1307 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1307 MovieClip Frame 4
prevFrame();
play();
Symbol 1307 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1307 MovieClip Frame 8
prevFrame();
play();
Symbol 1307 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1307 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1307 MovieClip Frame 37
stop();
Symbol 1307 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1308 MovieClip Frame 1
_visible = false;
Symbol 1308 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1308 MovieClip Frame 4
prevFrame();
play();
Symbol 1308 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1308 MovieClip Frame 8
stop();
Symbol 1309 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1309 MovieClip Frame 2
Current = 0;
stop();
Symbol 1309 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1309 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1309 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1309 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1310 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1310 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1310 MovieClip Frame 6
prevFrame();
play();
Symbol 1310 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1310 MovieClip Frame 10
prevFrame();
play();
Symbol 1310 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1310 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1310 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1311 MovieClip Frame 1
SpanWidth = 50;
Activated = true;
Vulerable = false;
Attacked = false;
Damage = 0;
Grounded = false;
PainRebound = 0;
State = "StandStill";
StandardDelay = ActivationDelay;
ActivationDelay = random(StandardDelay);
inAlert = true;
Symbol 1311 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1311 MovieClip Frame 3
_rotation = -90;
gotoAndPlay (12);
Symbol 1311 MovieClip Frame 5
SetAlert = false;
if (_level0.Follower.Activated) {
distx = _x - _level0.Follower._x;
disty = _y - _level0.Follower._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
if ((Distance < (FOV._width / 2)) && (((FOV._width / 2) - 25) < Distance)) {
SetAlert = true;
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
if ((((Distance < (FOV._width / 2)) && (((FOV._width / 2) - 25) < Distance)) && (_level0.Thief.State != "Crouched")) || (SetAlert)) {
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
gotoAndPlay (21);
}
Symbol 1311 MovieClip Frame 6
if (State == "StandStill") {
gotoAndPlay (12);
} else {
prevFrame();
play();
}
Symbol 1311 MovieClip Frame 12
Delay = getTimer();
Symbol 1311 MovieClip Frame 14
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
with (FOV) {
play();
}
ActivationDelay = StandardDelay;
gotoAndPlay (4);
} else {
prevFrame();
play();
}
Symbol 1311 MovieClip Frame 21
with (Sprite.Sprite) {
gotoAndPlay("Open Up");
}
_root.GameRecord.Detected();
stop();
Symbol 1311 MovieClip Frame 30
State = "Seeking";
Vulerable = true;
Attacked = false;
with (Sprite.Sprite) {
gotoAndPlay("Flying");
}
Symbol 1311 MovieClip Frame 32
if (State == "Seeking") {
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
Distance = Distance * 2;
if (Distance < 100) {
Distance = 100;
}
if (250 < Distance) {
Distance = 250;
}
Delay = Distance;
Distance = Distance / 3;
State = "Flying";
}
}
if (State == "Flying") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
Delay = Delay - Speed;
if ((Distance * 2) < Delay) {
Sprite.Sprite._xscale = 70 + (((Delay - (Distance * 2)) / Distance) * 30);
Sprite.Sprite._yscale = 70 + (((Delay - (Distance * 2)) / Distance) * 30);
} else if ((0 < Delay) && (Delay < Distance)) {
Sprite.Sprite._xscale = 70 + (((Distance - Delay) / Distance) * 30);
Sprite.Sprite._yscale = 70 + (((Distance - Delay) / Distance) * 30);
} else if (0 >= Delay) {
Sprite.Sprite._xscale = 100;
Sprite.Sprite._yscale = 100;
gotoAndPlay (40);
}
if (Sprite.HitMap.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (!Attacked)) {
trace("bite");
_level0.Thief.State = "Pain";
_level0.Thief._rotation = _rotation + 180;
_level0.Thief.TargetProperty = 6;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Strength;
Attacked = true;
}
if ((Sprite.HitMap.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (!Attacked)) {
_level0.Follower.State = "Pain";
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.PainRebound = 6;
_level0.Follower.Health = _level0.Follower.Health - Strength;
Attacked = true;
}
}
prevFrame();
play();
Symbol 1311 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Close Down");
}
_rotation = -90;
Vulerable = false;
Activated = true;
stop();
Symbol 1311 MovieClip Frame 53
with (Sprite.Sprite.Blood) {
_alpha = 100;
gotoAndPlay(1);
}
Health = Health - (Damage * 1.2);
Attacked = true;
_rotation = TargetAngle;
if (0 >= Health) {
gotoAndPlay (60);
} else {
gotoAndPlay (31);
}
Symbol 1311 MovieClip Frame 60
with (Sprite.Sprite) {
gotoAndPlay("Death");
}
_rotation = TargetAngle;
PainRebound = 15;
Vulerable = false;
_root.GameRecord.Killed();
Symbol 1311 MovieClip Frame 62
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1313 MovieClip Frame 1
Exist = true;
Symbol 1313 MovieClip Frame 2
Activated = false;
_visible = false;
SpanWidth = 20;
if (_name.substr(0, 5) != "Proje") {
Register = 0;
while (eval (("_level0.Projectile" + Register) + ".Exist")) {
Register++;
}
_name = ("Projectile" + Register);
}
stop();
Symbol 1313 MovieClip Frame 3
_visible = true;
Symbol 1313 MovieClip Frame 4
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
if (hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State != "Crouched")) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = Speed / 2;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
gotoAndPlay (15);
}
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = Speed / 2;
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Damage;
gotoAndPlay (15);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _rotation) {
TargetAngle = -_rotation;
} else {
TargetAngle = 360 - _rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", Speed / 2);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", Speed / 2);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
gotoAndPlay (15);
}
Target++;
}
Symbol 1313 MovieClip Frame 5
gotoAndPlay (4);
Activated = true;
Symbol 1313 MovieClip Frame 8
Bounce = Bounce - 1;
if (0 >= Bounce) {
gotoAndPlay (15);
} else if ((Bound == "East") || (Bound == "West")) {
_rotation = ((-_rotation) + 180);
trace(_rotation);
} else {
_rotation = (-_rotation);
}
Symbol 1313 MovieClip Frame 9
gotoAndPlay (4);
Symbol 1313 MovieClip Frame 15
Activated = false;
Symbol 1313 MovieClip Frame 21
stop();
Symbol 1314 MovieClip Frame 1
Exist = true;
Symbol 1314 MovieClip Frame 2
Activated = false;
_visible = false;
SpanWidth = 20;
if (_name.substr(0, 5) != "Proje") {
Register = 0;
while (eval (("_level0.Projectile" + Register) + ".Exist")) {
Register++;
}
_name = ("Projectile" + Register);
}
stop();
Symbol 1314 MovieClip Frame 3
_visible = true;
Symbol 1314 MovieClip Frame 4
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
if (hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State != "Crouched")) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = Speed / 2;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
gotoAndPlay (15);
}
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = Speed / 2;
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Damage;
gotoAndPlay (15);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _rotation) {
TargetAngle = -_rotation;
} else {
TargetAngle = 360 - _rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", Speed / 2);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", Speed / 2);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
gotoAndPlay (15);
}
Target++;
}
Symbol 1314 MovieClip Frame 5
gotoAndPlay (4);
Activated = true;
Symbol 1314 MovieClip Frame 8
Bounce = Bounce - 1;
if (0 >= Bounce) {
gotoAndPlay (15);
} else if ((Bound == "East") || (Bound == "West")) {
_rotation = ((-_rotation) + 180);
trace(_rotation);
} else {
_rotation = (-_rotation);
}
Symbol 1314 MovieClip Frame 9
gotoAndPlay (4);
Symbol 1314 MovieClip Frame 15
Activated = false;
Symbol 1314 MovieClip Frame 21
stop();
Symbol 1315 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 1315 MovieClip Frame 2
stop();
Symbol 1315 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 1315 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 1315 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 1315 MovieClip Frame 13
stop();
Symbol 1316 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 1316 MovieClip Frame 2
stop();
Symbol 1316 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 1316 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 1316 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 1316 MovieClip Frame 13
stop();
Symbol 1319 MovieClip Frame 1
function Capture() {
var i = 0;
while (i < 7) {
if ((hitTest(eval (Subscribers[i])._x, eval (Subscribers[i])._y, false) && ((i < 2) || (eval (Subscribers[i] + ".Grounded") && (0 < eval (Subscribers[i] + ".Damage"))))) && (!Captured[i])) {
Captured[i] = true;
if (i == 0) {
with (_level0.Thief) {
State = "Disabled";
Sprite.gotoAndPlay("FreeFall");
}
} else if (i == 1) {
with (_level0.Follower) {
State = "Death";
Activated = false;
}
} else {
with (eval (Subscribers[i])) {
gotoAndPlay("Death");
PainRebound = 2;
}
}
}
i++;
}
}
function Dump() {
var i = 0;
while (i < 7) {
if (Captured[i]) {
if (eval (Subscribers[i])._xscale == 100) {
PainRebound = 0;
eval (Subscribers[i]).Sprite.Sprite.gotoAndPlay("FallToDeath");
}
if (eval (Subscribers[i])._xscale >= 70) {
eval (Subscribers[i])._xscale = eval (Subscribers[i])._xscale - 5;
eval (Subscribers[i])._yscale = eval (Subscribers[i])._yscale - 5;
} else {
eval (Subscribers[i])._visible = false;
if (i == 0) {
gotoAndPlay (5);
}
}
}
i++;
}
}
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
function Bounce() {
i = 2;
while (i < 7) {
if ((hitTest(eval (Subscribers[i]).Sprite.BumpMap) && (eval (Subscribers[i] + ".Damage") == 0)) && (!Captured[i])) {
var hitObject = Subscribers[i];
var Bound = getCornerBound(hitObject);
var hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
i++;
}
}
Subscribers = new Array();
Subscribers[0] = "_level0.Thief";
Subscribers[1] = "_level0.Follower";
Subscribers[2] = "_level0.Enemy0";
Subscribers[3] = "_level0.Enemy1";
Subscribers[4] = "_level0.Enemy2";
Subscribers[5] = "_level0.Enemy3";
Subscribers[6] = "_level0.Enemy4";
Captured = new Array();
var i = 0;
while (i < 7) {
Captured[i] = false;
i++;
}
_visible = false;
Symbol 1319 MovieClip Frame 3
Dump();
Capture();
Bounce();
prevFrame();
play();
Symbol 1319 MovieClip Frame 10
if (FallToDeath == "True") {
_level0.ThiefHealth.Damage = _level0.Thief.ThiefHealth;
_level0.Thief.State = "StandStill";
} else {
_level0.Thief._xscale = 100;
_level0.Thief._yscale = 100;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
trace("_level0." + Teleport);
eval ("_level0." + Teleport).gotoAndPlay("Teleport");
}
stop();
Symbol 1320 MovieClip Frame 1
Activated = true;
Symbol 1320 MovieClip Frame 2
Register = 0;
while (eval (("_level0.DropTarget" + Register) + ".Activated")) {
Register++;
}
_name = ("DropTarget" + Register);
stop();
Symbol 1321 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1321 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1321 MovieClip Frame 6
prevFrame();
play();
Symbol 1321 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1321 MovieClip Frame 10
prevFrame();
play();
Symbol 1321 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1321 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1321 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1322 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1322 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1322 MovieClip Frame 4
prevFrame();
play();
Symbol 1322 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1322 MovieClip Frame 8
prevFrame();
play();
Symbol 1322 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1322 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1322 MovieClip Frame 37
stop();
Symbol 1322 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1323 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1323 MovieClip Frame 2
Current = 0;
stop();
Symbol 1323 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1323 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1323 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1323 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1324 MovieClip Frame 1
SpanWidth = 50;
Activated = true;
Vulerable = false;
Attacked = false;
Damage = 0;
Grounded = false;
PainRebound = 0;
State = "StandStill";
StandardDelay = ActivationDelay;
ActivationDelay = random(StandardDelay);
inAlert = true;
Symbol 1324 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1324 MovieClip Frame 3
_rotation = -90;
gotoAndPlay (12);
Symbol 1324 MovieClip Frame 5
SetAlert = false;
if (_level0.Follower.Activated) {
distx = _x - _level0.Follower._x;
disty = _y - _level0.Follower._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
if ((Distance < (FOV._width / 2)) && (((FOV._width / 2) - 25) < Distance)) {
SetAlert = true;
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
if ((((Distance < (FOV._width / 2)) && (((FOV._width / 2) - 25) < Distance)) && (_level0.Thief.State != "Crouched")) || (SetAlert)) {
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
gotoAndPlay (21);
}
Symbol 1324 MovieClip Frame 6
if (State == "StandStill") {
gotoAndPlay (12);
} else {
prevFrame();
play();
}
Symbol 1324 MovieClip Frame 12
Delay = getTimer();
Symbol 1324 MovieClip Frame 14
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
with (FOV) {
play();
}
ActivationDelay = StandardDelay;
gotoAndPlay (4);
} else {
prevFrame();
play();
}
Symbol 1324 MovieClip Frame 21
with (Sprite.Sprite) {
gotoAndPlay("Open Up");
}
_root.GameRecord.Detected();
stop();
Symbol 1324 MovieClip Frame 30
State = "Seeking";
Vulerable = true;
Attacked = false;
with (Sprite.Sprite) {
gotoAndPlay("Flying");
}
Symbol 1324 MovieClip Frame 32
if (State == "Seeking") {
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
Distance = Distance * 2;
if (Distance < 100) {
Distance = 100;
}
if (250 < Distance) {
Distance = 250;
}
Delay = Distance;
Distance = Distance / 3;
State = "Flying";
}
}
if (State == "Flying") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
Delay = Delay - Speed;
if ((Distance * 2) < Delay) {
Sprite.Sprite._xscale = 70 + (((Delay - (Distance * 2)) / Distance) * 30);
Sprite.Sprite._yscale = 70 + (((Delay - (Distance * 2)) / Distance) * 30);
} else if ((0 < Delay) && (Delay < Distance)) {
Sprite.Sprite._xscale = 70 + (((Distance - Delay) / Distance) * 30);
Sprite.Sprite._yscale = 70 + (((Distance - Delay) / Distance) * 30);
} else if (0 >= Delay) {
Sprite.Sprite._xscale = 100;
Sprite.Sprite._yscale = 100;
gotoAndPlay (40);
}
if (Sprite.HitMap.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (!Attacked)) {
trace("bite");
_level0.Thief.State = "Pain";
_level0.Thief._rotation = _rotation + 180;
_level0.Thief.TargetProperty = 6;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Strength;
Attacked = true;
}
if ((Sprite.HitMap.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (!Attacked)) {
_level0.Follower.State = "Pain";
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.PainRebound = 6;
_level0.Follower.Health = _level0.Follower.Health - Strength;
Attacked = true;
}
}
prevFrame();
play();
Symbol 1324 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Close Down");
}
_rotation = -90;
Vulerable = false;
Activated = true;
stop();
Symbol 1324 MovieClip Frame 53
with (Sprite.Sprite.Blood) {
_alpha = 100;
gotoAndPlay(1);
}
Health = Health - (Damage * 1.2);
Attacked = true;
_rotation = TargetAngle;
if (0 >= Health) {
gotoAndPlay (60);
} else {
gotoAndPlay (31);
}
Symbol 1324 MovieClip Frame 60
with (Sprite.Sprite) {
gotoAndPlay("Death");
}
_rotation = TargetAngle;
PainRebound = 15;
Vulerable = false;
_root.GameRecord.Killed();
Symbol 1324 MovieClip Frame 62
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1325 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1325 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1325 MovieClip Frame 6
prevFrame();
play();
Symbol 1325 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1325 MovieClip Frame 10
prevFrame();
play();
Symbol 1325 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1325 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1325 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1326 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1326 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1326 MovieClip Frame 6
prevFrame();
play();
Symbol 1326 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1326 MovieClip Frame 10
prevFrame();
play();
Symbol 1326 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1326 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1326 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1327 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
function Bounce() {
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated") && (_name != ("_level0.Enemy" + Target))) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if (hitObject != "Nothing") {
Bound = getCornerBound(hitObject);
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
}
Activated = true;
Vulerable = true;
_visible = false;
Symbol 1327 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1327 MovieClip Frame 3
Activated = false;
Symbol 1327 MovieClip Frame 4
Bounce();
Symbol 1327 MovieClip Frame 5
prevFrame();
play();
Symbol 1327 MovieClip Frame 11
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1327 MovieClip Frame 12
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1327 MovieClip Frame 13
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1327 MovieClip Frame 26
Vulerable = false;
stop();
Symbol 1328 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
function Bounce() {
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated") && (_name != ("_level0.Enemy" + Target))) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if (hitObject != "Nothing") {
Bound = getCornerBound(hitObject);
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
}
Activated = true;
Vulerable = true;
_visible = false;
Symbol 1328 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1328 MovieClip Frame 3
Activated = false;
Symbol 1328 MovieClip Frame 4
Bounce();
Symbol 1328 MovieClip Frame 5
prevFrame();
play();
Symbol 1328 MovieClip Frame 11
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1328 MovieClip Frame 12
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1328 MovieClip Frame 13
Health = Health - 1;
eval ("_level0." + Trigger).play();
if (Health == 0) {
gotoAndPlay (26);
} else {
gotoAndPlay (4);
}
Symbol 1328 MovieClip Frame 26
Vulerable = false;
stop();
Symbol 1339 MovieClip Frame 1
stop();
Symbol 1339 MovieClip Frame 2
_level0.WallBroke.Set = true;
Symbol 1339 MovieClip Frame 21
stop();
Symbol 1339 MovieClip Frame 22
stop();
Symbol 1339 MovieClip Frame 23
stop();
Symbol 1345 MovieClip Frame 1
stop();
Symbol 1345 MovieClip Frame 7
_level0.Rumble.StartClip();
Symbol 1345 MovieClip Frame 12
stop();
Symbol 1347 MovieClip Frame 1
IsPlaying = false;
Symbol 1347 MovieClip Frame 2
_level0.Water.StopClip();
Symbol 1347 MovieClip Frame 4
Distance = _root.distanceCalculate(_x - _level0.Thief._x, _y - _level0.Thief._y);
if (150 >= Distance) {
_level0.Water.SetVolume(Math.round(((150 - Distance) * 100) / 150));
if (!IsPlaying) {
_level0.Water.StartClip();
IsPlaying = true;
}
} else if (IsPlaying) {
_level0.Water.StopClip();
_level0.Water.SetVolume(100);
IsPlaying = false;
}
prevFrame();
play();
Symbol 1348 MovieClip Frame 3
stop();
Symbol 1348 MovieClip Frame 4
Count = 0;
while (Count < Trigger.length) {
with (eval ("_level0." + Trigger[Count])) {
play();
}
Count++;
}
Symbol 1348 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1350 MovieClip Frame 1
stop();
Symbol 1350 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + _parent.Damage;
gotoAndPlay (13);
}
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower.Health = _level0.Follower.Health - _parent.Damage;
gotoAndPlay (13);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
Set(("_level0.Enemy" + Target) + ".Damage", _parent.Damage * 2);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
gotoAndPlay (13);
}
Target++;
}
Symbol 1350 MovieClip Frame 6
prevFrame();
play();
Symbol 1350 MovieClip Frame 13
_parent.Activated = false;
Symbol 1350 MovieClip Frame 28
if (_parent.Continuous == "True") {
gotoAndPlay (1);
with (_parent) {
gotoAndPlay("Restore");
}
} else {
stop();
}
Symbol 1351 MovieClip Frame 2
stop();
Symbol 1351 MovieClip Frame 3
Activated = true;
if (RandomDelay == "True") {
Delay = (random(ActivationDelay) + 1) * 100;
} else {
Delay = ActivationDelay * 100;
}
Timer = getTimer();
Symbol 1351 MovieClip Frame 5
if ((getTimer() - Timer) >= Delay) {
gotoAndPlay (10);
} else {
prevFrame();
play();
}
Symbol 1351 MovieClip Frame 10
_rotation = random(360);
if (RandomLocation == "True") {
Target = random(10);
_x = getProperty("_level0.DropTarget" + Target, _x);
_y = getProperty("_level0.DropTarget" + Target, _y);
}
Symbol 1351 MovieClip Frame 19
with (Sprite) {
gotoAndPlay("Fall");
}
Symbol 1351 MovieClip Frame 23
if (Activated) {
with (Sprite) {
gotoAndPlay("Wreak");
}
}
stop();
Symbol 1354 MovieClip Frame 1
stop();
Symbol 1354 MovieClip Frame 2
_level0.WallBroke.Set = true;
Symbol 1354 MovieClip Frame 21
stop();
Symbol 1354 MovieClip Frame 22
stop();
Symbol 1354 MovieClip Frame 23
stop();
Instance of Symbol 1319 MovieClip in Symbol 1356 MovieClip Frame 1
onClipEvent (load) {
FallToDeath = "True";
Damage = 0;
Teleport = "Undefined";
}
Symbol 1357 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1357 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1357 MovieClip Frame 6
prevFrame();
play();
Symbol 1357 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1357 MovieClip Frame 10
prevFrame();
play();
Symbol 1357 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1357 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1357 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1358 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1358 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1358 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1358 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1358 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1358 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1358 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1358 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1358 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1358 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1358 MovieClip Frame 18
stop();
Symbol 1359 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1359 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1359 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1359 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1359 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1359 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1359 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1359 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1359 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1359 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1359 MovieClip Frame 18
stop();
Symbol 1360 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 1360 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 1360 MovieClip Frame 3
prevFrame();
play();
Symbol 1361 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1361 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1361 MovieClip Frame 4
prevFrame();
play();
Symbol 1361 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1361 MovieClip Frame 8
prevFrame();
play();
Symbol 1361 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1361 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1361 MovieClip Frame 37
stop();
Symbol 1361 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1362 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1362 MovieClip Frame 2
Current = 0;
stop();
Symbol 1362 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1362 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1362 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1362 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1368 MovieClip Frame 1
stop();
Symbol 1368 MovieClip Frame 7
with (_root) {
nextFrame();
stop();
}
Symbol 1368 MovieClip Frame 15
stop();
Symbol 1374 MovieClip Frame 2
stop();
Symbol 1374 MovieClip Frame 3
Activated = true;
if (RandomDelay == "True") {
Delay = (random(ActivationDelay) + 1) * 100;
} else {
Delay = ActivationDelay * 100;
}
Timer = getTimer();
Symbol 1374 MovieClip Frame 5
if ((getTimer() - Timer) >= Delay) {
gotoAndPlay (10);
} else {
prevFrame();
play();
}
Symbol 1374 MovieClip Frame 10
_rotation = random(360);
if (RandomLocation == "True") {
Target = random(10);
_x = getProperty("_level0.DropTarget" + Target, _x);
_y = getProperty("_level0.DropTarget" + Target, _y);
}
Symbol 1374 MovieClip Frame 19
with (Sprite) {
gotoAndPlay("Fall");
}
Symbol 1374 MovieClip Frame 23
if (Activated) {
with (Sprite) {
gotoAndPlay("Wreak");
}
}
stop();
Symbol 1375 MovieClip Frame 3
stop();
Symbol 1375 MovieClip Frame 4
Count = 0;
while (Count < Trigger.length) {
with (eval ("_level0." + Trigger[Count])) {
play();
}
Count++;
}
Symbol 1375 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1376 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1376 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1376 MovieClip Frame 6
prevFrame();
play();
Symbol 1376 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1376 MovieClip Frame 10
prevFrame();
play();
Symbol 1376 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1376 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1376 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1377 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1377 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1377 MovieClip Frame 6
prevFrame();
play();
Symbol 1377 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1377 MovieClip Frame 10
prevFrame();
play();
Symbol 1377 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1377 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1377 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1378 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1378 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1378 MovieClip Frame 4
prevFrame();
play();
Symbol 1378 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1378 MovieClip Frame 8
prevFrame();
play();
Symbol 1378 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1378 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1378 MovieClip Frame 37
stop();
Symbol 1378 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1379 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1379 MovieClip Frame 2
Current = 0;
stop();
Symbol 1379 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1379 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1379 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1379 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1380 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
inAlert = true;
Coord = new object();
Symbol 1380 MovieClip Frame 2
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
Symbol 1380 MovieClip Frame 4
if (Lurk == "True") {
with (Sprite.Sprite) {
gotoAndPlay("Lurking");
}
with (FOV) {
gotoAndPlay("Lurking");
}
with (Sprite) {
gotoAndPlay("Alert");
}
} else {
gotoAndPlay (25);
}
Symbol 1380 MovieClip Frame 5
Vulearable = false;
stop();
Symbol 1380 MovieClip Frame 15
with (FOV) {
gotoAndPlay("Idle");
}
Vulerable = true;
gotoAndPlay (25);
Symbol 1380 MovieClip Frame 25
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (104);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
Symbol 1380 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Delay = getTimer();
Symbol 1380 MovieClip Frame 41
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (25);
}
Symbol 1380 MovieClip Frame 42
prevFrame();
play();
Symbol 1380 MovieClip Frame 50
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1380 MovieClip Frame 51
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
TargetProperty = TargetProperty - Speed;
if (0 >= TargetProperty) {
gotoAndPlay (25);
}
Symbol 1380 MovieClip Frame 52
prevFrame();
play();
Symbol 1380 MovieClip Frame 60
Orientation = 1;
gotoAndPlay (94);
Symbol 1380 MovieClip Frame 75
Orientation = -1;
gotoAndPlay (94);
Symbol 1380 MovieClip Frame 94
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Symbol 1380 MovieClip Frame 95
_rotation = (_rotation + (Orientation * Rotation));
if ((Math.abs(_rotation - TargetProperty) < Rotation) || (((Math.abs(_rotation) + Math.abs(TargetProperty)) + Rotation) >= 360)) {
_rotation = TargetProperty;
gotoAndPlay (25);
}
Symbol 1380 MovieClip Frame 96
prevFrame();
play();
Symbol 1380 MovieClip Frame 104
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1380 MovieClip Frame 105
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - (Rotation * 3));
} else {
_rotation = (_rotation + (Rotation * 3));
}
if ((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (111);
}
Symbol 1380 MovieClip Frame 106
prevFrame();
play();
Symbol 1380 MovieClip Frame 111
with (Sprite.Sprite) {
gotoAndPlay("Grapple");
}
hitObject = "Nothing";
TargetProperty = 10;
Symbol 1380 MovieClip Frame 118
Orientation = (_rotation / 180) * Math.PI;
if (hitObject != "Nothing") {
if (hitObject == "_level0.Thief") {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
} else {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
gotoAndPlay (128);
}
_x = (getProperty(hitObject, _x) - Math.round(Math.cos(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
_y = (getProperty(hitObject, _y) - Math.round(Math.sin(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
} else {
_x = (_x + Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y + Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Coord.x = Sprite.Sprite.GrabHand._x;
Coord.y = Sprite.Sprite.GrabHand._y;
localToGlobal(Coord);
if (hitObject == "Nothing") {
if ((_level0.Follower.BumpMap.hitTest(Coord.x, Coord.y, true) && (_level0.Follower.Activated)) && (_level0.Follower.State != "Death")) {
hitObject = "_level0.Follower";
_level0.Follower.HeldAmount++;
}
if ((Sprite.Sprite.GrabHand.hitTest(_level0.Thief.BumpMap) && (_level0.ThiefSecInv.ActiveItem != 3)) && (_level0.Thief.State != "Death")) {
hitObject = "_level0.Thief";
}
}
Symbol 1380 MovieClip Frame 119
prevFrame();
play();
Symbol 1380 MovieClip Frame 128
if (hitObject == "Nothing") {
gotoAndPlay (146);
} else {
with (eval (hitObject)) {
State = "Bounded";
TargetProperty = Strength + 3;
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
with (Sprite) {
gotoAndPlay("Disabled");
}
}
Symbol 1380 MovieClip Frame 129
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * 6));
_y = (_y + Math.round(Math.sin(Orientation) * 6));
Symbol 1380 MovieClip Frame 130
prevFrame();
play();
Symbol 1380 MovieClip Frame 136
_x = getProperty(hitObject, _x);
_y = getProperty(hitObject, _y);
if ((eval (hitObject + ".State") == "Eject") || (eval (hitObject + ".State") == "Pain")) {
gotoAndPlay (140);
}
Symbol 1380 MovieClip Frame 137
prevFrame();
play();
Symbol 1380 MovieClip Frame 140
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Shove");
}
}
TargetProperty = 10;
Symbol 1380 MovieClip Frame 141
if (-5 >= TargetProperty) {
gotoAndPlay (146);
} else if (0 < TargetProperty) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y - Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Symbol 1380 MovieClip Frame 142
prevFrame();
play();
Symbol 1380 MovieClip Frame 146
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite) {
gotoAndPlay("Idle");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
InSight = false;
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1380 MovieClip Frame 147
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (155);
}
Symbol 1380 MovieClip Frame 148
prevFrame();
play();
Symbol 1380 MovieClip Frame 155
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1380 MovieClip Frame 156
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (!((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360))) {
gotoAndPlay (146);
}
if ((Distance < (Speed * 2)) || (Distance < 10)) {
CurrentAction = -1;
TargetProperty = homer;
if (((homer < _rotation) && ((_rotation - homer) < 180)) || ((_rotation < homer) && ((homer - _rotation) >= 180))) {
Orientation = -1;
} else {
Orientation = 1;
}
gotoAndPlay (94);
}
Symbol 1380 MovieClip Frame 157
prevFrame();
play();
Symbol 1380 MovieClip Frame 164
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
Direction = -1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1380 MovieClip Frame 172
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
Direction = 1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1380 MovieClip Frame 180
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1380 MovieClip Frame 181
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1380 MovieClip Frame 182
PainRebound--;
if (0 >= PainRebound) {
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (197);
} else {
Damaage = 0;
gotoAndPlay (104);
}
}
prevFrame();
play();
Symbol 1380 MovieClip Frame 186
Direction = -1;
Health = Health - Damage;
_rotation = (_level0.Thief._rotation + 180);
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1380 MovieClip Frame 187
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1380 MovieClip Frame 188
PainRebound--;
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (207);
}
if (0 >= PainRebound) {
Damage = 0;
gotoAndPlay (104);
}
prevFrame();
play();
Symbol 1380 MovieClip Frame 197
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * 20));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * 20));
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1380 MovieClip Frame 198
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
}
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1380 MovieClip Frame 199
prevFrame();
play();
Symbol 1380 MovieClip Frame 207
PainRebound = 5;
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (Sprite.Sprite) {
gotoAndPlay("Violent Death");
}
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1380 MovieClip Frame 208
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1380 MovieClip Frame 209
prevFrame();
play();
Symbol 1380 MovieClip Frame 220
Sprite.gotoAndPlay("Disabled");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = false;
stop();
Symbol 1380 MovieClip Frame 230
CurrentAction = -1;
Sprite.gotoAndPlay("Idle");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = true;
gotoAndPlay (25);
Symbol 1381 MovieClip Frame 1
Activated = false;
Symbol 1381 MovieClip Frame 2
stop();
Symbol 1381 MovieClip Frame 3
if (Activated) {
if (hitTest(_level0.Thief.BumpMap) && (!((_level0.Thief.State == "Crouched") && (Dodgable == "True")))) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 6;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = Math.round(_level0.ThiefHealth.Damage + (Damage / 4));
}
if (hitTest(_level0.Follower.BumpMap)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 6;
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Damage / 4);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _rotation) {
TargetAngle = -_rotation;
} else {
TargetAngle = 360 - _rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 4));
Set(("_level0.Enemy" + Target) + ".PainRebound", 6);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 4));
Set(("_level0.Enemy" + Target) + ".PainRebound", 6);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
}
Symbol 1381 MovieClip Frame 6
gotoAndPlay (3);
Symbol 1381 MovieClip Frame 11
if (Continuous == "True") {
gotoAndPlay (19);
} else {
with (Sprite) {
gotoAndPlay("OnFire");
}
gotoAndPlay (2);
}
Symbol 1381 MovieClip Frame 19
Delay = getTimer();
Symbol 1381 MovieClip Frame 21
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
with (Sprite) {
gotoAndPlay("OnFire");
}
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1382 MovieClip Frame 3
stop();
Symbol 1382 MovieClip Frame 4
Count = 0;
while (Count < Trigger.length) {
with (eval ("_level0." + Trigger[Count])) {
play();
}
Count++;
}
Symbol 1382 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1384 MovieClip Frame 3
stop();
Symbol 1384 MovieClip Frame 4
Delay = getTimer();
Symbol 1384 MovieClip Frame 6
if (getTimer() < (Delay + (ActivationDelay * 100))) {
prevFrame();
play();
}
Symbol 1384 MovieClip Frame 7
with (eval ("_level0." + Trigger)) {
play();
}
gotoAndPlay (2);
Symbol 1388 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1388 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1388 MovieClip Frame 6
prevFrame();
play();
Symbol 1388 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1388 MovieClip Frame 10
prevFrame();
play();
Symbol 1388 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1388 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1388 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1392 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 1392 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 1392 MovieClip Frame 3
prevFrame();
play();
Symbol 1393 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1393 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1393 MovieClip Frame 6
prevFrame();
play();
Symbol 1393 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1393 MovieClip Frame 10
prevFrame();
play();
Symbol 1393 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1393 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1393 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1394 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1394 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1394 MovieClip Frame 6
prevFrame();
play();
Symbol 1394 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1394 MovieClip Frame 10
prevFrame();
play();
Symbol 1394 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1394 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1394 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1395 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1395 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1395 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1395 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1395 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1395 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1395 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1395 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1395 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1395 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1395 MovieClip Frame 18
stop();
Symbol 1396 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1396 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1396 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1396 MovieClip Frame 15
Delay = getTimer();
Symbol 1396 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1396 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1396 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1396 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1396 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1396 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1396 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1396 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1396 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1396 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1396 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1396 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1396 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1396 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1396 MovieClip Frame 113
Delay = getTimer();
Symbol 1396 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1396 MovieClip Frame 121
stop();
Symbol 1396 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1396 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1396 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1396 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1396 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1396 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1396 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1396 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1396 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1396 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1396 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1396 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1396 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1396 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1396 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1396 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1396 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1396 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1396 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1396 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1396 MovieClip Frame 230
FOV._visible = false;
Symbol 1396 MovieClip Frame 232
prevFrame();
play();
Symbol 1396 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1397 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1397 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1397 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1397 MovieClip Frame 15
Delay = getTimer();
Symbol 1397 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1397 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1397 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1397 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1397 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1397 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1397 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1397 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1397 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1397 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1397 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1397 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1397 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1397 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1397 MovieClip Frame 113
Delay = getTimer();
Symbol 1397 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1397 MovieClip Frame 121
stop();
Symbol 1397 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1397 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1397 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1397 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1397 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1397 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1397 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1397 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1397 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1397 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1397 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1397 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1397 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1397 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1397 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1397 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1397 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1397 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1397 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1397 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1397 MovieClip Frame 230
FOV._visible = false;
Symbol 1397 MovieClip Frame 232
prevFrame();
play();
Symbol 1397 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1398 MovieClip Frame 1
function getCornerBound(hitObject) {
xbound = false;
if ((_width / 2) < Math.abs(getProperty(hitObject, _x) - _x)) {
if (((_height / 2) < Math.abs(getProperty(hitObject, _y) - _y)) && ((Math.abs(getProperty(hitObject, _x) - _x) - (_width / 2)) < (Math.abs(getProperty(hitObject, _y) - _y) - (_height / 2)))) {
xslide = false;
} else {
xslide = true;
}
} else {
xslide = false;
}
if (_x < getProperty(hitObject, _x)) {
Bound = "East";
xbound = true;
} else if (getProperty(hitObject, _x) < _x) {
Bound = "West";
xbound = true;
}
if ((_y < getProperty(hitObject, _y)) && (!(xbound && (xslide)))) {
Bound = "South";
} else if (getProperty(hitObject, _y) && (!(xbound && (xslide)))) {
Bound = "North";
}
return(Bound);
}
_visible = false;
Symbol 1398 MovieClip Frame 2
hitObject = "Nothing";
if (hitTest(_level0.Thief.BumpMap)) {
hitObject = "_level0.Thief";
}
if (_level0.Follower.Activated) {
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Bounded)) {
hitObject = "_level0.Follower";
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
hitObject = "_level0.Enemy" + Target;
}
}
Target++;
}
if ((Corner == "True") && (hitObject != "Nothing")) {
Bound = getCornerBound(hitObject);
}
if (hitObject != "Nothing") {
hitObjectWidth = eval (hitObject + ".SpanWidth");
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
}
Target = 0;
while (Target < 6) {
if (eval (("_level0.Projectile" + Target) + ".Activated")) {
hitObject = "_level0.Projectile" + Target;
hitObjectWidth = eval (("_level0.Projectile" + Target) + ".SpanWidth");
if (hitTest(eval (hitObject))) {
Set(hitObject + ".Activated", false);
if (Corner == "True") {
Set(hitObject + ".Bound", getCornerBound(eval (hitObject)));
} else {
Set(hitObject + ".Bound", Bound);
}
if (Bound == "North") {
setProperty(hitObject, _y , (_y - (_height / 2)) - hitObjectWidth);
} else if (Bound == "South") {
setProperty(hitObject, _y , (_y + (_height / 2)) + hitObjectWidth);
} else if (Bound == "East") {
setProperty(hitObject, _x , (_x + (_width / 2)) + hitObjectWidth);
} else if (Bound == "West") {
setProperty(hitObject, _x , (_x - (_width / 2)) - hitObjectWidth);
} else {
trace("Error: Clip Parameter Not Set");
}
with (eval (hitObject)) {
gotoAndPlay("Bound");
}
}
}
Target++;
}
Symbol 1398 MovieClip Frame 3
prevFrame();
play();
Symbol 1399 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1399 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1399 MovieClip Frame 4
prevFrame();
play();
Symbol 1399 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1399 MovieClip Frame 8
prevFrame();
play();
Symbol 1399 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1399 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1399 MovieClip Frame 37
stop();
Symbol 1399 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1400 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1400 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1400 MovieClip Frame 6
prevFrame();
play();
Symbol 1400 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1400 MovieClip Frame 10
prevFrame();
play();
Symbol 1400 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1400 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1400 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1401 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 1401 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 1401 MovieClip Frame 3
prevFrame();
play();
Symbol 1402 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1402 MovieClip Frame 2
Current = 0;
stop();
Symbol 1402 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1402 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1402 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1402 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1403 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1403 MovieClip Frame 2
Current = 0;
stop();
Symbol 1403 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1403 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1403 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1403 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1404 MovieClip Frame 1
_visible = false;
Symbol 1404 MovieClip Frame 2
stop();
Symbol 1414 Button
on (press) {
SaveScroll._visible = true;
}
on (release, releaseOutside) {
SaveScroll._visible = false;
}
Symbol 1415 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1415 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1415 MovieClip Frame 4
prevFrame();
play();
Symbol 1415 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1415 MovieClip Frame 8
prevFrame();
play();
Symbol 1415 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1415 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1415 MovieClip Frame 37
stop();
Symbol 1415 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1416 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1416 MovieClip Frame 2
stop();
Symbol 1416 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1416 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1416 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1416 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1416 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1416 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1426 MovieClip Frame 2
stop();
cSlide = 0;
Symbol 1426 MovieClip Frame 27
stop();
cSlide = 0;
Symbol 1426 MovieClip Frame 41
cSlide = -3;
Symbol 1426 MovieClip Frame 43
cSlide = -2;
Symbol 1426 MovieClip Frame 45
cSlide = 0;
Symbol 1426 MovieClip Frame 73
stop();
Symbol 1426 MovieClip Frame 81
stop();
Symbol 1461 MovieClip Frame 30
gotoAndPlay (1);
Symbol 1461 MovieClip Frame 35
stop();
Symbol 1461 MovieClip Frame 66
gotoAndPlay (50);
Symbol 1461 MovieClip Frame 80
with (_parent._parent) {
TargetProperty = -1;
Alert = MaxAlert;
}
stop();
Symbol 1461 MovieClip Frame 84
_parent._parent.TargetProperty = 0;
Symbol 1461 MovieClip Frame 92
_parent._parent.TargetProperty = 14;
_parent._parent.cSlide = 14;
Symbol 1461 MovieClip Frame 96
if (0 < _parent._parent.cSlide) {
_parent._parent.cSlide--;
}
prevFrame();
play();
Symbol 1461 MovieClip Frame 100
_parent._parent.TargetProperty = 0;
Symbol 1461 MovieClip Frame 111
_parent._parent.TargetProperty = 1;
Symbol 1461 MovieClip Frame 115
_parent._parent.TargetProperty = 2;
stop();
Symbol 1461 MovieClip Frame 121
_parent._parent.TargetProperty = -4;
_parent._parent.cSlide = -4;
Symbol 1461 MovieClip Frame 125
_parent._parent.TargetProperty = -12;
_parent._parent.cSlide = -12;
Symbol 1461 MovieClip Frame 128
_parent._parent.TargetProperty = -5;
_parent._parent.cSlide = -5;
Symbol 1461 MovieClip Frame 131
_parent._parent.TargetProperty = -1;
_parent._parent.cSlide = -1;
Symbol 1461 MovieClip Frame 137
_parent._parent.TargetProperty = 0;
_parent._parent.cSlide = 0;
Symbol 1461 MovieClip Frame 147
_parent._parent.TargetProperty = 1;
stop();
Symbol 1461 MovieClip Frame 164
stop();
Symbol 1461 MovieClip Frame 177
stop();
Symbol 1461 MovieClip Frame 213
gotoAndPlay (1);
Symbol 1461 MovieClip Frame 275
stop();
Symbol 1462 MovieClip Frame 6
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
var xdiff = (_parent._x - _level0.Thief._x);
var ydiff = (_parent._y - _level0.Thief._y);
_level0.Thief._x = _parent._x + _root.angleToX(_root.distanceAngle(xdiff, ydiff), _parent.spanwidth + _level0.Thief.spanwidth);
_level0.Thief._y = _parent._y + _root.angleToY(_root.distanceAngle(xdiff, ydiff), _parent.spanwidth + _level0.Thief.spanwidth);
_parent.callAlert();
}
if (FOV.hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
_parent.callAlert();
} else {
_parent.decAlert();
}
prevFrame();
play();
Symbol 1462 MovieClip Frame 16
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
var xdiff = (_parent._x - _level0.Thief._x);
var ydiff = (_parent._y - _level0.Thief._y);
_level0.Thief._x = _parent._x + _root.angleToX(_root.distanceAngle(xdiff, ydiff), _parent.spanwidth + _level0.Thief.spanwidth);
_level0.Thief._y = _parent._y + _root.angleToY(_root.distanceAngle(xdiff, ydiff), _parent.spanwidth + _level0.Thief.spanwidth);
}
prevFrame();
play();
Symbol 1462 MovieClip Frame 31
prevFrame();
play();
Symbol 1463 MovieClip Frame 1
function moveForward(speed) {
_x = (_x + _root.angleToX(_rotation, speed));
_y = (_y + _root.angleToY(_rotation, speed));
}
function callAlert() {
if ((0 >= Alert) && (!AlertLock)) {
gotoAndPlay (25);
}
Alert = MaxAlert;
}
function lockAlert() {
AlertLock = true;
}
function unlockAlert() {
AlertLock = false;
}
function decAlert() {
if (!AlertLock) {
Alert--;
}
}
function callAdvance() {
gotoAndPlay (31);
}
function callAttack() {
if (0.5 < (Health / MaxHealth)) {
if (Math.random() < 0.8) {
gotoAndPlay (52);
} else {
gotoAndPlay (81);
}
} else if (Math.random() < 0.3) {
gotoAndPlay (52);
} else {
gotoAndPlay (65);
}
}
function callSearch() {
gotoAndPlay (17);
}
function callStrike() {
if (Sprite.Sprite.StrikePt.hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State != "Death")) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 6;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + 3;
}
}
function callDeath() {
gotoAndPlay (129);
}
function disable() {
Sprite.FOV._visible = false;
Sprite.gotoAndPlay("Death Check");
Sprite.Sprite.gotoAndPlay("SilentStandStill");
gotoAndPlay (10);
}
SpanWidth = 28;
TargetProperty = 0;
PainRebound = 0;
Damage = 0;
Alert = 0;
AlertLock = false;
cSlide = 0;
Vulerable = true;
Activated = true;
Dex = 6;
Str = 8;
MaxAlert = 30;
Health = MaxHealth;
inAlert = false;
Symbol 1463 MovieClip Frame 11
inAlert = false;
var DestAngle = _root.distanceAngle(_x - _level0.Thief._x, _y - _level0.Thief._y);
stop();
Symbol 1463 MovieClip Frame 17
Sprite.Sprite.gotoAndPlay("StandStill");
Orientation = 1;
TargetProperty = 6;
Symbol 1463 MovieClip Frame 19
_rotation = (_rotation + (6 * Orientation));
TargetProperty++;
if (TargetProperty == 12) {
TargetProperty = 0;
Orientation = Orientation * -1;
}
Symbol 1463 MovieClip Frame 20
prevFrame();
play();
Symbol 1463 MovieClip Frame 25
Sprite.Sprite.gotoAndPlay("Alert");
TargetProperty = 0;
inAlert = true;
Symbol 1463 MovieClip Frame 27
if (TargetProperty == 0) {
prevFrame();
play();
} else {
callAdvance();
}
Symbol 1463 MovieClip Frame 31
Sprite.Sprite.gotoAndPlay("Movement");
Symbol 1463 MovieClip Frame 32
var SeekSpeed;
var GoSeek;
var diffx = (_x - _level0.Thief._x);
var diffy = (_y - _level0.Thief._y);
var DestAngle = _root.distanceAngle(diffx, diffy);
if (Alert == MaxAlert) {
SeekSpeed = 8;
GoSeek = false;
} else if ((MaxAlert / 2) < Alert) {
SeekSpeed = 5;
GoSeek = false;
} else if (0 < Alert) {
SeekSpeed = 10;
GoSeek = true;
} else {
callSearch();
}
if (_root.angleInRange(_rotation, DestAngle, SeekSpeed)) {
moveForward(Dex);
} else {
_rotation = (_rotation + (_root.angleTurnDirection(_rotation, DestAngle) * SeekSpeed));
if (GoSeek) {
moveForward(Dex);
}
}
if (_root.angleInRange(_rotation, DestAngle, 20) && (_root.distanceCalculate(diffx, diffy) < 100)) {
callAttack();
}
Symbol 1463 MovieClip Frame 33
prevFrame();
play();
Symbol 1463 MovieClip Frame 41
Sprite.Sprite.gotoAndPlay("Jump Back");
Symbol 1463 MovieClip Frame 42
moveForward(TargetProperty);
Symbol 1463 MovieClip Frame 43
moveForward(TargetProperty);
if (TargetProperty != 1) {
prevFrame();
play();
}
Symbol 1463 MovieClip Frame 44
gotoAndPlay (81);
Symbol 1463 MovieClip Frame 52
Sprite.Sprite.gotoAndPlay("Charge");
lockAlert();
Symbol 1463 MovieClip Frame 54
if (TargetProperty == 0) {
prevFrame();
play();
}
Symbol 1463 MovieClip Frame 56
moveForward(TargetProperty--);
if ((TargetProperty % 4) == 0) {
callStrike();
}
if (0 >= TargetProperty) {
unlockAlert();
callAlert();
callAdvance();
}
prevFrame();
play();
Symbol 1463 MovieClip Frame 65
var diffx = (_x - _level0.Thief._x);
var diffy = (_y - _level0.Thief._y);
if (_root.distanceCalculate(diffx, diffy) < 100) {
gotoAndPlay (41);
} else {
gotoAndPlay (97);
}
Symbol 1463 MovieClip Frame 81
var diffx = (_x - _level0.Thief._x);
var diffy = (_y - _level0.Thief._y);
var diffAngle = _root.distanceAngle(diffx, diffy);
var chgAngle = _root.angleDifference(_rotation, diffAngle);
if (15 < chgAngle) {
chgAngle = 15;
}
_rotation = (_rotation + (chgAngle * _root.angleTurnDirection(_rotation, diffAngle)));
gotoAndPlay (97);
Symbol 1463 MovieClip Frame 97
Sprite.Sprite.gotoAndPlay("Throw");
lockAlert();
Symbol 1463 MovieClip Frame 99
if (TargetProperty < 1) {
prevFrame();
play();
}
Symbol 1463 MovieClip Frame 100
if (!_root.Projectile4.Exist) {
_root.attachMovie("TrevorStake", "AutoName", 1);
_root.AutoName._x = _x + _root.angleToX(_rotation, 50);
_root.AutoName._y = _y + _root.angleToY(_rotation, 50);
_root.AutoName._rotation = _rotation;
}
Symbol 1463 MovieClip Frame 102
if (TargetProperty < 2) {
prevFrame();
play();
} else {
unlockAlert();
callAlert();
callAdvance();
}
Symbol 1463 MovieClip Frame 109
lockAlert();
Sprite.Sprite.gotoAndPlay("Front Pain");
Health = Health - ((Damage * 2) / 3);
Symbol 1463 MovieClip Frame 110
moveForward(-PainRebound);
PainRebound--;
Symbol 1463 MovieClip Frame 111
if (0 < PainRebound) {
prevFrame();
play();
} else if (0 >= Health) {
callDeath();
} else {
unlockAlert();
callAlert();
callAdvance();
}
Symbol 1463 MovieClip Frame 119
lockAlert();
Sprite.Sprite.gotoAndPlay("Back Pain");
Health = Health - Damage;
Symbol 1463 MovieClip Frame 120
moveForward(PainRebound);
PainRebound--;
Symbol 1463 MovieClip Frame 121
if (0 < PainRebound) {
prevFrame();
play();
} else if (0 >= Health) {
callDeath();
} else {
unlockAlert();
callAlert();
callAdvance();
}
Symbol 1463 MovieClip Frame 129
eval ("_root." + DeathAction).play();
inAlert = true;
Symbol 1463 MovieClip Frame 130
stop();
Symbol 1463 MovieClip Frame 131
Sprite.Sprite.gotoAndPlay("Death");
Sprite.gotoAndPlay("Death Check");
Vulerable = false;
SpanWidth = 72;
stop();
Symbol 1463 MovieClip Frame 140
Sprite.FOV._visible = false;
Sprite.gotoAndPlay("No Check");
Sprite.Sprite.gotoAndPlay("StandStill");
stop();
Symbol 1463 MovieClip Frame 150
Sprite.FOV._visible = true;
Sprite.gotoAndPlay("Check");
if (0 < Health) {
Sprite.Sprite.gotoAndPlay("StandStill");
} else {
Sprite.Sprite.gotoAndPlay("SilentStandStill");
}
Symbol 1463 MovieClip Frame 155
gotoAndPlay (10);
Symbol 1464 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1464 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1464 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1464 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1464 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1464 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1464 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1464 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1464 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1464 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1464 MovieClip Frame 18
stop();
Symbol 1465 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1465 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1465 MovieClip Frame 6
prevFrame();
play();
Symbol 1465 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1465 MovieClip Frame 10
prevFrame();
play();
Symbol 1465 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1465 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1465 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1466 MovieClip Frame 1
_visible = false;
Symbol 1466 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1466 MovieClip Frame 4
prevFrame();
play();
Symbol 1466 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1466 MovieClip Frame 8
stop();
Symbol 1467 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1467 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1467 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1467 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1467 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1467 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1467 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1467 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1467 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1467 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1467 MovieClip Frame 18
stop();
Symbol 1468 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1468 MovieClip Frame 2
Current = 0;
stop();
Symbol 1468 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1468 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1468 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1468 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1469 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1469 MovieClip Frame 2
stop();
Symbol 1469 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1469 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1469 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1469 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1469 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1469 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1470 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1470 MovieClip Frame 2
Current = 0;
stop();
Symbol 1470 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1470 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1470 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1470 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1471 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1471 MovieClip Frame 2
stop();
Symbol 1471 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1471 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1471 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1471 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1471 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1471 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1472 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1472 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1472 MovieClip Frame 6
prevFrame();
play();
Symbol 1472 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1472 MovieClip Frame 10
prevFrame();
play();
Symbol 1472 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1472 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1472 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1473 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1473 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1473 MovieClip Frame 4
prevFrame();
play();
Symbol 1473 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1473 MovieClip Frame 8
prevFrame();
play();
Symbol 1473 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1473 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1473 MovieClip Frame 37
stop();
Symbol 1473 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1474 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1474 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1474 MovieClip Frame 6
prevFrame();
play();
Symbol 1474 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1474 MovieClip Frame 10
prevFrame();
play();
Symbol 1474 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1474 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1474 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1475 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1475 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1475 MovieClip Frame 6
prevFrame();
play();
Symbol 1475 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1475 MovieClip Frame 10
prevFrame();
play();
Symbol 1475 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1475 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1475 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1478 MovieClip Frame 1
function Captured() {
if (hitTest(eval (hitObject + "._x"), eval (hitObject + "._y"), true)) {
return(true);
}
return(false);
}
function Scan() {
if (hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
hitObject = "_level0.Thief";
hitType = "Thief";
return(true);
}
if (hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) {
hitObject = "_level0.Follower";
hitType = "Follower";
return(true);
}
Target = 0;
while (Target < 5) {
testObject = "_level0.Enemy" + Target;
if ((hitTest(eval (testObject + "._x"), eval (testObject + "._y"), true) && (eval (testObject + ".Grounded"))) && (eval (testObject + ".Vulerable"))) {
hitObject = testObject;
hitType = "Enemy";
return(true);
}
Target++;
}
return(false);
}
Activated = true;
Symbol 1478 MovieClip Frame 3
_visible = true;
if ((AutoTrigger == "False") || ((!Activated) && (hitObject == "_level0.Thief"))) {
stop();
}
Symbol 1478 MovieClip Frame 4
Activated = true;
hitObject = "None";
if (AutoTrigger == "False") {
gotoAndPlay (10);
} else {
gotoAndPlay (17);
}
Symbol 1478 MovieClip Frame 11
Delay = getTimer();
Symbol 1478 MovieClip Frame 13
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
gotoAndPlay (24);
} else {
prevFrame();
play();
}
Symbol 1478 MovieClip Frame 18
if (Scan()) {
gotoAndPlay (10);
}
Symbol 1478 MovieClip Frame 19
prevFrame();
play();
Symbol 1478 MovieClip Frame 24
Scale = 100;
FallFactor = 2;
Symbol 1478 MovieClip Frame 26
Scale = Scale - FallFactor;
if (hitObject == "None") {
Scan();
if (Activated) {
gotoAndPlay (24);
} else {
stop();
}
} else if (Captured()) {
setProperty(hitObject, _xscale , Scale);
setProperty(hitObject, _yscale , Scale);
prevFrame();
play();
} else {
setProperty(hitObject, _xscale , 100);
setProperty(hitObject, _yscale , 100);
hitObject = "None";
gotoAndPlay (24);
}
Symbol 1478 MovieClip Frame 30
if (Captured()) {
Activated = false;
if (hitType == "Thief") {
with (_level0.Thief) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("FreeFall");
}
}
} else if (hitType == "Follower") {
with (_level0.Follower) {
State = "Death";
Activated = false;
}
} else if (hitType == "Enemy") {
with (eval (hitObject)) {
gotoAndPlay("Death");
with (Sprite.Sprite) {
gotoAndPlay("FallToDeath");
}
PainRebound = 0;
}
}
} else {
setProperty(hitObject, _xscale , "100");
setProperty(hitObject, _yscale , "100");
hitObject = "None";
stop();
}
Symbol 1478 MovieClip Frame 31
Scale = Scale - FallFactor;
FallFactor = FallFactor + 1;
setProperty(hitObject, _xscale , Scale);
setProperty(hitObject, _yscale , Scale);
Symbol 1478 MovieClip Frame 32
if (70 >= Scale) {
setProperty(hitObject, _visible , false);
} else {
prevFrame();
play();
}
Symbol 1478 MovieClip Frame 38
if (hitType == "Thief") {
if (FallToDeath == "True") {
_level0.ThiefHealth.Damage = _level0.Thief.ThiefHealth;
_level0.Thief.State = "StandStill";
} else {
setProperty(hitObject, _xscale , 100);
setProperty(hitObject, _yscale , 100);
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
with (eval ("_level0." + Teleport)) {
gotoAndPlay("Teleport");
}
}
}
Symbol 1478 MovieClip Frame 39
stop();
Symbol 1479 MovieClip Frame 1
_visible = false;
Symbol 1479 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1479 MovieClip Frame 4
prevFrame();
play();
Symbol 1479 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1479 MovieClip Frame 8
stop();
Symbol 1480 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1480 MovieClip Frame 2
Current = 0;
stop();
Symbol 1480 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1480 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1480 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1480 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1481 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 1481 MovieClip Frame 2
stop();
Symbol 1481 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 1481 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 1481 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 1481 MovieClip Frame 13
stop();
Symbol 1482 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1482 MovieClip Frame 2
Current = 0;
stop();
Symbol 1482 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1482 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1482 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1482 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1493 MovieClip Frame 2
stop();
Symbol 1493 MovieClip Frame 16
stop();
Symbol 1493 MovieClip Frame 20
_root.ThiefWalk.PlayClip();
Symbol 1493 MovieClip Frame 25
_root.ThiefWalk.PlayClip();
Symbol 1493 MovieClip Frame 30
gotoAndPlay (20);
Symbol 1493 MovieClip Frame 45
stop();
Symbol 1493 MovieClip Frame 92
_parent._parent.Bounded = false;
_parent._parent.Activated = false;
stop();
Symbol 1510 MovieClip Frame 30
gotoAndPlay (1);
Symbol 1510 MovieClip Frame 45
gotoAndPlay (35);
Symbol 1510 MovieClip Frame 60
stop();
Symbol 1510 MovieClip Frame 106
_parent._parent.Bounded = false;
_parent._parent.Activated = false;
stop();
Symbol 1511 MovieClip Frame 3
stop();
Symbol 1511 MovieClip Frame 12
stop();
Symbol 1512 MovieClip Frame 1
function Terminate() {
with (Sprite.Sprite) {
gotoAndPlay("Obscure Death");
}
gotoAndPlay (50);
}
State = "OnHold";
Activated = true;
Bounded = true;
Speed = 6;
Rotation = 10;
SpanWidth = 35;
PainRebound = 0;
Health = parseInt(Health);
HeldAmount = 0;
_name = "Follower";
Symbol 1512 MovieClip Frame 2
with (Sprite) {
gotoAndPlay(Character);
}
if (DefaultVisible == "False") {
_visible = false;
}
Symbol 1512 MovieClip Frame 5
if (State == "Pain") {
State = "OnHold";
}
if (State != "OnHold") {
gotoAndPlay (15);
}
if (_visible) {
distx = _level0.Thief._x - _x;
disty = _level0.Thief._y - _y;
Distance = Math.sqrt((distx * distx) + (disty * disty));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (Distance < SpanWidth) {
Orientation = ((TargetAngle + 180) / 180) * Math.PI;
_level0.Thief._x = _x + (Math.cos(Orientation) * SpanWidth);
_level0.Thief._y = _y + (Math.sin(Orientation) * SpanWidth);
}
}
Symbol 1512 MovieClip Frame 6
prevFrame();
play();
Symbol 1512 MovieClip Frame 15
if ((State == "Pain") && (LastState != "Pain")) {
with (Sprite.Sprite) {
gotoAndPlay("Pain");
}
}
LastState = State;
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.sqrt((distx * distx) + (disty * disty));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (Distance < _level0.Thief.SpanWidth) {
Orientation = ((TargetAngle + 180) / 180) * Math.PI;
_x = (_level0.Thief._x + (Math.cos(Orientation) * SpanWidth));
_y = (_level0.Thief._y + (Math.sin(Orientation) * SpanWidth));
}
if ((State == "StandStill") || (State == "Movement")) {
if (_rotation != TargetAngle) {
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
}
}
if (Distance < 60) {
State = "StandStill";
}
if (100 < Distance) {
if ((Math.abs(_rotation - TargetAngle) < 90) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + 90) >= 360)) {
State = "Movement";
}
}
}
if ((State == "StandStill") && (LastState != "StandStill")) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
if ((State == "Movement") && (LastState != "Movement")) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
if (State == "Movement") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
}
if (State == "Pain") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
if (0 >= Health) {
with (Sprite.Sprite) {
gotoAndPlay("Death");
}
gotoAndPlay (50);
} else {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
State = "StandStill";
}
}
}
if ((State == "Bounded") && (0 >= HeldAmount)) {
State = "StandStill";
}
if (State == "Eject") {
with (Sprite.Sprite) {
gotoAndPlay("Death");
}
gotoAndPlay (50);
}
if ((State == "Bounded") && (0 >= Health)) {
State = "Eject";
}
Symbol 1512 MovieClip Frame 16
prevFrame();
play();
Symbol 1512 MovieClip Frame 25
stop();
Symbol 1512 MovieClip Frame 36
gotoAndPlay (5);
Symbol 1512 MovieClip Frame 50
PainRebound = 5;
SpanWidth = 60;
State = "Death";
Symbol 1512 MovieClip Frame 51
if (BumpMap.hitTest(_level0.Thief._x, _Level0.Thief._y, true)) {
Orientation = (_level0.Thief._rotation / 180) * Math.PI;
_level0.Thief._x = _level0.Thief._x - _level0.Thief.SpanWidth;
_level0.Thief._y = _level0.Thief._y - (Math.cos(Orientation) * _level0.Thief.SpanWidth);
}
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
PainRebound = PainRebound - 1;
}
Symbol 1512 MovieClip Frame 52
if (!Activated) {
nextFrame();
} else {
prevFrame();
play();
}
Symbol 1512 MovieClip Frame 53
stop();
Symbol 1513 MovieClip Frame 1
Exist = true;
Symbol 1513 MovieClip Frame 2
Activated = false;
_visible = false;
SpanWidth = 20;
if (_name.substr(0, 5) != "Proje") {
Register = 0;
while (eval (("_level0.Projectile" + Register) + ".Exist")) {
Register++;
}
_name = ("Projectile" + Register);
}
stop();
Symbol 1513 MovieClip Frame 3
_visible = true;
Symbol 1513 MovieClip Frame 4
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
if (hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State != "Crouched")) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = Speed / 2;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
gotoAndPlay (15);
}
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = Speed / 2;
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Damage;
gotoAndPlay (15);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
if (0 >= _rotation) {
TargetAngle = -_rotation;
} else {
TargetAngle = 360 - _rotation;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", Speed / 2);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Damage);
Set(("_level0.Enemy" + Target) + ".PainRebound", Speed / 2);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
gotoAndPlay (15);
}
Target++;
}
Symbol 1513 MovieClip Frame 5
gotoAndPlay (4);
Activated = true;
Symbol 1513 MovieClip Frame 8
Bounce = Bounce - 1;
if (0 >= Bounce) {
gotoAndPlay (15);
} else if ((Bound == "East") || (Bound == "West")) {
_rotation = ((-_rotation) + 180);
trace(_rotation);
} else {
_rotation = (-_rotation);
}
Symbol 1513 MovieClip Frame 9
gotoAndPlay (4);
Symbol 1513 MovieClip Frame 15
Activated = false;
Symbol 1513 MovieClip Frame 21
stop();
Symbol 1514 MovieClip Frame 1
_visible = false;
Symbol 1514 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1514 MovieClip Frame 4
prevFrame();
play();
Symbol 1514 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1514 MovieClip Frame 8
stop();
Symbol 1515 MovieClip Frame 1
_visible = false;
Symbol 1515 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1515 MovieClip Frame 4
prevFrame();
play();
Symbol 1515 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1515 MovieClip Frame 8
stop();
Symbol 1516 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1516 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1516 MovieClip Frame 6
prevFrame();
play();
Symbol 1516 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1516 MovieClip Frame 10
prevFrame();
play();
Symbol 1516 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1516 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1516 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1517 MovieClip Frame 3
stop();
Symbol 1517 MovieClip Frame 4
Count = 0;
while (Count < Trigger.length) {
with (eval ("_level0." + Trigger[Count])) {
play();
}
Count++;
}
Symbol 1517 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1518 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1518 MovieClip Frame 2
stop();
Symbol 1518 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1518 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1518 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1518 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1518 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1518 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1519 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1519 MovieClip Frame 2
Current = 0;
stop();
Symbol 1519 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1519 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1519 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1519 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1520 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
inAlert = true;
Coord = new object();
Symbol 1520 MovieClip Frame 2
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
Symbol 1520 MovieClip Frame 4
if (Lurk == "True") {
with (Sprite.Sprite) {
gotoAndPlay("Lurking");
}
with (FOV) {
gotoAndPlay("Lurking");
}
with (Sprite) {
gotoAndPlay("Alert");
}
} else {
gotoAndPlay (25);
}
Symbol 1520 MovieClip Frame 5
Vulearable = false;
stop();
Symbol 1520 MovieClip Frame 15
with (FOV) {
gotoAndPlay("Idle");
}
Vulerable = true;
gotoAndPlay (25);
Symbol 1520 MovieClip Frame 25
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (104);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
Symbol 1520 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Delay = getTimer();
Symbol 1520 MovieClip Frame 41
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (25);
}
Symbol 1520 MovieClip Frame 42
prevFrame();
play();
Symbol 1520 MovieClip Frame 50
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1520 MovieClip Frame 51
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
TargetProperty = TargetProperty - Speed;
if (0 >= TargetProperty) {
gotoAndPlay (25);
}
Symbol 1520 MovieClip Frame 52
prevFrame();
play();
Symbol 1520 MovieClip Frame 60
Orientation = 1;
gotoAndPlay (94);
Symbol 1520 MovieClip Frame 75
Orientation = -1;
gotoAndPlay (94);
Symbol 1520 MovieClip Frame 94
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Symbol 1520 MovieClip Frame 95
_rotation = (_rotation + (Orientation * Rotation));
if ((Math.abs(_rotation - TargetProperty) < Rotation) || (((Math.abs(_rotation) + Math.abs(TargetProperty)) + Rotation) >= 360)) {
_rotation = TargetProperty;
gotoAndPlay (25);
}
Symbol 1520 MovieClip Frame 96
prevFrame();
play();
Symbol 1520 MovieClip Frame 104
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1520 MovieClip Frame 105
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - (Rotation * 3));
} else {
_rotation = (_rotation + (Rotation * 3));
}
if ((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (111);
}
Symbol 1520 MovieClip Frame 106
prevFrame();
play();
Symbol 1520 MovieClip Frame 111
with (Sprite.Sprite) {
gotoAndPlay("Grapple");
}
hitObject = "Nothing";
TargetProperty = 10;
Symbol 1520 MovieClip Frame 118
Orientation = (_rotation / 180) * Math.PI;
if (hitObject != "Nothing") {
if (hitObject == "_level0.Thief") {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
} else {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
gotoAndPlay (128);
}
_x = (getProperty(hitObject, _x) - Math.round(Math.cos(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
_y = (getProperty(hitObject, _y) - Math.round(Math.sin(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
} else {
_x = (_x + Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y + Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Coord.x = Sprite.Sprite.GrabHand._x;
Coord.y = Sprite.Sprite.GrabHand._y;
localToGlobal(Coord);
if (hitObject == "Nothing") {
if ((_level0.Follower.BumpMap.hitTest(Coord.x, Coord.y, true) && (_level0.Follower.Activated)) && (_level0.Follower.State != "Death")) {
hitObject = "_level0.Follower";
_level0.Follower.HeldAmount++;
}
if ((Sprite.Sprite.GrabHand.hitTest(_level0.Thief.BumpMap) && (_level0.ThiefSecInv.ActiveItem != 3)) && (_level0.Thief.State != "Death")) {
hitObject = "_level0.Thief";
}
}
Symbol 1520 MovieClip Frame 119
prevFrame();
play();
Symbol 1520 MovieClip Frame 128
if (hitObject == "Nothing") {
gotoAndPlay (146);
} else {
with (eval (hitObject)) {
State = "Bounded";
TargetProperty = Strength + 3;
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
with (Sprite) {
gotoAndPlay("Disabled");
}
}
Symbol 1520 MovieClip Frame 129
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * 6));
_y = (_y + Math.round(Math.sin(Orientation) * 6));
Symbol 1520 MovieClip Frame 130
prevFrame();
play();
Symbol 1520 MovieClip Frame 136
_x = getProperty(hitObject, _x);
_y = getProperty(hitObject, _y);
if ((eval (hitObject + ".State") == "Eject") || (eval (hitObject + ".State") == "Pain")) {
gotoAndPlay (140);
}
Symbol 1520 MovieClip Frame 137
prevFrame();
play();
Symbol 1520 MovieClip Frame 140
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Shove");
}
}
TargetProperty = 10;
Symbol 1520 MovieClip Frame 141
if (-5 >= TargetProperty) {
gotoAndPlay (146);
} else if (0 < TargetProperty) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y - Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Symbol 1520 MovieClip Frame 142
prevFrame();
play();
Symbol 1520 MovieClip Frame 146
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite) {
gotoAndPlay("Idle");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
InSight = false;
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1520 MovieClip Frame 147
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (155);
}
Symbol 1520 MovieClip Frame 148
prevFrame();
play();
Symbol 1520 MovieClip Frame 155
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1520 MovieClip Frame 156
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (!((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360))) {
gotoAndPlay (146);
}
if ((Distance < (Speed * 2)) || (Distance < 10)) {
CurrentAction = -1;
TargetProperty = homer;
if (((homer < _rotation) && ((_rotation - homer) < 180)) || ((_rotation < homer) && ((homer - _rotation) >= 180))) {
Orientation = -1;
} else {
Orientation = 1;
}
gotoAndPlay (94);
}
Symbol 1520 MovieClip Frame 157
prevFrame();
play();
Symbol 1520 MovieClip Frame 164
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
Direction = -1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1520 MovieClip Frame 172
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
Direction = 1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1520 MovieClip Frame 180
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1520 MovieClip Frame 181
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1520 MovieClip Frame 182
PainRebound--;
if (0 >= PainRebound) {
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (197);
} else {
Damaage = 0;
gotoAndPlay (104);
}
}
prevFrame();
play();
Symbol 1520 MovieClip Frame 186
Direction = -1;
Health = Health - Damage;
_rotation = (_level0.Thief._rotation + 180);
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1520 MovieClip Frame 187
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1520 MovieClip Frame 188
PainRebound--;
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (207);
}
if (0 >= PainRebound) {
Damage = 0;
gotoAndPlay (104);
}
prevFrame();
play();
Symbol 1520 MovieClip Frame 197
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * 20));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * 20));
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1520 MovieClip Frame 198
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
}
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1520 MovieClip Frame 199
prevFrame();
play();
Symbol 1520 MovieClip Frame 207
PainRebound = 5;
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (Sprite.Sprite) {
gotoAndPlay("Violent Death");
}
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1520 MovieClip Frame 208
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1520 MovieClip Frame 209
prevFrame();
play();
Symbol 1520 MovieClip Frame 220
Sprite.gotoAndPlay("Disabled");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = false;
stop();
Symbol 1520 MovieClip Frame 230
CurrentAction = -1;
Sprite.gotoAndPlay("Idle");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = true;
gotoAndPlay (25);
Symbol 1521 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1521 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1521 MovieClip Frame 6
prevFrame();
play();
Symbol 1521 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1521 MovieClip Frame 10
prevFrame();
play();
Symbol 1521 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1521 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1521 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1522 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1522 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1522 MovieClip Frame 6
prevFrame();
play();
Symbol 1522 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1522 MovieClip Frame 10
prevFrame();
play();
Symbol 1522 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1522 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1522 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1523 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1523 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1523 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1523 MovieClip Frame 15
Delay = getTimer();
Symbol 1523 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1523 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1523 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1523 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1523 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1523 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1523 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1523 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1523 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1523 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1523 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1523 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1523 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1523 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1523 MovieClip Frame 113
Delay = getTimer();
Symbol 1523 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1523 MovieClip Frame 121
stop();
Symbol 1523 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1523 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1523 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1523 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1523 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1523 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1523 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1523 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1523 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1523 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1523 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1523 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1523 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1523 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1523 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1523 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1523 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1523 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1523 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1523 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1523 MovieClip Frame 230
FOV._visible = false;
Symbol 1523 MovieClip Frame 232
prevFrame();
play();
Symbol 1523 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1524 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
cSlide = 0;
inAlert = false;
Symbol 1524 MovieClip Frame 2
if (_name.substr(0, 5) != "Enemy") {
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
}
Symbol 1524 MovieClip Frame 3
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (78);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
inAlert = false;
Symbol 1524 MovieClip Frame 15
Delay = getTimer();
Symbol 1524 MovieClip Frame 17
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (3);
} else {
prevFrame();
play();
}
Symbol 1524 MovieClip Frame 25
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1524 MovieClip Frame 26
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
TargetProperty = TargetProperty - GuardSpeed;
Symbol 1524 MovieClip Frame 27
if (0 >= TargetProperty) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
gotoAndPlay (3);
} else {
gotoAndPlay (26);
}
Symbol 1524 MovieClip Frame 39
Orientation = 1;
gotoAndPlay (68);
Symbol 1524 MovieClip Frame 51
Orientation = -1;
gotoAndPlay (68);
Symbol 1524 MovieClip Frame 68
_rotation = (_rotation + (GuardRotation * Orientation));
Symbol 1524 MovieClip Frame 69
if (Math.abs(TargetProperty - _rotation) < GuardRotation) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else if (((180 < Math.abs(TargetProperty + GuardRotation)) && (180 < (Math.abs(_rotation) + GuardRotation))) && ((((180 - Math.abs(TargetProperty)) + 180) - Math.abs(_rotation)) < TargetProperty)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
Symbol 1524 MovieClip Frame 78
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
inAlert = true;
xdiff = _x - _root.Thief._x;
ydiff = _y - _root.Thief._y;
TargetProperty = _root.distanceAngle(xdiff, ydiff);
Orientation = _root.angleTurnDirection(_rotation, TargetProperty);
trace(TargetProperty);
trace(Orientation);
Symbol 1524 MovieClip Frame 90
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1524 MovieClip Frame 91
_rotation = (_rotation + ((GuardRotation * Orientation) * 2));
Symbol 1524 MovieClip Frame 92
if (_root.angleInRange(_rotation, TargetProperty, GuardRotation * 2)) {
_rotation = TargetProperty;
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1524 MovieClip Frame 101
if (!InSight) {
Alert = Alert - 1;
if (0 >= Alert) {
gotoAndPlay (131);
}
} else {
Alert = GuardAlertDelay / 10;
}
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_level0.Thief._x < _x) {
if (_y < _level0.Thief._y) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - (GuardRotation * 2));
} else {
_rotation = (_rotation + (GuardRotation * 2));
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + (GuardRotation * 2));
} else {
_rotation = (_rotation - (GuardRotation * 2));
}
}
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
Symbol 1524 MovieClip Frame 102
distx = Math.abs(_level0.Thief._x - _x);
disty = Math.abs(_level0.Thief._y - _y);
if ((Math.sqrt((distx * distx) + (disty * disty)) < 80) && (Math.abs(_rotation - TargetAngle) < 60)) {
with (Sprite.Sprite) {
gotoAndPlay("Attack");
}
gotoAndPlay (121);
} else {
gotoAndPlay (101);
}
Symbol 1524 MovieClip Frame 113
Delay = getTimer();
Symbol 1524 MovieClip Frame 115
if ((Delay + ((10 - GuardSpeed) * 200)) < getTimer()) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
gotoAndPlay (101);
} else {
prevFrame();
play();
}
Symbol 1524 MovieClip Frame 121
stop();
Symbol 1524 MovieClip Frame 131
with (Sprite.Sprite) {
gotoAndPlay("Alert");
}
TargetProperty = GuardSweep / 2;
Orientation = -1;
Alert = GuardAlertDelay;
inAlert = false;
Symbol 1524 MovieClip Frame 132
_rotation = (_rotation + (GuardRotation * Orientation));
Alert = Alert - 1;
Symbol 1524 MovieClip Frame 133
if (InSight) {
gotoAndPlay (78);
} else if (0 >= Alert) {
gotoAndPlay (144);
} else {
TargetProperty = TargetProperty - GuardRotation;
if (0 >= TargetProperty) {
Orientation = -Orientation;
TargetProperty = GuardSweep;
}
gotoAndPlay (132);
}
Symbol 1524 MovieClip Frame 144
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
with (Sprite) {
gotoAndPlay("Idle");
}
Symbol 1524 MovieClip Frame 145
TargetAngle = parseInt((Math.atan((_y - homey) / (_x - homex)) * 180) / Math.PI);
if (_x >= homex) {
if (_y < homey) {
TargetAngle = TargetAngle + 180;
} else {
TargetAngle = TargetAngle - 180;
}
}
if (GuardRotation < Math.abs(TargetAngle - _rotation)) {
if (_rotation < TargetAngle) {
if (180 < (TargetAngle - _rotation)) {
_rotation = (_rotation - GuardRotation);
} else {
_rotation = (_rotation + GuardRotation);
}
}
if (TargetAngle < _rotation) {
if (180 < (_rotation - TargetAngle)) {
_rotation = (_rotation + GuardRotation);
} else {
_rotation = (_rotation - GuardRotation);
}
}
if (GuardRotation >= Math.abs(TargetAngle - _rotation)) {
_rotation = TargetAngle;
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
} else {
Orientation = (TargetAngle / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * GuardSpeed));
_y = (_y + (Math.sin(Orientation) * GuardSpeed));
}
Symbol 1524 MovieClip Frame 146
distx = Math.abs(homex - _x);
disty = Math.abs(homey - _y);
if (Math.sqrt((distx * distx) + (disty * disty)) < (GuardSpeed * 1.5)) {
_x = homex;
_y = homey;
TargetProperty = homer;
CurrentAction = -1;
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
if (_rotation < TargetProperty) {
if (180 < (TargetProperty - _rotation)) {
Orientation = -1;
} else {
Orientation = 1;
}
} else if (180 < (_rotation - TargetProperty)) {
Orientation = 1;
} else {
Orientation = -1;
}
if (((360 - Math.abs(TargetProperty - _rotation)) < GuardRoation) || (Math.abs(TargetProperty - _rotation) < GuardRotation)) {
_rotation = TargetProperty;
gotoAndPlay (3);
} else {
gotoAndPlay (68);
}
} else {
gotoAndPlay (145);
}
Symbol 1524 MovieClip Frame 158
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1524 MovieClip Frame 159
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1524 MovieClip Frame 160
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Damage = 0;
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1524 MovieClip Frame 173
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - ((Damage * 2) / 3);
if (0 >= GuardHealth) {
PainRebound = PainRebound + 5;
}
nextFrame();
play();
Symbol 1524 MovieClip Frame 174
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1524 MovieClip Frame 175
PainRebound = PainRebound - 1;
if ((10 >= PainRebound) && (0 >= GuardHealth)) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
_rotation = (_rotation + 180);
Vulerable = false;
gotoAndPlay (202);
} else if (0 >= PainRebound) {
Vulerable = true;
Damage = 0;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1524 MovieClip Frame 188
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
with (FOV) {
gotoAndPlay("Pain");
}
GuardHealth = GuardHealth - Damage;
_rotation = (_level0.Thief._rotation + 180);
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
}
Symbol 1524 MovieClip Frame 189
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
Symbol 1524 MovieClip Frame 190
PainRebound = PainRebound - 1;
if (0 >= GuardHealth) {
with (Sprite.Sprite) {
gotoAndPlay("ViolentDeath");
}
Vulerable = false;
gotoAndPlay (216);
} else if (0 >= PainRebound) {
Vulerable = true;
gotoAndPlay (78);
} else {
prevFrame();
play();
}
Symbol 1524 MovieClip Frame 202
with (Sprite) {
gotoAndPlay("Dying");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 60;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1524 MovieClip Frame 203
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * PainRebound));
_y = (_y + (Math.sin(Orientation) * PainRebound));
Symbol 1524 MovieClip Frame 204
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
if (DeathAction != "Undefined") {
Set(("_root." + DeathAction) + ".Source", _name);
eval ("_root." + DeathAction).play();
}
stop();
} else {
gotoAndPlay (203);
}
Symbol 1524 MovieClip Frame 216
with (Sprite) {
gotoAndPlay("Alert");
}
with (FOV) {
gotoAndPlay("Death");
}
SpanWidth = 20;
Vulerable = false;
_root.GameRecord.Killed();
gotoAndPlay (203);
Symbol 1524 MovieClip Frame 218
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
Activated = false;
stop();
} else {
prevFrame();
play();
}
Symbol 1524 MovieClip Frame 230
FOV._visible = false;
Symbol 1524 MovieClip Frame 232
prevFrame();
play();
Symbol 1524 MovieClip Frame 241
homex = _x;
homey = _y;
homer = _rotation;
CurrentAction = -1;
FOV._visible = true;
Sprite.Sprite.gotoAndPlay("Stand Still");
gotoAndPlay (3);
Symbol 1525 MovieClip Frame 1
function Captured() {
if (hitTest(eval (hitObject + "._x"), eval (hitObject + "._y"), true)) {
return(true);
}
return(false);
}
function Scan() {
if (hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
hitObject = "_level0.Thief";
hitType = "Thief";
return(true);
}
if (hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) {
hitObject = "_level0.Follower";
hitType = "Follower";
return(true);
}
Target = 0;
while (Target < 5) {
testObject = "_level0.Enemy" + Target;
if ((hitTest(eval (testObject + "._x"), eval (testObject + "._y"), true) && (eval (testObject + ".Grounded"))) && (eval (testObject + ".Vulerable"))) {
hitObject = testObject;
hitType = "Enemy";
return(true);
}
Target++;
}
return(false);
}
Activated = true;
Symbol 1525 MovieClip Frame 3
_visible = true;
if ((AutoTrigger == "False") || ((!Activated) && (hitObject == "_level0.Thief"))) {
stop();
}
Symbol 1525 MovieClip Frame 4
Activated = true;
hitObject = "None";
if (AutoTrigger == "False") {
gotoAndPlay (10);
} else {
gotoAndPlay (17);
}
Symbol 1525 MovieClip Frame 11
Delay = getTimer();
Symbol 1525 MovieClip Frame 13
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
gotoAndPlay (24);
} else {
prevFrame();
play();
}
Symbol 1525 MovieClip Frame 18
if (Scan()) {
gotoAndPlay (10);
}
Symbol 1525 MovieClip Frame 19
prevFrame();
play();
Symbol 1525 MovieClip Frame 24
Scale = 100;
FallFactor = 2;
Symbol 1525 MovieClip Frame 26
Scale = Scale - FallFactor;
if (hitObject == "None") {
Scan();
if (Activated) {
gotoAndPlay (24);
} else {
stop();
}
} else if (Captured()) {
setProperty(hitObject, _xscale , Scale);
setProperty(hitObject, _yscale , Scale);
prevFrame();
play();
} else {
setProperty(hitObject, _xscale , 100);
setProperty(hitObject, _yscale , 100);
hitObject = "None";
gotoAndPlay (24);
}
Symbol 1525 MovieClip Frame 30
if (Captured()) {
Activated = false;
if (hitType == "Thief") {
with (_level0.Thief) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("FreeFall");
}
}
} else if (hitType == "Follower") {
with (_level0.Follower) {
State = "Death";
Activated = false;
}
} else if (hitType == "Enemy") {
with (eval (hitObject)) {
gotoAndPlay("Death");
with (Sprite.Sprite) {
gotoAndPlay("FallToDeath");
}
PainRebound = 0;
}
}
} else {
setProperty(hitObject, _xscale , "100");
setProperty(hitObject, _yscale , "100");
hitObject = "None";
stop();
}
Symbol 1525 MovieClip Frame 31
Scale = Scale - FallFactor;
FallFactor = FallFactor + 1;
setProperty(hitObject, _xscale , Scale);
setProperty(hitObject, _yscale , Scale);
Symbol 1525 MovieClip Frame 32
if (70 >= Scale) {
setProperty(hitObject, _visible , false);
} else {
prevFrame();
play();
}
Symbol 1525 MovieClip Frame 38
if (hitType == "Thief") {
if (FallToDeath == "True") {
_level0.ThiefHealth.Damage = _level0.Thief.ThiefHealth;
_level0.Thief.State = "StandStill";
} else {
setProperty(hitObject, _xscale , 100);
setProperty(hitObject, _yscale , 100);
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
with (eval ("_level0." + Teleport)) {
gotoAndPlay("Teleport");
}
}
}
Symbol 1525 MovieClip Frame 39
stop();
Symbol 1526 MovieClip Frame 1
function Captured() {
if (hitTest(eval (hitObject + "._x"), eval (hitObject + "._y"), true)) {
return(true);
}
return(false);
}
function Scan() {
if (hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
hitObject = "_level0.Thief";
hitType = "Thief";
return(true);
}
if (hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) {
hitObject = "_level0.Follower";
hitType = "Follower";
return(true);
}
Target = 0;
while (Target < 5) {
testObject = "_level0.Enemy" + Target;
if ((hitTest(eval (testObject + "._x"), eval (testObject + "._y"), true) && (eval (testObject + ".Grounded"))) && (eval (testObject + ".Vulerable"))) {
hitObject = testObject;
hitType = "Enemy";
return(true);
}
Target++;
}
return(false);
}
Activated = true;
Symbol 1526 MovieClip Frame 3
_visible = true;
if ((AutoTrigger == "False") || ((!Activated) && (hitObject == "_level0.Thief"))) {
stop();
}
Symbol 1526 MovieClip Frame 4
Activated = true;
hitObject = "None";
if (AutoTrigger == "False") {
gotoAndPlay (10);
} else {
gotoAndPlay (17);
}
Symbol 1526 MovieClip Frame 11
Delay = getTimer();
Symbol 1526 MovieClip Frame 13
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
gotoAndPlay (24);
} else {
prevFrame();
play();
}
Symbol 1526 MovieClip Frame 18
if (Scan()) {
gotoAndPlay (10);
}
Symbol 1526 MovieClip Frame 19
prevFrame();
play();
Symbol 1526 MovieClip Frame 24
Scale = 100;
FallFactor = 2;
Symbol 1526 MovieClip Frame 26
Scale = Scale - FallFactor;
if (hitObject == "None") {
Scan();
if (Activated) {
gotoAndPlay (24);
} else {
stop();
}
} else if (Captured()) {
setProperty(hitObject, _xscale , Scale);
setProperty(hitObject, _yscale , Scale);
prevFrame();
play();
} else {
setProperty(hitObject, _xscale , 100);
setProperty(hitObject, _yscale , 100);
hitObject = "None";
gotoAndPlay (24);
}
Symbol 1526 MovieClip Frame 30
if (Captured()) {
Activated = false;
if (hitType == "Thief") {
with (_level0.Thief) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("FreeFall");
}
}
} else if (hitType == "Follower") {
with (_level0.Follower) {
State = "Death";
Activated = false;
}
} else if (hitType == "Enemy") {
with (eval (hitObject)) {
gotoAndPlay("Death");
with (Sprite.Sprite) {
gotoAndPlay("FallToDeath");
}
PainRebound = 0;
}
}
} else {
setProperty(hitObject, _xscale , "100");
setProperty(hitObject, _yscale , "100");
hitObject = "None";
stop();
}
Symbol 1526 MovieClip Frame 31
Scale = Scale - FallFactor;
FallFactor = FallFactor + 1;
setProperty(hitObject, _xscale , Scale);
setProperty(hitObject, _yscale , Scale);
Symbol 1526 MovieClip Frame 32
if (70 >= Scale) {
setProperty(hitObject, _visible , false);
} else {
prevFrame();
play();
}
Symbol 1526 MovieClip Frame 38
if (hitType == "Thief") {
if (FallToDeath == "True") {
_level0.ThiefHealth.Damage = _level0.Thief.ThiefHealth;
_level0.Thief.State = "StandStill";
} else {
setProperty(hitObject, _xscale , 100);
setProperty(hitObject, _yscale , 100);
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Damage;
with (eval ("_level0." + Teleport)) {
gotoAndPlay("Teleport");
}
}
}
Symbol 1526 MovieClip Frame 39
stop();
Symbol 1527 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1527 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1527 MovieClip Frame 4
prevFrame();
play();
Symbol 1527 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1527 MovieClip Frame 8
prevFrame();
play();
Symbol 1527 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1527 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1527 MovieClip Frame 37
stop();
Symbol 1527 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1528 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1528 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1528 MovieClip Frame 6
prevFrame();
play();
Symbol 1528 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1528 MovieClip Frame 10
prevFrame();
play();
Symbol 1528 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1528 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1528 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1529 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1529 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1529 MovieClip Frame 6
prevFrame();
play();
Symbol 1529 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1529 MovieClip Frame 10
prevFrame();
play();
Symbol 1529 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1529 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1529 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1530 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1530 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1530 MovieClip Frame 4
prevFrame();
play();
Symbol 1530 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1530 MovieClip Frame 8
prevFrame();
play();
Symbol 1530 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1530 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1530 MovieClip Frame 37
stop();
Symbol 1530 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1531 MovieClip Frame 3
stop();
Symbol 1531 MovieClip Frame 4
Count = 0;
while (Count < Trigger.length) {
with (eval ("_level0." + Trigger[Count])) {
play();
}
Count++;
}
Symbol 1531 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1532 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1532 MovieClip Frame 2
Current = 0;
stop();
Symbol 1532 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1532 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1532 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1532 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1533 MovieClip Frame 1
SpanWidth = 30;
CurrentAction = -1;
InSight = false;
homex = _x;
homey = _y;
homer = _rotation;
Activated = true;
Vulerable = true;
Damage = 0;
PainRebound = 0;
Grounded = true;
inAlert = true;
Coord = new object();
Symbol 1533 MovieClip Frame 2
Register = 0;
while (eval (("_level0.Enemy" + Register) + ".Activated")) {
Register++;
}
_name = ("Enemy" + Register);
Symbol 1533 MovieClip Frame 4
if (Lurk == "True") {
with (Sprite.Sprite) {
gotoAndPlay("Lurking");
}
with (FOV) {
gotoAndPlay("Lurking");
}
with (Sprite) {
gotoAndPlay("Alert");
}
} else {
gotoAndPlay (25);
}
Symbol 1533 MovieClip Frame 5
Vulearable = false;
stop();
Symbol 1533 MovieClip Frame 15
with (FOV) {
gotoAndPlay("Idle");
}
Vulerable = true;
gotoAndPlay (25);
Symbol 1533 MovieClip Frame 25
CurrentAction = CurrentAction + 1;
if (!Vulerable) {
Vulerable = true;
}
if (ActionSet[CurrentAction] == "Recall") {
CurrentAction = Property[CurrentAction];
}
TargetProperty = Property[CurrentAction];
if (InSight) {
gotoAndPlay (104);
} else {
gotoAndPlay(ActionSet[CurrentAction]);
}
Symbol 1533 MovieClip Frame 40
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Delay = getTimer();
Symbol 1533 MovieClip Frame 41
if ((getTimer() - Delay) >= (TargetProperty * 100)) {
gotoAndPlay (25);
}
Symbol 1533 MovieClip Frame 42
prevFrame();
play();
Symbol 1533 MovieClip Frame 50
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1533 MovieClip Frame 51
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
TargetProperty = TargetProperty - Speed;
if (0 >= TargetProperty) {
gotoAndPlay (25);
}
Symbol 1533 MovieClip Frame 52
prevFrame();
play();
Symbol 1533 MovieClip Frame 60
Orientation = 1;
gotoAndPlay (94);
Symbol 1533 MovieClip Frame 75
Orientation = -1;
gotoAndPlay (94);
Symbol 1533 MovieClip Frame 94
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
Symbol 1533 MovieClip Frame 95
_rotation = (_rotation + (Orientation * Rotation));
if ((Math.abs(_rotation - TargetProperty) < Rotation) || (((Math.abs(_rotation) + Math.abs(TargetProperty)) + Rotation) >= 360)) {
_rotation = TargetProperty;
gotoAndPlay (25);
}
Symbol 1533 MovieClip Frame 96
prevFrame();
play();
Symbol 1533 MovieClip Frame 104
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1533 MovieClip Frame 105
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - (Rotation * 3));
} else {
_rotation = (_rotation + (Rotation * 3));
}
if ((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (111);
}
Symbol 1533 MovieClip Frame 106
prevFrame();
play();
Symbol 1533 MovieClip Frame 111
with (Sprite.Sprite) {
gotoAndPlay("Grapple");
}
hitObject = "Nothing";
TargetProperty = 10;
Symbol 1533 MovieClip Frame 118
Orientation = (_rotation / 180) * Math.PI;
if (hitObject != "Nothing") {
if (hitObject == "_level0.Thief") {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
} else {
with (eval (hitObject)) {
State = "Disabled";
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
gotoAndPlay (128);
}
_x = (getProperty(hitObject, _x) - Math.round(Math.cos(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
_y = (getProperty(hitObject, _y) - Math.round(Math.sin(Orientation) * (eval (hitObject + ".SpanWidth") + 20)));
} else {
_x = (_x + Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y + Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Coord.x = Sprite.Sprite.GrabHand._x;
Coord.y = Sprite.Sprite.GrabHand._y;
localToGlobal(Coord);
if (hitObject == "Nothing") {
if ((_level0.Follower.BumpMap.hitTest(Coord.x, Coord.y, true) && (_level0.Follower.Activated)) && (_level0.Follower.State != "Death")) {
hitObject = "_level0.Follower";
_level0.Follower.HeldAmount++;
}
if ((Sprite.Sprite.GrabHand.hitTest(_level0.Thief.BumpMap) && (_level0.ThiefSecInv.ActiveItem != 3)) && (_level0.Thief.State != "Death")) {
hitObject = "_level0.Thief";
}
}
Symbol 1533 MovieClip Frame 119
prevFrame();
play();
Symbol 1533 MovieClip Frame 128
if (hitObject == "Nothing") {
gotoAndPlay (146);
} else {
with (eval (hitObject)) {
State = "Bounded";
TargetProperty = Strength + 3;
}
with (Sprite.Sprite) {
gotoAndPlay("Reel In");
}
with (Sprite) {
gotoAndPlay("Disabled");
}
}
Symbol 1533 MovieClip Frame 129
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * 6));
_y = (_y + Math.round(Math.sin(Orientation) * 6));
Symbol 1533 MovieClip Frame 130
prevFrame();
play();
Symbol 1533 MovieClip Frame 136
_x = getProperty(hitObject, _x);
_y = getProperty(hitObject, _y);
if ((eval (hitObject + ".State") == "Eject") || (eval (hitObject + ".State") == "Pain")) {
gotoAndPlay (140);
}
Symbol 1533 MovieClip Frame 137
prevFrame();
play();
Symbol 1533 MovieClip Frame 140
with (Sprite) {
gotoAndPlay("Alert");
with (Sprite) {
gotoAndPlay("Shove");
}
}
TargetProperty = 10;
Symbol 1533 MovieClip Frame 141
if (-5 >= TargetProperty) {
gotoAndPlay (146);
} else if (0 < TargetProperty) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - Math.round(Math.cos(Orientation) * TargetProperty));
_y = (_y - Math.round(Math.sin(Orientation) * TargetProperty));
}
TargetProperty--;
Symbol 1533 MovieClip Frame 142
prevFrame();
play();
Symbol 1533 MovieClip Frame 146
with (FOV) {
gotoAndPlay("Idle");
}
with (Sprite) {
gotoAndPlay("Idle");
with (Sprite) {
gotoAndPlay("Stand Still");
}
}
InSight = false;
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
Symbol 1533 MovieClip Frame 147
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
gotoAndPlay (155);
}
Symbol 1533 MovieClip Frame 148
prevFrame();
play();
Symbol 1533 MovieClip Frame 155
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
Symbol 1533 MovieClip Frame 156
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
distx = _x - homex;
disty = _y - homey;
Distance = Math.round(Math.sqrt((distx * distx) + (disty * disty)));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (!((Math.abs(_rotation - TargetAngle) < (Rotation * 3)) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + (Rotation * 3)) >= 360))) {
gotoAndPlay (146);
}
if ((Distance < (Speed * 2)) || (Distance < 10)) {
CurrentAction = -1;
TargetProperty = homer;
if (((homer < _rotation) && ((_rotation - homer) < 180)) || ((_rotation < homer) && ((homer - _rotation) >= 180))) {
Orientation = -1;
} else {
Orientation = 1;
}
gotoAndPlay (94);
}
Symbol 1533 MovieClip Frame 157
prevFrame();
play();
Symbol 1533 MovieClip Frame 164
with (Sprite.Sprite) {
gotoAndPlay("Front Pain");
}
Direction = -1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1533 MovieClip Frame 172
with (Sprite.Sprite) {
gotoAndPlay("Back Pain");
}
Direction = 1;
Health = Health - Damage;
gotoAndPlay (180);
Symbol 1533 MovieClip Frame 180
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1533 MovieClip Frame 181
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1533 MovieClip Frame 182
PainRebound--;
if (0 >= PainRebound) {
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (197);
} else {
Damaage = 0;
gotoAndPlay (104);
}
}
prevFrame();
play();
Symbol 1533 MovieClip Frame 186
Direction = -1;
Health = Health - Damage;
_rotation = (_level0.Thief._rotation + 180);
with (FOV) {
gotoAndPlay("Alert");
}
with (Sprite) {
gotoAndPlay("Alert");
}
with (Sprite.Sprite) {
gotoAndPlay("Chaingun Pain");
}
if (hitObject == "_level0.Follower") {
_level0.Follower.HeldAmount--;
}
if ((hitObject == "_level0.Thief") && (_level0.Thief.State == "Disabled")) {
_level0.Thief.State = "StandStill";
}
Symbol 1533 MovieClip Frame 187
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
Symbol 1533 MovieClip Frame 188
PainRebound--;
if (0 >= Health) {
PainRebound = 5;
if (Direction == -1) {
with (Sprite.Sprite) {
gotoAndPlay("Front Death");
}
} else {
with (Sprite.Sprite) {
gotoAndPlay("Back Death");
}
}
gotoAndPlay (207);
}
if (0 >= PainRebound) {
Damage = 0;
gotoAndPlay (104);
}
prevFrame();
play();
Symbol 1533 MovieClip Frame 197
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * 20));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * 20));
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1533 MovieClip Frame 198
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round((Math.cos(Orientation) * Direction) * PainRebound));
_y = (_y + Math.round((Math.sin(Orientation) * Direction) * PainRebound));
}
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1533 MovieClip Frame 199
prevFrame();
play();
Symbol 1533 MovieClip Frame 207
PainRebound = 5;
SpanWidth = 80;
Vulerable = false;
_root.GameRecord.Killed();
with (Sprite.Sprite) {
gotoAndPlay("Violent Death");
}
with (FOV) {
gotoAndPlay("Disabled");
}
with (Sprite) {
gotoAndPlay("Death");
}
Symbol 1533 MovieClip Frame 208
PainRebound--;
if (!Activated) {
with (Sprite) {
gotoAndPlay("Disabled");
}
stop();
}
Symbol 1533 MovieClip Frame 209
prevFrame();
play();
Symbol 1533 MovieClip Frame 220
Sprite.gotoAndPlay("Disabled");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = false;
stop();
Symbol 1533 MovieClip Frame 230
CurrentAction = -1;
Sprite.gotoAndPlay("Idle");
Sprite.Sprite.gotoAndPlay("Stand Still");
FOV._visible = true;
gotoAndPlay (25);
Symbol 1534 MovieClip Frame 1
function explode() {
if (hitTest(_level0.Thief.BumpMap)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_x >= _level0.Thief._x) {
if (_level0.Thief._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = TargetAngle + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Math.round(Damage / 2);
}
if (hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Follower._y) / (_x - _level0.Follower._x)) * 180) / Math.PI);
if (_x >= _level0.Follower._x) {
if (_level0.Follower._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = TargetAngle + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Damage / 2);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Math.round(Damage / 2));
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
}
Activated = false;
Exist = true;
Symbol 1534 MovieClip Frame 2
SpanWidth = 20;
if (_name.substr(0, 5) != "Proje") {
Register = 0;
while (eval (("_level0.Projectile" + Register) + ".Exist")) {
Register++;
}
_name = ("Projectile" + Register);
}
stop();
Symbol 1534 MovieClip Frame 3
Activated = true;
Symbol 1534 MovieClip Frame 5
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + Math.round(Math.cos(Orientation) * Speed));
_y = (_y + Math.round(Math.sin(Orientation) * Speed));
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (7);
}
if (_level0.Follower.Activated) {
if (BumpMap.hitTest(_level0.Follower.BumpMap)) {
gotoAndPlay (7);
}
}
Target = 0;
while (Target < 5) {
if (eval (("_level0.Enemy" + Target) + ".Activated")) {
if (BumpMap.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap"))) {
gotoAndPlay (7);
}
}
Target++;
}
Symbol 1534 MovieClip Frame 6
prevFrame();
play();
Symbol 1534 MovieClip Frame 8
Activated = false;
stop();
Symbol 1535 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1535 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1535 MovieClip Frame 6
prevFrame();
play();
Symbol 1535 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1535 MovieClip Frame 10
prevFrame();
play();
Symbol 1535 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1535 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1535 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1536 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1536 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1536 MovieClip Frame 6
prevFrame();
play();
Symbol 1536 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1536 MovieClip Frame 10
prevFrame();
play();
Symbol 1536 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1536 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1536 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1537 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1537 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1537 MovieClip Frame 4
prevFrame();
play();
Symbol 1537 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1537 MovieClip Frame 8
prevFrame();
play();
Symbol 1537 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1537 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1537 MovieClip Frame 37
stop();
Symbol 1537 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1542 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1542 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1542 MovieClip Frame 6
prevFrame();
play();
Symbol 1542 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1542 MovieClip Frame 10
prevFrame();
play();
Symbol 1542 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1542 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1542 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1543 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1543 MovieClip Frame 2
stop();
Symbol 1543 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1543 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1543 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1543 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1543 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1543 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1544 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1544 MovieClip Frame 2
Current = 0;
stop();
Symbol 1544 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1544 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1544 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1544 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1546 MovieClip Frame 1
_visible = false;
Symbol 1546 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1546 MovieClip Frame 4
prevFrame();
play();
Symbol 1546 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1546 MovieClip Frame 8
stop();
Symbol 1547 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1547 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1547 MovieClip Frame 6
prevFrame();
play();
Symbol 1547 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1547 MovieClip Frame 10
prevFrame();
play();
Symbol 1547 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1547 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1547 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1548 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1548 MovieClip Frame 2
Current = 0;
stop();
Symbol 1548 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1548 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1548 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1548 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1549 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1549 MovieClip Frame 2
stop();
Symbol 1549 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1549 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1549 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1549 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1549 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1549 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1550 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1550 MovieClip Frame 2
Current = 0;
stop();
Symbol 1550 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1550 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1550 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1550 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1551 MovieClip Frame 3
stop();
Symbol 1551 MovieClip Frame 4
Delay = getTimer();
Symbol 1551 MovieClip Frame 6
if (getTimer() < (Delay + (ActivationDelay * 100))) {
prevFrame();
play();
}
Symbol 1551 MovieClip Frame 7
with (eval ("_level0." + Trigger)) {
play();
}
gotoAndPlay (2);
Symbol 1552 MovieClip Frame 3
stop();
Symbol 1552 MovieClip Frame 4
Delay = getTimer();
Symbol 1552 MovieClip Frame 6
if (getTimer() < (Delay + (ActivationDelay * 100))) {
prevFrame();
play();
}
Symbol 1552 MovieClip Frame 7
with (eval ("_level0." + Trigger)) {
play();
}
gotoAndPlay (2);
Symbol 1553 MovieClip Frame 3
stop();
Symbol 1553 MovieClip Frame 4
Count = 0;
while (Count < Trigger.length) {
with (eval ("_level0." + Trigger[Count])) {
play();
}
Count++;
}
Symbol 1553 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1554 MovieClip Frame 3
stop();
Symbol 1554 MovieClip Frame 4
Delay = getTimer();
Symbol 1554 MovieClip Frame 6
if (getTimer() < (Delay + (ActivationDelay * 100))) {
prevFrame();
play();
}
Symbol 1554 MovieClip Frame 7
with (eval ("_level0." + Trigger)) {
play();
}
gotoAndPlay (2);
Symbol 1556 MovieClip Frame 2
stop();
Symbol 1556 MovieClip Frame 3
with (_level0.Enemy0) {
Sprite.gotoAndPlay("No Check");
Sprite.Sprite.gotoAndPlay("StandStill");
State = "Cinametics";
Health = -1;
stop();
}
stop();
Symbol 1587 MovieClip Frame 30
gotoAndPlay (1);
Symbol 1587 MovieClip Frame 51
gotoAndPlay (32);
Symbol 1587 MovieClip Frame 62
var LocationCalculation = new object();
LocationCalculation.x = WandLocation._x;
LocationCalculation.y = WandLocation._y;
localToGlobal(LocationCalculation);
_parent._parent.explode(LocationCalculation.x, LocationCalculation.y);
Symbol 1587 MovieClip Frame 64
var LocationCalculation = new object();
LocationCalculation.x = WandLocation._x;
LocationCalculation.y = WandLocation._y;
localToGlobal(LocationCalculation);
_parent._parent.explode(LocationCalculation.x, LocationCalculation.y);
Symbol 1587 MovieClip Frame 66
var LocationCalculation = new object();
LocationCalculation.x = WandLocation._x;
LocationCalculation.y = WandLocation._y;
localToGlobal(LocationCalculation);
_parent._parent.launchMissile(LocationCalculation.x, LocationCalculation.y);
Symbol 1587 MovieClip Frame 76
_parent._parent.restore();
Symbol 1587 MovieClip Frame 77
stop();
Symbol 1587 MovieClip Frame 90
stop();
Symbol 1587 MovieClip Frame 111
_parent._parent.callTeleport();
Symbol 1587 MovieClip Frame 124
_parent._parent.restore();
stop();
Symbol 1588 MovieClip Frame 1
stop();
Symbol 1588 MovieClip Frame 11
_rotation = (-_parent._rotation);
Symbol 1588 MovieClip Frame 12
prevFrame();
play();
Symbol 1589 MovieClip Frame 1
if (BumpMap.hitTest(_level0.Thief.BumpMap)) {
var xdiff = (_parent._x - _level0.Thief._x);
var ydiff = (_parent._y - _level0.Thief._y);
_level0.Thief._x = _parent._x + _root.angleToX(_root.distanceAngle(xdiff, ydiff), _parent.spanwidth + _level0.Thief.spanwidth);
_level0.Thief._y = _parent._y + _root.angleToY(_root.distanceAngle(xdiff, ydiff), _parent.spanwidth + _level0.Thief.spanwidth);
}
prevFrame();
play();
Symbol 1589 MovieClip Frame 2
prevFrame();
play();
Symbol 1589 MovieClip Frame 11
prevFrame();
play();
Symbol 1590 MovieClip Frame 1
function moveForward(speed) {
_x = (_x + _root.angleToX(_rotation, speed));
_y = (_y + _root.angleToY(_rotation, speed));
}
function decideAction() {
var diffx = (_x - _level0.Thief._x);
var diffy = (_y - _level0.Thief._y);
if (Math.random() < 0.2) {
gotoAndPlay (25);
} else {
gotoAndPlay (40);
}
}
function explode(startX, startY) {
if (_level0.Thief.BumpMap.hitTest(startX, startY, false) && (_level0.Thief.state != "Dead")) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 10;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + Math.round(Str / 3);
}
if (_level0.Follower.BumpMap.hitTest(startX, startY, false) && (_level0.Follower.Activated)) {
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 10;
_level0.Follower._rotation = _rotation + 180;
_level0.Follower.Health = _level0.Follower.Health - Math.round(Str / 3);
}
}
function callTeleport() {
if (State != "Cinametics") {
_x = (_root.TeleportArea._x + parseInt(Math.random() * _root.TeleportArea._width));
_y = (_root.TeleportArea._y + parseInt(Math.random() * _root.TeleportArea._height));
} else {
Sprite.Sprite.stop();
}
}
function launchMissile(startX, startY) {
MissileLaunchX = startX;
MissileLaunchY = startY;
explode(startX, startY);
gotoAndPlay (70);
}
function restore() {
if (State != "Cinametics") {
gotoAndPlay (15);
}
}
function callStrike() {
if (Sprite.Sprite.StrikePt.hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State != "Death")) {
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 6;
_level0.Thief._rotation = _rotation + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + 2;
}
}
function callDeath() {
gotoAndPlay (1);
}
SpanWidth = 28;
TargetProperty = 0;
PainRebound = 0;
Damage = 0;
State = "Normal";
Vulerable = true;
Activated = true;
Dex = 6;
Str = 6;
MaxAlert = 30;
Health = MaxHealth;
MissileLaunchX = 0;
MissileLaunchY = 0;
LaunchedMissiles = 0;
Counter = 0;
inAlert = true;
Symbol 1590 MovieClip Frame 2
_name = "Enemy0";
Symbol 1590 MovieClip Frame 6
State = "StandBy";
stop();
Symbol 1590 MovieClip Frame 15
Sprite.Sprite.gotoAndPlay("Stand Still");
Symbol 1590 MovieClip Frame 16
decideAction();
Symbol 1590 MovieClip Frame 25
Sprite.Sprite.gotoAndPlay("Phase Out");
stop();
Symbol 1590 MovieClip Frame 40
var diffx = (_x - _level0.Thief._x);
var diffy = (_y - _level0.Thief._y);
var DestAngle = _root.distanceAngle(diffx, diffy);
if (!_root.angleInRange(_rotation, DestAngle, Dex * 3)) {
_rotation = (_rotation + ((_root.angleTurnDirection(_rotation, DestAngle) * Dex) * 3));
} else {
gotoAndPlay (55);
}
Symbol 1590 MovieClip Frame 41
prevFrame();
play();
Symbol 1590 MovieClip Frame 55
Sprite.Sprite.gotoAndPlay("Attack");
stop();
Symbol 1590 MovieClip Frame 70
_root.attachMovie("LathaniaMissile", "newMissile", Counter++);
_root.newMissile._x = MissileLaunchX;
_root.newMissile._y = MissileLaunchY;
_root.newMissile._rotation = _rotation;
LaunchedMissiles++;
stop();
Symbol 1590 MovieClip Frame 101
if (0 >= Health) {
gotoAndPlay (5);
}
Sprite.Sprite.gotoAndPlay("Shield");
_rotation = (_level0.Thief._rotation + 180);
Health = Health - Damage;
if (0 >= Health) {
eval ("_root." + DeathAction).play();
gotoAndPlay (5);
}
Symbol 1590 MovieClip Frame 102
moveForward(-PainRebound);
PainRebound--;
if (0 >= PainRebound) {
gotoAndPlay (25);
}
Symbol 1590 MovieClip Frame 103
prevFrame();
play();
Symbol 1590 MovieClip Frame 116
Sprite.gotoAndPlay("No Check");
Sprite.Sprite.gotoAndPlay("StandStill");
State = "Cinametics";
stop();
Symbol 1590 MovieClip Frame 126
if (0 < Health) {
Sprite.Sprite.gotoAndPlay("Stand Still");
Sprite.gotoAndPlay("Check");
gotoAndPlay (5);
}
Symbol 1591 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1591 MovieClip Frame 2
stop();
Symbol 1591 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1591 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1591 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1591 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1591 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1591 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1594 MovieClip Frame 1
stop();
Symbol 1596 MovieClip Frame 1
stop();
Symbol 1597 MovieClip Frame 1
_visible = false;
Symbol 1597 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1597 MovieClip Frame 4
prevFrame();
play();
Symbol 1597 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1597 MovieClip Frame 8
stop();
Symbol 1598 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1598 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1598 MovieClip Frame 6
prevFrame();
play();
Symbol 1598 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1598 MovieClip Frame 10
prevFrame();
play();
Symbol 1598 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1598 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1598 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1599 MovieClip Frame 1
_visible = false;
Symbol 1599 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1599 MovieClip Frame 4
prevFrame();
play();
Symbol 1599 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1599 MovieClip Frame 8
stop();
Symbol 1605 MovieClip Frame 1
if (Sprite.hitTest(_level0.Thief._x, _level0.Thief._y, true)) {
_parent.Activated = true;
}
if ((Sprite.hitTest(_level0.Follower._x, _level0.Follower._y, true) && (_level0.Follower.Activated)) && (_level0.Follower._visible)) {
_parent.Activated = true;
}
Target = 0;
while (Target < 5) {
if (Sprite.hitTest(eval (("_level0.Enemy" + Target) + "._x"), eval (("_level0.Enemy" + Target) + "._y"), true)) {
_parent.Activated = true;
}
Target++;
}
Symbol 1605 MovieClip Frame 2
prevFrame();
play();
Symbol 1623 MovieClip Frame 14
with (_parent) {
Activated = false;
}
Symbol 1623 MovieClip Frame 25
stop();
Symbol 1624 MovieClip Frame 1
Trip._alpha = 0;
Symbol 1624 MovieClip Frame 2
Activated = false;
if (AutoTrigger == "True") {
gotoAndPlay (11);
} else {
stop();
}
Symbol 1624 MovieClip Frame 3
Activated = true;
if (ActivationDelay == 0) {
gotoAndPlay (28);
} else {
gotoAndPlay (20);
}
Symbol 1624 MovieClip Frame 12
if ((Sense.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (Detectable == "True")) && (_level0.Thief.State == "Crouched")) {
Trip._alpha = 100;
}
if (Activated) {
if (0 < ActivationDelay) {
gotoAndPlay (20);
} else {
gotoAndPlay (28);
}
} else {
prevFrame();
play();
}
Symbol 1624 MovieClip Frame 20
Delay = getTimer();
Symbol 1624 MovieClip Frame 22
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
gotoAndPlay (28);
} else {
prevFrame();
play();
}
Symbol 1624 MovieClip Frame 28
trace("NO");
Symbol 1624 MovieClip Frame 34
if (Activated) {
if (Explode.hitTest(_level0.Thief.BumpMap)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_x >= _level0.Thief._x) {
if (_level0.Thief._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 13;
_level0.Thief._rotation = TargetAngle + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + (Damage / 3);
}
if (Explode.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Follower._y) / (_x - _level0.Follower._x)) * 180) / Math.PI);
if (_x >= _level0.Follower._x) {
if (_level0.Follower._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 13;
_level0.Follower._rotation = TargetAngle + 180;
_level0.Follower.Health = _level0.Follower.Health - (Damage / 3);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Damage / 3);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Damage / 3);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
gotoAndPlay (31);
} else {
stop();
}
Symbol 1625 MovieClip Frame 1
Trip._alpha = 0;
Symbol 1625 MovieClip Frame 2
Activated = false;
if (AutoTrigger == "True") {
gotoAndPlay (11);
} else {
stop();
}
Symbol 1625 MovieClip Frame 3
Activated = true;
if (ActivationDelay == 0) {
gotoAndPlay (28);
} else {
gotoAndPlay (20);
}
Symbol 1625 MovieClip Frame 12
if ((Sense.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (Detectable == "True")) && (_level0.Thief.State == "Crouched")) {
Trip._alpha = 100;
}
if (Activated) {
if (0 < ActivationDelay) {
gotoAndPlay (20);
} else {
gotoAndPlay (28);
}
} else {
prevFrame();
play();
}
Symbol 1625 MovieClip Frame 20
Delay = getTimer();
Symbol 1625 MovieClip Frame 22
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
gotoAndPlay (28);
} else {
prevFrame();
play();
}
Symbol 1625 MovieClip Frame 28
trace("NO");
Symbol 1625 MovieClip Frame 34
if (Activated) {
if (Explode.hitTest(_level0.Thief.BumpMap)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_x >= _level0.Thief._x) {
if (_level0.Thief._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 13;
_level0.Thief._rotation = TargetAngle + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + (Damage / 3);
}
if (Explode.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Follower._y) / (_x - _level0.Follower._x)) * 180) / Math.PI);
if (_x >= _level0.Follower._x) {
if (_level0.Follower._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 13;
_level0.Follower._rotation = TargetAngle + 180;
_level0.Follower.Health = _level0.Follower.Health - (Damage / 3);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Damage / 3);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Damage / 3);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
gotoAndPlay (31);
} else {
stop();
}
Symbol 1626 MovieClip Frame 1
Trip._alpha = 0;
Symbol 1626 MovieClip Frame 2
Activated = false;
if (AutoTrigger == "True") {
gotoAndPlay (11);
} else {
stop();
}
Symbol 1626 MovieClip Frame 3
Activated = true;
if (ActivationDelay == 0) {
gotoAndPlay (28);
} else {
gotoAndPlay (20);
}
Symbol 1626 MovieClip Frame 12
if ((Sense.hitTest(_level0.Thief._x, _level0.Thief._y, true) && (Detectable == "True")) && (_level0.Thief.State == "Crouched")) {
Trip._alpha = 100;
}
if (Activated) {
if (0 < ActivationDelay) {
gotoAndPlay (20);
} else {
gotoAndPlay (28);
}
} else {
prevFrame();
play();
}
Symbol 1626 MovieClip Frame 20
Delay = getTimer();
Symbol 1626 MovieClip Frame 22
if ((getTimer() - Delay) >= (ActivationDelay * 100)) {
gotoAndPlay (28);
} else {
prevFrame();
play();
}
Symbol 1626 MovieClip Frame 28
trace("NO");
Symbol 1626 MovieClip Frame 34
if (Activated) {
if (Explode.hitTest(_level0.Thief.BumpMap)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Thief._y) / (_x - _level0.Thief._x)) * 180) / Math.PI);
if (_x >= _level0.Thief._x) {
if (_level0.Thief._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Thief.State = "Pain";
_level0.Thief.TargetProperty = 13;
_level0.Thief._rotation = TargetAngle + 180;
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage + (Damage / 3);
}
if (Explode.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
TargetAngle = parseInt((Math.atan((_y - _level0.Follower._y) / (_x - _level0.Follower._x)) * 180) / Math.PI);
if (_x >= _level0.Follower._x) {
if (_level0.Follower._y < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
_level0.Follower.State = "Pain";
_level0.Follower.PainRebound = 13;
_level0.Follower._rotation = TargetAngle + 180;
_level0.Follower.Health = _level0.Follower.Health - (Damage / 3);
}
Target = 0;
while (Target < 5) {
if (hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Vulerable"))) {
if (0 >= getProperty("_level0.Enemy" + String(Target), _rotation)) {
SourceAngle = -getProperty("_level0.Enemy" + String(Target), _rotation);
} else {
SourceAngle = 360 - getProperty("_level0.Enemy" + String(Target), _rotation);
}
TargetAngle = parseInt((Math.atan((_y - getProperty("_level0.Enemy" + Target, _y)) / (_x - getProperty("_level0.Enemy" + Target, _x))) * 180) / Math.PI);
if (getProperty("_level0.Enemy" + Target, _x) < _x) {
if (getProperty("_level0.Enemy" + Target, _y) < _y) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (0 >= TargetAngle) {
TargetAngle = -TargetAngle;
} else {
TargetAngle = 360 - TargetAngle;
}
DifferenceAngle = Math.abs(SourceAngle - TargetAngle);
if (180 < DifferenceAngle) {
DifferenceAngle = 360 - DifferenceAngle;
}
if (DifferenceAngle < 90) {
Set(("_level0.Enemy" + Target) + ".Damage", Damage / 3);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Back Pain");
}
} else {
Set(("_level0.Enemy" + Target) + ".Damage", Damage / 3);
Set(("_level0.Enemy" + Target) + ".PainRebound", 10);
with (eval ("_level0.Enemy" + String(Target))) {
gotoAndPlay("Front Pain");
}
}
}
Target++;
}
gotoAndPlay (31);
} else {
stop();
}
Symbol 1627 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1627 MovieClip Frame 2
Current = 0;
stop();
Symbol 1627 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1627 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1627 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1627 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1628 MovieClip Frame 1
function PlayClip() {
ClipData.start(0, 0);
SoundStarted = true;
}
function StartClip() {
if (!Looping) {
ClipData.start(0, 999);
Looping = true;
SoundStarted = true;
}
}
function StopClip() {
if (SoundStarted) {
ClipData.stop(ClipName);
Looping = false;
SoundStarted = false;
}
}
function FadeClip() {
gotoAndPlay (10);
}
function SetVolume(param) {
ClipData.setVolume(parseInt(param));
}
ClipData = new Sound();
ClipData.attachSound(ClipName);
Looping = false;
SoundStarted = false;
Symbol 1628 MovieClip Frame 2
stop();
Symbol 1628 MovieClip Frame 3
PlayClip();
prevFrame();
Symbol 1628 MovieClip Frame 10
Volume = 100;
trace("setting Volume");
Symbol 1628 MovieClip Frame 12
Volume = Volume - 5;
ClipData.setVolume(Volume);
trace("Volume lowered to" + Volume);
if (0 >= Volume) {
stopClip();
ClipData.setVolume(100);
gotoAndStop (2);
} else {
prevFrame();
play();
}
Symbol 1628 MovieClip Frame 13
stop();
Symbol 1644 MovieClip Frame 1
_visible = false;
Symbol 1644 MovieClip Frame 3
Pressed = false;
if (hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Pressed && (SequenceRequest >= _root.Sequence)) {
Activated = false;
gotoAndPlay (6);
}
Symbol 1644 MovieClip Frame 4
prevFrame();
play();
Symbol 1644 MovieClip Frame 7
if (0 >= SequenceIncrease) {
_root.Sequence = _root.Sequence - SequenceIncrease;
} else {
_root.Sequence = SequenceIncrease;
}
with (eval ("_level0." + Trigger)) {
play();
}
Symbol 1644 MovieClip Frame 8
stop();
Symbol 1646 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 1646 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 1646 MovieClip Frame 3
prevFrame();
play();
Symbol 1647 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1647 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1647 MovieClip Frame 4
prevFrame();
play();
Symbol 1647 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1647 MovieClip Frame 8
prevFrame();
play();
Symbol 1647 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1647 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1647 MovieClip Frame 37
stop();
Symbol 1647 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1648 MovieClip Frame 1
function startEvent(Actor, Action, Constant) {
if ((Action == "Turn") || (Action == "SetVisible")) {
eval (Actor).gotoAndPlay("Stand Still");
} else if ((Action == "Movement") || (Action == "MoveTo")) {
eval (Actor).gotoAndPlay("Movement");
} else if (Action == "Special") {
eval (Actor).gotoAndPlay(Constant);
}
}
function callEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
eval (Actor)._rotation = eval (Actor)._rotation + parseInt(Constant);
if (_root.angleInRange(eval (Actor)._rotation, Parameter, Constant)) {
eval (Actor)._rotation = parseInt(Parameter);
}
return(Parameter);
}
if (Action == "Movement") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, Constant);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, Constant);
return(parseInt(Parameter) - parseInt(Constant));
}
if (Action == "MoveTo") {
var DestAngle = _root.distanceAngle(eval (Actor)._x - Constant, eval (Actor)._y - Parameter);
if (_root.angleInRange(eval (Actor)._rotation, DestAngle, 10)) {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, 8);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, 8);
} else {
eval (Actor)._rotation = eval (Actor)._rotation + (10 * _root.angleTurnDirection(eval (Actor)._rotation, DestAngle));
}
return(Parameter);
}
if (Action == "Speak") {
_root.CinemaScroll.Caption = Constant;
if (Parameter == "") {
return(getTimer());
}
return(Parameter);
}
if (Action == "Special") {
eval (Actor)._x = eval (Actor)._x + _root.angleToX(eval (Actor)._rotation, eval (Actor).cSlide);
eval (Actor)._y = eval (Actor)._y + _root.angleToY(eval (Actor)._rotation, eval (Actor).cSlide);
return(parseInt(Parameter) - 1);
}
if (Action == "SetVisible") {
if (Constant == "True") {
eval (Actor)._visible = true;
} else {
eval (Actor)._visible = false;
}
}
}
function checkEvent(Actor, Action, Constant, Parameter) {
if (Action == "Turn") {
return(_root.angleInRange(eval (Actor)._rotation, Parameter, Constant));
}
if (Action == "Movement") {
return(0 >= parseInt(Parameter));
}
if (Action == "MoveTo") {
return(10 >= _root.distanceCalculate(eval (Actor)._x - Constant, eval (Actor)._y - Parameter));
}
if (Action == "Speak") {
if (((Parameter + ((10 < Constant.length) ? (80 * Constant.length) : 800)) < getTimer()) && (Parameter != "")) {
_root.CinemaScroll.Caption = "";
trace("over");
return(true);
}
return(false);
}
if (Action == "Special") {
return(0 >= parseInt(Parameter));
}
return(true);
}
function endCinametics() {
var i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("End Cinametics");
i++;
}
_root.CinemaScroll.play();
_level0.DialogBox.Selection = 7;
gotoAndPlay (2);
}
Completed = new Array();
Subscribe[0] = "_level0.Thief.Sprite";
Subscribe[1] = "_level0.Enemy0.Sprite.Sprite";
Subscribe[2] = "_level0.Enemy1.Sprite.Sprite";
Subscribe[3] = "_level0.Enemy2.Sprite.Sprite";
Subscribe[4] = "_level0.Enemy3.Sprite.Sprite";
Subscribe[5] = "_level0.Enemy4.Sprite.Sprite";
Subscribe[6] = "_level0.Follower.Sprite.Sprite";
Pointer = 0;
SequenceCompleted = false;
CurrentParam = new Array();
Host = new Array();
Host[0] = "_level0.Thief";
Host[1] = "_level0.Enemy0";
Host[2] = "_level0.Enemy1";
Host[3] = "_level0.Enemy2";
Host[4] = "_level0.Enemy3";
Host[5] = "_level0.Enemy4";
Host[6] = "_level0.Follower";
Host[7] = Subscribe[7];
Host[8] = Subscribe[8];
Host[9] = Subscribe[9];
Symbol 1648 MovieClip Frame 2
stop();
Symbol 1648 MovieClip Frame 3
Pointer = 0;
i = 0;
while (i < 10) {
eval (Host[i]).gotoAndPlay("Cinametics");
i++;
}
_root.CinemaScroll.play();
Timer = getTimer();
Symbol 1648 MovieClip Frame 5
if (getTimer() < (Timer + 2000)) {
prevFrame();
play();
}
Symbol 1648 MovieClip Frame 6
gotoAndPlay (13);
Symbol 1648 MovieClip Frame 13
trace(Pointer);
i = 0;
while (i < 10) {
Completed[i] = false;
CurrentParam[i] = Param[i + (Pointer * 10)];
startEvent(Subscribe[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)]);
i++;
}
SequenceCompleted = false;
gotoAndPlay (23);
Symbol 1648 MovieClip Frame 23
if (Action[Pointer * 10] == "Recall") {
endCinametics();
}
SequenceCompleted = true;
i = 0;
while (i < 10) {
if (!Completed[i]) {
SequenceCompleted = false;
CurrentParam[i] = callEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
Completed[i] = checkEvent(Host[i], Action[i + (Pointer * 10)], Const[i + (Pointer * 10)], CurrentParam[i]);
}
i++;
}
Symbol 1648 MovieClip Frame 24
if (SequenceCompleted) {
Pointer++;
gotoAndPlay (13);
} else {
prevFrame();
play();
}
Symbol 1649 MovieClip Frame 3
stop();
Symbol 1649 MovieClip Frame 4
Count = 0;
while (Count < Trigger.length) {
with (eval ("_level0." + Trigger[Count])) {
play();
}
Count++;
}
Symbol 1649 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1652 MovieClip Frame 1
Activated = true;
if (Visible == "False") {
_visible = false;
}
Symbol 1652 MovieClip Frame 2
if (((hitTest(_level0.Thief.BumpMap) && (_level0.Thief.State == "Attack")) && (_level0.Thief.LastState != "Attack")) && (Activated)) {
Activated = false;
with (_level0.Thief.Sprite) {
gotoAndPlay("Manipulate");
}
with (Sprite) {
play();
}
}
Symbol 1652 MovieClip Frame 3
prevFrame();
play();
Symbol 1653 MovieClip Frame 1
if (Invisible == "True") {
_visible = false;
}
Symbol 1653 MovieClip Frame 3
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
with (Sprite) {
gotoAndPlay("Down");
}
Delay = getTimer();
Activated = false;
if (Invisible != "True") {
gotoAndPlay (13);
} else {
gotoAndPlay (6);
}
}
Symbol 1653 MovieClip Frame 4
prevFrame();
play();
Symbol 1653 MovieClip Frame 7
Pressed = false;
if (Sprite.hitTest(_level0.Thief.BumpMap)) {
Pressed = true;
}
if (Sprite.hitTest(_level0.Follower.BumpMap) && (_level0.Follower.Activated)) {
Pressed = true;
}
if (PlayerOnly != "True") {
Target = 0;
while (Target < 5) {
if ((Sprite.hitTest(eval (("_level0.Enemy" + Target) + ".Sprite.BumpMap")) && (eval (("_level0.Enemy" + Target) + ".Activated"))) && (eval (("_level0.Enemy" + Target) + ".Grounded"))) {
Pressed = true;
}
Target++;
}
}
if (Pressed) {
if ((((Delay + (ActivationDelay * 100)) < getTimer()) && (ActivationAmount != 0)) && (!Activated)) {
Activated = true;
ActivationAmount = ActivationAmount - 1;
with (eval ("_level0." + Trigger)) {
play();
}
if (HeldDown == "True") {
gotoAndPlay (36);
}
}
} else {
with (Sprite) {
gotoAndPlay("Up");
}
if (Invisible != "True") {
gotoAndPlay (25);
} else {
gotoAndPlay (2);
}
}
Symbol 1653 MovieClip Frame 8
prevFrame();
play();
Symbol 1653 MovieClip Frame 13
gotoAndPlay (6);
Symbol 1653 MovieClip Frame 25
gotoAndPlay (2);
Symbol 1653 MovieClip Frame 37
stop();
Symbol 1653 MovieClip Frame 38
with (Sprite) {
gotoAndPlay("Up");
}
gotoAndPlay (2);
Symbol 1654 MovieClip Frame 1
Source = "";
_visible = false;
Symbol 1654 MovieClip Frame 2
if (Type == "Primary") {
Sprite.gotoAndPlay("Inv" + parseInt(ItemNo));
} else if (Type == "Secondary") {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 5));
} else {
Sprite.gotoAndPlay("Inv" + String(parseInt(ItemNo) + 19));
}
UID = parseInt(UID);
if ((-1 < UID) && (_level0.UIR[UID])) {
gotoAndPlay (15);
}
Symbol 1654 MovieClip Frame 3
if (AutoTrigger == "False") {
stop();
}
Symbol 1654 MovieClip Frame 4
_visible = true;
if (Source.substr(0, 5) == "Enemy") {
_x = eval ("_level0." + Source)._x;
_y = eval ("_level0." + Source)._y;
}
Symbol 1654 MovieClip Frame 6
if (!hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
}
Symbol 1654 MovieClip Frame 7
if (Type == "Primary") {
_level0.ThiefPrimInv.Available[parseInt(ItemNo)] = _level0.ThiefPrimInv.Available[parseInt(ItemNo)] + parseInt(Amount);
_level0.MsgBox.initMessage(ItemNo, ((("You have recieved " + Amount) + " ") + _level0.HelpIndex.InvName[parseInt(ItemNo)]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
} else if (Type == "Secondary") {
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
} else {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
_level0.MsgBox.initMessage(parseInt(ItemNo) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
}
} else {
_level0.ThiefSpcInv.addItem(ItemNo);
_level0.MsgBox.initMessage(parseInt(ItemNo) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(ItemNo) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
_level0.DialogBox.reset();
}
KeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1654 MovieClip Frame 9
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
}
Symbol 1654 MovieClip Frame 10
_level0.Thief.KeyMode = KeyMode;
if (_level0.DialogBox.Selection == 0) {
gotoAndPlay (15);
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(parseInt(ItemNo));
gotoAndPlay (15);
}
Symbol 1654 MovieClip Frame 12
if (hitTest(_level0.Thief.BumpMap)) {
prevFrame();
play();
} else {
gotoAndPlay (5);
}
Symbol 1654 MovieClip Frame 16
stop();
if (-1 < UID) {
_level0.UIR[UID] = true;
}
Symbol 1654 MovieClip Frame 18
stop();
Symbol 1655 MovieClip Frame 1
_visible = false;
ForcedTeleport = false;
Symbol 1655 MovieClip Frame 5
if (hitTest(_level0.Thief.BumpMap)) {
if (0 < ActivationDelay) {
Delay = getTimer();
gotoAndPlay (9);
} else {
gotoAndPlay (14);
}
}
if (ForcedTeleport) {
gotoAndPlay (14);
}
Symbol 1655 MovieClip Frame 6
prevFrame();
play();
Symbol 1655 MovieClip Frame 9
if (!hitTest(_level0.Thief.BumpMap)) {
gotoAndPlay (5);
} else if ((Delay + (ActivationDelay * 100)) < getTimer()) {
gotoAndPlay (14);
}
Symbol 1655 MovieClip Frame 10
prevFrame();
play();
Symbol 1655 MovieClip Frame 14
ForcedTeleport = true;
if (_level0.Thief.State == "Death") {
stop();
} else {
with (_level0.Fade) {
play();
}
}
Symbol 1655 MovieClip Frame 17
_level0.Projectile5.resetAll();
trace(Destination);
setProperty("_level0.Thief", _visible , true);
if (_level0.Thief.State == "Disabled") {
_level0.Thief.State = "PainCrouch";
}
if (Destination != "Random") {
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
if (Follower.Activated) {
if (Follower.State == "OnHold") {
if (Follower.Location == Destination) {
Follower._visible = true;
} else {
Follower._visible = false;
}
} else {
Follower._visible = true;
Follower.Location = Destination;
}
}
_root.CurrentLocation = Destination;
gotoAndPlay(Destination);
}
} else {
RoomNumber = random((LastRoom - FirstRoom) + 1) + FirstRoom;
with (_level0) {
Thief.LastState = "Home";
Thief.HomePoint = HomePoint;
_root.CurrentLocation = "Room" + String(RoomNumber);
gotoAndPlay("Room" + String(RoomNumber));
}
}
Symbol 1655 MovieClip Frame 18
with (_level0.Fade) {
play();
}
gotoAndPlay (1);
Symbol 1656 MovieClip Frame 1
function fulfillRequirement(Type, Mod, Value) {
if ((Type == "Wis") && (_level0.ThiefSecInv.CurrentItem == 8)) {
return(Mod == "Grt");
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
if (Mod == "Grt") {
trace((eval ("_level0.Thief.Thief" + Type) + ">") + parseInt(Value));
return(parseInt(Value) < eval ("_level0.Thief.Thief" + Type));
}
return(eval ("_level0.Thief.Thief" + Type) < parseInt(Value));
}
if (Type == "HP") {
if (Mod == "Grt") {
return(parseInt(Value) < _level0.ThiefHealth.Health);
}
return(_level0.ThiefHealth.Health < parseInt(Value));
}
if (Type == "Flag") {
return(eval (("_level0." + Mod) + ".Set"));
}
if (Type == "Item") {
if (Mod == "Primary") {
return(0 < _level0.ThiefPrimInv.Available[parseInt(Value)]);
}
if (Mod == "Secondary") {
return(_level0.ThiefSecInv.CurrentItem == parseInt(Value));
}
return(_level0.ThiefSpcInv.Exist(parseInt(Value)));
}
if (Type == "Follower") {
if (_level0.Follower.Activated && (Mod == _level0.Follower.Character)) {
if ((Value == "Alive") && (_level0.Follower.State != "Death")) {
return(true);
}
if (((Value == "Active") && (_level0.Follower.State != "OnHold")) && (_level0.Follower.State != "Death")) {
return(true);
}
if ((Value == "Waiting") && (_level0.Follower.State == "OnHold")) {
return(true);
}
}
return(false);
}
return(true);
}
function setupDialog(Portrait, Name, Dialog) {
_level0.DialogBox.initPortrait(Portrait);
_level0.SaveScroll.hide();
if (Name == "None") {
_level0.DialogBox.CharacterName = "";
} else if (Name == "Player") {
_level0.DialogBox.CharacterName = _level0.Thief.ThiefName;
} else {
_level0.DialogBox.CharacterName = Name;
}
_level0.DialogBox.Dialog = Dialog;
}
function initResponse(Num, Type, Mod, Value, Dest) {
RspEvent[Num] = Type;
RspVar1[Num] = Mod;
RspVar2[Num] = Value;
RspGo[Num] = Dest;
}
function SetCurrent(Num) {
Num = parseInt(Num);
if (Num >= 0) {
Current = Num;
} else {
Current = Num;
_level0.DialogBox.close();
_level0.Thief.KeyMode = SavedKeyMode;
gotoAndPlay (2);
}
}
function callEvent(Type, Mod, Value, Dest) {
if (Type == "PrimaryInventory") {
_level0.ThiefPrimInv.Available[parseInt(Mod)] = _level0.ThiefPrimInv.Available[parseInt(Mod)] + parseInt(Value);
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(Mod, ((("You have recieved " + Value) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
} else {
_level0.MsgBox.initMessage(Mod, ((("You have lost " + (-parseInt(Value))) + " ") + _level0.HelpIndex.InvName[parseInt(Mod)]) + ".", "Continue");
}
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "SpecialInventory") {
if (0 < parseInt(Value)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.ThiefSpcInv.addItem(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (_level0.ThiefSpcInv.delItem(Mod)) {
_level0.MsgBox.initMessage(parseInt(Mod) + 19, ("You have lost a " + _level0.HelpIndex.InvName[parseInt(Mod) + 19]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
} else if (Type == "SecondaryInventory") {
Response = Mod;
if (_level0.ThiefSecInv.CurrentItem != 0) {
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ((("Do you wish to exchange your " + _level0.HelpIndex.InvName[_level0.ThiefSecInv.CurrentItem + 5]) + " for a ") + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + "?", "YesNo");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else {
_level0.ThiefSecInv.switchTo(Mod);
_level0.MsgBox.initMessage(parseInt(Mod) + 5, ("You have recieved a " + _level0.HelpIndex.InvName[parseInt(Mod) + 5]) + ".", "Continue");
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
}
} else if (Type == "Skill") {
_level0.MsgBox.initMessage(parseInt(Mod) + 15, ("You have learned " + _level0.HelpIndex.InvName[parseInt(Mod) + 15]) + ".", "Continue");
_level0.ThiefWeapon.addSkill(Mod);
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
gotoAndPlay (20);
} else if (Type == "YesNo") {
_level0.DialogBox.initResponse();
_level0.DialogBox.addResponse("Yes.");
_level0.DialogBox.addResponse("No.");
_level0.DialogBox.showResponse();
initResponse(0, "None", "0", "0", Mod);
initResponse(1, "None", "0", "0", Value);
Response = "Complex";
} else if (Type == "MultipleChoice") {
_level0.DialogBox.initResponse();
var j = 0;
i = parseInt(Mod);
while (parseInt(Value) >= i) {
if (fulfillRequirement(Prerequsite[i], PreVar1[i], PreVar2[i])) {
_level0.DialogBox.addResponse(Dialog[i]);
initResponse(j, Event[i], EvtVar1[i], EvtVar2[i], Goto[i]);
j++;
}
i++;
}
_level0.DialogBox.showResponse();
Response = "Complex";
} else if (Type == "Cinametics") {
_level0.DialogBox.Selection = -1;
SetCurrent(Dest);
_level0.DialogBox.reset();
_level0.DialogBox._visible = false;
eval ("_level0." + Mod).play();
gotoAndPlay (20);
} else {
if (Response == "None") {
_level0.DialogBox.initContinue();
}
SetCurrent(Dest);
Response = "Simple";
}
if (Type == "Save") {
_level0.DialogBox.initPortrait("None");
_level0.SaveScroll.SaveGame();
_level0.SaveScroll.show();
}
if ((((Type == "Str") || (Type == "Dex")) || (Type == "Wis")) || (Type == "Con")) {
Set("_level0.Thief.Thief" + Type, eval ("_level0.Thief.Thief" + Type) + parseInt(Mod));
_level0.Thief.resetStats();
}
if (Type == "HP") {
_level0.ThiefHealth.Damage = _level0.ThiefHealth.Damage - parseint(Mod);
}
if (Type == "Activate") {
eval ("_level0." + Mod).Source = Value;
with (eval ("_level0." + Mod)) {
play();
}
}
if (Type == "SkipAndPlay") {
_level0.gotoAndPlay(Mod);
}
if (Type == "Teleport") {
with (eval ("_level0." + Mod)) {
gotoAndPlay("Teleport");
}
}
if (Type == "Flag") {
if (Value == "True") {
Set(("_level0." + Mod) + ".Set", true);
} else if (Value == "False") {
Set(("_level0." + Mod) + ".Set", false);
} else {
with (eval ("_level0." + Mod)) {
toggle();
}
}
}
if (Type == "Follower") {
if (Mod == "Activate") {
with (_level0.Follower) {
State = "StandStill";
gotoAndPlay("Following");
}
} else if (Mod == "Terminate") {
_level0.Follower.Terminate();
} else if (Mod == "Health") {
_level0.Follower.Health = _level0.Follower.Health + parseInt(Value);
} else {
with (_level0.Follower) {
State = "OnHold";
gotoAndPlay("On Hold");
}
}
}
}
RspEvent = new Array();
RspVar1 = new Array();
RspVar2 = new Array();
RspGo = new Array();
Symbol 1656 MovieClip Frame 2
Current = 0;
stop();
Symbol 1656 MovieClip Frame 3
SavedKeyMode = _level0.Thief.KeyMode;
_level0.Thief.KeyMode = "Disabled";
Symbol 1656 MovieClip Frame 5
_level0.DialogBox.reset();
Response = "None";
if (fulfillRequirement(Prerequsite[Current], PreVar1[Current], PreVar2[Current])) {
if (Name[Current] != "NoDialog") {
trace(Current + " Event Successful & Displayed");
_level0.DialogBox._visible = true;
setupDialog(Portrait[Current], Name[Current], Dialog[Current]);
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
} else {
trace(Current + " Event Successful & Not Displayed");
callEvent(Event[Current], EvtVar1[Current], EvtVar2[Current], Goto[Current]);
gotoAndPlay (4);
}
} else {
trace(Current + " Event Failed");
SetCurrent(FailTo[Current]);
gotoAndPlay (4);
}
Symbol 1656 MovieClip Frame 7
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (Response == "Simple") {
gotoAndPlay (4);
} else {
gotoAndPlay (4);
callEvent(RspEvent[_level0.DialogBox.Selection], RspVar1[_level0.DialogBox.Selection], RspVar2[_level0.DialogBox.Selection], RspGo[_level0.DialogBox.Selection]);
}
Symbol 1656 MovieClip Frame 21
if (_level0.DialogBox.Selection == -1) {
prevFrame();
play();
} else if (_level0.DialogBox.Selection == 1) {
_level0.ThiefSecInv.switchTo(Response);
gotoAndPlay (4);
} else if ((_level0.DialogBox.Selection = 7)) {
_level0.DialogBox._visible = true;
gotoAndPlay (4);
} else {
gotoAndPlay (4);
}
Symbol 1657 MovieClip Frame 1
function Terminate() {
with (Sprite.Sprite) {
gotoAndPlay("Obscure Death");
}
gotoAndPlay (50);
}
State = "OnHold";
Activated = true;
Bounded = true;
Speed = 6;
Rotation = 10;
SpanWidth = 35;
PainRebound = 0;
Health = parseInt(Health);
HeldAmount = 0;
_name = "Follower";
Symbol 1657 MovieClip Frame 2
with (Sprite) {
gotoAndPlay(Character);
}
if (DefaultVisible == "False") {
_visible = false;
}
Symbol 1657 MovieClip Frame 5
if (State == "Pain") {
State = "OnHold";
}
if (State != "OnHold") {
gotoAndPlay (15);
}
if (_visible) {
distx = _level0.Thief._x - _x;
disty = _level0.Thief._y - _y;
Distance = Math.sqrt((distx * distx) + (disty * disty));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (Distance < SpanWidth) {
Orientation = ((TargetAngle + 180) / 180) * Math.PI;
_level0.Thief._x = _x + (Math.cos(Orientation) * SpanWidth);
_level0.Thief._y = _y + (Math.sin(Orientation) * SpanWidth);
}
}
Symbol 1657 MovieClip Frame 6
prevFrame();
play();
Symbol 1657 MovieClip Frame 15
if ((State == "Pain") && (LastState != "Pain")) {
with (Sprite.Sprite) {
gotoAndPlay("Pain");
}
}
LastState = State;
distx = _x - _level0.Thief._x;
disty = _y - _level0.Thief._y;
Distance = Math.sqrt((distx * distx) + (disty * disty));
TargetAngle = Math.round((Math.atan(disty / distx) * 180) / Math.PI);
if (distx >= 0) {
if (0 < disty) {
TargetAngle = TargetAngle - 180;
} else {
TargetAngle = TargetAngle + 180;
}
}
if (Distance < _level0.Thief.SpanWidth) {
Orientation = ((TargetAngle + 180) / 180) * Math.PI;
_x = (_level0.Thief._x + (Math.cos(Orientation) * SpanWidth));
_y = (_level0.Thief._y + (Math.sin(Orientation) * SpanWidth));
}
if ((State == "StandStill") || (State == "Movement")) {
if (_rotation != TargetAngle) {
if (((TargetAngle < _rotation) && ((_rotation - TargetAngle) < 180)) || ((_rotation < TargetAngle) && ((TargetAngle - _rotation) >= 180))) {
_rotation = (_rotation - Rotation);
} else {
_rotation = (_rotation + Rotation);
}
if ((Math.abs(_rotation - TargetAngle) < Rotation) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + Rotation) >= 360)) {
_rotation = TargetAngle;
}
}
if (Distance < 60) {
State = "StandStill";
}
if (100 < Distance) {
if ((Math.abs(_rotation - TargetAngle) < 90) || (((Math.abs(_rotation) + Math.abs(_TargetAngle)) + 90) >= 360)) {
State = "Movement";
}
}
}
if ((State == "StandStill") && (LastState != "StandStill")) {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
}
if ((State == "Movement") && (LastState != "Movement")) {
with (Sprite.Sprite) {
gotoAndPlay("Movement");
}
}
if (State == "Movement") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x + (Math.cos(Orientation) * Speed));
_y = (_y + (Math.sin(Orientation) * Speed));
}
if (State == "Pain") {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
PainRebound = PainRebound - 1;
if (0 >= PainRebound) {
if (0 >= Health) {
with (Sprite.Sprite) {
gotoAndPlay("Death");
}
gotoAndPlay (50);
} else {
with (Sprite.Sprite) {
gotoAndPlay("Stand Still");
}
State = "StandStill";
}
}
}
if ((State == "Bounded") && (0 >= HeldAmount)) {
State = "StandStill";
}
if (State == "Eject") {
with (Sprite.Sprite) {
gotoAndPlay("Death");
}
gotoAndPlay (50);
}
if ((State == "Bounded") && (0 >= Health)) {
State = "Eject";
}
Symbol 1657 MovieClip Frame 16
prevFrame();
play();
Symbol 1657 MovieClip Frame 25
stop();
Symbol 1657 MovieClip Frame 36
gotoAndPlay (5);
Symbol 1657 MovieClip Frame 50
PainRebound = 5;
SpanWidth = 60;
State = "Death";
Symbol 1657 MovieClip Frame 51
if (BumpMap.hitTest(_level0.Thief._x, _Level0.Thief._y, true)) {
Orientation = (_level0.Thief._rotation / 180) * Math.PI;
_level0.Thief._x = _level0.Thief._x - _level0.Thief.SpanWidth;
_level0.Thief._y = _level0.Thief._y - (Math.cos(Orientation) * _level0.Thief.SpanWidth);
}
if (0 < PainRebound) {
Orientation = (_rotation / 180) * Math.PI;
_x = (_x - (Math.cos(Orientation) * PainRebound));
_y = (_y - (Math.sin(Orientation) * PainRebound));
PainRebound = PainRebound - 1;
}
Symbol 1657 MovieClip Frame 52
if (!Activated) {
nextFrame();
} else {
prevFrame();
play();
}
Symbol 1657 MovieClip Frame 53
stop();