Frame 2
function CSElement(thetitle, thetext, theframe) {
this.title = thetitle;
this.text = thetext;
this.frame = theframe;
}
function addcs(thetitle, thetext, theframe) {
_root.cs.push(new CSElement(thetitle, thetext, theframe));
}
function Card() {
this.score = random(6) + 3;
this.suit = random(4) + 1;
this.assignment = 0;
}
function Technique(thename, theicon, thehita, thedama, thedefa, thetrump, thetrumpk, therule) {
this.name = thename;
this.icon = theicon;
this.hita = thehita;
this.dama = thedama;
this.defa = thedefa;
this.trump = thetrump;
this.trumpk = thetrumpk;
this.rule = therule;
}
function Attack(thename, theicon, thehitp, thehitd, thedamp, thedamd, thedefp, thedefd, therule) {
this.name = thename;
this.icon = theicon;
this.hitp = thehitp;
this.hitd = thehitd;
this.damp = thedamp;
this.damd = thedamd;
this.defp = thedefp;
this.defd = thedefd;
this.rule = therule;
}
function Monster(thename, thelevel, thehp, thefullicon, theidleicon, thekoicon) {
this.name = thename;
this.attacks = new Array();
this.level = thelevel;
this.hp = thehp;
this.fullicon = thefullicon;
this.idleicon = theidleicon;
this.koicon = thekoicon;
}
function Encounterite(thename, thehp, themaxhp, thelevel, thefullicon, theidleicon, thekoicon, theisgood) {
this.name = thename;
this.hp = thehp;
this.maxhp = themaxhp;
this.level = thelevel;
this.fullicon = thefullicon;
this.idleicon = theidleicon;
this.koicon = thekoicon;
this.attacks = new Array();
this.intention = -1;
this.target = -1;
this.ispup = 0;
this.ispoisoned = 0;
this.isstunned = false;
this.hitdown = 0;
this.damdown = 0;
this.defdown = 0;
this.isgood = theisgood;
this.went = false;
}
function Character(thename, thelevel, thebase, thetrump, thefullicon, theidleicon, thekoicon, theinparty) {
this.name = thename;
this.cards = new Array();
var i;
i = 1;
while (((5 + thelevel) - 1) >= i) {
this.cards.push(new Card());
if (this.cards.length == 8) {
break;
}
i++;
}
this.basetohit = 0;
this.basetodam = 0;
this.basetodef = 0;
if (4 < thelevel) {
this.basetohit = this.basetohit + (3 * (thelevel - 4));
this.basetodam = this.basetodam + (3 * (thelevel - 4));
this.basetodef = this.basetodef + (3 * (thelevel - 4));
}
this.level = thelevel;
this.currenthp = 40 + (this.level * 10);
this.maxhp = this.currenthp;
this.exp = 0;
i = 1;
while (this.level >= i) {
if (1 < i) {
this.exp = this.exp + (10 * (i - 1));
}
this.nextlevel = this.nextlevel + (10 * i);
i++;
}
if (thebase == 1) {
this.basetohit = this.basetohit + 4;
}
if (thebase == 2) {
this.basetodam = this.basetodam + 4;
}
if (thebase == 3) {
this.basetodef = this.basetodef + 4;
}
this.trump = thetrump;
this.techniques = new Array();
this.fullicon = thefullicon;
this.idleicon = theidleicon;
this.koicon = thekoicon;
this.isinparty = theinparty;
this.ptoken = 0;
this.itoken = 0;
}
stop();
fscommand ("showmenu", "false");
_root.musicplaying = "";
_root.mapname = "Castle";
_root.mapx = -9999;
_root.backto = "Travelling";
_root.cs = new Array();
_root.enc = new Array();
_root.plotpoint = 0;
_root.healpotions = 1;
_root.itokens = 0;
_root.ptokens = 0;
_root.gold = 2;
_root.addcs(null, null, "Absalom");
_root.addcs("Music", "Castle", "Castle");
_root.addcs("", "In the northern hills of the world, lies a small kingdom.", "Opening01");
_root.addcs("", "Consisting of but a few towns and the castle over them, its name is Nordin.", "Opening01");
_root.addcs("", "It is often preyed upon by thieves and warlords, but is protected..", "Opening01");
_root.addcs("", "..By the brave efforts of the king's guard.", "Opening01");
_root.addcs("", "Here, the story of the newest member of this guard is about to begin.", "Opening02");
_root.addcs("King Leonard", "Good morning, Emma - it speaks well of you to have come so quickly.", "Opening03");
_root.addcs("King Leonard", "Though this is your first mission, it is serious enough to force me..", "Opening05");
_root.addcs("King Leonard", "..To test you severely from the very beginning.", "Opening05");
_root.addcs("King Leonard", "Bandits have often grieved this tiny kingdom. However, in recent times..", "Opening04");
_root.addcs("King Leonard", "They have grown larger in number and stronger in force.", "Opening04");
_root.addcs("King Leonard", "If left unchecked, they will soon overrun the capital of Nordin Town.", "Opening04");
_root.addcs("King Leonard", "We will not allow this to continue any longer. Emma, I charge you this:", "Opening03");
_root.addcs("King Leonard", "Find the main bandit camp in the forests, and cut out the heart of their forces!", "Opening03");
_root.addcs("Emma", "I understand, your majesty!", "Opening06");
_root.addcs("Emma", "I won't allow it to continue anymore, either.", "Opening06");
_root.addcs("Emma", "I'll find their camp and scatter them justly!", "Opening06");
_root.combatlist = new Array();
_root.party = new Array();
_root.party.push(new Character("Emma", 1, 1, 1, "Emma", "EmmaIdle", "EmmaKO", true));
_root.party.push(new Character("Marthanne", 2, 3, 2, "Marthanne", "MarthanneIdle", "MarthanneKO", false));
_root.party.push(new Character("Hiro", 4, 2, 3, "Hiro", "HiroIdle", "HiroKO", false));
_root.party[0].techniques.push(new Technique("Rush Attack", "Emma01", -1, 2, 0, 4, 3, 0));
_root.party[0].techniques.push(new Technique("Cutter", "Emma02", 0, 0, 0, 1, 2, 0));
_root.party[0].techniques.push(new Technique("Poke", "Emma03", 0, -1, 2, 3, 4, 0));
_root.party[0].techniques.push(new Technique("Splendid", "Emma04", 0, 3, -3, 1, 3, 0));
_root.party[1].techniques.push(new Technique("Martial A", "Marthanne01", 0, 0, 0, 2, 2, 0));
_root.party[1].techniques.push(new Technique("Heal", "Marthanne02", 0, 0, 0, 2, 4, 1));
_root.party[1].techniques.push(new Technique("Martial B", "Marthanne03", 0, 0, 0, 2, 3, 0));
_root.party[1].techniques.push(new Technique("Blitz Dance", "Marthanne04", 0, 3, -3, 2, 3, 0));
_root.party[2].techniques.push(new Technique("Gunfire", "Hiro01", 0, 0, 0, 3, 3, 0));
_root.party[2].techniques.push(new Technique("Sharp Shot", "Hiro02", 0, 0, 0, 4, 2, 0));
_root.party[2].techniques.push(new Technique("Full Shot", "Hiro03", 0, 4, -6, 0, 0, 8));
_root.party[2].techniques.push(new Technique("Power Up", "Hiro04", 0, 0, -2, 4, 3, 9));
_root.monsters = new Array();
_root.monsters[0] = new Monster("Mushroom", 2, 35, "Mushroom", "MushroomIdle", "MushroomKO");
_root.monsters[0].attacks.push(new Attack("Box", "Mushroom01", 10, 2, 10, 2, 10, 1, 0));
_root.monsters[0].attacks.push(new Attack("Box", "Mushroom01", 10, 2, 10, 2, 10, 1, 0));
_root.monsters[0].attacks.push(new Attack("Uppercut", "Mushroom02", 10, 1, 10, 3, 10, 1, 0));
_root.monsters[1] = new Monster("EvilShroom", 4, 60, "EvilMushroom", "EvilMushroomIdle", "EvilMushroomKO");
_root.monsters[1].attacks.push(new Attack("Evil Box", "EvilMushroom01", 15, 4, 15, 2, 15, 2, 0));
_root.monsters[1].attacks.push(new Attack("Dark Blow", "EvilMushroom02", 15, 2, 15, 4, 15, 1, 0));
_root.monsters[1].attacks.push(new Attack("Stun Blow", "EvilMushroom02", 15, 2, 15, 3, 15, 1, 4));
_root.monsters[2] = new Monster("Bandit", 1, 30, "Bandit", "BanditIdle", "BanditKO");
_root.monsters[2].attacks.push(new Attack("Stab", "Bandit01", 10, 1, 5, 1, 10, 1, 0));
_root.monsters[3] = new Monster("Assassin", 6, 100, "Assassin", "AssassinIdle", "AssassinKO");
_root.monsters[3].attacks.push(new Attack("Thrust", "Assassin01", 12, 3, 12, 4, 12, 2, 0));
_root.monsters[3].attacks.push(new Attack("Thrust", "Assassin01", 12, 3, 12, 3, 12, 3, 0));
_root.monsters[3].attacks.push(new Attack("Poison Smoke", "Assassin02", 20, 4, 1, 0, 12, 1, 3));
_root.monsters[4] = new Monster("MadDog", 2, 30, "MadDog", "MadDogIdle", "MadDogKO");
_root.monsters[4].attacks.push(new Attack("Lunge", "MadDog01", 10, 2, 10, 2, 8, 1, 0));
_root.monsters[4].attacks.push(new Attack("Savage", "MadDog02", 0, 5, 0, 5, 5, 0, 0));
_root.monsters[5] = new Monster("Cryptos", 4, 60, "Cryptos", "CryptosIdle", "CryptosKO");
_root.monsters[5].attacks.push(new Attack("Zombie Strike", "Cryptos01", 15, 3, 15, 2, 15, 2, 0));
_root.monsters[5].attacks.push(new Attack("Cough", "Cryptos02", 15, 2, 10, 0, 15, 2, 3));
_root.monsters[6] = new Monster("Skarab", 3, 45, "Skarab", "SkarabIdle", "SkarabKO");
_root.monsters[6].attacks.push(new Attack("Bite", "Skarab01", 10, 2, 10, 3, 10, 3, 0));
_root.monsters[7] = new Monster("Golem", 6, 200, "Golem", "GolemIdle", "GolemKO");
_root.monsters[7].attacks.push(new Attack("Fist", "Golem01", 20, 3, 20, 3, 20, 3, 0));
_root.monsters[7].attacks.push(new Attack("Foot", "Golem02", 20, 3, 20, 4, 20, 2, 0));
Frame 4
function nextscene() {
gotoAndPlay (7);
}
fscommand ("showmenu", "false");
pretext = "";
pretext = pretext + "<P>";
pretext = pretext + "Welcome to Absalom..<BR>The SECOND true RPG to hit Newgrounds!</P>";
pretext = pretext + "<P> </P>";
pretext = pretext + "<P>";
pretext = pretext + "Yes, the second one. It's a little known fact that the first Newgrounds Flash RPG is an obscure entry called ";
pretext = pretext + "Merc For Hire. Well, sort of. It owed a lot to graphic adventures, and had fixed encounters, but it did appear to have a coherent ";
pretext = pretext + "system to it, and a fairly lengthy scenario.";
pretext = pretext + "</P>";
pretext = pretext + "<P> </P>";
pretext = pretext + "<P>";
pretext = pretext + "But I am happy to claim that Absalom is the game that will quench the fires of RPG desire in Newgrounds! ";
pretext = pretext + "It took a lot of hard work, perhaps too much, but Flash 5 is powerful enough to support a full-fledged RPG engine; ";
pretext = pretext + "and now you have it, loading in your browser window.";
pretext = pretext + "</P>";
pretext = pretext + "<P> </P>";
pretext = pretext + "<P>";
pretext = pretext + "But to be fair, here's a ceveat:<BR>";
pretext = pretext + "This RPG is going to have to be broken up into chapters. What you'll be playing here is Chapter 1. ";
pretext = pretext + "I didn't want to do this -- goodness knows Newgrounds gets upset over 'incomplete' entries -- but the fact is, Flash 5 ";
pretext = pretext + "starts to creak and groan once you get a few thousand lines of code in it, and if I didn't break the game up into chapters, ";
pretext = pretext + "I'd be looking forward to waiting 20 seconds for my Actions window to pop up when I wanted to write code.";
pretext = pretext + "</P>";
pretext = pretext + "<P> </P>";
pretext = pretext + "<P>";
pretext = pretext + "So you'll be getting this RPG in parts, with a password system linking the chapters together. ";
pretext = pretext + "Feel free to dump on me as much as you like for this shortfall. :)";
pretext = pretext + "</P>";
pretext = pretext + "<P> </P>";
pretext = pretext + "<P>";
pretext = pretext + "Special thanks first to Macromedia (the new scripting features are by far Flash 5's best part.) and Jester Interactive ";
pretext = pretext + "(who wrote MTV Music Generator, which for $20 is by far a better deal than anything music4flash.com can give you.)";
pretext = pretext + "</P>";
pretext = pretext + "<P> </P>";
pretext = pretext + "<P>";
pretext = pretext + "And thanks to Newgrounds too! It was your RPG fever that motivated me to make something cool with Flash, and all you pessimists saying ";
pretext = pretext + "such a thing would never exist served to renew my desire whenever I got tired - yes, the naysayers had an important role in this!";
pretext = pretext + "</P>";
pretext = pretext + "<P> </P>";
pretext = pretext + "<P>";
pretext = pretext + "The game will teach you the details of fighting and such. In order to move around and adventure, either click on ";
pretext = pretext + "the movement controls at the bottom of the viewing window, or click on various interesting things or people.";
pretext = pretext + "</P>";
pretext = pretext + "<P> </P>";
pretext = pretext + "<P>";
pretext = pretext + "Please enjoy Absalom!<BR>";
pretext = pretext + "<BR>";
pretext = pretext + "-Sean Givan";
pretext = pretext + "</P>";
Frame 5
function switchMap(iname, lorr) {
map.removeMovieClip();
trace("enc had been " + _root.enc);
map.attachMovie(iname, "themap", 0);
if (lorr == "left") {
map._x = 0 + int(map._width / 2);
} else {
map._x = 550 - int(map._width / 2);
}
_root.mapname = iname;
trace("enc is now now " + _root.enc);
}
function gotoFightScene() {
stopAllSounds();
_root.musicplaying = "";
gotoAndPlay (10);
}
function gotoCutScene() {
gotoAndPlay (7);
}
function gotoShop() {
gotoAndPlay (6);
}
function renderStats() {
var partysofar;
partysofar = 0;
_root.pt1._visible = false;
_root.pt2._visible = false;
_root.pt3._visible = false;
_root.it1._visible = false;
_root.it2._visible = false;
_root.it3._visible = false;
var z;
z = 0;
while (z < _root.party.length) {
if (_root.party[z].isinparty == true) {
partysofar++;
Set("party" + partysofar, (((((_root.party[z].name + ": L") + _root.party[z].level) + " HP ") + _root.party[z].currenthp) + "/") + _root.party[z].maxhp);
if (0 < _root.party[z].ptoken) {
eval ("_root.pt" + partysofar)._visible = true;
}
if (0 < _root.party[z].itoken) {
eval ("_root.it" + partysofar)._visible = true;
}
}
z++;
}
}
if (_root.mapx != -9999) {
map.removeMovieClip();
map.attachMovie(_root.mapname, "themap", 0);
map._x = _root.mapx;
} else {
_root.switchMap(_root.mapname, "left");
}
party1 = "";
party2 = "";
party3 = "";
renderStats();
Instance of Symbol 168 MovieClip "mpanel" in Frame 5
onClipEvent (load) {
sstop = 0;
left = -5;
farleft = -9;
right = 5;
farright = 9;
}
onClipEvent (load) {
function onSet(amt) {
mvalue = amt;
if (amt == 0) {
_root.walker.stop();
_root.itempanel._visible = true;
} else {
_root.walker.play();
_root.itempanel._visible = false;
}
}
mvalue = 0;
_root.itempanel._visible = true;
_root.walker.stop();
}
Frame 6
goldcount = ("your gold: " + _root.gold) + " gp";
stop();
Frame 7
bluemask._visible = false;
marktheframe = "";
cutscenetitle = "";
cutscenetext = "";
specflag = 0;
Frame 8
var cevent;
specflag = 0;
if (_root.cs.length == 0) {
gotoAndPlay (5);
}
trace("Processing..");
if (_root.cs[0].title == "Combat") {
trace("Combat event detected.");
cevent = _root.cs.shift();
delete cevent;
specflag = 1;
gotoAndPlay (9);
}
if ((_root.cs[0].title == "Music") && (specflag == 0)) {
trace("Music event detected.");
cevent = _root.cs.shift();
_root.musicbox.playMusic(cevent.text);
delete cevent;
specflag = 2;
gotoAndPlay (9);
}
if ((_root.cs[0].title == "EOF") && (specflag == 0)) {
trace("EOF event detected.");
cevent = _root.cs.shift();
delete cevent;
specflag = 3;
gotoAndPlay (9);
}
if (specflag == 0) {
trace("Normal event detected.");
cevent = _root.cs.shift();
trace(cevent.text);
if (cevent.title != null) {
cutscenetitle = cevent.title;
} else {
cutscenetitle = "";
}
if (cevent.text != null) {
cutscenetext = cevent.text;
} else {
cutscenetext = "";
}
if ((cevent.title != null) || (cevent.text != null)) {
bluemask._visible = true;
} else {
bluemask._visible = false;
}
if ((cevent.frame != null) && (cevent.frame != marktheframe)) {
_root.csplayer.gotoAndPlay(cevent.frame);
marktheframe = cevent.frame;
}
delete cevent;
}
stop();
Frame 9
if (specflag == 1) {
trace("About to leave for combat.");
stopAllSounds();
_root.musicplaying = "";
gotoAndPlay (10);
}
if (specflag == 3) {
trace("About to go to final scene.");
stopAllSounds();
_root.musicplaying = "";
gotoAndPlay (189);
}
if ((specflag == 0) || (specflag == 2)) {
trace("About to return to frame 2.");
gotoAndPlay (8);
}
Frame 35
goodnames1 = "";
evilnames1 = "";
goodnames2 = "";
evilnames2 = "";
goodnames3 = "";
evilnames3 = "";
goodnames1a = "";
goodnames2a = "";
goodnames3a = "";
evilnames1a = "";
evilnames2a = "";
evilnames3a = "";
var goodsofar;
var evilsofar;
goodsofar = 0;
evilsofar = 0;
good1._visible = false;
good2._visible = false;
good3._visible = false;
evil1._visible = false;
evil2._visible = false;
evil3._visible = false;
var z;
z = 0;
while (z < _root.combatlist.length) {
if (_root.combatlist[z].isgood == true) {
goodsofar++;
Set("goodnames" + goodsofar, eval ("goodnames" + goodsofar) + _root.combatlist[z].name);
Set(("goodnames" + goodsofar) + "a", eval (("goodnames" + goodsofar) + "a") + _root.combatlist[z].name);
eval ("good" + goodsofar)._visible = true;
eval ("good" + goodsofar).gotoAndStop(_root.combatlist[z].fullicon);
} else {
evilsofar++;
Set("evilnames" + evilsofar, eval ("evilnames" + evilsofar) + _root.combatlist[z].name);
Set(("evilnames" + evilsofar) + "a", eval (("evilnames" + evilsofar) + "a") + _root.combatlist[z].name);
eval ("evil" + evilsofar)._visible = true;
eval ("evil" + evilsofar).gotoAndStop(_root.combatlist[z].fullicon);
}
z++;
}
Frame 94
goodnames1 = "";
evilnames1 = "";
goodnames2 = "";
evilnames2 = "";
goodnames3 = "";
evilnames3 = "";
goodnames1a = "";
goodnames2a = "";
goodnames3a = "";
evilnames1a = "";
evilnames2a = "";
evilnames3a = "";
var goodsofar;
var evilsofar;
goodsofar = 0;
evilsofar = 0;
good1._visible = false;
good2._visible = false;
good3._visible = false;
evil1._visible = false;
evil2._visible = false;
evil3._visible = false;
var z;
z = 0;
while (z < _root.combatlist.length) {
if (_root.combatlist[z].isgood == true) {
goodsofar++;
Set("goodnames" + goodsofar, eval ("goodnames" + goodsofar) + _root.combatlist[z].name);
Set(("goodnames" + goodsofar) + "a", eval (("goodnames" + goodsofar) + "a") + _root.combatlist[z].name);
eval ("good" + goodsofar)._visible = true;
eval ("good" + goodsofar).gotoAndStop(_root.combatlist[z].fullicon);
} else {
evilsofar++;
Set("evilnames" + evilsofar, eval ("evilnames" + evilsofar) + _root.combatlist[z].name);
Set(("evilnames" + evilsofar) + "a", eval (("evilnames" + evilsofar) + "a") + _root.combatlist[z].name);
eval ("evil" + evilsofar)._visible = true;
eval ("evil" + evilsofar).gotoAndStop(_root.combatlist[z].fullicon);
}
z++;
}
Frame 101
gotoAndPlay (102);
Instance of Symbol 368 MovieClip "thecard" in Frame 102
onClipEvent (load) {
_root.thecard.setSuit(_root.party[partyindex].cards[cardindex].suit);
_root.thecard.setValue(_root.party[partyindex].cards[cardindex].score);
}
Frame 103
function new_char(thename) {
var z;
z = 0;
while (z < _root.party.length) {
if (_root.party[z].name == thename) {
partyindex = z;
}
z++;
}
cardindex = 0;
hitnum = _root.party[partyindex].basetohit;
hitdice = 0;
damnum = _root.party[partyindex].basetodam;
damdice = 0;
defnum = _root.party[partyindex].basetodef;
defdice = 0;
thetrump = _root.party[partyindex].trump;
if (0 < _root.party[partyindex].ptoken) {
damdice = damdice + _root.party[partyindex].ptoken;
_root.party[partyindex].ptoken = 0;
}
if (0 < _root.party[partyindex].itoken) {
defdice = defdice + _root.party[partyindex].itoken;
_root.party[partyindex].itoken = 0;
}
_root.picture.gotoAndStop(_root.party[partyindex].fullicon);
_root.trumpsuit.gotoAndStop(thetrump);
tfName = _root.party[partyindex].name;
tfToHit = _root.render_formula("To Hit", hitnum, hitdice);
tfDam = _root.render_formula("Damage", damnum, damdice);
tfDef = _root.render_formula("Defense", defnum, defdice);
_root.thecard.setSuit(_root.party[partyindex].cards[cardindex].suit);
_root.thecard.setValue(_root.party[partyindex].cards[cardindex].score);
tfCardNo = (("Card: " + (cardindex + 1)) + "/") + _root.party[partyindex].cards.length;
check_auto();
}
function check_auto() {
tfAuto = "auto pick";
_root.greymark._visible = false;
var z;
z = 0;
while (z < _root.party[partyindex].cards.length) {
if ((_root.party[partyindex].cards[z].assignment < 2) || (4 < _root.party[partyindex].cards[z].assignment)) {
tfAuto = "no auto";
_root.greymark._visible = true;
}
z++;
}
}
function auto_pick() {
var z;
z = 0;
while (z < _root.party[partyindex].cards.length) {
var assign;
assign = _root.party[partyindex].cards[z].assignment;
if (assign == 1) {
_root.party[partyindex].cards[z] = new _root.Card();
}
if (assign == 2) {
hitnum = hitnum + _root.party[partyindex].cards[z].score;
hitdice++;
if (thetrump == _root.party[partyindex].cards[z].suit) {
hitdice++;
}
tfToHit = _root.render_formula("To Hit", hitnum, hitdice);
}
if (assign == 3) {
damnum = damnum + _root.party[partyindex].cards[z].score;
damdice++;
if (thetrump == _root.party[partyindex].cards[z].suit) {
damdice++;
}
tfDam = _root.render_formula("Damage", damnum, damdice);
}
if (assign == 4) {
defnum = defnum + _root.party[partyindex].cards[z].score;
defdice++;
if (thetrump == _root.party[partyindex].cards[z].suit) {
defdice++;
}
tfDef = _root.render_formula("Defense", defnum, defdice);
}
z++;
}
play();
}
function card_set(assign) {
if (assign == 1) {
_root.party[partyindex].cards[cardindex] = new _root.Card();
}
if (assign == 2) {
hitnum = hitnum + _root.party[partyindex].cards[cardindex].score;
hitdice++;
if (thetrump == _root.party[partyindex].cards[cardindex].suit) {
hitdice++;
}
tfToHit = _root.render_formula("To Hit", hitnum, hitdice);
}
if (assign == 3) {
damnum = damnum + _root.party[partyindex].cards[cardindex].score;
damdice++;
if (thetrump == _root.party[partyindex].cards[cardindex].suit) {
damdice++;
}
tfDam = _root.render_formula("Damage", damnum, damdice);
}
if (assign == 4) {
defnum = defnum + _root.party[partyindex].cards[cardindex].score;
defdice++;
if (thetrump == _root.party[partyindex].cards[cardindex].suit) {
defdice++;
}
tfDef = _root.render_formula("Defense", defnum, defdice);
}
_root.party[partyindex].cards[cardindex].assignment = assign;
cardindex++;
if (cardindex == _root.party[partyindex].cards.length) {
play();
} else {
tfCardNo = (("Card: " + (cardindex + 1)) + "/") + _root.party[partyindex].cards.length;
_root.thecard.setSuit(_root.party[partyindex].cards[cardindex].suit);
_root.thecard.setValue(_root.party[partyindex].cards[cardindex].score);
}
}
function char_finalize() {
var w;
w = 0;
while (w < _root.combatlist.length) {
if (_root.party[partyindex].name == _root.combatlist[w].name) {
var x;
x = 0;
while (x < _root.party[partyindex].techniques.length) {
var a = (new _root.Attack("", "", 0, 0, 0, 0, 0, 0, 0));
a.name = _root.party[partyindex].techniques[x].name;
a.icon = _root.party[partyindex].techniques[x].icon;
a.hitp = hitnum;
a.hitd = hitdice;
a.hitd = a.hitd + _root.party[partyindex].techniques[x].hita;
a.damp = damnum;
a.damd = damdice;
a.damd = a.damd + _root.party[partyindex].techniques[x].dama;
a.defp = defnum;
a.defd = defdice;
a.defd = a.defd + _root.party[partyindex].techniques[x].defa;
a.rule = _root.party[partyindex].techniques[x].rule;
var cc;
cc = 0;
while (cc < _root.party[partyindex].cards.length) {
if ((_root.party[partyindex].cards[cc].suit == _root.party[partyindex].techniques[x].trump) && (_root.party[partyindex].cards[cc].assignment == _root.party[partyindex].techniques[x].trumpk)) {
if (_root.party[partyindex].techniques[x].trumpk == 2) {
a.hitd++;
}
if (_root.party[partyindex].techniques[x].trumpk == 3) {
a.damd++;
}
if (_root.party[partyindex].techniques[x].trumpk == 4) {
a.defd++;
}
}
cc++;
}
_root.combatlist[w].attacks.push(a);
x++;
}
}
w++;
}
}
function test_character() {
var y;
var nam;
nam = null;
y = 0;
while (y < _root.combatlist.length) {
if (combatlist[y].attacks.length == 0) {
nam = combatlist[y].name;
break;
}
y++;
}
if (nam != null) {
new_char(nam);
} else {
move_to_combat();
}
}
function render_formula(title, num, dice) {
var thestring;
thestring = title + ": ";
thestring = thestring + num;
if (dice >= 0) {
thestring = thestring + "+";
}
thestring = thestring + dice;
thestring = thestring + "D";
return(thestring);
}
function move_to_combat() {
gotoAndPlay (115);
}
stop();
hitnum = 0;
hitdice = 0;
damnum = 0;
damdice = 0;
defnum = 0;
defdice = 0;
thetrump = 0;
cardindex = 0;
partyindex = 0;
buttonson = true;
test_character();
Frame 104
buttonson = false;
Frame 114
char_finalize();
gotoAndStop (103);
Frame 115
function chose_intention(tech, tgt) {
trace("Inside chose_intention");
_root.combatlist[currentperson].intention = tech;
_root.combatlist[currentperson].target = tgt;
gotoAndPlay (118);
}
_root.intentionconsole._visible = false;
tpHPleft = "";
tpHPright = "";
_root.iconleft._visible = false;
_root.iconright._visible = false;
_root.fullleft._visible = false;
_root.fullright._visible = false;
tfleft1 = "";
tfleft2 = "";
tfleft3 = "";
tfleft4 = "";
tfright1 = "";
tfright2 = "";
tfright3 = "";
currentperson = 0;
thisonegoes = 0;
blowlanded = false;
asuffix = "left";
tsuffix = "right";
Frame 116
currentperson = 0;
_root.intentionconsole._visible = false;
tfHPleft = "";
tfHPright = "";
_root.iconleft._visible = false;
_root.iconright._visible = false;
_root.fullleft._visible = false;
_root.fullright._visible = false;
tfleft1 = "";
tfleft2 = "";
tfleft3 = "";
tfleft4 = "";
tfright1 = "";
tfright2 = "";
tfright3 = "";
var y;
y = 0;
while (y < _root.combatlist.length) {
_root.combatlist[y].went = false;
y++;
}
Frame 117
if ((0 >= _root.combatlist[currentperson].hp) || (_root.combatlist[currentperson].isstunned == true)) {
_root.combatlist[currentperson].intention = 0;
_root.combatlist[currentperson].went = true;
_root.combatlist[currentperson].isstunned = false;
} else if (_root.combatlist[currentperson].isgood == true) {
_root.intentionconsole._visible = true;
_root.fullleft._visible = true;
_root.fullleft.gotoAndStop(_root.combatlist[currentperson].fullicon);
_root.intentionconsole.new_index(currentperson, 0);
stop();
} else {
_root.fullleft._visible = false;
var choosables = new Array();
var z;
z = 0;
while (z < _root.combatlist.length) {
if ((_root.combatlist[z].isgood == true) && (0 < _root.combatlist[z].hp)) {
choosables.push(z);
}
z++;
}
var choice;
choice = random(choosables.length);
_root.combatlist[currentperson].intention = random(_root.combatlist[currentperson].attacks.length);
_root.combatlist[currentperson].target = choosables[choice];
}
Frame 118
trace("At Frame 4");
_root.intentionconsole._visible = false;
currentperson++;
trace((("Currentperson:" + currentperson) + " _root.combatlist.length ") + _root.combatlist.length);
if (currentperson == _root.combatlist.length) {
gotoAndPlay (119);
} else {
gotoAndPlay (117);
}
Frame 119
trace("At frame 5");
trace("Overview:");
var tz;
tz = 0;
while (tz < _root.combatlist.length) {
trace(_root.combatlist[tz].name);
trace((("Intention:" + _root.combatlist[tz].intention) + " ") + _root.combatlist[tz].attacks[_root.combatlist[tz].intention].name);
trace("Target:" + _root.combatlist[tz].target);
tz++;
}
var z;
var highest;
highest = 0;
z = 0;
while (z < _root.combatlist.length) {
var thisonetarget;
thisonetarget = _root.combatlist[z].target;
trace("Testing initiative score.");
trace(_root.combatlist[z].name);
trace("Went:" + _root.combatlist[z].went);
trace("HP:" + _root.combatlist[z].hp);
trace("Target HP:" + _root.combatlist[thisonetarget].hp);
trace("Stunned:" + _root.combatlist[z].isstunned);
if ((((_root.combatlist[z].went != true) && (0 < _root.combatlist[z].hp)) && (0 < _root.combatlist[thisonetarget].hp)) && (_root.combatlist[z].isstunned == false)) {
var myscore;
var thisintention;
thisintention = _root.combatlist[z].intention;
myscore = _root.combatlist[z].attacks[thisintention].hitp;
myscore = myscore + (_root.combatlist[z].attacks[thisintention].hitd * 3);
myscore = myscore + _root.combatlist[z].attacks[thisintention].defp;
myscore = myscore + (_root.combatlist[z].attacks[thisintention].defd * 3);
trace("Init:" + myscore);
if (highest < myscore) {
highest = myscore;
thisonegoes = z;
}
}
z++;
}
if (highest == 0) {
trace("Going to end of round");
gotoAndPlay (186);
}
Frame 120
_root.iconleft._visible = false;
_root.iconright._visible = false;
_root.fullleft._visible = false;
_root.fullright._visible = false;
tfleft1 = "";
tfleft2 = "";
tfleft3 = "";
tfleft4 = "";
tfright1 = "";
tfright2 = "";
tfright3 = "";
tfHPleft = "";
tfHPright = "";
Frame 121
_root.iconleft._visible = true;
_root.iconright._visible = true;
_root.fullleft._visible = true;
_root.fullright._visible = true;
var thistarget;
var thisintent;
var hisintent;
thistarget = _root.combatlist[thisonegoes].target;
thisintent = _root.combatlist[thisonegoes].intention;
hisintent = _root.combatlist[thistarget].intention;
if (_root.combatlist[thisonegoes].isgood == true) {
asuffix = "left";
tsuffix = "right";
} else {
asuffix = "right";
tsuffix = "left";
}
Set("tfHP" + asuffix, "HP: " + _root.combatlist[thisonegoes].hp);
Set("tfHP" + tsuffix, "HP: " + _root.combatlist[thistarget].hp);
eval ("_root.full" + asuffix).gotoAndStop(_root.combatlist[thisonegoes].fullicon);
eval ("_root.full" + tsuffix).gotoAndStop(_root.combatlist[thistarget].fullicon);
eval ("_root.icon" + tsuffix).gotoAndStop(_root.combatlist[thistarget].idleicon);
eval ("_root.icon" + asuffix).gotoAndStop(_root.combatlist[thisonegoes].idleicon);
Set(("tf" + asuffix) + "1", _root.combatlist[thisonegoes].attacks[thisintent].name);
Set(("tf" + asuffix) + "2", _root.render_formula("To Hit", _root.combatlist[thisonegoes].attacks[thisintent].hitp, _root.combatlist[thisonegoes].attacks[thisintent].hitd));
Set(("tf" + asuffix) + "3", _root.render_formula("Damage", _root.combatlist[thisonegoes].attacks[thisintent].damp, _root.combatlist[thisonegoes].attacks[thisintent].damd));
if (0 < _root.combatlist[thisonegoes].hitdown) {
Set(("tf" + asuffix) + "2", eval (("tf" + asuffix) + "2") + "-");
Set(("tf" + asuffix) + "2", eval (("tf" + asuffix) + "2") + _root.combatlist[thisonegoes].hitdown);
}
if (0 < _root.combatlist[thisonegoes].damdown) {
Set(("tf" + asuffix) + "3", eval (("tf" + asuffix) + "3") + "-");
Set(("tf" + asuffix) + "3", eval (("tf" + asuffix) + "3") + _root.combatlist[thisonegoes].damdown);
}
Set(("tf" + tsuffix) + "1", _root.render_formula("Defense", _root.combatlist[thistarget].attacks[hisintent].defp, _root.combatlist[thistarget].attacks[hisintent].defd));
if ((_root.combatlist[thistarget].went == true) && (_root.combatlist[thistarget].isstunned != true)) {
Set(("tf" + tsuffix) + "1", eval (("tf" + tsuffix) + "1") + " / 2");
}
if (_root.combatlist[thistarget].isstunned == true) {
Set(("tf" + tsuffix) + "1", "Defense: 0");
}
if ((_root.combatlist[thistarget].isstunned == false) && (0 < _root.combatlist[thistarget].defdown)) {
Set(("tf" + tsuffix) + "1", eval (("tf" + tsuffix) + "1") + "-");
Set(("tf" + tsuffix) + "1", eval (("tf" + tsuffix) + "1") + _root.combatlist[thistarget].defdown);
}
Set(("tf" + tsuffix) + "2", "");
Set(("tf" + tsuffix) + "3", "");
Frame 137
var thisintent;
thisintent = _root.combatlist[thisonegoes].intention;
eval ("_root.icon" + asuffix).gotoAndStop(_root.combatlist[thisonegoes].attacks[thisintent].icon);
_root.combatlist[thisonegoes].went = true;
Frame 152
blowlanded = false;
var thistarget;
thistarget = _root.combatlist[thisonegoes].target;
var thisintention;
thisintention = _root.combatlist[thisonegoes].intention;
var hisintention;
hisintention = _root.combatlist[thistarget].intention;
var thisrule;
thisrule = _root.combatlist[thisonegoes].attacks[thisintention].rule;
var attackscore;
var defensescore;
var damagescore;
attackscore = _root.combatlist[thisonegoes].attacks[thisintention].hitp;
var z;
z = 0;
while (z < Math.abs(_root.combatlist[thisonegoes].attacks[thisintention].hitd)) {
if (0 < _root.combatlist[thisonegoes].attacks[thisintention].hitd) {
attackscore = attackscore + (random(6) + 1);
} else {
attackscore = attackscore - (random(6) + 1);
}
z++;
}
attackscore = attackscore - _root.combatlist[thisonegoes].hitdown;
damagescore = _root.combatlist[thisonegoes].attacks[thisintention].damp;
var y;
y = 0;
while (y < Math.abs(_root.combatlist[thisonegoes].attacks[thisintention].damd)) {
if (0 < _root.combatlist[thisonegoes].attacks[thisintention].damd) {
damagescore = damagescore + (random(6) + 1);
} else {
damagescore = damagescore - (random(6) + 1);
}
y++;
}
damagescore = damagescore - _root.combatlist[thisonegoes].damdown;
defensescore = _root.combatlist[thistarget].attacks[hisintention].defp;
var x;
x = 0;
while (x < Math.abs(_root.combatlist[thistarget].attacks[hisintention].defd)) {
if (0 < _root.combatlist[thistarget].attacks[hisintention].defd) {
defensescore = defensescore + (random(6) + 1);
} else {
defensescore = defensescore - (random(6) + 1);
}
x++;
}
if (_root.combatlist[thistarget].went == true) {
if (0 < defensescore) {
defensescore = int(defensescore / 2);
} else {
defensescore = int(defensescore * 1.5);
}
}
defensescore = defensescore - _root.combatlist[thistarget].defdown;
if (_root.combatlist[thistarget].isstunned == true) {
defensescore = 0;
}
if ((thisrule != 1) && (thisrule != 9)) {
if (defensescore >= attackscore) {
eval ("_root.dam" + tsuffix).purple_show("MISS");
} else {
blowlanded = true;
if (0 < _root.combatlist[thisonegoes].ispup) {
damagescore = damagescore + _root.combatlist[thisonegoes].ispup;
_root.combatlist[thisonegoes].ispup = 0;
}
eval ("_root.dam" + tsuffix).red_show(damagescore);
_root.combatlist[thistarget].hp = _root.combatlist[thistarget].hp - damagescore;
Set("tfHP" + tsuffix, "HP: " + _root.combatlist[thistarget].hp);
if (0 >= _root.combatlist[thistarget].hp) {
eval ("_root.icon" + tsuffix).gotoAndStop(_root.combatlist[thistarget].koicon);
}
}
}
if (thisrule == 1) {
var healamt;
healamt = 5 * _root.combatlist[thisonegoes].level;
eval ("_root.dam" + tsuffix).green_show(healamt);
_root.combatlist[thistarget].hp = _root.combatlist[thistarget].hp + healamt;
if (_root.combatlist[thistarget].maxhp < _root.combatlist[thistarget].hp) {
_root.combatlist[thistarget].hp = _root.combatlist[thistarget].maxhp;
}
Set("tfHP" + tsuffix, "HP: " + _root.combatlist[thistarget].hp);
}
if (thisrule == 9) {
if (0 < _root.combatlist[thisonegoes].ispup) {
damagescore = 1;
} else {
damagescore = damagescore + (3 * _root.combatlist[thisonegoes].level);
}
eval ("_root.dam" + asuffix).purple_show("D+" + damagescore);
_root.combatlist[thisonegoes].ispup = _root.combatlist[thisonegoes].ispup + damagescore;
}
Frame 167
if ((blowlanded == false) && (_root.combatlist[thisonegoes].ispoisoned == false)) {
gotoAndPlay (174);
}
var thistarget;
thistarget = _root.combatlist[thisonegoes].target;
var thisintention;
thisintention = _root.combatlist[thisonegoes].intention;
var hisintention;
hisintention = _root.combatlist[thistarget].intention;
var thisrule;
thisrule = _root.combatlist[thisonegoes].attacks[thisintention].rule;
if ((0 < _root.combatlist[thistarget].hp) && (blowlanded == true)) {
if (thisrule == 3) {
_root.combatlist[thistarget].ispoisoned = _root.combatlist[thisonegoes].level * 2;
eval ("_root.dam" + tsuffix).purple_show("POISON");
}
if (thisrule == 4) {
if (random(4) == 0) {
_root.combatlist[thistarget].isstunned = true;
eval ("_root.dam" + tsuffix).purple_show("STUN");
}
}
if (thisrule == 5) {
_root.combatlist[thistarget].hitdown = _root.combatlist[thistarget].hitdown + _root.combatlist[thisonegoes].level;
eval ("_root.dam" + tsuffix).purple_show("HITDOWN");
}
if (thisrule == 6) {
_root.combatlist[thistarget].damdown = _root.combatlist[thistarget].damdown + _root.combatlist[thisonegoes].level;
eval ("_root.dam" + tsuffix).purple_show("DAMDOWN");
}
if (thisrule == 7) {
_root.combatlist[thistarget].defdown = _root.combatlist[thistarget].defdown + _root.combatlist[thisonegoes].level;
eval ("_root.dam" + tsuffix).purple_show("DEFDOWN");
}
if (thisrule == 8) {
if (random(4) == 0) {
_root.combatlist[thistarget].hp = 1;
Set("tfHP" + tsuffix, "HP: 1");
eval ("_root.dam" + tsuffix).red_show("CRITICAL");
}
}
}
if (0 < _root.combatlist[thisonegoes].ispoisoned) {
_root.combatlist[thisonegoes].hp = _root.combatlist[thisonegoes].hp - _root.combatlist[thisonegoes].ispoisoned;
Set("tfHP" + asuffix, "HP: " + _root.combatlist[thisonegoes].hp);
if (0 >= _root.combatlist[thisonegoes].hp) {
eval ("_root.icon" + asuffix).gotoAndStop(_root.combatlist[thisonegoes].koicon);
}
eval ("_root.dam" + asuffix).red_show("P " + _root.combatlist[thisonegoes].ispoisoned);
_root.combatlist[thisonegoes].ispoisoned = _root.combatlist[thisonegoes].ispoisoned - random(6);
if (_root.combatlist[thisonegoes].ispoisoned < 0) {
_root.combatlist[thisonegoes].ispoisoned = 0;
}
}
Frame 183
gotoAndPlay (119);
Frame 186
var goodwins;
var letscontinue;
goodwins = null;
letscontinue = false;
var z;
z = 0;
while (z < _root.combatlist.length) {
if (0 < _root.combatlist[z].hp) {
if (goodwins == null) {
goodwins = _root.combatlist[z].isgood;
} else if (_root.combatlist[z].isgood != goodwins) {
letscontinue = true;
}
}
z++;
}
if ((letscontinue == true) && (goodwins != null)) {
gotoAndPlay (116);
} else if (goodwins == true) {
gotoAndPlay (188);
} else {
gotoAndPlay (187);
}
Frame 187
function backtostart() {
gotoAndPlay (1);
}
stop();
stopAllSounds();
Frame 188
stop();
stopAllSounds();
var z;
var xppool;
xppool = 0;
earners = 0;
z = 0;
while (z < _root.combatlist.length) {
if (_root.combatlist[z].isgood == false) {
xppool = xppool + _root.combatlist[z].level;
}
if ((_root.combatlist[z].isgood == true) && (0 < _root.combatlist[z].hp)) {
earners++;
}
z++;
}
xppool = int((xppool * 2) / earners);
if (0 >= xppool) {
xppool = 1;
}
tfResults = "";
if (random(10) < 6) {
tfResults = tfResults + "<P>the party got a gold piece!</P>";
_root.gold++;
}
z = 0;
while (z < _root.combatlist.length) {
if (_root.combatlist[z].isgood == true) {
var y;
y = 0;
while (y < _root.party.length) {
if (_root.combatlist[z].name == _root.party[y].name) {
_root.party[y].currenthp = _root.combatlist[z].hp;
}
y++;
}
}
z++;
}
var mvp;
var mvphp;
mvp = 0;
mvphp = _root.party[0].currenthp;
z = 0;
while (z < _root.party.length) {
if ((0 < _root.party[z].currenthp) && (_root.party[z].isinparty == true)) {
if (mvphp < _root.party[z].currenthp) {
mvp = z;
mvphp = _root.party[z].currenthp;
}
tfResults = tfResults + "<P>";
tfResults = tfResults + (((_root.party[z].name + ", you got ") + xppool) + " xp.<BR>");
_root.party[z].exp = _root.party[z].exp + xppool;
if (_root.party[z].exp >= _root.party[z].nextlevel) {
_root.party[z].level++;
tfResults = tfResults + (("you reached level " + _root.party[z].level) + "!<BR>");
_root.party[z].nextlevel = _root.party[z].nextlevel + (10 * _root.party[z].level);
tfResults = tfResults + (((("you need " + (_root.party[z].nextlevel - _root.party[z].exp)) + " more xp to reach level ") + (_root.party[z].level + 1)) + ".<BR>");
_root.party[z].maxhp = _root.party[z].maxhp + 10;
if (_root.party[z].cards.length < 8) {
_root.party[z].cards.push(new _root.Card());
tfResults = tfResults + "you got an extra card!<BR>";
} else {
_root.party[z].basetohit = _root.party[z].basetohit + 3;
_root.party[z].basetodam = _root.party[z].basetodam + 3;
_root.party[z].basetodef = _root.party[z].basetodef + 3;
tfResults = tfResults + "you got +3/+3/+3 to your stats!<BR>";
}
}
tfResults = tfResults + "</P>";
}
if (0 >= _root.party[z].currenthp) {
_root.party[z].currenthp = 1;
}
z++;
}
_root.vpic.gotoAndStop(mvp + 1);
Frame 189
function set_password() {
var emmatable;
var marthtable;
var goldtable;
emmatable = ["IP", "LO", "MK", "YU", "HG", "RE", "KL", "ZC", "QA", "HH", "FD", "IK"];
marthtable = ["BN", "ZS", "EE", "UI", "WR", "TY", "JF", "DS", "MA", "PS", "XX", "TQ"];
goldtable = ["H", "V", "X", "L", "T", "G", "U", "K", "C", "O"];
var el = _root.party[0].level;
var ml = _root.party[1].level;
_root.gold = _root.gold + _root.healpotions;
_root.gold = _root.gold + (_root.ptokens * 2);
_root.gold = _root.gold + (_root.itokens * 2);
if (99 < _root.gold) {
_root.gold = 99;
}
if (12 < el) {
el = 12;
}
if (12 < ml) {
ml = 12;
}
var gten = Math.floor(_root.gold / 10);
var gone = (_root.gold - (gten * 10));
password = emmatable[el - 1];
password = password + marthtable[ml - 1];
password = password + goldtable[gten];
password = password + goldtable[gone];
}
function backtostart() {
gotoAndPlay (1);
}
stop();
stopAllSounds();
_root.set_password();
Symbol 5 Button
on (rollOver) {
_parent.TextField6 = _parent.destination;
}
on (rollOut) {
_parent.TextField6 = "";
}
on (release) {
_root.switchMap(_parent.mapname, _parent.leftorright);
}
Symbol 9 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 11 Button
on (release) {
this.onClick();
}
Symbol 13 MovieClip [RedForest] Frame 1
trace("ORedForest - Adjusting EM.enc");
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([1]);
_root.enc.push([2, 2]);
_root.enc.push([2, 4]);
_root.musicbox.playMusic("Adventure2");
if (_root.plotpoint == 2) {
bcamp._visible = false;
}
trace("ORedForest - Adjusting EM.enc Complete");
Instance of Symbol 9 MovieClip in Symbol 13 MovieClip [RedForest] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Forest1";
rotated = 180;
destination = "Forest";
}
Instance of Symbol 12 MovieClip "bcamp" in Symbol 13 MovieClip [RedForest] Frame 1
onClipEvent (load) {
function onClick() {
this._visible = false;
_root.plotpoint = 2;
_root.party[1].isinparty = true;
_root.addcs("Assassin", "So.. one of the running dogs of King Leonard have come to crash our party.", "Camp02");
_root.addcs("Girl", "H-hey!", "Camp03");
_root.addcs("Girl", "Aren't you one of the Nordin king's guard? You don't suppose you could give me a hand here?", "Camp03");
_root.addcs("Emma", "I've finally tracked you all down. By orders of the king, I've been sent to take care of you all..", "Camp01");
_root.addcs("Emma", "..once and for all, for the sake of Nordin!", "Camp01");
_root.addcs("Assassin", "Is that so?", "Camp05");
_root.addcs("Assassin", "This is just the attitude I'd expect from a young, ignorant novice.", "Camp05");
_root.addcs("Assassin", "Tell me, oh great soldier of the king..", "Camp05");
_root.addcs("Assassin", "Are you quite so certain that you are in the right here?", "Camp05");
_root.addcs("Assassin", "Surely one who has lived in royal company for so long cannot truly understand a bandit's nature.", "Camp04");
_root.addcs("Assassin", "To kill everyone here is a bold action indeed. Are you completely certain of our wrongdoing?", "Camp05");
_root.addcs("Assassin", "In fact, can you tell the difference between righteous killing and simple murder?", "Camp05");
_root.addcs("Emma", "I..", "Camp06");
_root.addcs("Emma", "I don't really know what to say. It's true I'm not a bandit myself.", "Camp06");
_root.addcs("Emma", "And it's true I don't want to kill without reason, but.. but..", "Camp07");
_root.addcs("Assassin", "GRAA!", "Camp08");
_root.addcs("Emma", "!!!", "Camp09");
_root.addcs("Girl", "Hi-YA!", "Camp10");
_root.addcs("Girl", "Why don't you try sweet talking the girl you tied up, creep!", "Camp10");
_root.addcs("Girl", "You there! Keep an eye on your back. They're tricky, but I'll help.", "Camp11");
_root.addcs("Girl", "By the way, my name's Marthanne.", "Camp11");
_root.addcs("Emma", "Thank you. My name's Emma. Here they come!", "Camp11");
_root.addcs("Combat", "", "");
_root.addcs("Music", "Adventure2", "Adventure2");
_root.addcs("Marthanne", "Whew. I think that's all of them.", "Camp11");
_root.addcs("Emma", "Yeah. Wow, this isn't how I pictured my first mission would go.", "Camp11");
_root.addcs("Emma", "Those clothes of yours.. you're not from around here, are you?", "Camp12");
_root.addcs("Emma", "You must be from Greco, down south of here.", "Camp12");
_root.addcs("Marthanne", "That's right. I'm the messenger of the president.", "Camp12");
_root.addcs("Marthanne", "I was delivering to King Leonard when these bandits caught me.", "Camp12");
_root.addcs("Marthanne", "And on that note, here's a question for you!", "Camp13");
_root.addcs("Marthanne", "What were you thinking, putting so much faith in the words of that cretin?", "Camp13");
_root.addcs("Marthanne", "Haven't you heard the expression, 'A spade is a spade?'", "Camp13");
_root.addcs("Marthanne", "If I wasn't here or was a bit slower, you would have died for no reason at all!", "Camp13");
_root.addcs("Emma", "Sigh..", "Camp13");
_root.addcs("Marthanne", "Um..", "Camp14");
_root.addcs("Marthanne", "Of course, I hope you're not taking this too personally!", "Camp14");
_root.addcs("Marthanne", "'Cause I think I might want an escort back to Nordin..", "Camp14");
_root.addcs("Emma", "No, it's all right. Let's go, Marthanne.", "Camp14");
_root.addcs("Emma", "We need to report back to King Leonard.", "Camp14");
while (0 < _root.combatlist.length) {
var trash;
trash = _root.combatlist.pop();
delete trash;
}
var m = _root.monsters[3];
_root.combatlist.push(new _root.Encounterite(m.name, m.hp, m.hp, m.level, m.fullicon, m.idleicon, m.koicon, false));
var j;
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
m = _root.monsters[2];
_root.combatlist.push(new _root.Encounterite(m.name, m.hp, m.hp, m.level, m.fullicon, m.idleicon, m.koicon, false));
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
m = _root.monsters[2];
_root.combatlist.push(new _root.Encounterite(m.name, m.hp, m.hp, m.level, m.fullicon, m.idleicon, m.koicon, false));
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
i = 0;
while (i < _root.party.length) {
if (_root.party[i].isinparty == true) {
var c = _root.party[i];
_root.combatlist.push(new _root.Encounterite(c.name, c.currenthp, c.maxhp, c.level, c.fullicon, c.idleicon, c.koicon, true));
}
i++;
}
_root.mapx = _root.map.x;
_root.gotoCutScene();
}
}
Symbol 15 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 17 Button
on (release) {
if (_root.plotpoint < 2) {
_root.addcs("Fireside Man", "Looking for the bandit camp, are you? Well..", "Fireside");
_root.addcs("Fireside Man", "They're not easy to find, unless you know where to look.", "Fireside");
if (2 < _root.party[0].level) {
_root.plotpoint = 1;
_root.addcs("Fireside Man", "There's a secret place between the crook of two trees where the bandits hide.", "Fireside");
} else {
_root.addcs("Fireside Man", "But then again.. you don't look very strong to me.", "Fireside");
_root.addcs("Fireside Man", "I won't risk telling you yet. Go and gain some experience.", "Fireside");
}
_root.addcs("Fireside Man", "By the way, I think they took a prisoner a while ago. Poor girl..", "Fireside");
} else {
_root.addcs("Fireside Man", "So, it looks like you took care of the bandit camp. Not bad.", "Fireside");
_root.addcs("Fireside Man", "No need to come back and thank me. I was just being a good samaritan.", "Fireside");
_root.addcs("Fireside Man", "You best get back to town.", "Fireside");
}
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
Symbol 18 MovieClip [Forest2] Frame 1
trace("OMapForest - Adjusting em.enc");
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([2, 2, 2]);
_root.enc.push([4, 4]);
_root.enc.push([2]);
_root.enc.push([0]);
_root.enc.push([4, 0]);
_root.musicbox.playMusic("Adventure1");
trace("OMapForest - Adjusting em.enc complete");
Instance of Symbol 15 MovieClip in Symbol 18 MovieClip [Forest2] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Forest1";
rotated = 180;
destination = "Forest";
}
Symbol 20 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 21 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 22 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 23 MovieClip [Forest1] Frame 1
trace("OMapForest - Adjusting em.enc");
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([0]);
_root.enc.push([2]);
_root.enc.push([2, 4]);
_root.enc.push([4]);
_root.enc.push([2, 2]);
_root.enc.push([2]);
_root.enc.push([4]);
_root.enc.push([0]);
special._visible = false;
if (0 < _root.plotpoint) {
special._visible = true;
}
_root.musicbox.playMusic("Adventure1");
trace("OMapForest - Adjusting em.enc complete");
Instance of Symbol 20 MovieClip in Symbol 23 MovieClip [Forest1] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Town";
rotated = 180;
destination = "Nordin";
}
Instance of Symbol 21 MovieClip in Symbol 23 MovieClip [Forest1] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Forest2";
rotated = 0;
destination = "More Forest";
}
Instance of Symbol 22 MovieClip "special" in Symbol 23 MovieClip [Forest1] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "RedForest";
rotated = 270;
destination = "Secret";
}
Symbol 29 Button
on (release) {
_root.addcs("Emma", "This fountain is a little cliched, but the water is soothing to look at.", "TownFountain");
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
Symbol 31 Button
on (release) {
_root.addcs("InnKeeper", "Good evening! Why don't you stay a night and rest, for free?", "InnKeep");
_root.addcs("", "You have a peaceful sleep.", "BlackScreen");
_root.addcs("InnKeeper", "Best of luck to you on your quest!", "InnKeep");
var z;
z = 0;
while (z < _root.party.length) {
_root.party[z].currenthp = _root.party[z].maxhp;
z++;
}
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
Symbol 33 Button
on (release) {
_root.mapx = _root.map._x;
_root.gotoShop();
}
Symbol 35 Button
on (release) {
_root.mapx = _root.map._x;
if (_root.plotpoint == 2) {
_root.addcs("Townsman", "Great job on taking care of the bandits, Emma!", "Bystander01");
_root.addcs("Townsman", "And who's the babe you brought along? Yowza!", "Bystander01");
} else {
_root.addcs("Townsman", "When you enter the forest, watch out! There's more than bandits out there!", "Bystander01");
_root.addcs("Townsman", "Play it safe and don't stray far until you've gone up a few levels.", "Bystander01");
_root.addcs("Townsman", "Encounters occur when you're moving around in dangerous zones.", "Bystander01");
_root.addcs("Townsman", "If you stop moving, say to use an item or investigate something, you'll be safe from encounters.", "Bystander01");
_root.addcs("Townsman", "For some fights it's pretty obvious you're going to enter them. When you see trouble, prepare yourself first!", "Bystander01");
_root.addcs("Townsman", "Don't be afraid to visit our inn and shop often. That's what they're here for!", "Bystander01");
_root.addcs("Townsman", "Best of luck!", "Bystander01");
}
_root.gotoCutScene();
}
Symbol 37 Button
on (release) {
var z;
z = random(4);
if (z == 0) {
_root.addcs("Old Man", "People think I have no fashion sense. Actually, I'm just senile!", "Bystander03");
}
if (z == 1) {
_root.addcs("Old Man", "I used to be an adventurer, you know. Bernie the Mushroom Killer, they called me!", "Bystander03");
}
if (z == 2) {
_root.addcs("Old Man", "This fountain's just about the only joy left in my life. (Sigh.)", "Bystander03");
}
if (z == 3) {
_root.addcs("Old Man", "Young lady, don't be afraid of life. I never was, and look at me now!", "Bystander03");
}
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
Symbol 39 Button
on (release) {
if (_root.plotpoint < 2) {
_root.addcs("Town Lady", "Please help us, Emma! The bandits are such a nuisance!", "Bystander02");
} else {
_root.addcs("Town Lady", "Thank you for getting rid of the bandits, Emma! I wish I could fight like you.", "Bystander02");
}
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
Symbol 40 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 41 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 42 MovieClip [Town] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.musicbox.playMusic("Town");
Instance of Symbol 40 MovieClip in Symbol 42 MovieClip [Town] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Forest1";
rotated = 0;
destination = "Forest";
}
Instance of Symbol 41 MovieClip in Symbol 42 MovieClip [Town] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Castle";
rotated = 180;
destination = "Castle";
}
Symbol 45 Button
on (release) {
if (_root.plotpoint < 2) {
_root.mapx = _root.map._x;
_root.addcs("Emma", "King Leonard left after he gave his orders to me.", "Opening02");
_root.addcs("Emma", "He wouldn't want me to return until my task was completed, anyhow.", "Opening02");
} else {
_root.mapname = "Greco";
_root.mapx = _root.map._x;
_root.addcs("Emma", "Mission completed, your majesty! The bandits are defeated.", "Opening06");
_root.addcs("King Leonard", "Excellent work, royal guard. And I see you've brought a messenger from Greco, as well.", "Opening03");
_root.addcs("King Leonard", "Speak, messenger. What does your president have to tell me?", "Opening03");
_root.addcs("Marthanne", "Your majesty! The president requests your assistance in a recent matter that's come up.", "Revisit01");
_root.addcs("Marthanne", "An old ruin has revealed itself in the mountains nearby our capital.", "Revisit02");
_root.addcs("Marthanne", "Such ruins have always had dangers lurking inside. Greco is not a military nation..", "Revisit02");
_root.addcs("Marthanne", "We ask of you to send aid to help us explore and neutralize the ruin.", "Revisit01");
_root.addcs("King Leonard", "I would be happy to help. In fact.. Emma!", "Opening03");
_root.addcs("King Leonard", "Why don't you go with this young lady to Greco and help her out?", "Opening05");
_root.addcs("Emma", "Yes, your majesty! I'd be honored to go!", "Opening06");
_root.addcs("King Leonard", "Excellent. You'll start imediately. You are both dismissed.", "Opening03");
_root.addcs("Emma", "Phew.. from one mission right to the next..", "Revisit03");
_root.addcs("Emma", "My majesty keeps me so busy..", "Revisit04");
_root.addcs("Marthanne", "Wow, isn't the secenery beautiful this afternoon?", "Quiet01");
_root.addcs("Emma", "Um.", "Quiet01");
_root.addcs("Marthanne", "Usually, I'm running at top speed through these forests, to deliver messages.", "Quiet01");
_root.addcs("Marthanne", "But with you tagging along, I can take my time and look at everything!", "Quiet01");
_root.addcs("Emma", "Mm.", "Quiet01");
_root.addcs("Marthanne", "...", "Quiet01");
_root.addcs("Marthanne", "You're not very talkative, are you?", "Quiet01");
_root.addcs("Emma", "I'm not a chatty person. I'm sorry.", "Quiet01");
_root.addcs("Marthanne", "Hmm, what to talk about, what to talk about..", "Quiet01");
_root.addcs("Marthanne", "...", "Quiet01");
_root.addcs("Marthanne", "Hey, you've got a crush on King Leonard, don't you?", "Quiet01");
_root.addcs("Emma", "W-what?!", "Quiet02");
_root.addcs("Marthanne", "Oh, I saw that little blush of yours!", "Quiet02");
_root.addcs("Marthanne", "After all, I'm a 'Heart'! Nothing like that ever gets by me!", "Quiet02");
_root.addcs("Marthanne", "That is so cool! So, when's the first date? Where do kings take girls for dates, anyway?", "Quiet02");
_root.addcs("Emma", "Marthanne! I- I can't tell King Leonard that I'm -- you know!", "Quiet02");
_root.addcs("Emma", "I'm just a royal guard. I'm not worthy of doing any courting with him.", "Quiet02");
_root.addcs("Marthanne", "No way! You have as much chance as anybody else!", "Quiet02");
_root.addcs("Marthanne", "Of course, maybe you're just being shy..", "Quiet02");
_root.addcs("Marthanne", "Hiding behind all your salutes and 'Yes, your majesties!' and your sense of duty.", "Quiet02");
_root.addcs("Marthanne", "Because you are a 'Diamond', after all..", "Quiet02");
_root.addcs("Marthanne", "Diamonds get embarassed about expressing their feelings to others.", "Quiet02");
_root.addcs("Marthanne", "And they think too much with their head instead of their heart.", "Quiet02");
_root.addcs("Emma", "How I behave with the king is my own business - and that's that!", "Quiet03");
_root.addcs("Emma", "Anyway, you're getting too personal. I just met you a few hours ago.", "Quiet03");
_root.addcs("Emma", "I don't want to talk about it for now.", "Quiet03");
_root.addcs("Marthanne", "Hmmm...", "Quiet03");
_root.addcs("Marthanne", "Well, we're almost at Greco's capital now. We'll just get to our mission.", "Quiet01");
_root.addcs("Marthanne", "But I hope what we're not talking about anymore goes all right for you, Emma!", "Quiet01");
_root.addcs("Emma", "...", "Quiet01");
}
_root.gotoCutScene();
}
Symbol 46 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 48 Button
on (release) {
_root.addcs("Master Peter", "Well! My student has finally been given her first mission.", "Tutorial01");
_root.addcs("Emma", "Master Peter!", "Tutorial02");
_root.addcs("Emma", "Did you come to see me off?", "Tutorial02");
_root.addcs("Master Peter", "That's right. I'm impressed you've been admitted to the king's guard at such a young age.", "Tutorial01");
_root.addcs("Master Peter", "Before you go, I thought I'd give you some pointers on how to fight.", "Tutorial01");
_root.addcs("Emma", "Master, really! You've drilled it in my head hundreds of times already.", "Tutorial03");
_root.addcs("Master Peter", "Nonetheless, I'm sure a refresher would be useful. Here goes!", "Tutorial04");
_root.addcs("Master Peter", "When you get into a fight, the first thing you'll have to do is distribute your 'cards'.", "Tutorial05");
_root.addcs("Master Peter", "You start with five cards, and you'll need to split them up between your three stats.", "Tutorial05");
_root.addcs("Master Peter", "Your three stats are 'ToHit', which determines your chances of landing a blow..", "Tutorial05");
_root.addcs("Master Peter", "'Damage', which determines how much damage you'll cause..", "Tutorial05");
_root.addcs("Master Peter", "And 'Defense', which determines your chance of avoiding a blow.", "Tutorial05");
_root.addcs("Master Peter", "Each card you give to a stat adds its value, plus one die roll to that stat.", "Tutorial05");
_root.addcs("Master Peter", "Make sure you divide up your cards properly, giving each stat a proper score!", "Tutorial05");
_root.addcs("Master Peter", "You won't have to distribute your cards every fight. If you know where you want them to go..", "Tutorial05");
_root.addcs("Master Peter", "You can click on 'Auto Pick' to distribute them the same way you did last fight.", "Tutorial05");
_root.addcs("Master Peter", "Finally, if you think you have some bad cards that really need improving on..", "Tutorial05");
_root.addcs("Master Peter", "You can click on 'Change' instead of a stat, to swap the card and get a new one in your next fight.", "Tutorial05");
_root.addcs("Master Peter", "Of course, that card won't go into your stats for the current fight, so be careful.", "Tutorial05");
_root.addcs("Master Peter", "Another wrinkle in choosing your cards is due to something called 'Trumps'.", "Tutorial06");
_root.addcs("Master Peter", "The suit of your card can be very important to your combat performance!", "Tutorial06");
_root.addcs("Master Peter", "Emma, your 'core trump' is Diamonds. The suit befits your sharp and clear-thinking mind.", "Tutorial06");
_root.addcs("Master Peter", "So where you place a Diamond card, that stat goes up two dice instead of one.", "Tutorial06");
_root.addcs("Master Peter", "There's also 'move trumps'. Each of your techniques has a certain suit-stat combination..", "Tutorial06");
_root.addcs("Master Peter", "Which will award extra dice if you place the right suit in the right stat.", "Tutorial06");
_root.addcs("Master Peter", "Finally, fighting itself. The basic rules are this:", "Tutorial07");
_root.addcs("Master Peter", "If your 'ToHit' roll beats your opponent's 'Defense' roll, you hit and roll on your 'Damage'.", "Tutorial07");
_root.addcs("Master Peter", "Easy, huh? Of course, the technique you choose will have some wrinkles of its own, but that's basically it.", "Tutorial07");
_root.addcs("Master Peter", "Your 'ToHit' and 'Defense' added together determines when in the round you'll get to make your move.", "Tutorial07");
_root.addcs("Master Peter", "A high score lets you go first - but you might not always want to!", "Tutorial07");
_root.addcs("Master Peter", "This is because after you make your move, your 'Defense' score is halved for the rest of the round.", "Tutorial07");
_root.addcs("Master Peter", "Try to balance all these factors as best you can when you fight.", "Tutorial04");
_root.addcs("Emma", "Thanks, Master. I guess it's useful to hear all that one more time.", "Tutorial03");
_root.addcs("Master Peter", "Good luck, Emma. I know you'll do well.", "Tutorial01");
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
Symbol 49 MovieClip [Castle] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.musicbox.playMusic("Castle");
Instance of Symbol 46 MovieClip in Symbol 49 MovieClip [Castle] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Town";
rotated = 0;
destination = "Nordin Town";
}
Symbol 51 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Town Lady", "Now that the bandits are gone, I expanded my business!", "Bystander02");
_root.addcs("Town Lady", "Everyone loves the Nordic look around here, it seems!", "Bystander02");
_root.addcs("Town Lady", "Come stop by my shop anytime!", "Bystander02");
_root.gotoCutScene();
}
Symbol 53 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("President", "The cave was opened up after an avalanche a few days ago.", "Greco01");
_root.addcs("President", "We believe it to be an ancient ruin. If so, there's going to be trouble.", "Greco01");
_root.addcs("President", "Ancient ruins contain evil secrets that will haunt and torment this small country.", "Greco01");
_root.addcs("President", "Please explore the ruin and tell us what you find.", "Greco01");
_root.addcs("Emma", "Yes, sir! I'll take care of it!", "Opening06");
_root.addcs("Marthanne", "And I'll help too, Mr. President! There's nothing to worry about!", "Greco04");
_root.gotoCutScene();
}
Symbol 55 Button
on (release) {
_root.addcs("Ellis", "Marthanne! Are you going on an adventure?", "Greco02");
_root.addcs("Ellis", "Hey, stay the night over here! You'll need a good rest before you start.", "Greco02");
_root.addcs("", "You have a peaceful sleep.", "BlackScreen");
_root.addcs("Ellis", "Go kick some ass, guys!", "Greco02");
var z;
z = 0;
while (z < _root.party.length) {
_root.party[z].currenthp = _root.party[z].maxhp;
z++;
}
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
Symbol 57 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Greconian", "I would be exploring that mysterious cave myself..", "Greco03");
_root.addcs("Greconian", "But my father won't let me just because he's the president!", "Greco03");
_root.addcs("Greconian", "This sucks.", "Greco03");
_root.gotoCutScene();
}
Symbol 58 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 59 MovieClip [Greco] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.musicbox.playMusic("Town");
Instance of Symbol 58 MovieClip in Symbol 59 MovieClip [Greco] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Ruin1";
rotated = 135;
destination = "Inside";
}
Symbol 63 Button
on (release) {
_root.addcs("Emma", "This is the last door in the ruins. It's so huge..", "Golem01");
_root.addcs("Marthanne", "And it's made of shiny new metal. Something's not right about this, Emma.", "Golem01");
_root.addcs("Emma", "H-hey! What's going on?", "Golem02");
_root.addcs("Marthanne", "Ohmigod, I hope it's not an earthquake!", "Golem02");
_root.addcs("Emma", "No, it's not! Look! The doors are opening!", "Golem03");
_root.addcs("Marthanne", "!!!", "Golem04");
_root.addcs("Emma", "WHAT IS THAT?!", "Golem04");
_root.addcs("Combat", "", "");
_root.addcs("Music", "Eerie", "Eerie");
_root.addcs("Woman", "My lord.. I have some good news and bad news to tell.", "Finale01");
_root.addcs("Man", "I see.", "Finale02");
_root.addcs("Man", "Bad news first.", "Finale02");
_root.addcs("Woman", "One of our crypts in Greco has been breached. They will soon begin suspecting things.", "Finale03");
_root.addcs("Man", "Hrm..", "Finale04");
_root.addcs("Man", "The Spade Council will not be pleased to hear this.", "Finale04");
_root.addcs("Man", "And your good news?", "Finale04");
_root.addcs("Woman", "One of the adventurers who broke into the compound..", "Finale03");
_root.addcs("Woman", "Our oracles have given us reason to believe that she is a 'Diamond'.", "Finale03");
_root.addcs("Man", "A Diamond.. who is an adventurer?", "Finale04");
_root.addcs("Woman", "She's a royal guard of Nordin, Lord Hector.", "Finale03");
_root.addcs("Lord Hector", "Well then. This changes absolutely everything.", "Finale05");
_root.addcs("Lord Hector", "Absolutely EVERYTHING. HAHAHAHAHAHAHA!", "Finale05");
_root.addcs(null, null, "ToBeContinued");
_root.addcs("EOF", "", "");
while (0 < _root.combatlist.length) {
var trash;
trash = _root.combatlist.pop();
delete trash;
}
var m = _root.monsters[7];
_root.combatlist.push(new _root.Encounterite(m.name, m.hp, m.hp, m.level, m.fullicon, m.idleicon, m.koicon, false));
var j;
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
i = 0;
while (i < _root.party.length) {
if (_root.party[i].isinparty == true) {
var c = _root.party[i];
_root.combatlist.push(new _root.Encounterite(c.name, c.currenthp, c.maxhp, c.level, c.fullicon, c.idleicon, c.koicon, true));
}
i++;
}
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
Symbol 64 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 65 MovieClip [Ruin5] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([6, 5, 6]);
_root.enc.push([5, 5]);
_root.enc.push([1, 5]);
_root.enc.push([1, 1]);
_root.musicbox.playMusic("Eerie");
Instance of Symbol 64 MovieClip in Symbol 65 MovieClip [Ruin5] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Ruin3";
rotated = 180;
destination = "Up";
}
Symbol 69 Button
on (release) {
this.onClick();
}
Symbol 71 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 80 MovieClip Frame 7
gotoAndPlay (1);
Symbol 81 MovieClip [Ruin4] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([6]);
_root.enc.push([6]);
_root.enc.push([6]);
_root.enc.push([6]);
_root.enc.push([6, 6]);
_root.musicbox.playMusic("Adventure2");
if (_root.plotpoint == 3) {
zgroup._visible = false;
}
Instance of Symbol 70 MovieClip "zgroup" in Symbol 81 MovieClip [Ruin4] Frame 1
onClipEvent (load) {
function onClick() {
_root.plotpoint = 3;
_root.addcs("Combat", "", "");
_root.addcs("Music", "Adventure2", "Adventure2");
_root.addcs("Marthanne", "There! I've pulled the switch.", "Switch");
_root.addcs("Emma", "It seems so odd..", "Switch");
_root.addcs("Marthanne", "What's odd?", "Switch");
_root.addcs("Emma", "This dungeon seems so.. modern. Gates, metal switches..", "Switch");
_root.addcs("Marthanne", "And the torches are still burning.. yeah, weird!", "Switch");
while (0 < _root.combatlist.length) {
var trash;
trash = _root.combatlist.pop();
delete trash;
}
var m = _root.monsters[5];
_root.combatlist.push(new _root.Encounterite(m.name, m.hp, m.hp, m.level, m.fullicon, m.idleicon, m.koicon, false));
var j;
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
m = _root.monsters[5];
_root.combatlist.push(new _root.Encounterite(m.name, m.hp, m.hp, m.level, m.fullicon, m.idleicon, m.koicon, false));
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
m = _root.monsters[5];
_root.combatlist.push(new _root.Encounterite(m.name, m.hp, m.hp, m.level, m.fullicon, m.idleicon, m.koicon, false));
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
i = 0;
while (i < _root.party.length) {
if (_root.party[i].isinparty == true) {
var c = _root.party[i];
_root.combatlist.push(new _root.Encounterite(c.name, c.currenthp, c.maxhp, c.level, c.fullicon, c.idleicon, c.koicon, true));
}
i++;
}
_root.mapx = _root.map._x;
_root.gotoCutScene();
}
}
Instance of Symbol 71 MovieClip in Symbol 81 MovieClip [Ruin4] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Ruin2";
rotated = 0;
destination = "Up";
}
Symbol 85 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 86 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 89 Button
on (release) {
lightswap(light1);
lightswap(light5);
lightswap(light2);
lightconfirm();
}
Symbol 90 Button
on (release) {
lightswap(light1);
lightswap(light2);
lightswap(light3);
lightconfirm();
}
Symbol 91 Button
on (release) {
lightswap(light2);
lightswap(light3);
lightswap(light4);
lightconfirm();
}
Symbol 92 Button
on (release) {
lightswap(light3);
lightswap(light4);
lightswap(light5);
lightconfirm();
}
Symbol 93 Button
on (release) {
lightswap(light1);
lightswap(light4);
lightswap(light5);
lightconfirm();
}
Symbol 96 MovieClip [Ruin3] Frame 1
function lightswap(obj) {
if (obj._visible == false) {
obj._visible = true;
} else {
obj._visible = false;
}
}
function lightconfirm() {
if (((((light1._visible == true) && (light2._visible == true)) && (light3._visible == true)) && (light4._visible == true)) && (light5._visible == true)) {
pitbridge._visible = true;
inbridge._visible = true;
} else {
pitbridge._visible = false;
inbridge._visible = false;
}
}
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([1, 0]);
_root.enc.push([1]);
_root.enc.push([1, 5]);
_root.musicbox.playMusic("Eerie");
pitbridge._visible = false;
inbridge._visible = false;
light1._visible = false;
light2._visible = false;
light3._visible = false;
light4._visible = false;
light5._visible = false;
Instance of Symbol 85 MovieClip "inbridge" in Symbol 96 MovieClip [Ruin3] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Ruin5";
rotated = 0;
destination = "In";
}
Instance of Symbol 86 MovieClip in Symbol 96 MovieClip [Ruin3] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Ruin2";
rotated = 180;
destination = "Back";
}
Symbol 98 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 99 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 100 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 103 MovieClip [Ruin2] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([5, 5]);
_root.enc.push([5, 6]);
_root.enc.push([4, 6]);
_root.enc.push([1]);
_root.enc.push([0, 0]);
_root.musicbox.playMusic("Adventure2");
if (_root.plotpoint == 3) {
gateopen._visible = true;
gate._visible = false;
} else {
gateopen._visible = false;
gate._visible = true;
}
Instance of Symbol 98 MovieClip in Symbol 103 MovieClip [Ruin2] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Ruin4";
rotated = 0;
destination = "Deeper";
}
Instance of Symbol 99 MovieClip in Symbol 103 MovieClip [Ruin2] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Ruin1";
rotated = 0;
destination = "Outward";
}
Instance of Symbol 100 MovieClip "gateopen" in Symbol 103 MovieClip [Ruin2] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Ruin3";
rotated = 0;
destination = "Downward";
}
Symbol 105 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 106 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 107 MovieClip [Ruin1] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([0, 0]);
_root.enc.push([6]);
_root.enc.push([0, 6]);
_root.enc.push([4, 6]);
_root.enc.push([6, 6]);
_root.musicbox.playMusic("Adventure2");
Instance of Symbol 105 MovieClip in Symbol 107 MovieClip [Ruin1] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Greco";
rotated = 350;
destination = "Greco";
}
Instance of Symbol 106 MovieClip in Symbol 107 MovieClip [Ruin1] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Ruin2";
rotated = 0;
destination = "Deeper";
}
Symbol 117 MovieClip Frame 4
gotoAndPlay (1);
Symbol 120 MovieClip Frame 1
ifFrameLoaded (4) {
_root.gotoAndStop(3);
}
Symbol 120 MovieClip Frame 3
gotoAndPlay (1);
Symbol 126 Button
on (release) {
gotoAndStop (4);
}
Symbol 129 MovieClip Frame 1
_root.loading.setPercentage(int((_root._framesloaded / _root._totalframes) * 100));
Symbol 129 MovieClip Frame 3
gotoAndPlay (1);
Symbol 133 MovieClip Frame 1
stop();
Symbol 138 Button
on (release) {
_root.nextscene();
}
Symbol 139 MovieClip Frame 1
function setPercentage(amt) {
this.TextField = ("LOADING: " + amt) + "%";
if (amt == 100) {
gotoAndStop (2);
}
}
stop();
Symbol 146 Button
on (release) {
pretext.scroll = pretext.scroll - 2;
}
Symbol 147 Button
on (release) {
pretext.scroll = pretext.scroll + 2;
}
Symbol 155 Button
on (release) {
this.onSet(this.left);
}
Symbol 158 Button
on (release) {
this.onSet(this.farleft);
}
Symbol 161 Button
on (release) {
this.onSet(this.sstop);
}
Symbol 164 Button
on (release) {
this.onSet(this.farright);
}
Symbol 167 Button
on (release) {
this.onSet(this.right);
}
Symbol 176 Button
on (release) {
if (0 < _root.healpotions) {
_root.healpotions--;
itemusage = 1;
gotoAndStop (5);
}
}
Symbol 178 Button
on (release) {
if (0 < _root.ptokens) {
_root.ptokens--;
itemusage = 2;
gotoAndStop (5);
}
}
Symbol 180 Button
on (release) {
if (0 < _root.itokens) {
_root.itokens--;
itemusage = 3;
gotoAndStop (5);
}
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 200 Button
on (release) {
trace("Click.");
if (this.target1._visible == true) {
trace("Test is true.");
this.activate_item(itemusage, thetarget1);
}
}
Symbol 201 Button
on (release) {
if (this.target2._visible == true) {
this.activate_item(itemusage, thetarget2);
}
}
Symbol 202 Button
on (release) {
if (this.target3._visible == true) {
this.activate_item(itemusage, thetarget3);
}
}
Symbol 203 MovieClip Frame 1
function activate_item(it, pindex) {
trace("Reached activate_item.");
trace("it is:" + it);
trace("Char is:" + _root.party[pindex].name);
if (it == 1) {
_root.party[pindex].currenthp = _root.party[pindex].currenthp + 20;
if (_root.party[pindex].maxhp < _root.party[pindex].currenthp) {
_root.party[pindex].currenthp = _root.party[pindex].maxhp;
}
_root.renderStats();
}
if (it == 2) {
_root.party[pindex].ptoken = _root.party[pindex].ptoken + (2 * _root.party[pindex].level);
_root.renderStats();
}
if (it == 3) {
_root.party[pindex].itoken = _root.party[pindex].itoken + (2 * _root.party[pindex].level);
_root.renderStats();
}
trace("About to enter gotoAndStop");
gotoAndStop (1);
}
stop();
this.itemusage = 0;
tfGoldCount = "Gold: " + _root.gold;
tfHealPotions = _root.healpotions;
tfPTokens = _root.ptokens;
tfITokens = _root.itokens;
Symbol 203 MovieClip Frame 5
stop();
this.target1._visible = false;
this.target2._visible = false;
this.target3._visible = false;
this.thetarget1 = -1;
this.thetarget2 = -1;
this.thetarget3 = -1;
partysofar = 0;
var z;
z = 0;
while (z < _root.party.length) {
if (_root.party[z].isinparty == true) {
partysofar++;
eval ("this.target" + partysofar)._visible = true;
eval ("this.target" + partysofar).gotoAndStop(_root.party[z].fullicon);
Set("this.thetarget" + partysofar, z);
}
z++;
}
Symbol 205 MovieClip Frame 1
var a;
var truex;
a = _root.mpanel.mvalue;
_root.map._x = _root.map._x - a;
truex = _root.map._x - int(_root.map._width / 2);
if (-1 < truex) {
_root.map._x = int(_root.map._width / 2);
_root.mpanel.onSet(0);
}
if (551 >= (truex + _root.map._width)) {
_root.map._x = 550 - int(_root.map._width / 2);
_root.mpanel.onSet(0);
}
if ((a < 0) && (0 < _root.walker._xscale)) {
_root.walker._xscale = _root.walker._xscale * -1;
}
if ((a >= 0) && (_root.walker._xscale < 0)) {
_root.walker._xscale = _root.walker._xscale * -1;
}
Symbol 205 MovieClip Frame 3
gotoAndPlay (1);
Symbol 207 MovieClip Frame 1
if (((random(12) == 1) && (_root.mpanel.mvalue != 0)) && (_root.enc.length != 0)) {
var encno;
encno = random(_root.enc.length);
trace(encno);
trace(_root.enc[encno]);
while (0 < _root.combatlist.length) {
var trash;
trash = _root.combatlist.pop();
delete trash;
}
var i;
i = 0;
while (i < _root.enc[encno].length) {
var m = _root.monsters[_root.enc[encno][i]];
_root.combatlist.push(new _root.Encounterite(m.name, m.hp, m.hp, m.level, m.fullicon, m.idleicon, m.koicon, false));
trace("Add monster:" + m.name);
var j;
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
i++;
}
i = 0;
while (i < _root.party.length) {
if (_root.party[i].isinparty == true) {
var c = _root.party[i];
_root.combatlist.push(new _root.Encounterite(c.name, c.currenthp, c.maxhp, c.level, c.fullicon, c.idleicon, c.koicon, true));
trace("Add char:" + c.name);
}
i++;
}
var z;
trace("Combatlist Length: " + _root.combatlist.length);
z = 0;
while (z < _root.combatlist.length) {
var aname = _root.combatlist[z].name;
trace("Combatlist Name: " + aname);
z++;
}
_root.mapx = _root.map._x;
_root.backto = "Travelling";
_root.gotoFightScene();
}
Symbol 207 MovieClip Frame 12
gotoAndPlay (1);
Symbol 216 MovieClip Frame 1
function playMusic(title) {
if (title != _root.musicplaying) {
stopAllSounds();
gotoAndPlay(title);
_root.musicplaying = title;
}
}
stop();
Symbol 216 MovieClip Frame 5
stop();
Symbol 216 MovieClip Frame 6
stop();
Symbol 216 MovieClip Frame 7
stop();
Symbol 216 MovieClip Frame 8
stop();
Symbol 216 MovieClip Frame 9
stop();
Symbol 220 Button
on (release) {
if (_root.gold >= 2) {
_root.gold = _root.gold - 2;
_root.itokens++;
}
goldcount = ("your gold: " + _root.gold) + " gp";
}
Symbol 221 Button
on (release) {
if (_root.gold >= 2) {
_root.gold = _root.gold - 2;
_root.ptokens++;
}
goldcount = ("your gold: " + _root.gold) + " gp";
}
Symbol 222 Button
on (release) {
if (_root.gold >= 1) {
_root.gold--;
_root.healpotions++;
}
goldcount = ("your gold: " + _root.gold) + " gp";
}
Symbol 226 Button
on (release) {
gotoAndStop (5);
}
Symbol 246 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 1
function setSuit(type) {
this.suit._visible = true;
this.suit.gotoAndStop(type);
}
function setValue(amt) {
this.TextField0 = amt;
}
this.suit._visible = false;
this.TextField0 = " ";
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 2
stop();
Symbol 331 MovieClip Frame 3
stop();
Symbol 331 MovieClip Frame 4
stop();
Symbol 331 MovieClip Frame 5
stop();
Symbol 331 MovieClip Frame 6
stop();
Symbol 331 MovieClip Frame 7
stop();
Symbol 331 MovieClip Frame 8
stop();
Symbol 331 MovieClip Frame 9
stop();
Symbol 331 MovieClip Frame 10
stop();
Symbol 331 MovieClip Frame 11
stop();
Symbol 331 MovieClip Frame 13
democard.setSuit(1);
democard.setValue(6);
stop();
Symbol 331 MovieClip Frame 14
stop();
Symbol 331 MovieClip Frame 15
stop();
Symbol 331 MovieClip Frame 16
stop();
Symbol 331 MovieClip Frame 17
stop();
Symbol 331 MovieClip Frame 18
stop();
Symbol 331 MovieClip Frame 19
stop();
Symbol 331 MovieClip Frame 20
stop();
Symbol 331 MovieClip Frame 55
stop();
Symbol 331 MovieClip Frame 56
stop();
Symbol 331 MovieClip Frame 57
stop();
Symbol 331 MovieClip Frame 58
stop();
Symbol 331 MovieClip Frame 59
stop();
Symbol 331 MovieClip Frame 100
stop();
Symbol 331 MovieClip Frame 101
stop();
Symbol 331 MovieClip Frame 102
stop();
Symbol 331 MovieClip Frame 103
stop();
Symbol 331 MovieClip Frame 130
stop();
Symbol 331 MovieClip Frame 131
Symbol 331 MovieClip Frame 155
stop();
Symbol 331 MovieClip Frame 156
stop();
Symbol 331 MovieClip Frame 210
stop();
Symbol 331 MovieClip Frame 211
stop();
Symbol 331 MovieClip Frame 212
stop();
Symbol 331 MovieClip Frame 240
stop();
Symbol 331 MovieClip Frame 241
stop();
Symbol 331 MovieClip Frame 242
stop();
Symbol 331 MovieClip Frame 243
stop();
Symbol 331 MovieClip Frame 270
stop();
Symbol 331 MovieClip Frame 271
stop();
Symbol 331 MovieClip Frame 272
stop();
Symbol 331 MovieClip Frame 273
stop();
Symbol 331 MovieClip Frame 274
stop();
Symbol 331 MovieClip Frame 275
stop();
Symbol 331 MovieClip Frame 276
stop();
Symbol 331 MovieClip Frame 277
stop();
Symbol 331 MovieClip Frame 278
stop();
Symbol 331 MovieClip Frame 279
stop();
Symbol 331 MovieClip Frame 340
stop();
Symbol 331 MovieClip Frame 341
stop();
Symbol 331 MovieClip Frame 343
gotoAndPlay (342);
Symbol 331 MovieClip Frame 390
stop();
Symbol 331 MovieClip Frame 430
stop();
Symbol 331 MovieClip Frame 455
stop();
Symbol 331 MovieClip Frame 456
stop();
Symbol 331 MovieClip Frame 457
stop();
Symbol 331 MovieClip Frame 458
stop();
Symbol 336 Button
on (release) {
play();
}
Symbol 337 MovieClip Frame 1
function playMusic(title) {
if (title != _root.musicplaying) {
stopAllSounds();
gotoAndPlay(title);
_root.musicplaying = title;
}
}
stop();
Symbol 337 MovieClip Frame 5
stop();
Symbol 337 MovieClip Frame 6
stop();
Symbol 337 MovieClip Frame 7
stop();
Symbol 337 MovieClip Frame 8
stop();
Symbol 337 MovieClip Frame 9
stop();
Symbol 368 MovieClip Frame 1
function setSuit(type) {
this.suit._visible = true;
this.suit.gotoAndStop(type);
}
function setValue(amt) {
this.TextField0 = amt;
}
this.suit._visible = false;
this.TextField0 = " ";
Symbol 374 Button
on (release) {
if (buttonson == true) {
_root.card_set(1);
tfAuto = "no auto";
_root.greymark._visible = true;
}
}
Symbol 375 Button
on (release) {
if (buttonson == true) {
_root.card_set(3);
tfAuto = "no auto";
_root.greymark._visible = true;
}
}
Symbol 376 Button
on (release) {
if (buttonson == true) {
_root.card_set(2);
tfAuto = "no auto";
_root.greymark._visible = true;
}
}
Symbol 377 Button
on (release) {
if (buttonson == true) {
_root.card_set(4);
tfAuto = "no auto";
_root.greymark._visible = true;
}
}
Symbol 378 MovieClip Frame 1
stop();
Symbol 379 Button
on (release) {
if (buttonson == true) {
if (tfAuto == "auto pick") {
_root.auto_pick();
}
}
}
Symbol 456 MovieClip Frame 10
gotoAndStop(random(3) + 11);
Symbol 456 MovieClip Frame 15
gotoAndStop(random(2) + 16);
Symbol 456 MovieClip Frame 18
play();
Symbol 456 MovieClip Frame 24
stop();
Symbol 456 MovieClip Frame 50
play();
Symbol 456 MovieClip Frame 56
stop();
Symbol 465 MovieClip Frame 1
function setMessage(msg) {
trace("At setMessage");
message = msg;
message2 = msg;
}
Symbol 466 MovieClip Frame 1
function red_show(msg) {
trace("At Red show");
this.messageholder.setMessage(msg);
gotoAndPlay (2);
}
function green_show(msg) {
trace("At Green Show");
this.messageholder.setMessage(msg);
gotoAndPlay (13);
}
function purple_show(msg) {
trace("At purple show");
this.messageholder.setMessage(msg);
gotoAndPlay (24);
}
this.messageholder.setMessage("");
stop();
Symbol 466 MovieClip Frame 12
gotoAndStop (1);
Symbol 466 MovieClip Frame 23
gotoAndStop (1);
Symbol 466 MovieClip Frame 24
this.messageholder.message2 = "";
Symbol 466 MovieClip Frame 34
gotoAndStop (1);
Symbol 474 Button
on (release) {
this.techindex--;
if (this.techindex < 0) {
this.techindex = 0;
}
this.new_index(_root.currentperson, this.techindex);
}
Symbol 475 Button
on (release) {
this.techindex++;
if (this.techindex == _root.combatlist[_root.currentperson].attacks.length) {
this.techindex--;
}
this.new_index(_root.currentperson, this.techindex);
}
Symbol 476 Button
on (release) {
trace("Clicked button 1.");
if (this.target1._visible == true) {
_root.chose_intention(this.techindex, tvar1);
}
}
Symbol 477 Button
on (release) {
if (this.target2._visible == true) {
_root.chose_intention(this.techindex, tvar2);
}
}
Symbol 478 Button
on (release) {
if (this.target3._visible == true) {
_root.chose_intention(this.techindex, tvar3);
}
}
Symbol 479 MovieClip Frame 1
function new_index(person, tech) {
this.personindex = person;
this.techindex = tech;
var thename;
thename = _root.combatlist[person].name;
var partyindex;
partyindex = 0;
var y;
y = 0;
while (y < _root.party.length) {
if (_root.party[y].name == thename) {
partyindex = y;
}
y++;
}
var tek;
tek = _root.party[partyindex].techniques[tech];
this.tfTechName = tek.name;
if (tek.trump != 0) {
this.techsuit.gotoAndStop(tek.trump);
this.techsuit._visible = true;
} else {
this.techsuit._visible = false;
}
this.tfHowTrump = "No Trump";
if (tek.trumpk == 2) {
this.tfHowTrump = "To Hit";
}
if (tek.trumpk == 3) {
this.tfHowTrump = "Damage";
}
if (tek.trumpk == 4) {
this.tfHowTrump = "Defense";
}
tfTechNotes = "";
if (tek.hita != 0) {
if (0 < tek.hita) {
tfTechNotes = tfTechNotes + "+";
}
tfTechNotes = tfTechNotes + (tek.hita + "D To Hit.");
}
if (tek.dama != 0) {
if (0 < tek.dama) {
tfTechNotes = tfTechNotes + "+";
}
tfTechNotes = tfTechNotes + (tek.dama + "D Damage.");
}
if (tek.defa != 0) {
if (0 < tek.defa) {
tfTechNotes = tfTechNotes + "+";
}
tfTechNotes = tfTechNotes + (tek.defa + "D Defense.");
}
if (tek.rule == 1) {
tfTechNotes = tfTechNotes + "Heals.";
}
if (tek.rule == 3) {
tfTechNotes = tfTechNotes + "Can Poison.";
}
if (tek.rule == 4) {
tfTechNotes = tfTechNotes + "Can Stun.";
}
if (tek.rule == 5) {
tfTechNotes = tfTechNotes + "Reduces ToHit.";
}
if (tek.rule == 6) {
tfTechNotes = tfTechNotes + "Reduces Damage.";
}
if (tek.rule == 7) {
tfTechNotes = tfTechNotes + "Reduces Defense.";
}
if (tek.rule == 8) {
tfTechNotes = tfTechNotes + "Can Critical.";
}
if (tek.rule == 9) {
tfTechNotes = tfTechNotes + "Powers Up.";
}
var seekinggood;
if (tek.rule == 1) {
seekinggood = true;
} else {
seekinggood = false;
}
var tsofar = 0;
var z;
target1._visible = false;
target2._visible = false;
target3._visible = false;
this.tvar1 = -1;
this.tvar2 = -1;
this.tvar3 = -1;
z = 0;
while (z < _root.combatlist.length) {
if ((_root.combatlist[z].isgood == seekinggood) && (0 < _root.combatlist[z].hp)) {
tsofar++;
eval ("target" + tsofar)._visible = true;
eval ("target" + tsofar).gotoAndStop(_root.combatlist[z].idleicon);
Set("tvar" + tsofar, z);
}
z++;
}
}
this.personindex = 0;
this.techindex = 0;
this.tvar1 = -1;
this.tvar2 = -1;
this.tvar3 = -1;
new_index(_root.currentperson, 0);
Symbol 481 Button
on (release) {
_root.backtostart();
}
Symbol 485 Button
on (release) {
if (_root.cs.length == 0) {
gotoAndStop (5);
} else {
gotoAndPlay (7);
}
}