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;
this.stoken = 0;
}
stop();
fscommand ("showmenu", "false");
_root.backto = "Travelling";
_root.cs = new Array();
_root.enc = new Array();
_root.plotpoint = 0;
_root.ranaway = false;
_root.bossfight = false;
_root.backdrop = "Outdoors";
_root.healpotions = 0;
_root.itokens = 0;
_root.ptokens = 0;
_root.stokens = 0;
_root.gold = 0;
_root.combatlist = new Array();
_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));
_root.monsters[8] = new Monster("Catgirl", 5, 80, "Catgirl", "CatgirlIdle", "CatgirlKO");
_root.monsters[8].attacks.push(new Attack("Cat Slash", "Catgirl01", 15, 4, 15, 2, 15, 3, 0));
_root.monsters[8].attacks.push(new Attack("Nyao Kick", "Catgirl02", 18, 3, 18, 3, 12, 3, 0));
_root.monsters[9] = new Monster("Ruffian", 5, 80, "Ruffian", "RuffianIdle", "RuffianKO");
_root.monsters[9].attacks.push(new Attack("Punch", "Ruffian01", 15, 3, 20, 1, 15, 3, 0));
_root.monsters[9].attacks.push(new Attack("Windup", "Ruffian02", 15, 3, 20, 2, 15, 2, 4));
_root.monsters[9].attacks.push(new Attack("Jab", "Ruffian01", 15, 4, 15, 1, 15, 4, 0));
_root.monsters[10] = new Monster("Hector", 6, 110, "Hector", "HectorIdle", "HectorKO");
_root.monsters[10].attacks.push(new Attack("Slash", "Hector01", 20, 5, 20, 4, 20, 4, 0));
_root.monsters[11] = new Monster("Equity", 8, 150, "Equity", "EquityIdle", "EquityKO");
_root.monsters[11].attacks.push(new Attack("Equity Kick", "Equity01", 20, 6, 20, 5, 20, 4, 0));
_root.monsters[11].attacks.push(new Attack("Equity Hawk", "Equity02", 20, 6, 25, 6, 20, 4, 0));
_root.monsters[12] = new Monster("Poppet", 6, 90, "Poppet", "PoppetIdle", "PoppetKO");
_root.monsters[12].attacks.push(new Attack("Splendid", "Poppet01", 21, 4, 21, 3, 21, 3, 0));
_root.monsters[12].attacks.push(new Attack("Ponderous", "Poppet02", 18, 4, 21, 5, 18, 3, 0));
_root.monsters[13] = new Monster("Ratty", 5, 70, "Ratty", "RattyIdle", "RattyKO");
_root.monsters[13].attacks.push(new Attack("Bite", "Ratty01", 15, 4, 20, 2, 15, 2, 0));
_root.monsters[13].attacks.push(new Attack("Bite", "Ratty01", 15, 4, 20, 2, 15, 2, 0));
_root.monsters[13].attacks.push(new Attack("Disease Bite", "Ratty01", 15, 4, 20, 2, 15, 2, 7));
_root.monsters[14] = new Monster("100-Foot", 5, 75, "HundredFoot", "HundredFootIdle", "HundredFootKO");
_root.monsters[14].attacks.push(new Attack("Pincer", "HundredFoot01", 18, 3, 24, 1, 15, 3, 0));
_root.monsters[14].attacks.push(new Attack("Tail Lance", "HundredFoot02", 16, 3, 16, 1, 15, 2, 3));
_root.monsters[14].attacks.push(new Attack("Weaken Lance", "HundredFoot02", 16, 3, 16, 1, 15, 2, 6));
_root.monsters[15] = new Monster("MegaShroom", 6, 100, "MegaShroom", "MegaShroomIdle", "MegaShroomKO");
_root.monsters[15].attacks.push(new Attack("Rapido Punch", "MegaShroom01", 20, 4, 25, 5, 20, 3, 0));
_root.monsters[15].attacks.push(new Attack("Critical Blow", "MegaShroom02", 22, 3, 22, 3, 18, 3, 8));
Frame 4
function nextscene() {
_root.party = new Array();
_root.party.push(new _root.Character("Emma", emmalevel, 1, 1, "Emma", "EmmaIdle", "EmmaKO", true));
_root.party.push(new _root.Character("Marthanne", marthannelevel, 3, 2, "Marthanne", "MarthanneIdle", "MarthanneKO", true));
_root.party.push(new _root.Character("Hiro", 5, 2, 3, "Hiro", "HiroIdle", "HiroKO", false));
_root.party[0].techniques.push(new _root.Technique("Poke", "Emma03", 0, -1, 2, 3, 4, 0));
_root.party[0].techniques.push(new _root.Technique("Cutter", "Emma02", 0, 0, 0, 1, 2, 0));
_root.party[0].techniques.push(new _root.Technique("Rush Attack", "Emma01", -1, 2, 0, 4, 3, 0));
_root.party[0].techniques.push(new _root.Technique("Splendid", "Emma04", 0, 3, -3, 1, 3, 0));
_root.party[0].techniques.push(new _root.Technique("Ponderous", "Emma05", -2, 5, -2, 4, 3, 4));
_root.party[1].techniques.push(new _root.Technique("Martial A", "Marthanne01", 0, 0, 0, 2, 2, 0));
_root.party[1].techniques.push(new _root.Technique("Heal", "Marthanne02", 0, 0, 0, 2, 4, 1));
_root.party[1].techniques.push(new _root.Technique("Martial B", "Marthanne03", 0, 0, 0, 2, 3, 0));
_root.party[1].techniques.push(new _root.Technique("Blitz Dance", "Marthanne04", 0, 3, -3, 2, 3, 0));
_root.party[1].techniques.push(new _root.Technique("Nerve Strike", "Marthanne05", 0, 0, 0, 2, 4, 6));
_root.party[2].techniques.push(new _root.Technique("Gunfire", "Hiro01", 0, 0, 0, 3, 3, 0));
_root.party[2].techniques.push(new _root.Technique("Sharp Shot", "Hiro02", 0, 0, 0, 4, 2, 0));
_root.party[2].techniques.push(new _root.Technique("Full Shot", "Hiro03", 0, 4, -6, 0, 0, 8));
_root.party[2].techniques.push(new _root.Technique("Power Up", "Hiro04", 0, 0, -2, 4, 3, 9));
_root.gold = goldlevel;
_root.musicplaying = "";
if (midpoint == "+A") {
_root.plotpoint = 1;
_root.mapname = "NordinTown";
_root.mapx = -9999;
gotoAndStop (5);
} else if (midpoint == "+R") {
_root.plotpoint = 6;
_root.mapname = "Inner1";
_root.mapx = 9999;
_root.party[2].isinparty = true;
gotoAndStop (5);
} else if (midpoint == "+F") {
_root.plotpoint = 6;
_root.mapname = "Resort";
_root.mapx = -9999;
_root.party[2].isinparty = true;
gotoAndStop (5);
} else {
_root.mapname = "Greco";
_root.mapx = -9999;
_root.addcs(null, null, "Absalom");
_root.addcs("Music", "Eerie", "Eerie");
_root.addcs("Emma", "(Huff) (huff)", "Intro01");
_root.addcs("Emma", "I'm exhausted! I've never seen such a huge monster before!", "Intro01");
_root.addcs("Marthanne", "Well, we sure got it good! Stupid scary thing.", "Intro02");
_root.addcs("Emma", "Let's head back. I think we've taken care of any threats in here.", "Intro02");
_root.addcs("Marthanne", "OK! I could use some fresh air anyhow.", "Intro02");
gotoAndPlay (7);
}
}
fscommand ("showmenu", "false");
tfPasswordResponse = " ";
tfPassword = "";
emmalevel = 6;
marthannelevel = 4;
goldlevel = 10;
midpoint = "";
tfPartyState = "<P>Default Party:</P><P>Emma Level 6<BR>Marthanne Level 4<BR>Gold 10</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 gotoJukebox() {
gotoAndPlay (235);
}
function gotoJackpot() {
gotoAndPlay (190);
}
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;
_root.st1._visible = false;
_root.st2._visible = false;
_root.st3._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;
}
if (0 < _root.party[z].stoken) {
eval ("_root.st" + partysofar)._visible = true;
}
}
z++;
}
}
if ((_root.mapx != -9999) && (_root.mapx != 9999)) {
map.removeMovieClip();
map.attachMovie(_root.mapname, "themap", 0);
map._x = _root.mapx;
} else {
if (_root.mapx == -9999) {
_root.switchMap(_root.mapname, "right");
}
if (_root.mapx == 9999) {
_root.switchMap(_root.mapname, "left");
}
}
party1 = "";
party2 = "";
party3 = "";
renderStats();
Instance of Symbol 180 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 == "AddEmma") && (specflag == 0)) {
trace("AddEmma event detected.");
cevent = _root.cs.shift();
_root.party[0].isinparty = true;
delete cevent;
specflag = 2;
gotoAndPlay (9);
}
if ((_root.cs[0].title == "NoEmma") && (specflag == 0)) {
trace("NoEmma event detected.");
cevent = _root.cs.shift();
_root.party[0].isinparty = false;
delete cevent;
specflag = 2;
gotoAndPlay (9);
}
if ((_root.cs[0].title == "NoMarthanne") && (specflag == 0)) {
trace("NoMarth event detected.");
cevent = _root.cs.shift();
_root.party[1].isinparty = false;
delete cevent;
specflag = 2;
gotoAndPlay (9);
}
if ((_root.cs[0].title == "NoHiro") && (specflag == 0)) {
trace("NoHiro event detected.");
cevent = _root.cs.shift();
_root.party[2].isinparty = false;
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 = "";
}
bluemask._visible = true;
if ((cevent.title == null) && (cevent.text == null)) {
bluemask._visible = false;
}
if ((cevent.title == "") && (cevent.text == "")) {
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 439 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;
}
if (0 < _root.party[partyindex].stoken) {
hitdice = hitdice + _root.party[partyindex].stoken;
_root.party[partyindex].stoken = 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++;
}
var a;
if (0 < _root.healpotions) {
a = new Attack("Heal Potion", _root.combatlist[w].name + "Use", 0, 0, 0, 0, 0, _root.combatlist[w].level, 104);
_root.combatlist[w].attacks.push(a);
}
if (0 < _root.stokens) {
a = new Attack("Slash Token", _root.combatlist[w].name + "Use", 0, 0, 0, 0, 0, _root.combatlist[w].level, 101);
_root.combatlist[w].attacks.push(a);
}
if (0 < _root.ptokens) {
a = new Attack("Power Token", _root.combatlist[w].name + "Use", 0, 0, 0, 0, 0, _root.combatlist[w].level, 102);
_root.combatlist[w].attacks.push(a);
}
if (0 < _root.itokens) {
a = new Attack("Iron Token", _root.combatlist[w].name + "Use", 0, 0, 0, 0, 0, _root.combatlist[w].level, 103);
_root.combatlist[w].attacks.push(a);
}
if (_root.bossfight == false) {
a = new Attack("Retreat", _root.combatlist[w].name + "Run", 0, 0, 0, 0, 0, _root.combatlist[w].level, 100);
_root.combatlist[w].attacks.push(a);
}
}
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() {
_root.bossfight = false;
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";
circlebase.gotoAndStop(_root.backdrop);
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 = -999;
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 == -999) {
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 ((thisonegoes == thistarget) || (thisintent == 100)) {
_root.fullright._visible = false;
_root.iconright._visible = false;
}
if (_root.combatlist[thisonegoes].isgood == true) {
asuffix = "left";
tsuffix = "right";
} else {
asuffix = "right";
tsuffix = "left";
}
Set("tfHP" + asuffix, "HP: " + _root.combatlist[thisonegoes].hp);
if (thisonegoes != thistarget) {
Set("tfHP" + tsuffix, "HP: " + _root.combatlist[thistarget].hp);
} else {
eval ("tfHP" + tsuffix) + " ";
}
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);
}
if (thisonegoes == thistarget) {
Set(("tf" + tsuffix) + "1", "");
}
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;
var hitsanyway;
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;
if (damagescore < 0) {
damagescore = 0;
}
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;
}
hitsanyway = random(5);
if (((thisrule != 1) && (thisrule != 9)) && (thisrule < 100)) {
if ((defensescore >= attackscore) && (hitsanyway != 0)) {
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;
if (thistarget != thisonegoes) {
eval ("_root.dam" + tsuffix).green_show(healamt);
} else {
eval ("_root.dam" + asuffix).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;
}
if (thistarget != thisonegoes) {
Set("tfHP" + tsuffix, "HP: " + _root.combatlist[thistarget].hp);
} else {
Set("tfHP" + asuffix, "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("DAM+" + damagescore);
_root.combatlist[thisonegoes].ispup = _root.combatlist[thisonegoes].ispup + damagescore;
}
if (thisrule == 100) {
var runnumber;
runnumber = 3;
if (thisonegoes != thistarget) {
runnumber = 2;
}
if (random(runnumber) == 0) {
eval ("_root.dam" + asuffix).purple_show("ESCAPED");
if (thisonegoes != thistarget) {
eval ("_root.dam" + tsuffix).purple_show("ESCAPED");
}
_root.ranaway = true;
} else {
eval ("_root.dam" + asuffix).purple_show("FAILED");
if (thisonegoes != thistarget) {
eval ("_root.dam" + tsuffix).purple_show("FAILED");
}
}
}
if (thisrule == 101) {
var z;
if (0 < _root.stokens) {
z = 0;
while (z < _root.combatlist[thistarget].attacks.length) {
if (_root.combatlist[thistarget].attacks[z].rule < 100) {
_root.combatlist[thistarget].attacks[z].hitd = _root.combatlist[thistarget].attacks[z].hitd + _root.combatlist[thisonegoes].level;
}
z++;
}
if (thistarget != thisonegoes) {
eval ("_root.dam" + tsuffix).purple_show("HIT UP");
} else {
eval ("_root.dam" + asuffix).purple_show("HIT UP");
}
_root.stokens--;
} else {
eval ("_root.dam" + asuffix).purple_show("ALL OUT");
}
}
if (thisrule == 102) {
var z;
if (0 < _root.ptokens) {
z = 0;
while (z < _root.combatlist[thistarget].attacks.length) {
if (_root.combatlist[thistarget].attacks[z].rule < 100) {
_root.combatlist[thistarget].attacks[z].damd = _root.combatlist[thistarget].attacks[z].damd + _root.combatlist[thisonegoes].level;
}
z++;
}
if (thistarget != thisonegoes) {
eval ("_root.dam" + tsuffix).purple_show("DAM UP");
} else {
eval ("_root.dam" + asuffix).purple_show("DAM UP");
}
_root.ptokens--;
} else {
eval ("_root.dam" + asuffix).purple_show("ALL OUT");
}
}
if (thisrule == 103) {
var z;
if (0 < _root.itokens) {
z = 0;
while (z < _root.combatlist[thistarget].attacks.length) {
if (_root.combatlist[thistarget].attacks[z].rule < 100) {
_root.combatlist[thistarget].attacks[z].defd = _root.combatlist[thistarget].attacks[z].defd + _root.combatlist[thisonegoes].level;
}
z++;
}
if (thistarget != thisonegoes) {
eval ("_root.dam" + tsuffix).purple_show("DEF UP");
} else {
eval ("_root.dam" + asuffix).purple_show("DEF UP");
}
_root.itokens--;
} else {
eval ("_root.dam" + asuffix).purple_show("ALL OUT");
}
}
if (thisrule == 104) {
if (0 < _root.healpotions) {
var healamt;
healamt = 20;
if (thisonegoes != thistarget) {
eval ("_root.dam" + tsuffix).green_show(healamt);
} else {
eval ("_root.dam" + asuffix).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;
}
if (thisonegoes != thistarget) {
Set("tfHP" + tsuffix, "HP: " + _root.combatlist[thistarget].hp);
} else {
Set("tfHP" + asuffix, "HP: " + _root.combatlist[thistarget].hp);
}
_root.healpotions--;
} else {
eval ("_root.dam" + asuffix).purple_show("ALL OUT");
}
}
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("HIT -");
}
if (thisrule == 6) {
_root.combatlist[thistarget].damdown = _root.combatlist[thistarget].damdown + _root.combatlist[thisonegoes].level;
eval ("_root.dam" + tsuffix).purple_show("DAM -");
}
if (thisrule == 7) {
_root.combatlist[thistarget].defdown = _root.combatlist[thistarget].defdown + _root.combatlist[thisonegoes].level;
eval ("_root.dam" + tsuffix).purple_show("DEF -");
}
if (thisrule == 8) {
if (random(4) == 0) {
_root.combatlist[thistarget].hp = 1;
Set("tfHP" + tsuffix, "HP: 1");
eval ("_root.dam" + tsuffix).red_show("CRIT!!");
}
}
}
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
if (_root.ranaway == false) {
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)) && (_root.ranaway == false)) {
gotoAndPlay (116);
} else if ((goodwins == true) || (_root.ranaway == 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) && (_root.ranaway == false)) {
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;
}
if (_root.ranaway == false) {
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++;
}
if (_root.ranaway == true) {
tfResults = tfResults + "<P>The party ran away.</P>";
_root.ranaway = false;
}
_root.vpic.gotoAndStop(mvp + 1);
Frame 189
function set_password() {
var emmatable;
var marthtable;
var hirotable;
var goldtable;
emmatable = ["AA", "KA", "KL", "FE", "LJ", "EM", "MA", "LO", "VE", "WA", "RR", "IO", "RW", "NB", "MS", "NS", "TR", "LU", "UU", "YY", "WE"];
marthtable = ["II", "LO", "WW", "AB", "DR", "JP", "US", "KO", "HO", "ME", "PL", "EA", "SU", "RE", "OI", "NE", "YE", "YP", "TO", "EJ", "XO"];
hirotable = ["LP", "BB", "RE", "WW", "MB", "SD", "XZ", "NJ", "VO", "IU", "PE", "EF", "GH", "LI", "VC", "XS", "OO", "SQ", "KI", "CV", "DF"];
goldtable = ["J", "G", "R", "B", "A", "N", "F", "P", "S", "Q"];
var el = _root.party[0].level;
var ml = _root.party[1].level;
var hl = _root.party[2].level;
_root.gold = _root.gold + _root.healpotions;
_root.gold = _root.gold + (_root.ptokens * 1);
_root.gold = _root.gold + (_root.itokens * 1);
_root.gold = _root.gold + (_root.stokens * 1);
if (99 < _root.gold) {
_root.gold = 99;
}
if (20 < el) {
el = 20;
}
if (20 < ml) {
ml = 20;
}
if (20 < hl) {
hl = 20;
}
var gten = Math.floor(_root.gold / 10);
var gone = (_root.gold - (gten * 10));
password = emmatable[el - 1];
password = password + marthtable[ml - 1];
password = password + hirotable[hl - 1];
password = password + goldtable[gten];
password = password + goldtable[gone];
}
function backtostart() {
gotoAndPlay (1);
}
stop();
stopAllSounds();
_root.set_password();
Frame 190
tfTokens = 0;
tfBet = 0;
tfPayoff = "";
triggerson = true;
Frame 191
stop();
Frame 192
triggerson = false;
Frame 204
js1.gotoAndStop(random(6) + 11);
Frame 219
js2.gotoAndStop(random(6) + 11);
Frame 234
js3.gotoAndStop(random(6) + 11);
triggerson = true;
var payoff = 0;
var a = (js1._currentframe - 10);
var b = (js2._currentframe - 10);
var c = (js3._currentframe - 10);
if ((a == b) && (b == c)) {
if (a == 1) {
payoff = 4;
}
if (a == 2) {
payoff = 8;
}
if (a == 3) {
payoff = 10;
}
if (a == 4) {
payoff = 12;
}
if (a == 5) {
payoff = 24;
}
if (a == 6) {
payoff = 36;
}
}
if ((a == 6) && (b == 6)) {
if (c == 1) {
payoff = 2;
}
if (c == 2) {
payoff = 3;
}
if (c == 3) {
payoff = 4;
}
if (c == 4) {
payoff = 5;
}
if (c == 5) {
payoff = 6;
}
if (c == 6) {
payoff = 36;
}
}
if (0 < payoff) {
tfPayoff = ("Payoff " + payoff) + "-1";
} else {
tfPayoff = "Lose";
}
tfBet = tfBet * payoff;
tfTokens = tfTokens + tfBet;
tfBet = 0;
gotoAndStop (191);
Frame 235
stop();
Symbol 4 Button
on (rollOver) {
_parent.TextField6 = _parent.destination;
}
on (rollOut) {
_parent.TextField6 = "";
}
on (release) {
_root.switchMap(_parent.mapname, _parent.leftorright);
}
Symbol 8 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 9 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 10 MovieClip [Forest3] Frame 1
trace("ORedForest - Adjusting EM.enc");
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([0]);
_root.enc.push([2, 2]);
_root.enc.push([2, 4]);
_root.musicbox.playMusic("Adventure1");
_root.backdrop = "Outdoors";
trace("ORedForest - Adjusting EM.enc Complete");
Instance of Symbol 8 MovieClip in Symbol 10 MovieClip [Forest3] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Forest2";
rotated = 0;
destination = "To Greco";
}
Instance of Symbol 9 MovieClip in Symbol 10 MovieClip [Forest3] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "NordinTown";
rotated = 180;
destination = "Nordin";
}
Symbol 12 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 13 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 14 MovieClip [Forest2] Frame 1
trace("OMapForest - Adjusting em.enc");
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([4, 4, 4]);
_root.enc.push([8, 1, 1]);
_root.enc.push([1, 1, 1]);
_root.enc.push([13, 0, 0]);
_root.enc.push([14, 1, 0]);
_root.enc.push([15, 0]);
_root.musicbox.playMusic("Adventure1");
_root.backdrop = "Outdoors";
trace("OMapForest - Adjusting em.enc complete");
Instance of Symbol 12 MovieClip in Symbol 14 MovieClip [Forest2] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Forest3";
rotated = 180;
destination = "To Nordin";
}
Instance of Symbol 13 MovieClip in Symbol 14 MovieClip [Forest2] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Forest1";
rotated = 0;
destination = "To Greco";
}
Symbol 17 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 18 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 20 MovieClip Frame 10
gotoAndPlay (1);
Symbol 21 MovieClip [Forest1] Frame 1
trace("OMapForest - Adjusting em.enc");
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([8, 8]);
_root.enc.push([8, 4, 4]);
_root.enc.push([1, 1, 0]);
_root.enc.push([8, 1]);
_root.musicbox.playMusic("Adventure1");
_root.backdrop = "Outdoors";
trace("OMapForest - Adjusting em.enc complete");
Instance of Symbol 17 MovieClip in Symbol 21 MovieClip [Forest1] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Forest2";
rotated = 180;
destination = "To Nordin";
}
Instance of Symbol 18 MovieClip in Symbol 21 MovieClip [Forest1] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Greco";
rotated = 0;
destination = "Greco";
}
Symbol 25 Button
on (release) {
_root.mapx = _root.map._x;
_root.gotoShop();
}
Symbol 26 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 28 Button
on (release) {
_root.addcs("Emma", "I need to take a rest. Will Ellis mind?", "Hut01");
_root.addcs("Marthanne", "Aw, Ellis will let anybody sleep a night at her place.", "Hut01");
_root.addcs("", "You have a peaceful sleep.", "BlackScreen");
_root.addcs("Emma", "Hey, Marthanne, do you have a house of your own?", "Hut01");
_root.addcs("Marthanne", "I'm a messenger, Emma. When would I ever get to use it?", "Hut01");
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 30 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Ellis", "Hey, Marthanne!", "Converse01");
_root.addcs("Ellis", "How did the adventure go? Found anything interesting in the ruins?", "Converse01");
_root.addcs("Marthanne", "It was so COOL!", "Converse02");
_root.addcs("Marthanne", "Did you know everything's all modern down there?", "Converse02");
_root.addcs("Marthanne", "There was big mushrooms and big beetles and naked dead guys!", "Converse02");
_root.addcs("Ellis", "Oh, that sounds so gross! No way!", "Converse03");
_root.addcs("Marthanne", "Way! Hey, how's things in Greco been?", "Converse03");
_root.addcs("Ellis", "Corey's still mad at his dad. He's stomping around and sulking everywhere he goes!", "Converse03");
_root.addcs("Marthanne", "Yeah, I saw him hanging outside the ruin entrance! Isn't he just the biggest baby?", "Converse03");
_root.addcs("Ellis", "He may be handsome looking and all but there's NO way I'd want to go out with a guy like that!", "Converse04");
_root.addcs("Marthanne", "That is just SO true! Guys need to be mature.", "Converse04");
_root.addcs("Ellis", "Blah blah blah..", "Converse04");
_root.addcs("Marthanne", "Etc. Etc. Etc..", "Converse04");
_root.addcs("Emma", "...", "Converse04");
_root.gotoCutScene();
}
Symbol 32 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Shopkeeper", "Good afternoon, you two!", "Bystander02");
_root.addcs("Shopkeeper", "While you were away, I made some changes to my inventory.", "Bystander02");
_root.addcs("Shopkeeper", "There's a new kind of token called Slash Tokens. I think you'll like them!", "Bystander02");
_root.addcs("Shopkeeper", "Also, my tokens are all half-sized now. That means they're half price!", "Bytander02");
_root.gotoCutScene();
}
Symbol 34 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("President", "All right. What were you able to find?", "Report01");
_root.addcs("Emma", "I think we've managed to neutralize the ruin's threat, Mr. President.", "Report02");
_root.addcs("Emma", "But there was another problem that came up while we were exploring.", "Report02");
_root.addcs("President", "Oh?", "Report01");
_root.addcs("Emma", "I don't think the ruin was nearly as ancient as we first thought.", "Report02");
_root.addcs("Emma", "In fact, I'd be surprised if it was built more than a year or two ago.", "Report02");
_root.addcs("Emma", "And there seemed to be a strange symbol prevalent in the deeper parts of the ruin.", "Report02");
_root.addcs("President", "What did this.. symbol look like?", "Report03");
_root.addcs("Marthanne", "Kind of hard to describe. It looked a little like a heart, but it was upside down?", "Report04");
_root.addcs("Marthanne", "And there was this thingy attached to the bottom of it.", "Report04");
_root.addcs("President", "I see..", "Report03");
_root.addcs("President", "...", "Report03");
_root.addcs("President", "I have another mission for you two. Marthanne, escort Emma back to Nordin.", "Report03");
_root.addcs("President", "And also, please take this confidential message to King Leonard.", "Report03");
_root.addcs("Marthanne", "I gotcha! You can count on me.", "Report05");
_root.addcs("Marthanne", "Okay, wer're off again! It's like we never get a moment's rest, eh, Emma?", "Report06");
_root.addcs("Emma", "It's what we're here for..", "Report06");
_root.addcs("Marthanne", "Silly Diamond. I bet you'll be begging for a vacation soon enough!", "Report06");
_root.plotpoint = 1;
_root.gotoCutScene();
}
Symbol 36 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Greconian", "Looks like you two were really in a fight..", "Bystander01");
_root.addcs("Greconian", "I'd have run in there and helped out, but you know, my dad the president wouldn't let me..", "Bystander01");
_root.addcs("Greconian", "Stupid dad.", "Bystander01");
_root.gotoCutScene();
}
Symbol 38 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Marthanne", "Check it out! What's this thing?", "Midpoint01");
_root.addcs("Midpoint Save", "Hello there! I'm a new feature in the Absalom game.", "Midpoint02");
_root.addcs("Midpoint Save", "When you want to record your progress, click on me or any of my copies..", "Midpoint02");
_root.addcs("Midpoint Save", "And I'll give you a password to help you pick up where you left off!", "Midpoint02");
_root.addcs("Marthanne", "Neat! Hey, what's my midpoint password right now?", "Midpoint01");
_root.addcs("Midpoint Save", "..right now?", "Midpoint02");
_root.addcs("Midpoint Save", "Come on! You just started the game! If you die, you can just restart the whole damn thing!", "Midpoint02");
_root.addcs("Midpoint Save", "Geez, what am I, your servant? Go earn your password!", "Midpoint02");
_root.addcs("Marthanne", "Oh.. right!", "Midpoint03");
_root.gotoCutScene();
}
Symbol 39 MovieClip [Greco] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.musicbox.playMusic("Town");
if (_root.plotpoint == 0) {
leavetown._visible = false;
}
Instance of Symbol 26 MovieClip "leavetown" in Symbol 39 MovieClip [Greco] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Forest1";
rotated = 180;
destination = "Nordin";
}
Symbol 41 Button
on (release) {
_root.mapx = _root.map._x;
_root.gotoShop();
}
Symbol 43 Button
on (release) {
_root.mapx = _root.map._x;
var z;
z = 0;
while (z < _root.party.length) {
_root.party[z].currenthp = _root.party[z].maxhp;
z++;
}
_root.addcs("Innkeeper", "Welcome back! It's as free as always to stay the night.", "Nordin03");
_root.addcs("", "You have a peaceful sleep.", "BlackScreen");
_root.addcs("Innkeeper", "Have a nice day!", "Nordin03");
_root.gotoCutScene();
}
Symbol 44 Button
on (release) {
_root.mapx = _root.map._x;
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;
var gc = _root.gold;
gc = gc + _root.healpotions;
gc = gc + (_root.ptokens * 1);
gc = gc + (_root.itokens * 1);
gc = gc + (_root.stokens * 1);
if (99 < gc) {
gc = 99;
}
if (12 < el) {
el = 12;
}
if (12 < ml) {
ml = 12;
}
var gten = Math.floor(gc / 10);
var gone = (gc - (gten * 10));
passwordphrase = "Your password is: ";
passwordphrase = passwordphrase + emmatable[el - 1];
passwordphrase = passwordphrase + marthtable[ml - 1];
passwordphrase = passwordphrase + goldtable[gten];
passwordphrase = passwordphrase + goldtable[gone];
passwordphrase = passwordphrase + "+A";
_root.addcs("Midpoint Save", passwordphrase, "Midpoint");
_root.gotoCutScene();
}
Symbol 46 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Bystander", "Welcome back! Did you two have a nice trip?", "Nordin01");
_root.addcs("Bystander", "It's been real peaceful here since you were gone.", "Nordin01");
_root.addcs("Bystander", "Of course, there's still a few monsters and bandits here and there.", "Nordin01");
_root.addcs("Bystander", "Maybe you might want to level up a bit before moving on with your adventures.", "Nordin01");
_root.gotoCutScene();
}
Symbol 48 Button
on (release) {
_root.mapx = _root.map._x;
var xx = random(4);
if (xx == 0) {
_root.addcs("Old Man", "There's an old saying: Don't trust anyone over thirty! Do you know the reason why, young ladies?", "Nordin02");
}
if (xx == 1) {
_root.addcs("Old Man", "Upside-down heart, eh? It sounds familiar.. nah, I'm not talking!", "Nordin02");
}
if (xx == 2) {
_root.addcs("Old Man", "The one thing you've got to mind most is your temper. It's an important lesson!", "Nordin02");
}
if (xx == 3) {
_root.addcs("Old Man", "I'm beginning to regret all the things I've done. Remember, young un', always give yourself a chance to regret.", "Nordin02");
}
_root.gotoCutScene();
}
Symbol 49 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 50 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 51 MovieClip [NordinTown] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.musicbox.playMusic("Town");
Instance of Symbol 49 MovieClip in Symbol 51 MovieClip [NordinTown] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "NordinCastle";
rotated = 180;
destination = "Castle";
}
Instance of Symbol 50 MovieClip in Symbol 51 MovieClip [NordinTown] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Forest3";
rotated = 0;
destination = "Forest";
}
Symbol 54 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Master Peter", "Emma! I see you're proving to be an excellent warrior for the king.", "Peter01");
_root.addcs("Emma", "Thank you, Master! I couldn't have gotten this far without your training.", "Peter01");
_root.addcs("Master Peter", "Yes, speaking of training: are you familiar with retreat tactics?", "Peter01");
_root.addcs("Emma", "Yes - We spotted them on the combat menu, along with those new item use options.", "Peter01");
_root.addcs("Master Peter", "That's good. A few words about retreating..", "Peter01");
_root.addcs("Master Peter", "There are actually two retreat techniques available - Single Retreat and Assisted Retreat.", "Peter01");
_root.addcs("Master Peter", "If you choose yourself as a target for the retreat tactic, it's called Single Retreat.", "Peter01");
_root.addcs("Master Peter", "And of course, Assisted Retreat if you target a friend.", "Peter01");
_root.addcs("Master Peter", "An Assisted Retreat has a higher chance of success. However..", "Peter01");
_root.addcs("Master Peter", "If your friend is knocked out before it becomes your turn, the retreat won't happen at all.", "Peter01");
_root.addcs("Master Peter", "Also keep in mind that for some fights, Retreat options won't be available at all.", "Peter01");
_root.addcs("Master Peter", "At any rate, do your best, Emma.", "Peter01");
_root.addcs("Emma", "Thanks again, Master!", "Peter01");
_root.gotoCutScene();
}
Symbol 56 Button
on (release) {
_root.plotpoint = 2;
_root.mapname = "WestSide";
_root.mapx = 9999;
_root.addcs("Emma", "Your majesty!", "King01");
_root.addcs("Emma", "Our excursion was a success, and Marthanne and I are here to report.", "King01");
_root.addcs("King Leonard", "Well met, Emma. So what was it within that cave, anyhow?", "King02");
_root.addcs("Emma", "The journey to Greco took a day or two and was uneventful.", "King03");
_root.addcs("Emma", "When we arrived in Greco, the president told us he feared it might be a cursed ruin.", "King03");
_root.addcs("Marthanne", "Psst! (You're skipping a bit. Don't you think your crush on the King that we talked about needs bringing up?)", "King04");
_root.addcs("Emma", "Um.. uh..", "King05");
_root.addcs("Emma", "Andwecheckeditoutbutthedungeonwasnewinsteadofoldandwefoughtabiggolemandwenthome, the end!", "King05");
_root.addcs("King Leonard", "I see. Was there anything from the President?", "King02");
_root.addcs("Marthanne", "Absolutely, your majesty! Read this.", "King06");
_root.addcs("King Leonard", "...", "King09");
_root.addcs("King Leonard", "Emma, I have another mission for you.", "King02");
_root.addcs("Marthanne", "(ANOTHER one?! Man..)", "King02");
_root.addcs("Emma", "(Sshh.)", "King02");
_root.addcs("King Leonard", "You are to head to the great city of Nordane, and investigate the downtown area..", "King02");
_root.addcs("King Leoanrd", "For signs of similar ruins or complexes to what you found before.", "King02");
_root.addcs("Emma", "Understood. We'll start right away.", "King01");
_root.addcs("Marthanne", "Hey, Emma..", "King07");
_root.addcs("Marthanne", "What's so 'great' about this city of Nordane? I thought that was the capital we just left.", "King07");
_root.addcs("Emma", "It was the capital. But that doesn't mean Nordin Town is the biggest city.", "King07");
_root.addcs("Emma", "Nordane is where the majority of people in Nordin live.", "King07");
_root.addcs("Emma", "Nordin Town is like a little government garden in comparison.", "King07");
_root.addcs("Marthanne", "Wow. Where I live in Greco is the biggest town in my country.", "King07");
_root.addcs("Emma", "There it is! It's a big city, isn't it?", "King08");
_root.addcs("Emma", "It's a grand sight. I can't imagine how long it must have taken to build.", "King08");
_root.addcs("Marthanne", "It looks kind of dirty to me.", "King08");
_root.addcs("Emma", "Well.. yes..", "King08");
_root.addcs("Marthanne", "And why the big walls around it? This place doesn't seem very friendly to me.", "King08");
_root.addcs("Emma", "..true..", "King08");
_root.addcs("Emma", "At any rate, let's start investigating. We'll start with the West Side.", "King08");
_root.gotoCutScene();
}
Symbol 57 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 58 MovieClip [NordinCastle] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.musicbox.playMusic("Castle");
Instance of Symbol 57 MovieClip in Symbol 58 MovieClip [NordinCastle] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "NordinTown";
rotated = 0;
destination = "Nordin Town";
}
Symbol 60 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 61 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 63 Button
on (release) {
_root.mapx = _root.map._x;
if (_root.plotpoint == 2) {
_root.plotpoint = 3;
_root.addcs("Brady", "Oh, you looking for some secret hideaway, huh?", "Nordane04");
_root.addcs("Brady", "That ain't something you should talk about too loudly.", "Nordane04");
_root.addcs("Brady", "Why dontcha ask Channie, over on the South Side. She can take the heat for it.", "Nordane04");
_root.gotoCutScene();
} else if (_root.plotpoint == 5) {
_root.plotpoint = 6;
_root.party[0].isinparty = false;
_root.addcs("Marthanne", "Oh great! Now look, you can't even find the guy when you need him!", "Uhoh01");
_root.addcs("Voice", "Don't you worry about Brady, wench.", "Uhoh02");
_root.addcs("Emma", "Who goes there?", "Uhoh03");
_root.addcs("Voice", "Call us the Ruffians. You're the ones asking all the questions, right?", "Uhoh02");
_root.addcs("Gang", "We already.. taught Brady not to go around giving any answers.", "Uhoh02");
_root.addcs("Emma", "These people.. they couldn't be the same ones from the ruin in Greco..", "Uhoh03");
_root.addcs("Emma", "There must have been some miscommunications in Nordane's grapevi-", "Uhoh03");
_root.addcs("Emma", "Argh!", "Uhoh04");
_root.addcs("NoEmma", "", "");
_root.addcs("Emma", "...", "Uhoh05");
_root.addcs("Marthanne", "Emma!?", "Uhoh05");
_root.addcs("Gang", "Ha! Dumbass wench.", "Uhoh05");
_root.addcs("Marthanne", "Hey, hey! Don't get the wrong ideas, guys!", "Uhoh05");
_root.addcs("Marthanne", "We were doing some asking around, but it wasn't for any street gangs!", "Uhoh05");
_root.addcs("Gang", "Like we're going to take any chances. Nothin' in this city escapes our attention.", "Uhoh02");
_root.addcs("Gang", "Besides - you look like the healthiest pair of chicks we've seen in weeks.", "Uhoh02");
_root.addcs("Gang", "Heh heh heh..", "Uhoh05");
_root.addcs("Voice", "Hold it right there!", "Uhoh06");
_root.addcs("Gang", "Who the hell's that?", "Uhoh02");
_root.addcs("Guy", "You think you're going to waylay some fair maidens while I'm around?", "Uhoh07");
_root.addcs("Guy", "Not in the my neighbourhood, buddy! You're going to get a taste of my great Electro Buster!", "Uhoh07");
_root.addcs("Guy", "Hi-YAAAAH!", "Uhoh08");
_root.addcs("Guy", "Hey there, girl! No time for chit-chat, but my name's Hiro.", "Uhoh09");
_root.addcs("Hiro", "This isn't the best of odds, but let's team up and save your friend, got it?", "Uhoh09");
_root.addcs("Hiro", "By the way, nice outfit.", "Uhoh09");
_root.addcs("Marthanne", "Th-thanks!", "Uhoh09");
_root.party[2].isinparty = true;
while (0 < _root.combatlist.length) {
var trash;
trash = _root.combatlist.pop();
delete trash;
}
var m = _root.monsters[9];
_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[9];
_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[9];
_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.bossfight = true;
_root.addcs("Combat", "", "");
_root.addcs("Music", "Backstreets", "Backstreets");
_root.addcs("AddEmma", "", "");
_root.addcs("Emma", "Ohh..", "After01");
_root.addcs("Emma", "My head.. what happened to me?", "After01");
_root.addcs("Hiro", "Well, I'm glad you're up! That means the concussion wasn't as bad as I feared.", "After02");
_root.addcs("Hiro", "You were attacked from behind, and I had to bail you out.", "After02");
_root.addcs("Hiro", "My name's Hiro. I'm an engineer, and you're in my basement workshop.", "After03");
_root.addcs("Hiro", "The Ruffians cause trouble from time to time, and it gets in the way of my tinkering.", "After03");
_root.addcs("Hiro", "Fortunately, I use my (patented) ELECTRO BUSTER to take care of them!", "After04");
_root.addcs("Emma", "I see. I'm terribly sorry..", "After03");
_root.addcs("Emma", "I'm here on an investigative mission, but I've just been causing trouble here.", "After03");
_root.addcs("Hiro", "Well, what is it you're investigating?", "After05");
_root.addcs("Marthanne", "We're looking for an underground complex that has a symbol like this in it.", "After05");
_root.addcs("Hiro", "Hmm..", "After05");
_root.addcs("Hiro", "Why, that looks just like a Spade.", "After05");
_root.addcs("Marthanne", "A Spade? Like, a shovel? It does look a bit like one..", "After05");
_root.addcs("Hiro", "I mean a Spade, as in one for the four suits.", "After05");
_root.addcs("Emma", "Four suits? There's only supposed to be three. Heart, Diamond, and Club.", "After05");
_root.addcs("Hiro", "It's.. an archaic suit. Both of you are fairly young, I'm not surprised you never heard of it.", "After05");
_root.addcs("Hiro", "But about complexes.. yes, there's a suspicious building on the North Side.", "After05");
_root.addcs("Hiro", "It's in perfectly good shape - relatively - but no one ever squats in it.", "After05");
_root.addcs("Emma", "All right. Let's go see what it's like.", "After05");
_root.addcs("", "An hour later..", "BlackScreen");
_root.addcs("Emma", "This must be it. I recognize the stonework, and the structuring.", "After06");
_root.addcs("Marthanne", "Yup, me too! So, I wonder what's inside?", "After07");
_root.addcs("Hiro", "(You two.. I'm above thirty, so I understand this better than either of you.)", "After07");
_root.addcs("Hiro", "(If this is what I think it is, everyone is going to be in deep trouble soon..)", "After07");
_root.mapname = "Inner1";
_root.mapx = 9999;
_root.gotoCutScene();
} else {
_root.addcs("Brady", "Hey, leave me alone. I ain't interested in talkin.", "Nordane04");
_root.gotoCutScene();
}
}
Symbol 64 MovieClip [WestSide] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([4, 4, 4]);
_root.enc.push([4, 13, 13]);
_root.enc.push([9, 4]);
_root.musicbox.playMusic("Backstreets");
_root.backdrop = "City";
Instance of Symbol 60 MovieClip in Symbol 64 MovieClip [WestSide] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "NorthSide";
rotated = 330;
destination = "North Side";
}
Instance of Symbol 61 MovieClip in Symbol 64 MovieClip [WestSide] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "SouthSide";
rotated = 30;
destination = "South Side";
}
Symbol 67 Button
on (release) {
_root.mapx = _root.map._x;
var roll = random(3);
if (roll == 0) {
_root.addcs("Marthanne", "Eww! Emma, don't go rummaging around in that garbage!", "Nordane02");
_root.addcs("Emma", "I'm just being thorough in my investigating. Let's see..", "Nordane02");
_root.addcs("Emma", "Why, what do you know? I found a gold coin!", "Nordane02");
_root.gold++;
} else {
_root.addcs("Marthanne", "Eww! Emma, don't go rummaging around in that garbage!", "Nordane02");
_root.addcs("Emma", "I'm just being thorough in my investigating. Let's see..", "Nordane02");
_root.addcs("Emma", "Whoops. Yack!", "Nordane03");
_root.addcs("Combat", "", "");
while (0 < _root.combatlist.length) {
var trash;
trash = _root.combatlist.pop();
delete trash;
}
var m = _root.monsters[14];
_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[14];
_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[14];
_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.gotoCutScene();
}
Symbol 68 Button
on (release) {
_root.mapx = _root.map._x;
_root.addcs("Shopkeeper", "Sometimes I wonder why I bothered opening a branch in Nordane.", "Nordane01");
_root.addcs("Shopkeeper", "It's such a barbaric place compared to Nordin Town!", "Nordane01");
_root.gotoCutScene();
}
Symbol 69 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 70 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 71 MovieClip [EastSide] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([4]);
_root.enc.push([13]);
_root.enc.push([14]);
_root.enc.push([0]);
_root.musicbox.playMusic("Backstreets");
_root.backdrop = "City";
trace("OMapForest - Adjusting em.enc complete");
Instance of Symbol 69 MovieClip in Symbol 71 MovieClip [EastSide] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "NorthSide";
rotated = 210;
destination = "North Side";
}
Instance of Symbol 70 MovieClip in Symbol 71 MovieClip [EastSide] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "SouthSide";
rotated = 150;
destination = "South Side";
}
Symbol 73 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 74 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 76 Button
on (release) {
_root.mapx = _root.map._x;
if (_root.plotpoint == 4) {
_root.plotpoint = 5;
_root.addcs("Vinnie", "So, Brady and Channie have sent you to me.", "Nordane06");
_root.addcs("Vinnie", "Yes, I'm aware of the underside of this city..", "Nordane06");
_root.addcs("Vinnie", "But for the most part, I prefer to keep my own business.", "Nordane06");
_root.addcs("Vinnie", "Brady started this. Go back and tell him to just keep his mouth shut.", "Nordane06");
_root.addcs("Vinnie", "The last thing we want is for THEM to start getting stirred up.", "Nordane06");
_root.addcs("Marthanne", "We're just going around in circles. Doesn't anyone know anything here?", "Arg01");
_root.addcs("Emma", "It must be dangerous to be talking about these underground complexes.", "Arg01");
_root.addcs("Marthanne", "Not only that, these Nordane people are getting on my nerves.", "Arg02");
_root.addcs("Marthanne", "They're all cranky and shiftless - and they smell, too.", "Arg02");
_root.addcs("Marthanne", "You'd think they could at least try to clean themselves once in a while.", "Arg02");
_root.addcs("Emma", "But I don't think it's really their fault.", "Arg03");
_root.addcs("Emma", "I mean, I haven't seen any signs of a stable water supply in this city.", "Arg03");
_root.addcs("Emma", "They must be having trouble finding water to drink, let along bathe in.", "Arg03");
_root.addcs("Emma", "And I don't think there's much of anything in this city for people to make good with.", "Arg03");
_root.addcs("Emma", "I don't think it's right to rush to judge. They're trying their best to do better, but couldn't succeed.", "Arg03");
_root.addcs("Marthanne", "What a load of crap! If this city is such trouble for them, why don't they move? They're a lazy bunch.", "Arg04");
_root.addcs("Marthanne", "If we had people like this in Greco, we'd be kicking their asses right and left!", "Arg05");
_root.addcs("Emma", "M-Marthanne!", "Arg05");
_root.gotoCutScene();
} else {
_root.addcs("Vinnie", "I have no wish to speak with you.", "Nordane06");
_root.gotoCutScene();
}
}
Symbol 77 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 78 MovieClip [NorthSide] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([9, 9]);
_root.enc.push([13, 13, 9]);
_root.enc.push([9, 4, 4]);
_root.enc.push([9, 1]);
_root.musicbox.playMusic("Backstreets");
_root.backdrop = "City";
if (_root.plotpoint < 6) {
secretway._visible = false;
}
trace("OMapForest - Adjusting em.enc complete");
Instance of Symbol 73 MovieClip in Symbol 78 MovieClip [NorthSide] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "WestSide";
rotated = 180;
destination = "West Side";
}
Instance of Symbol 74 MovieClip in Symbol 78 MovieClip [NorthSide] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "EastSide";
rotated = 0;
destination = "East Side";
}
Instance of Symbol 77 MovieClip "secretway" in Symbol 78 MovieClip [NorthSide] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Inner1";
rotated = 150;
destination = "Spade Complex";
}
Symbol 81 Button
on (release) {
_root.mapx = _root.map._x;
if (_root.plotpoint == 3) {
_root.plotpoint = 4;
_root.addcs("Channie", "Oh, you two kids must be lookin' for trouble.", "Nordane05");
_root.addcs("Channie", "But if you gotta pry, go talk to Vinnie on the North Side.", "Nordane05");
_root.addcs("Channie", "He's wise t'everything around here.", "Nordane05");
_root.gotoCutScene();
} else {
_root.addcs("Channie", "Push off, y'kids!", "Nordane05");
_root.gotoCutScene();
}
}
Symbol 82 MovieClip [SouthSide] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([14, 6, 14]);
_root.enc.push([6, 6, 14]);
_root.enc.push([13, 14, 6]);
_root.musicbox.playMusic("Backstreets");
_root.backdrop = "City";
trace("OMapForest - Adjusting em.enc complete");
Instance of Symbol 73 MovieClip in Symbol 82 MovieClip [SouthSide] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "WestSide";
rotated = 180;
destination = "West Side";
}
Instance of Symbol 74 MovieClip in Symbol 82 MovieClip [SouthSide] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "EastSide";
rotated = 0;
destination = "East Side";
}
Symbol 92 MovieClip Frame 7
gotoAndPlay (1);
Symbol 93 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 95 Button
on (release) {
_root.mapname = "Resort";
_root.mapx = -9999;
_root.addcs("Emma", "This is as far as the pathway goes.", "Show01");
_root.addcs("Emma", "It looks like some sort of meeting hall.", "Show01");
_root.addcs("", "*Click*", "Show02");
_root.addcs("Voice", "Why that's right. It is a meeting hall.", "Show02");
_root.addcs("Voice", "And it's very nice to meet you at last, Emma.", "Show02");
_root.addcs("Emma", "You.. you know me?", "Show03");
_root.addcs("Hector", "We've been watching you for some time now.", "Show04");
_root.addcs("Hector", "And I'm sure we'll be seeing each other in the future, as well.", "Show04");
_root.addcs("Hector", "Now that you're here, I've got a test for you.", "Show04");
_root.addcs("Hector", "The first part of the test is a question.", "Show04");
_root.addcs("Hector", "When you received your orders, where were you told to go?", "Show04");
_root.addcs("Emma", "Er.. the downtown area of Nordane City.", "Show03");
_root.addcs("Hector", "All right, and you were investigating Spade complexes, right?", "Show04");
_root.addcs("Emma", "Right..", "Show04");
_root.addcs("Hector", "Now - why was it that King Leonard chose such a specific place for you to go directly to?", "Show04");
_root.addcs("Emma", "He..", "Show03");
_root.addcs("Emma", "Maybe he already knew that this complex was here?", "Show03");
_root.addcs("Hector", "Good.", "Show04");
_root.addcs("Hector", "I'll leave the rest of the first part of the test for later.", "Show04");
_root.addcs("Hector", "Meantime, here's the second part!", "Show04");
_root.addcs("Emma", "!!", "Show13");
_root.addcs("Marthanne", "You have go to be KIDDING me!", "Show13");
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++;
}
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));
j = 0;
while (j < m.attacks.length) {
_root.combatlist[_root.combatlist.length - 1].attacks.push(m.attacks[j]);
j++;
}
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));
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.bossfight = true;
_root.addcs("Combat", "", "");
_root.addcs("Music", "Eerie", "Eerie");
_root.addcs("Emma", "Wow, what a mess.", "Show05");
_root.addcs("Emma", "I don't hear the man on the mike anymore. He must have left.", "Show05");
_root.addcs("Hiro", "I'm not surprised, considering what we just did here.", "Show05");
_root.addcs("Marthanne", "Emma, you did it AGAIN!", "Show06");
_root.addcs("Marthanne", "Didn't I tell you about this before?", "Show06");
_root.addcs("Marthanne", "How can you let some obviously bad people plant ideas in your head!", "Show06");
_root.addcs("Marthanne", "You're a king's guard, and you're always thinking of your duty..", "Show06");
_root.addcs("Marthanne", "Maybe you should start thinking about what duty really means!", "Show07");
_root.addcs("Marthanne", "Part of duty means having faith in who you're serving..", "Show07");
_root.addcs("Marthanne", "..and not abandoning him every time you hear something halfway-plausible against him!", "Show07");
_root.addcs("Emma", "...", "Show07");
_root.addcs("Emma", "Let's go home.", "Show07");
_root.addcs("Hector", "They've left.", "Show04");
_root.addcs("Hector", "That went just about right.", "Show04");
_root.addcs("Hector", "We're going to have to improve our Golem technology..", "Show04");
_root.addcs("Hector", "But soon that Diamond will be ours! HA HA HA HA HA HA!", "Show08");
_root.addcs("Hector", "*Cough* Hack *Kaff* Hack Hack *Cough*", "Show09");
_root.addcs("Woman", "Easy, Lord Hector, easy!", "Show10");
_root.addcs("Hector", "Damn it. My lungs are acting up again, Equity.", "Show10");
_root.addcs("Hector", "It looks like I'm going to be useless for the next few days.", "Show10");
_root.addcs("Equity", "Understood. I'll handle matters from here.", "Show10");
_root.addcs("", "Later..", "BlackScreen");
_root.addcs("Music", "Castle", "Castle");
_root.addcs("King Leonard", "You've done well. I'm proud of all three of you.", "Show11");
_root.addcs("King Leonard", "Especially you Emma, since you've been working straight from your first mission all this time.", "Show11");
_root.addcs("King Leonard", "You all deserve a break. I'm sending you on vacation.", "Show11");
_root.addcs("King Leonard", "You're all going to the Peaks Resort for a week or two.", "Show11");
_root.addcs("Hiro", "Holy cow! That luxury place? What luck!", "Show12");
_root.addcs("Marthanne", "This'll be so cool! Thank you, your majesty!", "Show12");
_root.addcs("Emma", "(Your majesty..)", "Show12");
_root.addcs("Emma", "(I'm sent away from you after a mission I don't completely trust..)", "Show12");
_root.addcs("Emma", "(I want to be as dutiful as I can to you..)", "Show12");
_root.addcs("Emma", "(But I can't deny the vague unease I feel in my heart.)", "Show12");
_root.gotoCutScene();
}
Symbol 96 MovieClip [Inner2] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([12, 5, 5]);
_root.enc.push([5, 5, 5]);
_root.enc.push([15, 15]);
_root.enc.push([12, 15]);
_root.musicbox.playMusic("Eerie");
_root.backdrop = "Spade";
Instance of Symbol 93 MovieClip in Symbol 96 MovieClip [Inner2] Frame 1
onClipEvent (load) {
leftorright = "right";
mapname = "Inner1";
rotated = 180;
destination = "Out";
}
Symbol 98 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 99 MovieClip Frame 1
this.TextField6 = "";
hab._rotation = this.rotated;
Symbol 100 Button
on (release) {
_root.mapx = _root.map._x;
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;
var gc = _root.gold;
gc = gc + _root.healpotions;
gc = gc + (_root.ptokens * 1);
gc = gc + (_root.itokens * 1);
gc = gc + (_root.stokens * 1);
if (99 < gc) {
gc = 99;
}
if (12 < el) {
el = 12;
}
if (12 < ml) {
ml = 12;
}
var gten = Math.floor(gc / 10);
var gone = (gc - (gten * 10));
passwordphrase = "Your password is: ";
passwordphrase = passwordphrase + emmatable[el - 1];
passwordphrase = passwordphrase + marthtable[ml - 1];
passwordphrase = passwordphrase + goldtable[gten];
passwordphrase = passwordphrase + goldtable[gone];
passwordphrase = passwordphrase + "+R";
_root.addcs("Midpoint Save", passwordphrase, "Midpoint");
_root.gotoCutScene();
}
Symbol 101 MovieClip [Inner1] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.enc.push([12, 5, 5]);
_root.enc.push([5, 5, 5]);
_root.enc.push([15, 15]);
_root.enc.push([12, 15]);
_root.backdrop = "Spade";
_root.musicbox.playMusic("Eerie");
Instance of Symbol 98 MovieClip in Symbol 101 MovieClip [Inner1] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "NorthSide";
rotated = 180;
destination = "Out";
}
Instance of Symbol 99 MovieClip in Symbol 101 MovieClip [Inner1] Frame 1
onClipEvent (load) {
leftorright = "left";
mapname = "Inner2";
rotated = 0;
destination = "Onward";
}
Symbol 104 Button
on (release) {
_root.mapx = -9999;
_root.mapname = "Resort2";
_root.addcs("Emma", "I'm going to take a walk.", "Resort02");
_root.addcs("NoHiro", "", "");
_root.addcs("NoMarthanne", "", "");
_root.addcs("Marthanne", "All right, Emma, have fun!", "Resort02");
_root.addcs("Marthanne", "Hiro and I are staying here.", "Resort02");
_root.gotoCutScene();
}
Symbol 106 Button
on (release) {
_root.mapx = _root.map._x;
_root.gotoJackpot();
}
Symbol 108 Button
on (release) {
_root.mapx = _root.map._x;
_root.gotoJukebox();
}
Symbol 110 Button
on (release) {
_root.mapx = _root.map._x;
var z;
z = 0;
while (z < _root.party.length) {
_root.party[z].currenthp = _root.party[z].maxhp;
z++;
}
_root.addcs("Emma", "I think I'm going to take a nap.", "Resort01");
_root.addcs("", "You have a peaceful sleep.", "BlackScreen");
_root.gotoCutScene();
}
Symbol 111 MovieClip [Resort] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
_root.musicbox.playMusic("Castle");
Symbol 114 Button
on (release) {
_root.mapx = _root.map._x;
while (0 < _root.combatlist.length) {
var trash;
trash = _root.combatlist.pop();
delete trash;
}
var m = _root.monsters[11];
_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.addcs("", "", "Final01");
_root.addcs("Emma", "...", "Final01");
_root.addcs("", "", "Final02");
_root.addcs("Emma", "!!", "Final03");
_root.addcs("", "", "Final04");
_root.addcs("Equity", "Have you ever heard of the expression, 'Don't trust anyone over thirty?'", "Final05");
_root.addcs("Equity", "Emma.. if you want to know about the Spades..", "Final05");
_root.addcs("Equity", "..then you need to know about a secret your elders are keeping.", "Final05");
_root.addcs("Equity", "Every suit has their nature - and the Spades were no exception.", "Final06");
_root.addcs("Equity", "While the others were happy in their burgeoise state to let injustice slide by..", "Final06");
_root.addcs("Equity", "It was the Spades that fought in the streets and with their voices to aid the oppressed of Nordin.", "Final06");
_root.addcs("Equity", "There were certain people, however, who despised the idea of having their guilts drug out to face them.", "Final07");
_root.addcs("Equity", "And so the king lashed out at them, chased away the Spades, murdered them by the hundreds..", "Final08");
_root.addcs("Equity", "And buried their name, striking the existence of Spades from the common records.", "Final08");
_root.addcs("Equity", "And so the dark secret has remained ever since, as well as poverty and strife.", "Final08");
_root.addcs("Equity", "Emma, the forces of Nordin are too strong for us to fight directly..", "Final09");
_root.addcs("Equity", "But you have the ability to be our herald for us!", "Final09");
_root.addcs("Equity", "Not only are you a member of the king's guard, Emma..", "Final09");
_root.addcs("Equity", "But you are a Diamond, a person whose thoughts are able to lead in the same direction as a Spade.", "Final09");
_root.addcs("Equity", "You aren't tied up in the trivialities and day-to-day blindness of life, like a Heart.", "Final10");
_root.addcs("Equity", "You don't view the oppressed as a faceless obstacle to work around or overcome, like a Club.", "Final11");
_root.addcs("Equity", "Come with us, Emma - and be free of the doubts that burn inside you.", "Final09");
_root.addcs("Emma", "Yaaah!", "Final12");
_root.addcs("Emma", "How could I leave my life behind for someone like you?!", "Final13");
_root.addcs("Emma", "If you think Diamonds and Spades are so enlightened..", "Final13");
_root.addcs("Emma", "Then how can you dare make such horrible judgments about my friends and my king?!", "Final13");
_root.addcs("Equity", "I see. Well, I hoped this could have gone better..", "Final05");
_root.addcs("Equity", "But I guess I'm going to have to force the issue!", "Final14");
_root.bossfight = true;
_root.addcs("Combat", "", "");
_root.addcs("", "", "Final15");
_root.addcs("", "", "Final16");
_root.addcs("", "", "Final17");
_root.addcs("", "", "Final18");
_root.addcs("", "", "Final19");
_root.addcs("", "", "Final20");
_root.addcs("", "", "ToBeContinued");
_root.addcs("EOF", "", "");
_root.gotoCutScene();
}
Symbol 115 MovieClip [Resort2] Frame 1
while (_root.enc.length != 0) {
_root.enc.pop();
}
stopAllSounds();
_root.backdrop = "Outdoors";
Symbol 125 MovieClip Frame 4
gotoAndPlay (1);
Symbol 128 MovieClip Frame 1
ifFrameLoaded (4) {
_root.gotoAndStop(3);
}
Symbol 128 MovieClip Frame 3
gotoAndPlay (1);
Symbol 135 Button
on (release) {
gotoAndStop (4);
}
Symbol 138 MovieClip Frame 1
_root.loading.setPercentage(int((_root._framesloaded / _root._totalframes) * 100));
Symbol 138 MovieClip Frame 3
gotoAndPlay (1);
Symbol 142 MovieClip Frame 1
stop();
Symbol 149 Button
on (release) {
_root.nextscene();
}
Symbol 150 MovieClip Frame 1
function setPercentage(amt) {
this.TextField = ("LOADING: " + amt) + "%";
if (amt == 100) {
gotoAndStop (2);
}
}
stop();
Symbol 159 Button
on (release) {
var isokay;
isokay = true;
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 strbit;
strbit = tfPassword.substr(0, 2);
var z;
isokay = false;
z = 0;
while (z < emmatable.length) {
if (strbit == emmatable[z]) {
emmalevel = z + 1;
isokay = true;
}
z++;
}
if (isokay) {
strbit = tfPassword.substr(2, 2);
isokay = false;
z = 0;
while (z < marthtable.length) {
if (strbit == marthtable[z]) {
marthannelevel = z + 1;
isokay = true;
}
z++;
}
}
if (isokay) {
strbit = tfPassword.substr(4, 1);
isokay = false;
z = 0;
while (z < goldtable.length) {
if (strbit == goldtable[z]) {
goldlevel = 10 * z;
isokay = true;
}
z++;
}
}
if (isokay) {
strbit = tfPassword.substr(5, 1);
isokay = false;
z = 0;
while (z < goldtable.length) {
if (strbit == goldtable[z]) {
goldlevel = goldlevel + z;
isokay = true;
}
z++;
}
}
if (isokay == false) {
emmalevel = 6;
marthannelevel = 4;
goldlevel = 10;
tfPasswordResponse = "Invalid Password";
} else {
tfPasswordResponse = "Password Accepted";
midpoint = tfPassword.substr(6, 2);
}
tfPartyState = "";
if (((emmalevel == 6) && (marthannelevel == 4)) && (goldlevel == 10)) {
tfPartyState = tfPartyState + "<P>Default Party:</P>";
} else {
tfPartyState = tfPartyState + "<P>Your Party:</P>";
}
tfPartyState = tfPartyState + "<P>";
tfPartyState = tfPartyState + (("Emma Level " + emmalevel) + "<BR>");
tfPartyState = tfPartyState + (("Marthanne Level " + marthannelevel) + "<BR>");
tfPartyState = tfPartyState + (("Gold " + goldlevel) + "</P>");
}
Symbol 167 Button
on (release) {
this.onSet(this.left);
}
Symbol 170 Button
on (release) {
this.onSet(this.farleft);
}
Symbol 173 Button
on (release) {
this.onSet(this.sstop);
}
Symbol 176 Button
on (release) {
this.onSet(this.farright);
}
Symbol 179 Button
on (release) {
this.onSet(this.right);
}
Symbol 188 Button
on (release) {
if (0 < _root.healpotions) {
_root.healpotions--;
itemusage = 1;
gotoAndStop (5);
}
}
Symbol 190 Button
on (release) {
if (0 < _root.ptokens) {
_root.ptokens--;
itemusage = 2;
gotoAndStop (5);
}
}
Symbol 192 Button
on (release) {
if (0 < _root.itokens) {
_root.itokens--;
itemusage = 3;
gotoAndStop (5);
}
}
Symbol 197 Button
on (release) {
if (0 < _root.stokens) {
_root.stokens--;
itemusage = 4;
gotoAndStop (5);
}
}
Symbol 220 MovieClip Frame 1
stop();
Symbol 224 Button
on (release) {
trace("Click.");
if (this.target1._visible == true) {
trace("Test is true.");
this.activate_item(itemusage, thetarget1);
}
}
Symbol 225 Button
on (release) {
if (this.target2._visible == true) {
this.activate_item(itemusage, thetarget2);
}
}
Symbol 226 Button
on (release) {
if (this.target3._visible == true) {
this.activate_item(itemusage, thetarget3);
}
}
Symbol 227 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 + _root.party[pindex].level;
_root.renderStats();
}
if (it == 3) {
_root.party[pindex].itoken = _root.party[pindex].itoken + _root.party[pindex].level;
_root.renderStats();
}
if (it == 4) {
_root.party[pindex].stoken = _root.party[pindex].stoken + _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;
tfSTokens = _root.stokens;
Symbol 227 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 229 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 229 MovieClip Frame 3
gotoAndPlay (1);
Symbol 231 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 231 MovieClip Frame 9
gotoAndPlay (1);
Symbol 240 MovieClip Frame 1
function playMusic(title) {
if (title != _root.musicplaying) {
stopAllSounds();
gotoAndPlay(title);
_root.musicplaying = title;
}
}
stop();
Symbol 240 MovieClip Frame 5
stop();
Symbol 240 MovieClip Frame 6
stop();
Symbol 240 MovieClip Frame 7
stop();
Symbol 240 MovieClip Frame 8
stop();
Symbol 240 MovieClip Frame 9
stop();
Symbol 244 Button
on (release) {
if (_root.gold >= 1) {
_root.gold = _root.gold - 1;
_root.itokens++;
}
goldcount = ("Your gold: " + _root.gold) + " gp";
}
Symbol 245 Button
on (release) {
if (_root.gold >= 1) {
_root.gold = _root.gold - 1;
_root.ptokens++;
}
goldcount = ("Your gold: " + _root.gold) + " gp";
}
Symbol 246 Button
on (release) {
if (_root.gold >= 1) {
_root.gold--;
_root.healpotions++;
}
goldcount = ("Your gold: " + _root.gold) + " gp";
}
Symbol 253 Button
on (release) {
gotoAndStop (5);
}
Symbol 254 Button
on (release) {
if (_root.gold >= 1) {
_root.gold = _root.gold - 1;
_root.stokens++;
}
goldcount = ("Your gold: " + _root.gold) + " gp";
}
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
stop();
Symbol 394 MovieClip Frame 3
stop();
Symbol 394 MovieClip Frame 31
stop();
Symbol 394 MovieClip Frame 32
stop();
Symbol 394 MovieClip Frame 33
stop();
Symbol 394 MovieClip Frame 34
stop();
Symbol 394 MovieClip Frame 35
stop();
Symbol 394 MovieClip Frame 36
stop();
Symbol 394 MovieClip Frame 37
stop();
Symbol 394 MovieClip Frame 38
stop();
Symbol 394 MovieClip Frame 39
stop();
Symbol 394 MovieClip Frame 40
stop();
Symbol 394 MovieClip Frame 41
stop();
Symbol 394 MovieClip Frame 42
stop();
Symbol 394 MovieClip Frame 43
stop();
Symbol 394 MovieClip Frame 44
stop();
Symbol 394 MovieClip Frame 45
stop();
Symbol 394 MovieClip Frame 46
stop();
Symbol 394 MovieClip Frame 47
stop();
Symbol 394 MovieClip Frame 48
stop();
Symbol 394 MovieClip Frame 49
stop();
Symbol 394 MovieClip Frame 50
stop();
Symbol 394 MovieClip Frame 51
stop();
Symbol 394 MovieClip Frame 52
stop();
Symbol 394 MovieClip Frame 53
stop();
Symbol 394 MovieClip Frame 54
stop();
Symbol 394 MovieClip Frame 55
stop();
Symbol 394 MovieClip Frame 56
stop();
Symbol 394 MovieClip Frame 57
stop();
Symbol 394 MovieClip Frame 58
stop();
Symbol 394 MovieClip Frame 59
stop();
Symbol 394 MovieClip Frame 60
stop();
Symbol 394 MovieClip Frame 61
stop();
Symbol 394 MovieClip Frame 62
stop();
Symbol 394 MovieClip Frame 63
stop();
Symbol 394 MovieClip Frame 64
stop();
Symbol 394 MovieClip Frame 65
stop();
Symbol 394 MovieClip Frame 66
stop();
Symbol 394 MovieClip Frame 67
stop();
Symbol 394 MovieClip Frame 68
stop();
Symbol 394 MovieClip Frame 69
stop();
Symbol 394 MovieClip Frame 70
stop();
Symbol 394 MovieClip Frame 71
stop();
Symbol 394 MovieClip Frame 72
stop();
Symbol 394 MovieClip Frame 73
stop();
Symbol 394 MovieClip Frame 74
stop();
Symbol 394 MovieClip Frame 75
stop();
Symbol 394 MovieClip Frame 76
stop();
Symbol 394 MovieClip Frame 77
stop();
Symbol 394 MovieClip Frame 78
stop();
Symbol 394 MovieClip Frame 79
stop();
Symbol 394 MovieClip Frame 80
stop();
Symbol 394 MovieClip Frame 81
stop();
Symbol 394 MovieClip Frame 82
stop();
Symbol 394 MovieClip Frame 83
stop();
Symbol 394 MovieClip Frame 84
stop();
Symbol 394 MovieClip Frame 85
stop();
Symbol 394 MovieClip Frame 86
stop();
Symbol 394 MovieClip Frame 87
stop();
Symbol 394 MovieClip Frame 88
stop();
Symbol 394 MovieClip Frame 89
stop();
Symbol 394 MovieClip Frame 90
stop();
Symbol 394 MovieClip Frame 91
stop();
Symbol 394 MovieClip Frame 92
stop();
Symbol 394 MovieClip Frame 93
stop();
Symbol 394 MovieClip Frame 94
stop();
Symbol 394 MovieClip Frame 95
stop();
Symbol 394 MovieClip Frame 96
stop();
Symbol 394 MovieClip Frame 97
stop();
Symbol 394 MovieClip Frame 98
stop();
Symbol 394 MovieClip Frame 99
stop();
Symbol 394 MovieClip Frame 100
stop();
Symbol 394 MovieClip Frame 130
stop();
Symbol 394 MovieClip Frame 131
stop();
Symbol 394 MovieClip Frame 132
stop();
Symbol 394 MovieClip Frame 133
stop();
Symbol 394 MovieClip Frame 134
stop();
Symbol 394 MovieClip Frame 135
stop();
Symbol 394 MovieClip Frame 136
stop();
Symbol 394 MovieClip Frame 137
stop();
Symbol 394 MovieClip Frame 138
stop();
Symbol 394 MovieClip Frame 139
stop();
Symbol 394 MovieClip Frame 140
stop();
Symbol 394 MovieClip Frame 141
stop();
Symbol 394 MovieClip Frame 142
stop();
Symbol 394 MovieClip Frame 143
stop();
Symbol 394 MovieClip Frame 144
stop();
Symbol 394 MovieClip Frame 145
stop();
Symbol 394 MovieClip Frame 146
stop();
Symbol 394 MovieClip Frame 147
stop();
Symbol 394 MovieClip Frame 148
stop();
Symbol 394 MovieClip Frame 149
stop();
Symbol 394 MovieClip Frame 150
stop();
Symbol 394 MovieClip Frame 151
stop();
Symbol 394 MovieClip Frame 152
stop();
Symbol 394 MovieClip Frame 153
stop();
Symbol 399 Button
on (release) {
play();
}
Symbol 400 MovieClip Frame 1
function playMusic(title) {
if (title != _root.musicplaying) {
stopAllSounds();
gotoAndPlay(title);
_root.musicplaying = title;
}
}
stop();
Symbol 400 MovieClip Frame 5
stop();
Symbol 400 MovieClip Frame 6
stop();
Symbol 400 MovieClip Frame 7
stop();
Symbol 400 MovieClip Frame 8
stop();
Symbol 400 MovieClip Frame 9
stop();
Symbol 438 MovieClip Frame 1
stop();
Symbol 439 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 445 Button
on (release) {
if (buttonson == true) {
_root.card_set(1);
tfAuto = "NO AUTO";
_root.greymark._visible = true;
}
}
Symbol 446 Button
on (release) {
if (buttonson == true) {
_root.card_set(3);
tfAuto = "NO AUTO";
_root.greymark._visible = true;
}
}
Symbol 447 Button
on (release) {
if (buttonson == true) {
_root.card_set(2);
tfAuto = "NO AUTO";
_root.greymark._visible = true;
}
}
Symbol 448 Button
on (release) {
if (buttonson == true) {
_root.card_set(4);
tfAuto = "NO AUTO";
_root.greymark._visible = true;
}
}
Symbol 449 MovieClip Frame 1
stop();
Symbol 450 Button
on (release) {
if (buttonson == true) {
if (tfAuto == "AUTO PICK") {
_root.auto_pick();
}
}
}
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 2
stop();
Symbol 464 MovieClip Frame 3
stop();
Symbol 464 MovieClip Frame 4
stop();
Symbol 598 MovieClip Frame 10
gotoAndStop(random(3) + 11);
Symbol 598 MovieClip Frame 15
gotoAndStop(random(2) + 16);
Symbol 598 MovieClip Frame 18
play();
Symbol 598 MovieClip Frame 24
stop();
Symbol 598 MovieClip Frame 50
play();
Symbol 598 MovieClip Frame 56
stop();
Symbol 598 MovieClip Frame 83
play();
Symbol 598 MovieClip Frame 93
gotoAndPlay (83);
Symbol 598 MovieClip Frame 106
play();
Symbol 598 MovieClip Frame 111
stop();
Symbol 598 MovieClip Frame 113
play();
Symbol 598 MovieClip Frame 123
stop();
Symbol 598 MovieClip Frame 124
play();
Symbol 598 MovieClip Frame 128
stop();
Symbol 598 MovieClip Frame 129
play();
Symbol 598 MovieClip Frame 138
stop();
Symbol 598 MovieClip Frame 139
play();
Symbol 598 MovieClip Frame 143
stop();
Symbol 599 MovieClip Frame 10
gotoAndStop(random(3) + 11);
Symbol 599 MovieClip Frame 15
gotoAndStop(random(2) + 16);
Symbol 599 MovieClip Frame 18
play();
Symbol 599 MovieClip Frame 24
stop();
Symbol 599 MovieClip Frame 50
play();
Symbol 599 MovieClip Frame 56
stop();
Symbol 599 MovieClip Frame 83
play();
Symbol 599 MovieClip Frame 93
gotoAndPlay (83);
Symbol 599 MovieClip Frame 106
play();
Symbol 599 MovieClip Frame 111
stop();
Symbol 599 MovieClip Frame 113
play();
Symbol 599 MovieClip Frame 123
stop();
Symbol 599 MovieClip Frame 124
play();
Symbol 599 MovieClip Frame 128
stop();
Symbol 599 MovieClip Frame 129
play();
Symbol 599 MovieClip Frame 138
stop();
Symbol 599 MovieClip Frame 139
play();
Symbol 599 MovieClip Frame 143
stop();
Symbol 608 MovieClip Frame 1
function setMessage(msg) {
trace("At setMessage");
message = msg;
message2 = msg;
}
Symbol 609 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 609 MovieClip Frame 12
gotoAndStop (1);
Symbol 609 MovieClip Frame 23
gotoAndStop (1);
Symbol 609 MovieClip Frame 24
this.messageholder.message2 = "";
Symbol 609 MovieClip Frame 34
gotoAndStop (1);
Symbol 617 Button
on (release) {
this.techindex--;
if (this.techindex < 0) {
this.techindex = 0;
}
this.new_index(_root.currentperson, this.techindex);
}
Symbol 618 Button
on (release) {
this.techindex++;
if (this.techindex == _root.combatlist[_root.currentperson].attacks.length) {
this.techindex--;
}
this.new_index(_root.currentperson, this.techindex);
}
Symbol 619 Button
on (release) {
trace("Clicked button 1.");
if (this.target1._visible == true) {
_root.chose_intention(this.techindex, tvar1);
}
}
Symbol 620 Button
on (release) {
if (this.target2._visible == true) {
_root.chose_intention(this.techindex, tvar2);
}
}
Symbol 621 Button
on (release) {
if (this.target3._visible == true) {
_root.chose_intention(this.techindex, tvar3);
}
}
Symbol 622 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];
if (tech >= _root.party[partyindex].techniques.length) {
tek = _root.combatlist[person].attacks[tech];
} else {
tek = _root.party[partyindex].techniques[tech];
}
this.tfTechName = tek.name;
if ((tek.trump != 0) && (tek.trump != null)) {
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) && (tek.hita != null)) {
if (0 < tek.hita) {
tfTechNotes = tfTechNotes + "+";
}
tfTechNotes = tfTechNotes + (tek.hita + "D To Hit.");
}
if ((tek.dama != 0) && (tek.dama != null)) {
if (0 < tek.dama) {
tfTechNotes = tfTechNotes + "+";
}
tfTechNotes = tfTechNotes + (tek.dama + "D Damage.");
}
if ((tek.defa != 0) && (tek.dama != null)) {
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.";
}
if (tek.rule == 100) {
tfTechNotes = tfTechNotes + "Aborts Fight.";
}
if (tek.rule == 101) {
tfTechNotes = tfTechNotes + (_root.stokens + " in stock.");
}
if (tek.rule == 102) {
tfTechNotes = tfTechNotes + (_root.ptokens + " in stock.");
}
if (tek.rule == 103) {
tfTechNotes = tfTechNotes + (_root.itokens + " in stock.");
}
if (tek.rule == 104) {
tfTechNotes = tfTechNotes + (_root.healpotions + " in stock.");
}
var seekinggood;
if ((tek.rule == 1) || (tek.rule >= 100)) {
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 624 Button
on (release) {
_root.backtostart();
}
Symbol 626 MovieClip Frame 1
stop();
Symbol 629 Button
on (release) {
if (_root.cs.length == 0) {
gotoAndStop (5);
} else {
gotoAndPlay (7);
}
}
Symbol 652 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 10
gotoAndPlay (2);
Symbol 652 MovieClip Frame 11
stop();
Symbol 652 MovieClip Frame 12
stop();
Symbol 652 MovieClip Frame 13
stop();
Symbol 652 MovieClip Frame 14
stop();
Symbol 652 MovieClip Frame 15
stop();
Symbol 652 MovieClip Frame 16
stop();
Symbol 662 Button
on (release) {
if (0 < tfBet) {
js1.gotoAndPlay(2);
js2.gotoAndPlay(2);
js3.gotoAndPlay(3);
play();
}
}
Symbol 666 Button
on (release) {
if (0 < tfTokens) {
tfTokens--;
tfBet++;
}
}
Symbol 667 Button
on (release) {
if (0 < tfBet) {
tfBet--;
tfTokens++;
}
}
Symbol 668 Button
on (release) {
if (0 < _root.gold) {
_root.gold--;
tfTokens = tfTokens + 10;
}
}
Symbol 669 Button
on (release) {
if (tfTokens >= 10) {
_root.gold++;
tfTokens = tfTokens - 10;
}
}
Symbol 685 Button
on (release) {
_root.mplayer.playMusic("Castle");
}
Symbol 686 Button
on (release) {
_root.mplayer.playMusic("Town");
}
Symbol 687 Button
on (release) {
_root.mplayer.playMusic("Adventure1");
}
Symbol 688 Button
on (release) {
_root.mplayer.playMusic("Backstreets");
}
Symbol 689 Button
on (release) {
_root.mplayer.playMusic("Eerie");
}